KintsugiKintsugi
API reference / Set transaction tax only

Set transaction tax only

POST/v1/transactions/{transaction_id}/tax_only

Mark or unmark a transaction as tax-only. SALE becomes TAX_COLLECTION; credit notes become TAX_REFUND. Unmark restores SALE or re-derives FULL/PARTIAL credit note. Only the type is changed; amounts are preserved.

Authorization

x-api-keystringRequired

Your secret API key. Include it with every request.

Path parameters

transaction_idstringRequired

Body

tax_onlybooleanRequired

True to mark as tax-only; false to remove the tax-only marking.

Response

204

Successful Response

422

Validation Error

cURL
POST /v1/transactions/{transaction_id}/tax_only
-H "x-api-key: ***"
{ "tax_only": true }
Example request
https://api.trykintsugi.com/v1/transactions/{transaction_id}/tax_only
Response
{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string",
"input": null,
"ctx": null
}
]
}