Skip to content
  1. Extras
  2. MiniShop3
  3. Development
  4. Web API
  5. Checkout

Checkout

Headless chain: catalog → cart → delivery/payment choice → order fields → cost → submit.

Public lists

No customer token:

MethodPath
GET/delivery/list
GET/delivery/get/{id}
GET/payment/list
GET/payment/get/{id}

Only active methods are listed. The delivery↔payment link is checked at checkout: submit fails without a valid pair.

POST /delivery/webhook/{delivery_id} is a provider callback (signature), not a customer token.

Order draft

All /order/* use token auto-mint.

MethodPathPurpose
GET/order/getDraft
POST/order/addOne field
POST/order/setMultiple fields
POST/order/removeRemove field
POST/order/cleanClear draft
POST/order/address/setApply saved address
POST/order/address/cleanClear address
GET/order/delivery/validation-rulesField rules by delivery
GET/order/delivery/required-fieldsRequired fields
GET/order/costFull calculation
GET/order/cost/cartCart only
GET/order/cost/deliveryDelivery
GET/order/cost/paymentPayment fee
POST/order/submitSubmit

Typical draft fields: delivery_id, payment_id, address_*, and contact fields. The exact set depends on delivery rules.

Submit

After successful submit the response may include a redirect (thank-you page / payment). Read data and redirect fields/headers in the controller Response.

Online payment comes from a payment extra. A base method without class only records the choice.

Typical order

  1. GET /delivery/list, GET /payment/list
  2. POST /order/set with delivery_id / payment_id and address
  3. GET /order/delivery/required-fields if needed
  4. GET /order/cost
  5. POST /order/submit

The Fenom storefront can build the form via msOrder. Headless uses the lists above. See Examples.