curl -X PATCH "https://firespark.cloud/api/storefront/v1/orders/ord-48291" \
-H "Authorization: Bearer ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"lines": [
{
"type": "PRODUCT",
"uid": "11111111-1111-1111-1111-111111111111",
"id": "burger-classic",
"parent_uid": null,
"parent_id": null,
"name": "Classic Burger",
"quantity": 2,
"tax_rate": 0.15,
"discount_rate": 0,
"unit_subtotal": 12.99,
"unit_discount": 0,
"unit_tax_total": 1.95,
"unit_total": 14.94,
"subtotal": 25.98,
"discount_total": 0,
"tax_total": 3.9,
"total": 29.88,
"unit_group_subtotal": 12.99,
"unit_group_discount": 0,
"unit_group_tax_total": 1.95,
"unit_group_total": 14.94,
"group_subtotal": 25.98,
"group_discount": 0,
"group_tax_total": 3.9,
"group_total": 29.88,
"metadata": {}
}
],
"totals": {
"currency": "USD",
"subtotal": 25.98,
"discount_rate": 0,
"discount_total": 0,
"tax_rate": 0.15,
"tax_total": 3.9,
"total": 29.88
}
}'