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

# Create Payment Method

`POST /customers/{id}/payment_sources`

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`.

## Path parameters

- `id` string, required

## Headers

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

## Request body

- CreateCustomerPaymentMethodsRequest — Payment method data to attach to a customer.
  - `type` string, required — Type of payment method.
  - `expires_at` integer — Expiration date as unix timestamp (seconds).

## Response `200`

successful operation

## Other responses

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

---

[API](https://skmtc.dev/digitalfemsa/apis/femsa-api.md) · [All operations](https://skmtc.dev/digitalfemsa/apis/femsa-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/digitalfemsa/femsa-api/revisions/2e43caddf36b/schema)
