Skip to Content
FastracDocs
API reference

List courier services

GET
/b2b/courier/service

Returns one courier and all its services (for example JNE Reguler and JNE YES), with the service type, vehicle, estimated delivery days and default discount. Use it to show which services exist before quoting; prices come only from Get shipping rates.

Requires the READ_SHIPPING_RATES permission.

Authorization

bearerAuth
headerAuthorizationBearer <token>

An access token from the OAuth2 client-credentials grant. Exchange your API key (client_id + client_secret) at the token endpoint and send Authorization: Bearer <access_token>.

Query Parameters

courier_code*string

Courier code from List couriers. Case-insensitive.

Response Body

The courier and its services.

application/json
  1. response
statusCode*integer
message*string
data*
Example Request
curl -X GET 'https://sandbox-api.fastrac.example/b2b/courier/service?courier_code=string'
Example Response
{  "statusCode": 200,  "message": "Courier services retrieved successfully.",  "data": {    "courierCode": "JNE",    "courierId": 3,    "isEnabled": true,    "supportedTypes": [      "REGULAR"    ],    "services": [      {        "id": 12,        "code": "REG",        "courierCode": "JNE",        "courierId": 3,        "name": "JNE Reguler",        "type": "REGULAR",        "vehicle": null,        "defaultDiscountPercentage": 10,        "etdMinimumDay": 2,        "etdMaximumDay": 3,        "isEnabled": true,        "volumetricConversion": 6000,        "freeRts": false,        "shippingRateTtlSeconds": 900      },      {        "id": 13,        "code": "YES",        "courierCode": "JNE",        "courierId": 3,        "name": "JNE YES",        "type": "NEXTDAY",        "vehicle": null,        "defaultDiscountPercentage": 5,        "etdMinimumDay": 1,        "etdMaximumDay": 1,        "isEnabled": true,        "volumetricConversion": 6000,        "freeRts": false,        "shippingRateTtlSeconds": null      }    ]  }}

Was this page helpful?