API Documentation
Create Order
Create a new order
POST
/
orders
curl --request POST \
--url https://take.app/api/platform/orders \
--header 'Content-Type: application/json' \
--data '{
"customer_name": "<string>",
"customer_phone": "<string>",
"customer_email": "<string>",
"total_amount": "<string>",
"remark": "<string>",
"items": [
{
"productId": "<string>",
"quantity": 123
}
]
}'
{
"id": "<string>",
"status": "ORDER_STATUS_PENDING",
"paymentStatus": "PAYMENT_STATUS_PENDING",
"fulfillmentStatus": "UNFULFILLED",
"customer": {
"name": "<string>",
"phone": "<string>",
"email": "jsmith@example.com"
},
"items": [
{
"productId": "<string>",
"quantity": 123
}
],
"totalAmount": 123,
"createdAt": "2023-11-07T05:31:56Z"
}
Authorizations
Body
application/json
Response
200
application/json
Order created successfully
The response is of type object
.
curl --request POST \
--url https://take.app/api/platform/orders \
--header 'Content-Type: application/json' \
--data '{
"customer_name": "<string>",
"customer_phone": "<string>",
"customer_email": "<string>",
"total_amount": "<string>",
"remark": "<string>",
"items": [
{
"productId": "<string>",
"quantity": 123
}
]
}'
{
"id": "<string>",
"status": "ORDER_STATUS_PENDING",
"paymentStatus": "PAYMENT_STATUS_PENDING",
"fulfillmentStatus": "UNFULFILLED",
"customer": {
"name": "<string>",
"phone": "<string>",
"email": "jsmith@example.com"
},
"items": [
{
"productId": "<string>",
"quantity": 123
}
],
"totalAmount": 123,
"createdAt": "2023-11-07T05:31:56Z"
}
Assistant
Responses are generated using AI and may contain mistakes.