Orders
This page contains the documentation for the orders endpoints.
This endpoint allows you to get the orders of the user. Order can either be:
pending: Order is in thependingstate. It has not been delivered.delivery: Order is in thedeliverystate. It is still in shipment and not completed.completed: Order is completed an finalized.
To change the status of an order, use the POST Edit Orders endpoint.
Provide your API key.
Successful response. Returns all of the user's orders.
Unique identifier for the order.
Unique identifier for the product in the order.
File name of the product's image.
Name of the product.
Price of the product (in dollars).
Quantity of the product in the order.
Shipping type (e.g., "Regular").
Current status of the order (e.g., "pending").
Date the order was created.
Order number associated with the transaction.
See message description.
see message description.
This endpoint allows users to create a new order by providing the list of items they want to purchase along with the shipping address.
- Each item must include the product ID, quantity, and shipping type.
- The address field specifies the delivery address for the order.
Provide your API key.
Delivery address for the order.
Successful response. The order has been created successfully.
ORDER SUCCESSSee message description.
see message description.
This endpoint allows users to update the status of one or more orders. Valid status values include:
pending: The order has not been delivered.delivery: The order is in shipment.completed: The order is finalized and delivered.
Users must provide the orderId and the new status for each order.
Provide your API key.
Successful response. Returns the updated orders with their details.
Unique identifier for the order.
Unique identifier for the user who placed the order.
Current status of the order.
Delivery address for the order.
Timestamp when the order was created.
Internal versioning field.
See message description.
see message description.
This endpoint allows users to delete one or more orders.
- Users must provide the
orderIdof each order to be deleted. - The response confirms whether the operation was successful and the number of orders deleted.
Provide your API key.
List of order IDs to be deleted.
Successful response. Confirms the number of deleted orders.
Indicates whether the deletion request was acknowledged.
The number of orders successfully deleted.
See message description.
see message description.
Last updated