curl --location --request PUT 'https://api.hyperzod.app/admin/v1/order/charge' \
--header 'x-tenant: 42' \
--header 'x-client-device: web' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"charge_id": 1,
"language_translation": [
{
"key": "name",
"locale": "en",
"value": "Packaging"
}
],
"charge_type": "global",
"status": true,
"charge_value_type": "percent",
"order_type": "delivery",
"payment_mode_id": [
"64b7f2a9c1e4d5038a6b9120"
],
"conditions": [
{
"type": "gt",
"amount": 1,
"applicable_on": "subtotal"
}
],
"charge_value": 1,
"calculate_on": "sub_total",
"currency": "USD",
"segment_ids": [
"64b7f2a9c1e4d5038a6b9120"
]
}'