Step 3. Send a response with shipping options
Code example for the response JSON
{
"shippingOptions": [
{
"title": "SuperMail First Class",
"rate": 10.31,
"transitDays": "1",
"description": "Courier will come tomorrow between 10AM-12PM.",
"titleTranslated": {
"en": "SuperMail First Class",
"it": "SuperMail di prima classe"
},
"descriptionTranslated": {
"fr": "Courier will come tomorrow between 10AM-12PM.",
"it": "Il corriere arriverà domani tra le 10:00 e le 12:00."
}
},
{
"title": "SuperMail Regular Delivery",
"rate": 5.01,
"transitDays": "5",
"description": "This method provides tracking number.",
"fulfilmentType": "SHIPPING",
},
{
"title": "Pick up at store #1",
"rate": 0,
"transitDays": "1",
"description": "Pick you order at 210, 5th West street, New York",
"fulfilmentType": "PICKUP",
"scheduled": true,
"businessHours":"{\"THU\":[[\"09:00\",\"18:00\"]],\"TUE\":[[\"09:00\",\"18:00\"]],\"WED\":[[\"09:00\",\"18:00\"]],\"FRI\":[[\"09:00\",\"18:00\"]],\"MON\":[[\"09:00\",\"18:00\"]]}",
"fulfillmentTimeInMinutes": 60,
"blackoutDates": "{blackoutDates:[{intervalStart:\"June 23, 2022, 4:00:00 AM\",intervalEnd:\"June 25, 2022, 12:12:10 PM\",repeatAnnually:true}]}"
},
{
"title": "Pick up at store #2",
"rate": 2,
"transitDays": "2",
"description": "Pick you order at 88, Town street, Chicago",
"fulfilmentType": "PICKUP",
"scheduled": false
},
{
"title": "Local delivery Chicago",
"rate": 5,
"transitDays": "0",
"description": "2 hours delivery",
"fulfilmentType": "DELIVERY",
"scheduled": false
}
]
}Response JSON
Name
Type
Description
businessHours
blackoutDates
Field
Type
Description
translations
Last updated
Was this helpful?
