Checkout flow with Dolibarr order creation #3

Open
opened 2026-05-21 20:04:02 +00:00 by jmiller · 0 comments
Owner

Summary

Checkout process that creates an order (commande) and invoice (facture) in Dolibarr.

Requirements

  • Checkout form: billing address, shipping address, notes
  • Guest checkout or registered user (configurable)
  • Create Dolibarr thirdparty if new customer
  • Create Dolibarr order (POST /orders) with line items
  • Validate order (change status to validated)
  • Create invoice from order (POST /invoices/createfromorder)
  • Store order/invoice mapping in local DB
  • Order confirmation page with reference numbers

Acceptance Criteria

  • Checkout form collects required billing info
  • Guest and registered checkout modes work
  • Order created in Dolibarr with correct line items
  • Invoice auto-generated from order
  • Local order mapping record saved
  • Confirmation page shows order/invoice refs
  • Cart cleared after successful order
## Summary Checkout process that creates an order (commande) and invoice (facture) in Dolibarr. ## Requirements - Checkout form: billing address, shipping address, notes - Guest checkout or registered user (configurable) - Create Dolibarr thirdparty if new customer - Create Dolibarr order (`POST /orders`) with line items - Validate order (change status to validated) - Create invoice from order (`POST /invoices/createfromorder`) - Store order/invoice mapping in local DB - Order confirmation page with reference numbers ## Acceptance Criteria - [ ] Checkout form collects required billing info - [ ] Guest and registered checkout modes work - [ ] Order created in Dolibarr with correct line items - [ ] Invoice auto-generated from order - [ ] Local order mapping record saved - [ ] Confirmation page shows order/invoice refs - [ ] Cart cleared after successful order
jmiller added the status/pending-testing label 2026-05-21 22:58:40 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: MokoConsulting/MokoDoliJoomShop#3