Skip to main content

custom-json-example-create-external-sipment-request

/*
POST https://{UriToDeliveryAdaptersCreateExternalShipmentEndpoint} HTTP/2.0
Authorization: Basic Auth
Content-Type: application/json
*/

{
"configurationId": "config-1",
"storeId": 123456,
"reference": "ABCDEFGHJIKLMNOP",
"customer": {
"email": "test@walleytest.se",
"mobilePhoneNumber": "+46701111111",
"deliveryAddress": {
"firstName": "Lars-Erik Rudolf",
"lastName": "Viberg",
"companyName": null,
"coAddress": null,
"address": "Sommarstugevägen 2",
"address2": null,
"postalCode": "85353",
"city": "Sundsvall",
"countryCode": "SE"
}
},
"shipment": {
id: "shipmentId-1",
"metadata": {
"key-for-shipment": "metadata-for-shipment"
},
"shippingChoice": {
"id": "choiceId-1",
"metadata": {
"key-for-shipping-choice": "metadata-for-shipping-choice"
},
"destination" : {
"id": "destinationId-gothenburg",
"metadata": {
"key-for-destination": "metadata-for-destination"
},
"deliveryDate": {
"date": "2021-02-25T00:00:00+00:00",
"timeFrom": "17:00",
"timeTo": "21:00",
"metadata": {
"duringOpenHours": "true"
}
}
},
"options": [
{
"id": "option-1",
"value": "true"
},
{
"id": "option-3",
"value": "The dog is friendly"
}
]
},
}
,
}