Skip to main content
POST
Enroll payment method
Vaults a payment method for a customer. Returns a vaulted_token for recurring use.

Authorizations

public-api-key
string
header
required

Your public API key from the Yuno Dashboard

private-secret-key
string
header
required

Your private secret key (server-side only)

Path Parameters

customer_id
string<uuid>
required

The unique identifier of the customer

Body

application/json
type
enum<string>
required

Payment method type

Available options:
CARD,
PIX,
BOLETO,
PSE,
SPEI,
OXXO
Example:

"CARD"

token
string
required

One-time token from SDK tokenization

Example:

"tok_4a8b9c2d-1e3f-5678-90ab-cdef12345678"

country
string

ISO 3166-1 alpha-2 country code

Pattern: ^[A-Z]{2}$
Example:

"BR"

Response

Payment method enrolled successfully

id
string<uuid>
Example:

"pm_1a2b3c4d-5e6f-7890-abcd-ef1234567890"

customer_id
string<uuid>
Example:

"c9d0e1f2-3a4b-5c6d-7e8f-9a0b1c2d3e4f"

type
enum<string>
Available options:
CARD,
PIX,
BOLETO,
PSE,
SPEI,
OXXO
Example:

"CARD"

status
enum<string>
Available options:
ACTIVE,
EXPIRED,
REVOKED
Example:

"ACTIVE"

card
object
vaulted_token
string

Token for reuse in future payments

Example:

"vtok_9f8e7d6c-5b4a-3210-fedc-ba9876543210"

created_at
string<date-time>
Example:

"2026-03-01T10:00:00.000Z"