Select shipping method
PATCH
header
x-api-key<token>Organization-scoped API key with scope metadata.
id*stringapplication/json- body
methodId*stringLength
1 <= lengthSuccess
application/json- response
id*stringitems*array<>totals*shippingAddress*|nullbillingAddress*|nullshippingMethod*|nullpaymentMethod*|nullcouponCode*string|nullcouponError*string|nullrequiresShipping*booleancustomerId*string|nullitemCount*numbercreatedAt*stringupdatedAt*stringcurl -X PATCH 'https://api-prood.vercel.app/v1/carts/string/shipping-method' \ -H 'Content-Type: application/json' \ -d '{ "methodId": "string"}'Example Response
{ "id": "string", "items": [ { "id": "string", "productId": "string", "productSlug": "string", "variantId": "string", "name": { "property1": "string", "property2": "string" }, "variantName": { "property1": "string", "property2": "string" }, "image": { "url": "string", "alt": "string", "width": 0, "height": 0 }, "quantity": 0, "price": { "amount": 0, "currency": "string", "formatted": "string", "originalAmount": 0, "discountPercent": 0 }, "totalPrice": { "amount": 0, "currency": "string", "formatted": "string" } } ], "totals": { "subtotal": { "amount": 0, "currency": "string", "formatted": "string" }, "shipping": { "amount": 0, "currency": "string", "formatted": "string" }, "tax": { "amount": 0, "currency": "string", "formatted": "string" }, "discount": { "amount": 0, "currency": "string", "formatted": "string" }, "total": { "amount": 0, "currency": "string", "formatted": "string" } }, "shippingAddress": { "firstName": "string", "lastName": "string", "phone": "string", "street": "string", "street2": "string", "city": "string", "state": "string", "country": "string", "postalCode": "string" }, "billingAddress": { "firstName": "string", "lastName": "string", "phone": "string", "street": "string", "street2": "string", "city": "string", "state": "string", "country": "string", "postalCode": "string" }, "shippingMethod": { "id": "string", "name": { "property1": "string", "property2": "string" }, "provider": "string", "fulfillmentType": "shipping", "estimatedDays": { "min": 0, "max": 0 }, "price": { "amount": 0, "currency": "string", "formatted": "string" }, "cashOnDelivery": true }, "paymentMethod": { "id": "string", "type": "string", "name": { "property1": "string", "property2": "string" }, "provider": "string", "installments": { "count": 0, "amount": 0, "currency": "string" }, "icon": "string" }, "couponCode": "string", "couponError": "string", "requiresShipping": true, "customerId": "string", "itemCount": 0, "createdAt": "string", "updatedAt": "string"}