Request
Provide your bearer token in the Authorization
header when making requests to protected resources. Example:Authorization: Bearer ********************
Body Params application/json
{
"amount": 0,
"discount_amount": 0,
"total": 0,
"voucher_code": "string",
"shipping_address": "string",
"order_products": [
{
"product_id": 16,
"variant_id": 0,
"variant_value_id": 0,
"price": 0,
"quantity": 0,
"total": 0,
"shipping_fee": 0
}
]
}
Request Code Samples
curl --location --request POST 'http://petfen-order.local.com:8083/api/v1/order/create' \
--header 'X-Auth-Service: Bearer ' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"amount": 0,
"discount_amount": 0,
"total": 0,
"voucher_code": "string",
"shipping_address": "string",
"order_products": [
{
"product_id": 16,
"variant_id": 0,
"variant_value_id": 0,
"price": 0,
"quantity": 0,
"total": 0,
"shipping_fee": 0
}
]
}'
Responses
application/json Modified at 2025-09-03 16:03:56