Last updated 6 months ago
GET /orders HTTP/1.1 Host: Accept: */*
Orders retrieved successfully
[ { "id": 1, "userId": 1, "date": "2023-01-01T00:00:00Z", "products": [ { "id": 1, "name": "Product Name", "quantity": 2, "priceInCents": 1000 } ], "amountInCents": 2000, "clientSecret": "client_secret", "status": "pending" } ]
GET /orders/demo-cart HTTP/1.1 Host: Accept: */*
Demo cart retrieved successfully
[ { "id": 1, "name": "Product Name", "quantity": 2, "priceInCents": 1000 } ]
GET /orders/{id} HTTP/1.1 Host: Accept: */*
Order retrieved successfully
{ "id": 1, "userId": 1, "date": "2023-01-01T00:00:00Z", "products": [ { "id": 1, "name": "Product Name", "quantity": 2, "priceInCents": 1000 } ], "amountInCents": 2000, "clientSecret": "client_secret", "status": "pending" }
POST /orders/new HTTP/1.1 Host: Content-Type: application/json Accept: */* Content-Length: 8 [ "text" ]
Order created successfully
ID of the order
123
Status of the order
Pending
Awaiting Payment
Payment Failed
Order Paid
Shipped
Completed
Cancelled
Declined
POST /orders/status-update HTTP/1.1 Host: Content-Type: application/json Accept: */* Content-Length: 34 { "orderId": 123, "status": "Pending" }
Order status updated successfully
{ "id": 1, "status": "completed" }
1
PUT /leads/statuses/order HTTP/1.1 Host: Content-Type: application/json Accept: */* Content-Length: 24 { "id": 1, "statusOrder": 1 }
Lead statuses order updated successfully
[ { "id": 1, "statusOrder": 1 } ]