London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!
AI OnAI Off
London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!
Haven't looked into this much but I think the below links could be useful try to put you in the right direction
We are working on a basket page and we are allowing the user to remove line items from any shipment he has in his cart. However, we came across a problem where we can't delete a shipment object using the Cart Edit Content Delivery API.
The api we use is:
PUT /api/episerver/v3.0/me/cart
and our shipment array is as follow:
"shipments": [
{
"id": -1,
"shippingAddress": {
"firstName": "test1",
"lastName": "test2",
"line1": "1 Angelica Road",
"line2": "Kirkby",
"city": "LIVERPOOL",
"countryName": "united kingdom",
"countryCode": "UK",
"postalCode": "L32 1BQ",
"regionName": "Merseyside",
"email": "testUser1@test.com",
"phoneNumber": "01123456789",
"name": "72a21f34-cf0d-4358-9aee-164721c559a6"
},
"shippingMethodId": "00000000-0000-0000-0000-000000000000",
"lineItems": []
}
Is there a way to be able to delete the shipment?