One name per concept across every endpoint and callback. These are the naming conventions the Paper.id Open API uses.
| Concept | Convention |
|---|---|
| Field names | snake_case everywhere: body, query, path and callbacks. |
| Paper.id's ID for an object | id; references to other objects: invoice_id, partner_id, bank_id. |
| Your own references | partner_number, invoice_number — your codes, unique per company. |
| Due date | due_date |
| Dates | YYYY-MM-DD |
| Timestamps | created_at, updated_at (ISO 8601 with offset) |
| Line item name | items[].name |
| Unit of measure | uom_code |
| Tax | tax_id |
| Totals | subtotal, total_amount, amount_due |
| Links | payper_url, pdf_url |
| Status | status — lowercase strings: paid, partially_paid |
| Sorting | sort + order |
| Date filters | start_date / end_date, both inclusive |
| Payment reference | ref_id — your payment reference ID |