---
title: "Create a charge for an order"
method: POST
path: "/orders/{id}/charges"
tags: ["Charges"]
---

# Create a charge for an order

`POST /orders/{id}/charges`

Creates a new charge associated with an existing order.

Notes:
- The charge is created for the order identified by the path parameter `id`.
- Depending on the payment method, the charge may be created in a non-final status (for example, pending).
- If the order does not meet the required conditions, the API may respond with **428 Precondition Required**.

## Path parameters

- `id` string, required

## Headers

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

## Request body

- ChargeRequest — The charges to be made
  - `amount` integer
  - `payment_method` ChargeRequestPaymentMethod, required — Payment method used in the charge.
    - `expires_at` integer — Method expiration date as unix timestamp (applies to some payment methods, e.g. cash).
    - `type` string, required
    - `payment_source_id` string — Identifier of a saved payment source to be used for this charge (if applicable).
  - `reference_id` string — Custom reference to add to the charge

## Response `200`

successful operation

## Other responses

- `401` — authentication error
- `404` — not found entity
- `422` — parameter validation error
- `428` — Precondition Required
- `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)
