Create Payment
Creates a payment from an existing checkout session and a payment method. Set a stable merchant_order_id on the upstream checkout session so a retry of the same logical operation can be looked up via Get Payment by Merchant Order instead of producing a duplicate payment.
curl --request POST \
--url https://api-sandbox.y.uno/v1/payments \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'public-api-key: YOUR_PUBLIC_API_KEY' \
--header 'private-secret-key: YOUR_PRIVATE_SECRET_KEY' \
--data '{
"account_id": "YOUR_ACCOUNT_CODE",
"merchant_order_id": "order-20260301-001",
"description": "Premium subscription - March 2026",
"country": "BR",
"amount": { "currency": "BRL", "value": 150.00 },
"workflow": "DIRECT",
"payment_method": {
"type": "CARD",
"vaulted_token": "4a8b9c2d-1e3f-5678-90ab-cdef12345678",
"detail": { "card": { "capture": true, "installments": 1 } }
}
}'payment_method.detail.card.capture to true to authorize and capture in one call, or false to authorize only and capture or cancel later. For direct 3DS integrations, populate payment_method.detail.card.three_d_secure with your authentication result. The Yuno SDK and hosted checkout handle 3DS automatically. Test in sandbox with the Yuno Testing Gateway.
merchant_order_id on the upstream checkout session to make retries safe. This endpoint does not honor X-Idempotency-Key. The dedupe pattern is to look up an existing payment with Get Payment by Merchant Order before retrying. See Avoiding duplicates.metadata to drive routing rules, it must also be set on the Checkout Session. Setting it only here will not trigger route logic.Authorizations
Your public API key from the Yuno Dashboard
Your private secret key (server-side only)
Body
The unique identifier of the account. You find this information on the Yuno dashboard (UUID, 36 chars).
The unique identifier of the customer's order (MAX 255; MIN 3).
The description of the payment (MAX 255; MIN 3).
Specifies the payment amount object, with the value and currency.
Show child attributes
Show child attributes
Country where the transaction must be processed (MAX 2; MIN 2; ISO 3166-1).
AR, BO, BR, CL, CO, CR, EC, SV, GT, HN, MX, NI, PA, PY, PE, US, UY The payment method object.
Show child attributes
Show child attributes
Links this payment to a previously-created Checkout Session. Required when workflow is SDK_CHECKOUT (or when workflow is omitted, since SDK_CHECKOUT is the default). Not required for DIRECT or REDIRECT back-to-back payments.
Show child attributes
Show child attributes
Specifies the additional_data object. This object is not mandatory. However, if you send this information, the payment experience will be enhanced for your user.
Show child attributes
Show child attributes
Identification of the payment transaction defined by the merchant (MAX 255; MIN 3). Optional to complement the merchant_order_id.
Specifies customer object for payments.
Show child attributes
Show child attributes
The payment workflow. Indicates whether the integration will use Yuno´s SDK or will be a back to back connection. Guides
SDK_CHECKOUT: [Recommended] - Use Yuno's SDK.DIRECT: Back to back integration with provider info for custom payment experience.REDIRECT: Back to back integration with provider redirection.
SDK_CHECKOUT, CHECKOUT, REDIRECT, DIRECT, SDK_SEAMLESS Specifies the subscription object.
Show child attributes
Show child attributes
The URL where to redirect the customer after the payment. Only required for DIRECT integrations that have a redirection (MAX 526; MIN 3).
Fraud screening object.
Show child attributes
Show child attributes
Split marketplace array of objects
Show child attributes
Show child attributes
Custom key–value tags to track this payment or add context (e.g., order_id, invoice, campaign). Up to 120 items.
Show child attributes
Show child attributes
Response
201
- Payment
- Card - With card details
- Card - With airline data
- Card - With customer, billing, and shipping details
- Card - With customer, billing, shipping and order items
- Card - With installments
- Card - With authorization
- Card - With merchant advice code (MAC)
- Card - With device fingerprint
- Card - With vault on success
- Card - With vaulted token
- Alternative payment method
- Card - With shipping, fee and tip amount
- Card - With NT
- Wallet - Direct
- Split Marketplace
"6c44ed29-cc51-4479-a5eb-108afdaadd50"
"493e9374-510a-4201-9e09-de669d75f256"
"Test Payment"
"US"
"SUCCEEDED"
"APPROVED"
"1744403449"
"2025-04-11T20:30:49.825637Z"
"2025-04-11T20:30:51.953868Z"
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
"http://www.google.com/?checkoutSession=7fb7093e-dc67-4c7a-80c5-d25cf5e6ff27"
"SDK_CHECKOUT"
Show child attributes
Show child attributes
Show child attributes
Show child attributes
false
curl --request POST \
--url https://api-sandbox.y.uno/v1/payments \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'public-api-key: YOUR_PUBLIC_API_KEY' \
--header 'private-secret-key: YOUR_PRIVATE_SECRET_KEY' \
--data '{
"account_id": "YOUR_ACCOUNT_CODE",
"merchant_order_id": "order-20260301-001",
"description": "Premium subscription - March 2026",
"country": "BR",
"amount": { "currency": "BRL", "value": 150.00 },
"workflow": "DIRECT",
"payment_method": {
"type": "CARD",
"vaulted_token": "4a8b9c2d-1e3f-5678-90ab-cdef12345678",
"detail": { "card": { "capture": true, "installments": 1 } }
}
}'