Transport Rates
Endpoints related to Transport Rates.
In the CartonCloud Web App these are the Transport Rates tab at /{tenant}/rate-cards/{id}/transport-rates.
To get transport rates on a Rate Card:
- List rate cards. The
namefield is the name of the Rate Card;references.numericIdis the numeric Rate Card id in its CartonCloud Web App URL. - List rate card activities for the selected Rate Card uuid. Each rate card has one activity with
activityTypeCONSIGNMENT.constraintFieldsnames the match columns, such as service type, from zone, and to zone. - List rates for the rate card activity to get the Transport Rates on a Rate Card.
- Get Rate to access its
calculatorfield. This is where the rating logic resides.
List rates
Lists the rates on an activity. Each item is one Transport Rates row, with constraint groups, dates, and enabled.
path Parameters
tenantIdTenant ID. Can be found in organisation settings
rateCardActivityIdActivity id. Returned by listRateCardActivities.
Headers
Accept-VersionAll API end points require Accept-Version in the request header.
Failure to provide the header will return a status code of 400, however, an invalid version can return a 404, 406 or 400.
List rates › Responses
Success
idRate id. Returned by listRates.
activeeffectiveDateenabledexpiryDatereviewDatenamerateCardIdRate card this rate belongs to. The id comes from listRateCards.
Auxiliary references. numericId is present on some rates.
Get rate
Gets one rate. calculator is how the charge is worked out.
path Parameters
tenantIdTenant ID. Can be found in organisation settings
rateCardActivityIdActivity id. Returned by listRateCardActivities.
rateIdRate id. Returned by listRates.
Headers
Accept-VersionAll API end points require Accept-Version in the request header.
Failure to provide the header will return a status code of 400, however, an invalid version can return a 404, 406 or 400.
Get rate › Responses
Success
idRate id. Returned by listRates.
activeHow the charge is worked out. Returned by getRate.
effectiveDateenabledexpiryDatereviewDatenamerateCardIdRate card this rate belongs to. The id comes from listRateCards.
Auxiliary references. numericId is present on some rates.
List rate cards
Lists the tenant's rate cards. references.numericId is the numeric Rate Card id in the CartonCloud Web App URL.
path Parameters
tenantIdTenant ID. Can be found in organisation settings
query Parameters
pageThe page number to return results for
sizesortHeaders
Accept-VersionAll API end points require Accept-Version in the request header.
Failure to provide the header will return a status code of 400, however, an invalid version can return a 404, 406 or 400.
List rate cards › Responses
Success
idRate card id. Returned by listRateCards.
References for this rate card. Further keys may be present.
activedescriptionnameparentIdParent rate card id, when this card is derived from another. The id comes from listRateCards.
Get rate card
Gets one rate card by id.
path Parameters
tenantIdTenant ID. Can be found in organisation settings
rateCardIdRate card id. Returned by listRateCards.
Headers
Accept-VersionAll API end points require Accept-Version in the request header.
Failure to provide the header will return a status code of 400, however, an invalid version can return a 404, 406 or 400.
Get rate card › Responses
Success
idRate card id. Returned by listRateCards.
References for this rate card. Further keys may be present.
activedescriptionnameparentIdParent rate card id, when this card is derived from another. The id comes from listRateCards.
List rate card activities
Lists the activity on a rate card. Each rate card has one activity, with activityType CONSIGNMENT. constraintFields names the match columns, such as service type, from zone, and to zone.
path Parameters
tenantIdTenant ID. Can be found in organisation settings
rateCardIdRate card id. Returned by listRateCards.
Headers
Accept-VersionAll API end points require Accept-Version in the request header.
Failure to provide the header will return a status code of 400, however, an invalid version can return a 404, 406 or 400.
List rate card activities › Responses
Success
idActivity id. Returned by listRateCardActivities.
activeactivityTypeActivity type. It is CONSIGNMENT.
Names the match columns, such as service type, from zone, and to zone.
Get rate card activity
Gets the activity on a rate card.
path Parameters
tenantIdTenant ID. Can be found in organisation settings
rateCardIdRate card id. Returned by listRateCards.
rateCardActivityIdActivity id. Returned by listRateCardActivities.
Headers
Accept-VersionAll API end points require Accept-Version in the request header.
Failure to provide the header will return a status code of 400, however, an invalid version can return a 404, 406 or 400.
Get rate card activity › Responses
Success
idActivity id. Returned by listRateCardActivities.
activeactivityTypeActivity type. It is CONSIGNMENT.
Names the match columns, such as service type, from zone, and to zone.