Charges
Create a charge for an order
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.
post/orders/{id}/charges
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
Example request
{
"amount": 40000,
"payment_method": {
"expires_at": 1789928542,
"type": "cash",
"payment_source_id": "src_2tLkkyfMPh6v7pFry"
},
"reference_id": "ref_2tN73UdUSNrYRPD9r"
}Response
successful operation