v1

latestOpenAPI 3.0.02026-07-26167441.9 MB

Enroll 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

account_idstring required

The unique identifier of the account. You find this information on the Yuno dashboard (UUID, 36 chars).

payment_method_type'CARD' | 'MERCADO_PAGO_WALLET' | 'NEQUI' | 'BANCOLOMBIA_TOKENBOX' | 'NU_PAY_ENROLLMENT' required

The payment method type (MAX 255; MIN 3; Payment Type List).

country'AR' | 'BO' | 'BR' | 'CL' | 'CO' | 'CR' | 'EC' | 'SV' | 'GT' | 'HN' | 'MX' | 'NI' | 'PA' | 'PY' | 'PE' | 'US' | 'UY' required

The transaction's country code (MAX 2; MIN 2; ISO 3166-1).

account_updaterboolean

Per-card control for Card Account Updater. When set to false, this card is excluded from Card Account Updater and will not receive automatic card-detail updates. When omitted, the card follows your account's Account Updater configuration. Applies at enrollment.

Response

201

OR

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"
    }
  }
}