Retrieve a list of delivery options
Get a list of delivery options to display in your checkout page, based on your Dynamic Checkout configuration in the Sendcloud platform.
- Log in to your Sendcloud account and go to Dynamic Checkout.
- Select your API integration from the Shops menu to customize your delivery options.
- When you’re done, click Publish to apply your configuration to your API integration.
How do delivery options correspond to configured delivery methods?
This API returns one delivery option per carrier configured in Dynamic Checkout. If a delivery method is configured with multiple carriers, then multiple delivery options will be returned - one per carrier. In cases when delivery options correspond to the same delivery method, delivery options’ ids will refer to the same delivery method id, leaving API users with a flexibility to perform grouping based on a delivery method id, if desired.How can I create a parcel out of the selected delivery option?
You’ll need to make an API call to the Create a parcel or parcels endpoint, passingrequest_label=true and shipping_method_id={checkout_identifier.value}, where the checkout_identifier field refers to the identifier of the selected delivery option.Authorizations
Basic Authentication using API key and secrets is currently the main authentication mechanism.
Path Parameters
Checkout configuration id from which delivery options will be retrieved
"465e2fe8-4589-4ae2-b49c-0c64153e5169"
Query Parameters
Total order/cart weight in grams
x >= 12500
Total order/cart price value
1"45.90"
The sender country of the shipment, as an ISO 3166-1 alpha-2. A country represented by its ISO 3166-1 alpha-2 code
AW, AF, AO, AI, AX, AL, AD, AE, AR, AM, AS, AQ, TF, AG, AU, AT, AZ, BI, BE, BJ, BQ, BF, BD, BG, BH, BS, BA, BL, BY, BZ, BM, BO, BR, BB, BN, BT, BV, BW, CF, CA, CC, CH, CL, CN, CI, CM, CD, CG, CK, CO, KM, CV, CR, CU, CW, CX, KY, CY, CZ, DE, DJ, DM, DK, DO, DZ, EC, EG, ER, EH, ES, EE, ET, FI, FJ, FK, FR, FO, FM, GA, GB, GE, GG, GH, GI, GN, GP, GM, GW, GQ, GR, GD, GL, GT, GF, GU, GY, HK, HM, HN, HR, HT, HU, ID, IM, IN, IO, IE, IR, IQ, IS, IL, IT, JM, JE, JO, JP, KZ, KE, KG, KH, KI, KN, KR, KW, LA, LB, LR, LY, LC, LI, LK, LS, LT, LU, LV, MO, MF, MA, MC, MD, MG, MV, MX, MH, MK, ML, MT, MM, ME, MN, MP, MZ, MR, MS, MQ, MU, MW, MY, YT, NA, NC, NE, NF, NG, NI, NU, NL, NO, NP, NR, NZ, OM, PK, PA, PN, PE, PH, PW, PG, PL, PR, KP, PT, PY, PS, PF, QA, RE, RO, RU, RW, SA, SD, SN, SG, GS, SH, SJ, SB, SL, SV, SM, SO, PM, RS, SS, ST, SR, SK, SI, SE, SZ, SX, SC, SY, TC, TD, TG, TH, TJ, TK, TM, TL, TO, TT, TN, TR, TV, TW, TZ, UG, UA, UM, UY, US, UZ, VA, VC, VE, VG, VI, VN, VU, WF, WS, YE, ZA, ZM, ZW, IC, XK "NL"
The receiver country of the shipment, as an ISO 3166-1 alpha-2. A country represented by its ISO 3166-1 alpha-2 code
AW, AF, AO, AI, AX, AL, AD, AE, AR, AM, AS, AQ, TF, AG, AU, AT, AZ, BI, BE, BJ, BQ, BF, BD, BG, BH, BS, BA, BL, BY, BZ, BM, BO, BR, BB, BN, BT, BV, BW, CF, CA, CC, CH, CL, CN, CI, CM, CD, CG, CK, CO, KM, CV, CR, CU, CW, CX, KY, CY, CZ, DE, DJ, DM, DK, DO, DZ, EC, EG, ER, EH, ES, EE, ET, FI, FJ, FK, FR, FO, FM, GA, GB, GE, GG, GH, GI, GN, GP, GM, GW, GQ, GR, GD, GL, GT, GF, GU, GY, HK, HM, HN, HR, HT, HU, ID, IM, IN, IO, IE, IR, IQ, IS, IL, IT, JM, JE, JO, JP, KZ, KE, KG, KH, KI, KN, KR, KW, LA, LB, LR, LY, LC, LI, LK, LS, LT, LU, LV, MO, MF, MA, MC, MD, MG, MV, MX, MH, MK, ML, MT, MM, ME, MN, MP, MZ, MR, MS, MQ, MU, MW, MY, YT, NA, NC, NE, NF, NG, NI, NU, NL, NO, NP, NR, NZ, OM, PK, PA, PN, PE, PH, PW, PG, PL, PR, KP, PT, PY, PS, PF, QA, RE, RO, RU, RW, SA, SD, SN, SG, GS, SH, SJ, SB, SL, SV, SM, SO, PM, RS, SS, ST, SR, SK, SI, SE, SZ, SX, SC, SY, TC, TD, TG, TH, TJ, TK, TM, TL, TO, TT, TN, TR, TV, TW, TZ, UG, UA, UM, UY, US, UZ, VA, VC, VE, VG, VI, VN, VU, WF, WS, YE, ZA, ZM, ZW, IC, XK "NL"
Defines the way of getting the shipping label via Sendcloud. Currently, we only support the method_id type, therefore, in every delivery option you will find the checkout_identifier object. This contains the shipping method ID, which is used in the Create a parcel or parcels and to retrieve the shipping label.
method_id Postal code of the recipient. This field can be used in combination with Checkout Rules to show or hide delivery options in certain locations.
15"5611EM"
Parcel length in centimeters. Examples: "48" or "52.3"
48
Parcel width in centimeters. Examples: "48" or "52.3"
48
Parcel height in centimeters. Examples: "48" or "52.3"
48
Arbitrary text data that can be used in combination with Checkout Rules to show or hide delivery options based on the value provided. For example, it can be used to filter delivery options based on the product SKU
128"demo_sku_12345"
Response
Successful Response
A delivery options response
Checkout configuration id from which delivery options will be processed and retrieved
"bae462c1-d659-48d0-aacd-fb7e3550de14"
List of available delivery options based on the current cart/order information provided at the time of the request
[
{
"id": "ec9ce3b9-7d3f-4298-bc1c-8f3aaa8d27e9",
"title": "Trunkrs Delivery - Sameday",
"internal_title": "trunkrs delivery",
"description": "Order now and get your delivery today!",
"delivery_method_type": "same_day_delivery",
"cut_off_time": "2022-08-08T15:00:00+01:00",
"checkout_identifier": { "type": "method_id", "value": 123 },
"shipping_rate": { "value": "8", "currency": "GBP" },
"carrier": {
"code": "trunkrs",
"name": "Trunkrs",
"logo_url": "https://sendcloud-prod-scp-static-files.s3.amazonaws.com/trunkrs/img/logo.svg"
},
"delivery_dates": [
{
"delivery_date": "2022-08-08T20:00:00+01:00",
"parcel_handover_date": "2022-08-08T16:00:00+01:00"
}
],
"lead_time_hours": {
"p10": 0,
"p20": 0,
"p30": 0,
"p40": 0,
"p50": 0,
"p60": 0,
"p70": 0,
"p80": 24,
"p90": 24,
"p95": 24
},
"sustainability_rating": "low",
"is_order_overweight": false,
"allowed_weight": {
"min": { "value": "0.001", "unit": "kg" },
"max": { "value": "23.001", "unit": "kg" }
}
}
]Indicates whether the selected delivery country corresponds to a configured delivery zone in the checkout configuration
true
Indicates whether the matched delivery zone is explicitly excluded by exclusion rules in the checkout settings. For instance, a specific location or an entire region can be excluded based on postal code exclusion rules, resulting in an empty list of delivery options
false