v1
latestOpenAPI 3.0.02026-07-26167441.9 MBEnroll Payment Method
post/customers/sessions/{customer_session}/payment-methods
Path parameters
customer_sessionstring required
The customer session that has been created for the enrollment using the Create Customer Session endpoint (UUID, 36 chars).
Request body
Response
201
Example response
{
"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"
},
"provider": {
"id": "YUNO",
"type": "YUNO"
},
"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"
}
}
}