KintsugiKintsugi

Update a credit note

PATCH/transactions/{transaction_id}

Update an existing credit note (a transaction whose type is FULL_CREDIT_NOTE or PARTIAL_CREDIT_NOTE). A true partial update: every field — externalId, date, totalAmount, currency, description, marketplace, status and items — is optional, and one you omit keeps the credit note's current stored value rather than being reset to a default. Send status as CANCELLED to reverse the credit note without deleting it; omitted, it stays whatever it already is (it does NOT default to COMMITTED). Calling this on a transaction that is not a credit note answers 400; on one already CANCELLED also answers 400. A locked or already-filed credit note answers 409. Updating a credit note you do not own answers 404, identical to one that does not exist. PUT /transactions/{transactionId} amends an ordinary transaction; it does not accept a credit note.

Authorization

Api-KeystringRequired

Your secret API key. Include it with every request.

Headers

Api-Versiondate

Release date, as YYYY-MM-DD. Defaults to 2026-07-21.

Organization-Idstring

Target organization id (Organization-Id selector).

Connection-Idstring

Target connection id; resolves to its organization.

Entity-Idstring

Platform entity id; resolves to a connection's organization.

Entity-Sourcestring

Optional source to disambiguate an Entity-Id.

Path parameters

transaction_idstringRequired

The unique identifier of the credit note to update.

Body

externalIdstring

Your stable identifier for the credit note. Omit to keep the stored one.

datestring

When the credit note was issued. Omit to keep the stored date.

statusstring

Lifecycle state of the credit note. Send CANCELLED to reverse it without deleting it; amounts and lines are otherwise unaffected. Omit to keep the current status — it does NOT default to COMMITTED.

Available options:PENDINGCOMMITTEDCANCELLED
currencyCurrencyEnum

ISO-4217 currency of every amount sent. Omit to keep the stored currency.

Available options:AEDAFNALLAMDANGAOAARSAUDAWGAZNBAMBBDBDTBGNBHDBIFBMDBNDBOBBRLBSDBTNBWPBYNBZDCADCDFCHFCLPCNYCOPCRCCUCCUPCVECZKDJFDKKDOPDZDEGPERNETBEURFJDFKPGBPGELGGPGHSGIPGMDGNFGTQGYDHKDHNLHRKHTGHUFIDRILSIMPINRIQDIRRISKJEPJMDJODJPYKESKGSKHRKMFKPWKRWKWDKYDKZTLAKLBPLKRLRDLSLLYDMADMDLMGAMKDMMKMNTMOPMRUMURMVRMWKMXNMYRMZNNADNGNNIONOKNPRNZDOMRPABPENPGKPHPPKRPLNPYGQARRONRSDRUBRWFSARSBDSCRSDGSEKSGDSHPSLLSOSSPLSRDSTNSVCSYPSZLTHBTJSTMTTNDTOPTRYTTDTVDTWDTZSUAHUGXUSDUYUUZSVEFVNDVUVWSTXAFXCDXDRXOFXPFYERZARZMWZWD
totalAmountstring

Total credit note amount. Omit to keep the stored amount — there is no default of 0.00.

descriptionstring

Free-text description of the credit note. Omit to keep the stored description.

marketplaceboolean

True for a marketplace or reseller credit note. Omit to keep the credit note's current marketplace flag.

itemsTransactionItemWrite[]

Lines to credit. Each must carry the externalId of the original sale's line it reverses, exactly like the credit-note create. Omit to keep the credit note's stored lines.

Response

idstringRequired

Kintsugi's unique identifier for the transaction.

organizationIdstringRequired

Organization the transaction belongs to. Present on every row because a portfolio-wide list spans organizations.

externalIdstringRequired

Your stable identifier for the transaction.

externalFriendlyIdstring

Human-readable identifier from the source, such as an invoice number; an empty string when the source has only an externalId.

datestringRequired

When the transaction occurred. This drives filing-period assignment.

typePublicTransactionTypeEnumRequired

Document shape of the transaction. Credit-note and tax-refund types reverse or adjust prior sales.

