Orders
GET
POST
PUT
Last updated
Last updated
GET /orders HTTP/1.1
Host:
Accept: */*
[
{
"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: */*
[
{
"id": 1,
"name": "Product Name",
"quantity": 2,
"priceInCents": 1000
}
]GET /orders/{id} HTTP/1.1
Host:
Accept: */*
{
"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"
]{
"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/status-update HTTP/1.1
Host:
Content-Type: application/json
Accept: */*
Content-Length: 34
{
"orderId": 123,
"status": "Pending"
}{
"id": 1,
"status": "completed"
}PUT /leads/statuses/order HTTP/1.1
Host:
Content-Type: application/json
Accept: */*
Content-Length: 24
{
"id": 1,
"statusOrder": 1
}[
{
"id": 1,
"statusOrder": 1
}
]