Transactions and adjustments · POST
Create a transaction
Saves a completed sales tax calculation as a transaction with its original line items and tax amounts. Transactions cannot be edited; use an adjustment to record a refund or correction.
/v1/transactionsParameters
Send these headers and path or query values with the request.
| Name | Type | Required | Description |
|---|---|---|---|
Authorization | string | Yes | Send your API key as a bearer token. |
Content-Type | string | Yes | Use application/json. |
Idempotency-Key | string | Yes | A caller-generated key. Reusing it with the same canonical request returns the original effect. Reusing it with different content returns a conflict. |
expand | string | No | Set to audit for an authorized customer-safe audit expansion. |
Request body
Required JSON body.
| Name | Type | Required | Description |
|---|---|---|---|
calculation_id | string | Yes | See the request example for the full field shape. |
reference | string | Yes | See the request example for the full field shape. |
occurred_at | string | No | See the request example for the full field shape. |
Responses
The transaction record was saved.
Headers: Request-Id, Idempotent-Replayed
The request shape, parameter, or header is invalid.
A valid API key is required.
Headers: WWW-Authenticate
The authenticated key cannot perform this operation.
The resource does not exist in the authenticated workspace.
The request conflicts with an existing idempotency key or the current state of a saved record.
The request is valid, but the API cannot complete it. For example, the facts may not qualify or an adjustment may exceed the amounts left to reverse.
The request exceeded an API safety limit. It did not count toward API usage.
Headers: Retry-After
A required service is unavailable, so the API could not process the request.
Headers: Retry-After
Live request
Try this endpoint
The browser sends the request straight to the API. Your API key never passes through this website's server.
POST requests can create records and use your API quota. Check the request body before sending.
