curl --request POST \
--url https://api-sandbox.y.uno/v1/customers/sessions/{customer_session}/payment-methods \
--header 'Content-Type: application/json' \
--header 'X-Idempotency-Key: <api-key>' \
--header 'private-secret-key: <api-key>' \
--header 'public-api-key: <api-key>' \
--data '
{
"payment_method_type": "CARD",
"country": "US",
"account_id": "{{account_id}}"
}
'{
"id": "0395199e-a99c-4a85-acac-6c916f43fa74",
"account_id": "493e9374-510a-4201-9e09-de669d75f256",
"name": "Visa Credit Card",
"description": "Visa Credit Card",
"type": "VISA",
"category": "CARD",
"country": "US",
"status": "READY_TO_ENROLL",
"created_at": "2024-06-06T13:14:18.799434Z",
"updated_at": "2024-06-06T13:14:18.799437Z",
"enrollment": {
"session": "6641e30d-ca7a-440f-b97c-24231eac6dab",
"sdk_required_action": false
},
"provider": {
"id": "YUNO",
"type": "YUNO",
"provider_status": null
},
"customer_payer": {
"first_name": "John",
"last_name": "Doe",
"email": "john.doe@email.com",
"gender": "M",
"date_of_birth": "1990-02-28",
"document": {
"document_number": "123456789",
"document_type": "SSN"
},
"phone": {
"number": "1234567890",
"country_code": "1"
},
"billing_address": {
"address_line_1": "123 Main St",
"address_line_2": "Apt 4B",
"country": "US",
"state": "NY",
"city": "New York",
"zip_code": "10001"
}
},
"verify": {
"vault_on_success": false,
"payment": null
},
"preferred": null
}Enroll Payment Method
curl --request POST \
--url https://api-sandbox.y.uno/v1/customers/sessions/{customer_session}/payment-methods \
--header 'Content-Type: application/json' \
--header 'X-Idempotency-Key: <api-key>' \
--header 'private-secret-key: <api-key>' \
--header 'public-api-key: <api-key>' \
--data '
{
"payment_method_type": "CARD",
"country": "US",
"account_id": "{{account_id}}"
}
'{
"id": "0395199e-a99c-4a85-acac-6c916f43fa74",
"account_id": "493e9374-510a-4201-9e09-de669d75f256",
"name": "Visa Credit Card",
"description": "Visa Credit Card",
"type": "VISA",
"category": "CARD",
"country": "US",
"status": "READY_TO_ENROLL",
"created_at": "2024-06-06T13:14:18.799434Z",
"updated_at": "2024-06-06T13:14:18.799437Z",
"enrollment": {
"session": "6641e30d-ca7a-440f-b97c-24231eac6dab",
"sdk_required_action": false
},
"provider": {
"id": "YUNO",
"type": "YUNO",
"provider_status": null
},
"customer_payer": {
"first_name": "John",
"last_name": "Doe",
"email": "john.doe@email.com",
"gender": "M",
"date_of_birth": "1990-02-28",
"document": {
"document_number": "123456789",
"document_type": "SSN"
},
"phone": {
"number": "1234567890",
"country_code": "1"
},
"billing_address": {
"address_line_1": "123 Main St",
"address_line_2": "Apt 4B",
"country": "US",
"state": "NY",
"city": "New York",
"zip_code": "10001"
}
},
"verify": {
"vault_on_success": false,
"payment": null
},
"preferred": null
}X-Idempotency-Key. Check the Authentication.
Available payment methods for enrollment
The following payment methods can be enrolled using this endpoint:| Payment Method | Type |
|---|---|
| Cards | CARD |
| Nupay | NU_PAY_ENROLLMENT |
| PayPal | PAYPAL_ENROLLMENT |
| Daviplata | DAVIPLATA_ENROLLMENT |
| MercadoPago Wallet | WALLET_CONNECT |
| dLocal Yape | YAPE_ENROLLMENT |
| dLocal Smart PIX | SMART_PIX |
| Astropay | ASTROPAY_ENROLLABLE |
| Adyen PIX Biométrico | PIX_BIOMETRICO |
Authorizations
Path Parameters
The customer session that has been created for the enrollment using the Create Customer Session endpoint (UUID, 36 chars).
Body
The unique identifier of the account. You find this information on the Yuno dashboard (UUID, 36 chars).
The payment method type (MAX 255; MIN 3; Payment Type List).
CARD, MERCADO_PAGO_WALLET, NEQUI, BANCOLOMBIA_TOKENBOX, NU_PAY_ENROLLMENT The transaction's country code (MAX 2; MIN 2; ISO 3166-1).
AR, BO, BR, CL, CO, CR, EC, SV, GT, HN, MX, NI, PA, PY, PE, US, UY Indicates whether to verify the payment with a verify transaction or not. You’ll need to have a provider defined in your CARD route. False by default. Access the Card Verification page for more details.
Show child attributes
Show child attributes
Response
201
- Enroll
- Enroll with card verification
"0395199e-a99c-4a85-acac-6c916f43fa74"
"493e9374-510a-4201-9e09-de669d75f256"
"Visa Credit Card"
"Visa Credit Card"
"VISA"
"CARD"
"US"
"READY_TO_ENROLL"
"2024-06-06T13:14:18.799434Z"
"2024-06-06T13:14:18.799437Z"
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Was this page helpful?