Sales Credits
List Sales Credits
Returns a paginated list of sales credits.
Create Sales Credit
Creates a new sales credit. Must be linked to either a sales_order_id or a customer_id.
Bulk Delete Sales Credits
Bulk deletes sales credits by IDs or by applying current filters.
Get Sales Credit
Returns a single sales credit with all relations: lines, store with address, sales order, RMA with receipts, payments, allocations, and accounting transaction.
Update Sales Credit
Updates a sales credit including its lines. Lines array replaces all existing lines when provided; omit lines to leave them unchanged.
Delete Sales Credit
Deletes a single sales credit.
Bulk Archive Sales Credits
Bulk archives sales credits by IDs or by applying current filters.
Bulk Unarchive Sales Credits
Bulk unarchives sales credits by IDs or by applying current filters.
Check Deletable
Check which nominal codes can be deleted. A code cannot be deleted if it is linked to sales order lines or used in nominal code mapping settings.
Archive Sales Credit
Archives a single sales credit. Returns a warning if already archived.
Unarchive Sales Credit
Unarchives a single sales credit. Returns a warning if not archived.
Record Payment (Paid)
Records a payment against a sales credit, marking it as paid.
Update Payment
Updates an existing accounting payment.
Delete Payment
Deletes an accounting payment.
List Notes
Returns a paginated list of notes for a sales credit, ordered by created_at descending. Includes the note author.
Add Note
Adds a note to a sales credit.
Delete Note
Deletes a note.
Generate Accounting Transaction
Generates (or regenerates) the accounting transaction for this bill. Uses the bill's nominal codes and totals to create journal entries.
Preview Invoice
Generates a PDF invoice preview for the sales credit and returns the URL to the generated file.