Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
AI OnAI Off
Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
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?