- Logistics
- Admin
- user
- transaction
- transport
- Tax
- create state feePOST
- update tax ratePOST
- update fee distancePOST
- update fee per kgPOST
- update value feePOST
- update service feePOST
- update service charge statusPOST
- update taxPOST
- update value fee statusPOST
- update base pricePOST
- Errand stausGET
- get interstate pricingGET
- update inter state pricingPUT
- get fee by state idGET
- get all feesGET
- get operational statesGET
- get mode of transportationGET
- delete accountDELETE
- checkoutPOST
- calculate pricePOST
create state fee
POST
/admin/create/hub/fees
Request
Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.Example:
Authorization: Bearer ********************
Header Params
Authorization
string
optional
Example:
Bearer {{token}}
Body Params application/json
pickup_center_id
integer
required
per_kg
integer
required
value_fee
integer
required
value_fee_enabled
boolean
required
service_charge
integer
required
service_charge_enabled
boolean
required
tax_rate
number
required
tax_rate_enabled
boolean
required
Example
{
"state_id":1,
"base_price":300,
"per_kg":50,
"value_fee":300,
"value_fee_enabled":true,
"service_charge":100,
"service_charge_enabled":true,
"tax_rate":7.5,
"tax_rate_enabled":true
}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '/admin/create/hub/fees' \
--header 'Authorization: Bearer {{token}}' \
--header 'Content-Type: application/json' \
--data-raw '{
"state_id":1,
"base_price":300,
"per_kg":50,
"value_fee":300,
"value_fee_enabled":true,
"service_charge":100,
"service_charge_enabled":true,
"tax_rate":7.5,
"tax_rate_enabled":true
}'
Responses
🟢200success
application/json
Body
data
null
required
message
string
required
Example
{
"data": null,
"message": "Okay"
}
Modified at 2024-11-22 11:44:00