v1

latestOpenAPI 3.0.3MIT-LICENSE2026-07-2469127278.1 KB
Payment Methods

Create Payment Method

Creates a new payment method for a customer. The payment method is associated with the customer identified by id. The accepted fields depend on the payment method type.

post/customers/{id}/payment_sources

Path parameters

idstring required

Identifier of the resource

Headers

Accept-Language'es' | 'en'

Use for knowing which language to use

X-Child-Company-Idstring

In the case of a holding company, the company id of the child company to which will process the request.

Request body

typestring required

Type of payment method.

expires_atinteger

Expiration date as unix timestamp (seconds).

Example request

{
  "type": "cash",
  "expires_at": 1553273553
}

Response

successful operation