Available options:SALEFULL_CREDIT_NOTEPARTIAL_CREDIT_NOTETAX_REFUNDTAX_COLLECTION
statusPublicTransactionStatusEnumRequired

Settlement state. Only COMMITTED counts toward filed liability; PENDING may still change.

Available options:PENDINGCOMMITTEDCANCELLEDFULLY_REFUNDEDPARTIALLY_REFUNDEDINVALID
directionPublicTransactionDirectionEnumRequired

Whether the organization made the sale or made the purchase. Both are returned, so filter on this if you only want one side.

Available options:SALEPURCHASE
customerIdstring

Kintsugi customer this transaction is attributed to. A sale with no customer identity (marketplace, point-of-sale) is attributed to the organization's shared unattributed-sales customer, which reads back with a null externalId. Check that before treating one customerId as one buyer.

customerNamestring

Name of the customer this transaction is attributed to, or null when it has no customer or the customer has no name.

connectionIdstring

Connection that synced this transaction, if any.

sourcestringRequired

Origin system of the transaction. Sources outside the public set are reported as OTHER.

Available options:ACUMATICAAIRWALLEXAMAZONAPIAPPLE_APP_STOREBESTBUYBIGCOMMERCEBILL_COMBUNNYCAMPFIRECHARGEBEECHECKOUTCHAMPDEELDUALENTRYEBAYECWIDETSYFACEBOOKFAIREFRESHBOOKSGOOGLE_APP_STOREGOOGLE_EXPRESSGROUPONGUSTOHYPERLINEINSTAGRAMINTUIT_ENTERPRISE_SUITEKICKSTARTERKILL_BILLMACYSMAGENTOMAXIOMERCADO_LIBREMICROSOFT_DYNAMICS_365MODALYSTNETSUITENEWEGGNOCNOCNORDSTROMODOOOPENMETERORBORDWAYOTHERPAYPALPINTERESTPLENTYONEQUICKBOOKSRECURLYRILLETRIPPLINGSAGE-INTACCTSALESFORCESHOPIFYSHOPLINESHOPWARESQUARESPACESTRIPETARGETTIKTOKVERTEX_O_SERIESWALMARTWAYFAIRWISHWIXWOOCOMMERCEXEROZENSKARZOHOZUORA
descriptionstring

Transaction description; an empty string when the source sent none.

currencyCurrencyEnumRequired

ISO-4217 currency every unconverted amount on this transaction is in.

Available options:AEDAFNALLAMDANGAOAARSAUDAWGAZNBAMBBDBDTBGNBHDBIFBMDBNDBOBBRLBSDBTNBWPBYNBZDCADCDFCHFCLPCNYCOPCRCCUCCUPCVECZKDJFDKKDOPDZDEGPERNETBEURFJDFKPGBPGELGGPGHSGIPGMDGNFGTQGYDHKDHNLHRKHTGHUFIDRILSIMPINRIQDIRRISKJEPJMDJODJPYKESKGSKHRKMFKPWKRWKWDKYDKZTLAKLBPLKRLRDLSLLYDMADMDLMGAMKDMMKMNTMOPMRUMURMVRMWKMXNMYRMZNNADNGNNIONOKNPRNZDOMRPABPENPGKPHPPKRPLNPYGQARRONRSDRUBRWFSARSBDSCRSDGSEKSGDSHPSLLSOSSPLSRDSTNSVCSYPSZLTHBTJSTMTTNDTOPTRYTTDTVDTWDTZSUAHUGXUSDUYUUZSVEFVNDVUVWSTXAFXCDXDRXOFXPFYERZARZMWZWD
totalAmountstringRequired

Total transaction amount.

taxableAmountstringRequired

Portion of the total that tax was assessed on.

totalTaxAmountImportedstringRequired

Total tax the source system reported.

totalTaxAmountCalculatedstringRequired

Total tax Kintsugi calculated.

totalTaxLiabilityAmountstringRequired

Total tax the organization is liable for. On a SALE it is either the imported or the calculated total, depending on the liability source. On a PURCHASE it is the sum of each line's net use tax, so it does not equal either total.

