Settings: create debtor
debtors_createCreate one or multiple customer debtor accounts with validated bank and address details. Check existing debtors first to avoid duplicate entries.
Instructions
🟡 WRITE · creates data: Creates new records (receipts, transactions, postings, invoices, master data). Not idempotent: calling twice may create duplicates.
create debtor
Create a debtor account.
Use to create one or more customers.
For suppliers you buy from, use creditors_create.
Takes one or many: pass an array of debtors in debtors. A single record is an array of one.
Not idempotent: check debtors_list first. v1 offers no delete endpoint, so a debtor created here can only be updated afterwards, never removed.
Endpoint: POST /settings/add-batch/debtors
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| debtors | Yes | an array of debtors, each debtor has the field declaration and validation from the single add/debtor endpoint |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| errors | No | ||
| debtors | No | ||
| success | Yes | Success boolean |