Retrieve a shipping method

GET {{baseUrl}}/shipping_methods/:id?sender_address=<string>&service_point_id=<integer>&is_return=<boolean>&from_postal_code=<string>&to_postal_code=<string>&to_country=IO

This endpoint will return information about a shipping method based on the provided shipping method id and your default sender address.

As described in Retrieve a list of shipping methods, to retrieve information about a shipping method which operates in a different country than your default sender address, provide a different sender_address id.

To see zonal carrier shipping methods, you need to provide to_country, from_postal_code and to_postal_code query parameters.

Example:

GET https://panel.sendcloud.sc/api/v2/shipping_methods/365?sender_address=102964

{
    "shipping_method": {
        "id": 365,
        "name": "Colissimo Service Point 0.75-1kg",
        "carrier": "colissimo",
        "min_weight": "0.751",
        "max_weight": "1.001",
        "service_point_input": "required",
        "price": 0,
        "countries": [

Request Params

KeyDatatypeRequiredDescription
sender_addressstringThe ID of the sender address for which you would like to know if the given shipping method is available.
service_point_idstringThe ID of the service point for which you would like to know if the given shipping method is available.
is_returnstringIf set to true the endpoint will return the shipping method only if it is a return shipping method.
from_postal_codestringPostal code of the sender.
to_postal_codestringPostal code of the recipient.
to_countrystringA country ISO 2 code for the recipient country.

HEADERS

KeyDatatypeRequiredDescription
Acceptstring

RESPONSES

status: OK

{&quot;shipping_method&quot;:{&quot;id&quot;:&quot;\u003clong\u003e&quot;,&quot;name&quot;:&quot;\u003cstring\u003e&quot;,&quot;carrier&quot;:&quot;\u003cstring\u003e&quot;,&quot;min_weight&quot;:&quot;\u003cstring\u003e&quot;,&quot;max_weight&quot;:&quot;\u003cstring\u003e&quot;,&quot;service_point_input&quot;:&quot;none&quot;,&quot;price&quot;:&quot;\u003clong\u003e&quot;,&quot;countries&quot;:[{&quot;id&quot;:&quot;\u003clong\u003e&quot;,&quot;name&quot;:&quot;\u003cstring\u003e&quot;,&quot;price&quot;:&quot;\u003cnumber\u003e&quot;,&quot;iso_2&quot;:&quot;\u003cstring\u003e&quot;,&quot;iso_3&quot;:&quot;\u003cstring\u003e&quot;,&quot;lead_time_hours&quot;:&quot;\u003cinteger\u003e&quot;,&quot;price_breakdown&quot;:[{&quot;type&quot;:&quot;\u003cstring\u003e&quot;,&quot;label&quot;:&quot;\u003cstring\u003e&quot;,&quot;value&quot;:&quot;\u003cfloat\u003e&quot;},{&quot;type&quot;:&quot;\u003cstring\u003e&quot;,&quot;label&quot;:&quot;\u003cstring\u003e&quot;,&quot;value&quot;:&quot;\u003cfloat\u003e&quot;}]},{&quot;id&quot;:&quot;\u003clong\u003e&quot;,&quot;name&quot;:&quot;\u003cstring\u003e&quot;,&quot;price&quot;:&quot;\u003cnumber\u003e&quot;,&quot;iso_2&quot;:&quot;\u003cstring\u003e&quot;,&quot;iso_3&quot;:&quot;\u003cstring\u003e&quot;,&quot;lead_time_hours&quot;:&quot;\u003cinteger\u003e&quot;,&quot;price_breakdown&quot;:[{&quot;type&quot;:&quot;\u003cstring\u003e&quot;,&quot;label&quot;:&quot;\u003cstring\u003e&quot;,&quot;value&quot;:&quot;\u003cfloat\u003e&quot;},{&quot;type&quot;:&quot;\u003cstring\u003e&quot;,&quot;label&quot;:&quot;\u003cstring\u003e&quot;,&quot;value&quot;:&quot;\u003cfloat\u003e&quot;}]}]}}