totalDiscountstring

Total discount applied across the transaction's lines; 0.00 when there is none.

finalTotalAmountstringRequired

totalAmount plus totalTaxLiabilityAmount: what the transaction totals once the organization's tax liability is added.

hasExemptionsbooleanRequired

Whether any line on this transaction was treated as exempt. Derived from the line items, so it can never disagree with them.

lockedbooleanRequired

Whether the transaction is locked for editing. A locked transaction backs a submitted return and cannot be amended or archived.

marketplaceboolean

True for marketplace or reseller orders where the marketplace remitted tax on the seller's behalf. null when the source did not report it.

shopDatestring

Calendar day the transaction occurred in the shop's timezone (YYYY-MM-DD), or null when the source did not report one. Distinct from date, which is the UTC timestamp.

processingStatusstringRequired

How far the transaction has progressed through processing (address resolution, exemption, nexus, tax calculation). PROCESSED means tax calculation has completed.

Available options:ADDRESS_DONEDEFERRED_FROM_FILINGEXCLUDED_IN_CALCULATIONEXEMPT_DONENEEDS_REFETCHNEXUS_DONEPROCESSEDQUEUED
taxLiabilitySourcePublicTaxLiabilitySourceEnumRequired

Which figure backs totalTaxLiabilityAmount: CALCULATED for the tax Kintsugi calculated, COLLECTED for the tax the source reported it already collected.

Available options:CALCULATEDCOLLECTED
addressStatusPublicAddressStatusEnumRequired

Validation status of the transaction's addresses.

Available options:UNVERIFIEDINVALIDPARTIALLY_VERIFIEDVERIFIEDUNVERIFIABLEBLANK
destinationCurrencyCurrencyEnum

Currency the converted amounts are expressed in, or null when no conversion applied.

Available options:AEDAFNALLAMDANGAOAARSAUDAWGAZNBAMBBDBDTBGNBHDBIFBMDBNDBOBBRLBSDBTNBWPBYNBZDCADCDFCHFCLPCNYCOPCRCCUCCUPCVECZKDJFDKKDOPDZDEGPERNETBEURFJDFKPGBPGELGGPGHSGIPGMDGNFGTQGYDHKDHNLHRKHTGHUFIDRILSIMPINRIQDIRRISKJEPJMDJODJPYKESKGSKHRKMFKPWKRWKWDKYDKZTLAKLBPLKRLRDLSLLYDMADMDLMGAMKDMMKMNTMOPMRUMURMVRMWKMXNMYRMZNNADNGNNIONOKNPRNZDOMRPABPENPGKPHPPKRPLNPYGQARRONRSDRUBRWFSARSBDSCRSDGSEKSGDSHPSLLSOSSPLSRDSTNSVCSYPSZLTHBTJSTMTTNDTOPTRYTTDTVDTWDTZSUAHUGXUSDUYUUZSVEFVNDVUVWSTXAFXCDXDRXOFXPFYERZARZMWZWD
conversionRatestring

Rate used to convert into destinationCurrency. Not a fraction: a rate into a currency quoted in thousands per unit is a large number. null when no conversion applied, and also when the transaction is already in destinationCurrency, where the converted amounts equal their originals.

convertedTotalAmountstring

totalAmount in the destination currency, or null when no conversion applied. Never 0 to mean unconverted: check for null.

convertedTotalTaxLiabilityAmountstring

totalTaxLiabilityAmount in the destination currency, or null when no conversion applied. Never 0 to mean unconverted: a zero here is a real converted liability of zero, so check for null.

convertedTotalDiscountstring

totalDiscount in the destination currency, or null when no conversion applied.

convertedFinalTotalAmountstring

finalTotalAmount in the destination currency, or null when no conversion applied.

createdAtstringRequired

When Kintsugi first recorded this transaction.

updatedAtstring

When Kintsugi last modified this transaction, or null if it has not been modified since it was recorded.

addressesTransactionAddress[]

