Create a fee (For Admin)
Developing
Request
Body Params application/json
{
"type": "service",
"amount": 0.05,
"method": "percentage",
"unit": null,
"minThreshold": 10,
"maxThreshold": null,
"thresholdAppliesTo": "order_subtotal"
}
Request samples
curl --location --request POST '/fees' \
--header 'Content-Type: application/json' \
--data-raw '{
"type": "service",
"amount": 0.05,
"method": "percentage",
"unit": null,
"minThreshold": 10,
"maxThreshold": null,
"thresholdAppliesTo": "order_subtotal"
}'
Responses
application/json {
"id": "string",
"type": "string",
"amount": 0,
"isActive": true,
"createdAt": "string",
"updatedAt": "string"
}
Modified at 2025-06-24 14:00:02