post
https://sandbox.ecartpay.com/api/orders
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
Creating an Order
The request should include the customer ID, currency, items (with name, quantity, and price), and you may add a notify URL in the payload.
The response to this request will have a status code of 200 and will include various details of the created order, such as the order ID, account ID, customer details, order status, items purchased, shipping information, discounts, totals, risk score, fee, confirmation status, creation and update timestamps, a payment link, and more. With this, you can:
- Embed the pay_link in your GUI.
- Receive the payment webhook confirmation in the notify_url.
- Review the payment is paid by creating a Get Order request.
- Ecart Pay will redirect to the customer the redirect_url for order confirmation.
Response Key Features
pay_link: A ready-to-use URL for a secure payment window. Embed this link in your GUI to allow customers to complete the payment.notify_url: A webhook URL to receive order status updates. When the order status changes, EcartPay sends a POST request with the order ID to this URL.redirect_url: After payment is completed, customers are redirected to this URL. Ensure this page displays order details (on success) or an error message (on failure).
Visit our Documentation to learn more about Orders.
IntegrationCheck our Backend Integration documentation if you would like to learn more about implementing order creation as part of a workflow.