Addresses on the transaction, used to resolve jurisdiction.

itemsTransactionItem[]

Line items on the transaction.

200

Successful Response

400

The request was invalid.

401

Authentication failed or was missing.

403

The credential is not permitted for this request.

404

The requested resource was not found.

409

The request conflicts with existing state.

422

The request failed validation.

cURL
PATCH /transactions/{transaction_id}
-H "Api-Key: ***"
-H "Api-Version: 2026-07-21"
{
"externalId": "cn-1",
"date": "2026-07-21T15:30:00Z",
"status": "PENDING",
"currency": "AED",
"totalAmount": "10.00",
"description": "Annual software subscription",
"marketplace": false,
"items": [
{
"externalProductId": "SKU-ABC",
"date": "2026-07-21T15:30:00Z",
"quantity": "3",
"amount": "10.00",
"product": "Widget",
"description": "Annual software subscription",
"externalId": "order-1001",
"taxAmountImported": "10.00",
"taxableAmount": "10.00"
}
]
}
Example request
https://api.trykintsugi.com/transactions/{transaction_id}
Response
{
"id": "tran_2mNpQr7Ls8f3k",
"organizationId": "orgn_2mNpQr7Ls8f3k",
"externalId": "cn-1",
"externalFriendlyId": "INV-1001",
"date": "2026-07-21T15:30:00Z",
"type": "SALE",
"status": "PENDING",
"direction": "SALE",
"customerId": "cust_2mNpQr7Ls8f3k",
"customerName": "Acme Corp",
"connectionId": "conn_2mNpQr7Ls8f3k",
"source": "API",
"description": "Annual software subscription",
"currency": "AED",
"totalAmount": "10.00",
"taxableAmount": "10.00",
"totalTaxAmountImported": "10.00",
"totalTaxAmountCalculated": "10.00",
"totalTaxLiabilityAmount": "10.00",
"totalDiscount": "10.00",
"finalTotalAmount": "10.00",
"hasExemptions": false,
"locked": false,
"marketplace": false,
"shopDate": "2026-07-21",
"processingStatus": "PROCESSED",
"taxLiabilitySource": "CALCULATED",
"addressStatus": "UNVERIFIED",
"destinationCurrency": "AED",
"conversionRate": "25350.123456789",
"convertedTotalAmount": "10.00",
"convertedTotalTaxLiabilityAmount": "10.00",
"convertedTotalDiscount": "10.00",
"convertedFinalTotalAmount": "10.00",
"createdAt": "2026-07-28T12:00:00Z",
"updatedAt": "2026-07-28T12:00:00Z",
"addresses": [
{
"id": "3f6c2b1e-8a4d-4c2e-9b1f-2d7e5a6c9f10",
"type": "BILL_TO",
"street1": "123 Main St",
"street2": "Suite 400",
"city": "San Francisco",
"county": "San Francisco County",
"state": "CA",
"postalCode": "94107",
"country": "US",
"fullAddress": "123 Main St, San Francisco, CA 94107, US",
"phone": "+1 415 555 0100",
"status": "UNVERIFIED"
}
],
"items": [
{
"id": "txim_2mNpQr7Ls8f3k",
"productId": "prod_2mNpQr7Ls8f3k",
"productName": "Widget",
"description": "Annual software subscription",
"quantity": "3",
"amount": "10.00",
"subtotal": "10.00",
"discount": "10.00",
"taxAmountImported": "10.00",
"taxAmountCalculated": "10.00",
"taxLiabilityAmount": "10.00",
"exempt": false,
"convertedAmount": "10.00",
"convertedSubtotal": "10.00",
"convertedDiscount": "10.00",
"convertedTaxAmountImported": "10.00",
"convertedTaxLiabilityAmount": "10.00",
"taxItems": [
{
"name": "CA STATE TAX",
"rate": "0.082500000",
"amount": "10.00",
"convertedAmount": "10.00",
"jurisdictionType": "STATE",
"jurisdictionName": "CA"
}
]
}
]
}
Update a credit note (2026-07-21) | Kintsugi API Reference