Credit
Create a credit account
Opens a credit account for a customer and returns it (201, `Location` header set). Requires `Permissions.Credit.View`.
Search credit accounts
Returns one page of credit accounts matching the filter. A credit account holds a customer's prepaid balance, which a till can draw on. Body is a `PaginationRequest` — see the *Filtering & pagination* concept in the developer docs. Sortable and limitable fields depend on the instance's data-grid view. Requires `Permissions.Credit.View`.
Get a credit account
Returns one credit account by `id`, with its current balance. Requires `Permissions.Credit.View`.
Book a credit movement
Applies the requested change to the credit account's balance and returns the account's movements, including the one just booked. Requires `Permissions.Credit.View`.
Get a credit account with its movements
Returns one credit account together with its movements in a single response, so a client does not have to call the two endpoints separately. Requires `Permissions.Credit.View`.
List a credit account's movements
Returns every top-up and draw-down booked against the credit account, newest state last. Requires `Permissions.Credit.View`.