A transaction records a completed sale. Numeral files and remits tax based on the transactions recorded in each jurisdiction and period. Create one from a calculation after the customer pays: you need the calculation’s
id, which keeps the tax and accounting information together for filing. Record returns against it as refunds.Where transactions fit
The Transaction object
Attributes
The line items from the calculation.
reference_line_item_id, reference_product_id, reference_product_name and product_tax_code, as on the calculation.One row per taxing jurisdiction:
tax_rate, tax_due_decimal, fee_amount, rate_type, tax_authority_name, tax_authority_type, and tax_type. Same fields as on the calculation.Unix seconds when the sale was made. The time the transaction was created if you didn’t send one.
true if made with a test API key. Live transactions count toward your nexus totals, and Numeral files the tax where you’re registered and collecting.For a line’s effective tax rate, divide its
tax_amount by its amount_excluding_tax. Don’t add up tax_rate values. See Effective tax rate.The Transaction object
Create a transaction
Records a sale from a calculation. Create it after the customer pays and before the calculation expires (24 hours). The payload is small because the transaction takes its line items and tax from the calculation. When Numeral files with the state, this order is included. Try it in the API reference.Parameters
String key-value pairs, echoed back in the response. Up to 50 keys; keys and values up to 255 characters.
Returns
A Transaction object.POST /tax/transactions
Response
Retrieve a transaction
Returns a transaction by itsid. Try it in the API reference.Returns
A Transaction object.GET /tax/transactions/:id
Delete a transaction
Deletes a transaction, for example one recorded by mistake. To record a return, create a refund instead. Try it in the API reference.Returns
The deleted object type and when it was deleted, in Unix seconds.DELETE /tax/transactions/:id
Response
The Refund object
A refund records money returned to the customer against a transaction.Attributes
Unix seconds when the refund was made. The time the refund was created if you didn’t send one.
The refunded line items. Same fields as the transaction’s line items.
The Refund object
Create a refund
Records a full or partial refund against a transaction. Try it in the API reference.Parameters
Required for
partial refunds. Not needed for full.Returns
A Refund object.POST /tax/refunds
List refunds for a transaction
Returns every refund recorded against a transaction. Try it in the API reference.Returns
An object with arefunds array of Refund objects, without refund_type.GET /tax/transactions/:id/refunds
Response
Reverse a refund
Undoes a refund you created, for example one recorded by mistake. Try it in the API reference.Returns
A Refund object for the reversal.POST /tax/refund_reversals