post
https://api.digitalfemsa.io/orders
Creates a new order (products + amounts + customer data).
Minimum required fields:
currencyline_itemscustomer_info
About customer_info:
- You can reference an existing customer using
customer_info.customer_id, or - You can provide customer details at minimum
customer_info.nameandcustomer_info.emailto create the order with customer context.
How to create the order:
- Create an order only (no payment): send only the order data.
- Create an order and create the first payment charge: include
charges. - Create an order with a checkout configuration (for a hosted payment flow): include
checkout.
Important rules:
- You cannot send
chargesandcheckoutin the same request (they are mutually exclusive). - If you send
shipping_contact_idand/orfiscal_entity_id, you must also sendcustomer_info.customer_idso the API can validate those IDs against that customer.
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
