curl --location --request POST 'https://dev-api.inwantaiwan.com/api/apps/v2/order/confirmation' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"voucher_id": "number",
"use_point": "boolean",
"products": [
{
"variant_id": "number",
"quantity": "number"
}
],
"address_id": "number",
"payment_method_id": "string"
}'
{
"data": {
"product_total": 25,
"grand_total_rupiah": "",
"grand_total_item": 25,
"delivery_fee": 100,
"discounts": [],
"grand_total": 125,
"voucher": null,
"service_fee": 0,
"maximum_used_point": 5,
"deduction_point": 0,
"min_order_error": "",
"total_discount": 0,
"is_free_delivery": false,
"items": [
{
"product_variant_id": 1445,
"quantity": 1,
"price": 25,
"final_price": 25
}
]
}
}