class

Manza::Resources::Customers

Inherits Manza::Resources::Base < Reference < Object

Individuals or businesses the entity invoices.

Instance methods

create

POST /api/customers

Common keys: customer_type ("individual" | "business"), person_name, company_name, email, phone, registration_number, vat_number, billing_address (object with street/city/postal_code/ country/country_code). Morocco only: tax_id, ice_number — these keys are absent from responses in other markets.

Source
delete(id : String) : Response

DELETE /api/customers/:id

Source
get(id : String) : Response

GET /api/customers/:id

Source
list(q : String | Nil = nil, limit : Int32 = MAX_PER_PAGE, cursor : String | Nil = nil) : Page

GET /api/customers

q matches company name, person name, email.

Source
update(id : String, **attributes) : Response

PATCH /api/customers/:id

Source