Skip to main content
Documentation

Domain

Customers capabilities

10 capabilities, all acting on a customer. A reference to one from another domain is spelled customer_id — never a bare id — and every one of those fields names the capability that produces it, so a model can chain calls without guessing.
CapabilityWhat it doesEffect
customers.listPOST /api/v1/customers/listSearch the customer book by name, email or phoneread-only
customers.getPOST /api/v1/customers/getGet one customer record by idread-only
customers.find_by_contactPOST /api/v1/customers/find_by_contactFind a customer by exact phone number or email addressread-only
customers.createPOST /api/v1/customers/createAdd a new customer to the shop's bookwrites
customers.updatePOST /api/v1/customers/updateChange one detail on a customer recordwrites
customers.record_consentPOST /api/v1/customers/record_consentRecord why this shop may message a customer, and since whenwrites
customers.list_notesPOST /api/v1/customers/list_notesRead the internal notes on a customerread-only
customers.add_notePOST /api/v1/customers/add_noteAdd an internal note to a customer recordwrites
customers.consent_standingPOST /api/v1/customers/consent_standingCheck whether this shop may still message a customer, and until whenread-only
customers.set_marketing_consentPOST /api/v1/customers/set_marketing_consentTurn marketing messages to a customer on or offwrites

← Every domain