Payment Methods

Create Payment Method

Create a payment method for a customer.

post/customers/{id}/payment_sources

Request

Path parameters

idstring required
Example:6307a60c41de27127515a575

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

OR
OR

Example request

{
  "type": "card | cash | spei | bnpl | pay_by_bank",
  "token_id": "tok_32hj4g234as"
}

Response

successful operation

OR
OR
OR

Example response

{
  "id": "src_2s8K1B3PBKDontpi9",
  "object": "payment_source",
  "created_at": 1675715413,
  "parent_id": "cus_2s8K1B3PBKDontpi8",
  "agreements": [
    {
      "agreement": "2409526",
      "provider": "bbva_cash_in"
    }
  ],
  "reference": "93000262276908",
  "barcode": "93000262276908",
  "barcode_url": "https://barcodes.conekta.com/644ebf80f2243197aad6cd8810375b905b613dbe.png",
  "expires_at": 1742483424,
  "provider": "Cash"
}

Changes

No recorded changes to this operation across all 2 revisions of this API.