Orders

Endpoints for all customer orders including endpoints for creating a new order/shopping cart. To create a new order/shopping cart, simply use the "Add Item" endpoint - the system will intelligently determine if there is any existing order/shopping cart, and if not, will create a new one. IMPORTANT NOTE: All "PENDING" order/shopping cart objects expire after 10 minutes of creation if no payment is detected. This is because the tokens that are added to the order are locked to prevent any one else from attempting to purchase them, the lock is released and the order CANCELLED after the 10 minutes runs up.



Orders     /v2/api/orders/ (GET)

All orders for a customer.


Authorization
Header Value Description
Authorization Bearer {JWT} The JWT session token issued upon succesful customer login and verification.

curl --location --request GET 'https://api.curios.com/v2/api/orders/' \

--header 'curios-api-key: {API Key}' \
--header 'curios-date: {UTC Date/Time Stamp}' \
--header 'curios-signature: {Signature}' \
--header 'Authorization: Bearer {JWT}' \ 


Order Details     /v2/api/orders/:id (GET)

Order details including checkout link if the order is in "PENDING" status.


Authorization
Header Value Description
Authorization Bearer {JWT} The JWT session token issued upon succesful customer login and verification.

curl --location --request GET 'https://api.curios.com/v2/api/orders/:id' \

--header 'curios-api-key: {API Key}' \
--header 'curios-date: {UTC Date/Time Stamp}' \
--header 'curios-signature: {Signature}' \
--header 'Authorization: Bearer {JWT}' \ 


Cart Add Item     /v2/api/orders/cartAddItem (POST)

Creates an Order and adds an item to the "shopping cart" for purchase. If a pending order or existing cart already exists, it will reuse that order.


Authorization
Header Value Description
Authorization Bearer {JWT} The JWT session token issued upon succesful customer login and verification.

Body
Argument Value Required Description
listing_id {listing id} Yes ID of the listing for the token that the customer is purchasing.
curl --location --request POST 'https://api.curios.com/v2/api/orders/cartAddItem' \

--header 'curios-api-key: {API Key}' \
--header 'curios-date: {UTC Date/Time Stamp}' \
--header 'curios-signature: {Signature}' \
--header 'Authorization: Bearer {JWT}' \ 
--data-raw '{
  "listing_id": {listing id}
}'


Cart Delete Item     /v2/api/orders/cartDeleteItem (POST)

Deletes and item from the PENDING order/shopping cart.


Authorization
Header Value Description
Authorization Bearer {JWT} The JWT session token issued upon succesful customer login and verification.

Body
Argument Value Required Description
order_item_id {order item id} Yes ID of the order item to delete from the PENDING order.
curl --location --request POST 'https://api.curios.com/v2/api/orders/cartDeleteItem' \

--header 'curios-api-key: {API Key}' \
--header 'curios-date: {UTC Date/Time Stamp}' \
--header 'curios-signature: {Signature}' \
--header 'Authorization: Bearer {JWT}' \ 
--data-raw '{
  "order_item_id": {order item id}
}'


Cart Cancel     /v2/api/orders/cartCancel (GET)

Cancels the PENDING order/shopping cart.


Authorization
Header Value Description
Authorization Bearer {JWT} The JWT session token issued upon succesful customer login and verification.

curl --location --request GET 'https://api.curios.com/v2/api/orders/cartCancel' \

--header 'curios-api-key: {API Key}' \
--header 'curios-date: {UTC Date/Time Stamp}' \
--header 'curios-signature: {Signature}' \
--header 'Authorization: Bearer {JWT}' \ 


Cart Details     /v2/api/orders/cart (GET)

Gets the details of the shopping cart and checkout URL for the customer's current PENDING purchase/order.


Authorization
Header Value Description
Authorization Bearer {JWT} The JWT session token issued upon succesful customer login and verification.

curl --location --request GET 'https://api.curios.com/v2/api/orders/cart' \

--header 'curios-api-key: {API Key}' \
--header 'curios-date: {UTC Date/Time Stamp}' \
--header 'curios-signature: {Signature}' \
--header 'Authorization: Bearer {JWT}' \