curl --location -g --request POST 'https://api.byelabel.com/v1/rates?filter={"parent_code":"US"}' \
--header 'X-Workspace-Id: ' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"carrier": {
"id": "string",
"code": "string",
"service": "string",
"packaging": "string"
},
"from": {
"country_code": "string",
"zip_code": "string",
"state_code": "string",
"city": "string",
"street": [
"str"
],
"residential": true
},
"to": {
"country_code": "string",
"zip_code": "string",
"state_code": "string",
"city": "string",
"street": [
"str"
],
"residential": true
},
"package": [
{
"weight": {
"unit": "lb",
"value": 0
},
"dimensions": {
"unit": "in",
"length": 0,
"width": 0,
"height": 0
}
}
]
}'{
"success": true,
"payload": [
{
"carrier": {
"id": "string",
"code": "string",
"name": "string",
"service": {
"code": "string",
"name": "string"
},
"packaging": {
"code": "string",
"name": "string"
}
},
"rate": {
"currency": "string",
"cost": 0
}
}
],
"transaction": {
"id": "string",
"response_time": 0
}
}