---
title: "Create Payment Method"
method: POST
path: "/customers/{id}/payment_sources"
tags: ["Payment Methods"]
---

# Create Payment Method

`POST /customers/{id}/payment_sources`

Create a payment method for a customer.

## Path parameters

- `id` string, required

## Headers

- `Accept-Language` 'es' | 'en'
- `X-Child-Company-Id` string

## Request body

- union — Contains details of the payment methods that the customer has active or has used in Conekta
  - PaymentMethodTokenRequest — Contains details of the payment methods that the customer has active or has used in Conekta
    - `type` string, required — Type of payment method
    - `token_id` string, required — Token id that will be used to create a "card" type payment method. See the (subscriptions)[https://developers.conekta.com/v2.3.0/reference/createsubscription] tutorial for more information on how to tokenize cards.
  - PaymentMethodCashRequest — Contains details of the payment methods that the customer has active or has used in Conekta
    - `type` string, required — Type of payment method
    - `expires_at` integer
  - PaymentMethodSpeiRequest — Contains details of the payment methods that the customer has active or has used in Conekta
    - `type` string, required — Type of payment method
    - `expires_at` integer

## Response `200`

successful operation

## Other responses

- `401` — authentication error
- `404` — not found entity
- `422` — parameter validation error
- `500` — internal server error

---

[API](https://skmtc.net/conekta/apis/conekta-api.md) · [All operations](https://skmtc.net/conekta/apis/conekta-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/conekta/conekta-api/revisions/029df3052bca/schema)
