POST
/
payments

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
billing
object
required
customer
object
required
product_cart
object[]
required

List of products in the cart. Must contain at least 1 and at most 100 items.

metadata
object

Whether to generate a payment link. Defaults to false if not specified.

return_url
string | null

Optional URL to redirect the customer after payment. Must be a valid URL if provided.

Response

200 - application/json
client_secret
string
required

Client secret used to load Dodo checkout SDK NOTE : Dodo checkout SDK will be coming soon

customer
object
required
metadata
object
required
payment_id
string
required

Unique identifier for the payment

total_amount
integer
required

Total amount of the payment in smallest currency unit (e.g. cents)

Required range: x > 0

Optional URL to a hosted payment page

product_cart
object[] | null

Optional list of products included in the payment