Create a transaction
create_transactionMUTATES Quaderno data — record a sale or refund transaction (Quaderno computes tax and produces the compliant document). Provide the customer, items, and payment. Use fields for any other attribute (date, currency, shipping_address, evidence, processor, processor_id, processor_fee_cents, exchange_rate, po_number, notes, tags, custom_metadata). Quaderno API: POST /transactions. Returns the created invoice/credit-note object.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | Transaction type (default "sale"). | |
| items | Yes | Required. Transaction line items, e.g. [{ description, amount, quantity, tax_code, product_type }]. | |
| fields | No | Additional raw Quaderno fields merged into the request body (escape hatch for any field not typed above). | |
| payment | No | Payment object, e.g. { payment_method, amount, date }. | |
| currency | No | ISO 4217 currency code. | |
| customer | No | The customer contact object (or reference), e.g. { first_name, last_name, email, country, tax_id }. |