| New order |
POST /baskets GET /baskets/{basket_id} |
<ul><li>dw.ocapi.shop.basket.modifyPOSTResponse</li><li>dw.ocapi.shop.basket.modifyGETResponse</li></ul> |
| Set Customer |
PUT /baskets/{basket_id}/customer |
<ul><li>dw.ocapi.shop.basket.beforePutCustomer</li><li>dw.ocapi.shop.basket.afterPutCustomer</li><li>dw.ocapi.shop.basket.customer.modifyPUTResponse</li></ul> |
| Set Billing Address |
PUT /baskets/{basket_id}/billing_address |
<ul><li>dw.ocapi.shop.basket.beforePutBillingAddress</li><li>dw.ocapi.shop.basket.afterPutBillingAddress</li><li>dw.ocapi.shop.basket.billing_address.modifyPUTResponse</li></ul> |
| Set Shipping Address |
PUT /baskets/{basket_id}/shipments/{shipment_id}/shipping_address |
<ul><li>dw.ocapi.shop.basket.shipment.beforePutShippingAddress</li><li>dw.ocapi.shop.basket.shipment.afterPutShippingAddress</li><li>dw.ocapi.shop.basket.shipment.shipping_address.modifyPUTResponse</li></ul> |
| Add Product |
POST /baskets/{basket_id}/items |
<ul><li>dw.ocapi.shop.basket.items.beforePOST</li><li>dw.ocapi.shop.basket.items.afterPOST</li><li>dw.ocapi.shop.basket.items.modifyPOSTResponse</li></ul> |
| Update Product Item (such as quantity and custom properties |
PATCH /baskets/{basket_id}/items/{item_id} |
<ul><li>dw.ocapi.shop.basket.beforePatchItem</li><li>dw.ocapi.shop.basket.afterPatchItem</li><li>dw.ocapi.shop.basket.item.modifyPATCHResponse</li></ul> |
| Remove a product item |
DELETE /baskets/{basket_id}/items/{item_id} |
<ul><li>dw.ocapi.shop.basket.beforeDeleteItem</li><li>dw.ocapi.shop.basket.afterDeleteItem</li><li>dw.ocapi.shop.basket.item.modifyDELETEResponse</li></ul> |
| Set shipping method |
PUT /baskets/{basket_id}/shipments/{shipment_id}/shipping_method |
<ul><li>dw.ocapi.shop.basket.beforePutShippingAddress</li><li>dw.ocapi.shop.basket.afterPutShippingAddress</li><li>dw.ocapi.shop.basket.shipment.shipping_method.modifyPUTResponse</li></ul> |
| Add Coupon |
POST /baskets/{basket_id}/coupons |
<ul><li>dw.ocapi.shop.basket.beforePostCoupon</li><li>dw.ocapi.shop.basket.afterPostCoupon</li><li>dw.ocapi.shop.basket.coupon.modifyPOSTResponse</li></ul> |
| Remove Coupon |
DELETE /baskets/{basket_id}/coupons/{coupon_item_id} |
<ul><li>dw.ocapi.shop.basket.beforeDeleteCoupon</li><li>dw.ocapi.shop.basket.afterDeleteCoupon</li><li>dw.ocapi.shop.basket.coupon.modifyDELETEResponse</li></ul> |
| Add Price Adjustment |
POST /baskets/{basket_id}/price_adjustments |
<ul><li>dw.ocapi.shop.basket.beforePostPriceAdjustment</li><li>dw.ocapi.shop.basket.afterPostPriceAdjustment</li><li>dw.ocapi.shop.basket.price_adjustment.modifyPOSTResponse</li></ul> |
| Delete Price Adjustment |
DELETE /baskets/{basket_id}/price_adjustments/{price_adjustment_id} |
<ul><li>dw.ocapi.shop.basket.beforeDeletePriceAdjustment</li><li>dw.ocapi.shop.basket.afterDeletePriceAdjustment</li><li>dw.ocapi.shop.basket.price_adjustment.modifyDELETEResponse</li></ul> |
| Submit Basket |
POST /orders |
<ul><li>dw.ocapi.shop.order.beforePOST</li><li>dw.ocapi.shop.order.afterPOST</li><li>dw.ocapi.shop.order.modifyPOSTResponse</li></ul> |
| Get Payment Methods |
GET /baskets/{basket_id}/payment_methods (first payment selection) GET /orders/{order_no}/payment_methods |
<ul><li>dw.ocapi.shop.basket.payment_methods.modifyGETResponse</li><li>dw.ocapi.shop.order.payment_methods.modifyGETResponse</li></ul> |
| Add Payment Instrument |
POST /orders/{order_no}/payment_instruments |
<ul><li>dw.ocapi.shop.order.beforePostPaymentInstrument</li><li>dw.ocapi.shop.order.afterPostPaymentInstrument</li><li>dw.ocapi.shop.order.payment_instrument.modifyPOSTResponse<ul><li>For payment integrations, use dw.order.hooks.PaymentHooks.</li></ul><li>dw.order.payment.authorize</li><li>dw.order.payment.authorizeCreditCard</li><li>dw.ocapi.shop.order.validateOrder</li></ul> |
| Delete Payment Instrument |
DELETE /orders/{order_no}/payment_instruments/{payment_instrument_id} |
<ul><li>dw.ocapi.shop.order.payment_instrument.modifyDELETEResponse</li><li>dw.ocapi.shop.order.validateOrder</li></ul> |
| Guide |
all basket resources |
<ul><li>dw.ocapi.shop.basket.validateBasket</li></ul> |