KintsugiKintsugi
API reference / Create transaction by customer id

Create transaction by customer id

POST/v1/customers/{customer_id}/transactions

Create a new transaction for a specific customer.

Authorization

x-api-keystringRequired

Your secret API key. Include it with every request.

Path parameters

customer_idstringRequired

Body

requires_exemptionExemptionRequired

Indicates if transaction requires tax exemption.

organization_idstringRequired

Unique identifier of the organization. This field is deprecated, and should no longer be used. The value is populated through the 'x-organization-id' header.

external_idstringRequired

External identifier of the transaction.

datestringRequired

Transaction date and time

shop_datestring

Transaction date in the shop's local timezone

shop_date_tzstring

Timezone of the shop

descriptionstring

Description of the transaction.

refund_statusTransactionRefundStatus

Status of refund, if applicable

Available options:FULLY_REFUNDEDPARTIALLY_REFUNDED
total_amountnumber | string

Total amount of the transaction.

customer_idstring

Unique identifier of the customer.

marketplaceboolean

Indicates if transaction is marketplace-based.

exemptTransactionExemptStatusEnum

Exemption status (e.g., NOT_EXEMPT)

Available options:NOT_EXEMPTPARTIALLY_EXEMPTFULLY_EXEMPTZERO_RATE_NOT_EXEMPT
exemptionsTransactionEmbeddedExemption[]

List of exemptions applied (if any).

related_tostring

Related transaction identifier.

secondary_external_idstring

Secondary External Identifier.

secondary_sourcestring

Secondary source information

external_friendly_idstring

Friendly identifier of the original item.

total_tax_amount_importednumber | string

Imported tax amount.

tax_rate_importednumber | string

Imported tax rate.

total_tax_amount_calculatednumber | string

Calculated tax amount.

tax_rate_calculatednumber | string

Calculated tax rate.

total_tax_liability_amountnumber | string

Total tax liability amount.

tax_liability_sourceTaxLiabilitySourceEnum

Source of tax liability.

Available options:CALCULATEDCOLLECTED
taxable_amountnumber | string

Taxable amount.

currencyCurrencyEnum

Currency code (ISO 4217, e.g., USD)

Available options:AEDAFNALLAMDANGAOAARSAUDAWGAZNBAMBBDBDTBGNBHDBIFBMDBNDBOBBRLBSDBTNBWPBYNBZDCADCDFCHFCLPCNYCOPCRCCUCCUPCVECZKDJFDKKDOPDZDEGPERNETBEURFJDFKPGBPGELGGPGHSGIPGMDGNFGTQGYDHKDHNLHRKHTGHUFIDRILSIMPINRIQDIRRISKJEPJMDJODJPYKESKGSKHRKMFKPWKRWKWDKYDKZTLAKLBPLKRLRDLSLLYDMADMDLMGAMKDMMKMNTMOPMRUMURMVRMWKMXNMYRMZNNADNGNNIONOKNPRNZDOMRPABPENPGKPHPPKRPLNPYGQARRONRSDRUBRWFSARSBDSCRSDGSEKSGDSHPSLLSOSSPLSRDSTNSVCSYPSZLTHBTJSTMTTNDTOPTRYTTDTVDTWDTZSUAHUGXUSDUYUUZSVEFVNDVUVWSTXAFXCDXDRXOFXPFYERZARZMWZWD
lockedboolean

Transaction lock status.

sourceSourceEnum

Source platform (e.g., STRIPE)

Available options:BIGCOMMERCEBESTBUYBUNNYCHARGEBEESHOPIFYSHOPLINEECWIDSTRIPEAMAZONTIKTOKCUSTOMUNKNOWNIMPORTZUORAAPIDECKQUICKBOOKSAPIAPPLE_APP_STOREGOOGLE_APP_STOREWALMARTPAYPALNETSUITEXEROMAXIORECURLYSALESFORCEETSYEBAYWIXSQUARESPACEWOOCOMMERCEMAGENTOMACYSBILLING_PLATFORMDEELRIPPLINGGUSTOFACEBOOKOTHERORDWAYINSTAGRAMPINTERESTWAYFAIRWISHPOSTARGETNEWEGGGROUPONGOOGLE_EXPRESSNOCNOCMERCADO_LIBREMODALYSTNORDSTROMFAIRESHOPWAREZOHOSAGE-INTACCTAIRWALLEXORBZENSKARMICROSOFT_DYNAMICS_365KICKSTARTERINTERNAL_ERPRILLETCAMPFIREKILL_BILLPROVISIONVERTEX_O_SERIESCHECKOUTCHAMPDUALENTRYODOOBILL_COMINTUIT_ENTERPRISE_SUITEACUMATICAPLENTYONEHYPERLINE
connection_idstring

Connection Identifier

filing_idstring

Filing identifier.

citystring

City of the transaction address.

countystring

County of the transaction address.

statestring

State of the transaction address.

countryCountryCodeEnum

Country code (ISO Alpha-2).

Available options:AFAXALDZASADAOAIAQAGARAMAWAUATAZBSBHBDBBBYBEBZBJBMBTBOBQBABWBVBRIOBNBGBFBICVKHCMCAKYCFTDCLCNCXCCCOKMCGCDCKCRHRCUCWCYCZDKDJDMDOECEGSVGQEREESZETFKFOFJFIFRGFPFTFGAGMGEDEGHGIGRGLGDGPGUGTGGGNGWGYHTHMVAHNHKHUISINIDIRIQIEIMILITCIJMJPJEJOKZKEKIKPKRKWKGLALVLBLSLRLYLILTLUMOMGMWMYMVMLMTMHMQMRMUYTMXFMMDMCMNMEMSMAMZMMNANRNPNLNCNZNINENGNUNFMKMPNOOMPKPWPSPAPGPYPEPHPNPLPTPRQARERORURWBLSHKNLCMFPMVCWSSMSTSASNRSSCSLSGSXSKSISBSOZAGSSSESLKSDSRSJSECHSYTWTJTZTHTLTGTKTOTTTNTRTMTCTVUGUAAEGBUSUMUYUZVUVEVNVGVIWFEHYEZMZWXKZZ_EU
postal_codestring

Postal code of the transaction.

tax_idstring

Tax ID associated with the transaction. DEPRECATED: This field is only populated for QuickBooks integrations and will be removed in a future version.

statusTransactionStatusEnum

Transaction status (e.g., COMMITTED)

Available options:PENDINGCOMMITTEDCANCELLEDFULLY_REFUNDEDPARTIALLY_REFUNDEDINVALIDARCHIVED
document_typeDocumentTypeEnum

Document type distinguishing invoices from sales orders.

Available options:INVOICESALES_ORDERCASH_SALECASH_REFUND
created_fromstring

Identifier of the invoice that created from a sales order.

address_statusAddressStatus

Address verification status (e.g., VERIFIED).

Available options:UNVERIFIEDINVALIDPARTIALLY_VERIFIEDVERIFIEDUNVERIFIABLEBLANK
processing_statusProcessingStatusEnum

Status of processing (e.g., ADDRESS_DONE)

Available options:NEWUPDATEDQUEUEDADDRESS_DONEEXEMPT_DONENEXUS_DONEPROCESSEDFILING_STARTEDFILING_DONELOCKEDPENDINGARCHIVEDNEEDS_REFETCHEXCLUDED_IN_CALCULATIONDEFERRED_FROM_FILING
is_duplicateboolean
destination_currencyCurrencyEnum

Destination currency code (ISO 4217, e.g., USD)

Available options:AEDAFNALLAMDANGAOAARSAUDAWGAZNBAMBBDBDTBGNBHDBIFBMDBNDBOBBRLBSDBTNBWPBYNBZDCADCDFCHFCLPCNYCOPCRCCUCCUPCVECZKDJFDKKDOPDZDEGPERNETBEURFJDFKPGBPGELGGPGHSGIPGMDGNFGTQGYDHKDHNLHRKHTGHUFIDRILSIMPINRIQDIRRISKJEPJMDJODJPYKESKGSKHRKMFKPWKRWKWDKYDKZTLAKLBPLKRLRDLSLLYDMADMDLMGAMKDMMKMNTMOPMRUMURMVRMWKMXNMYRMZNNADNGNNIONOKNPRNZDOMRPABPENPGKPHPPKRPLNPYGQARRONRSDRUBRWFSARSBDSCRSDGSEKSGDSHPSLLSOSSPLSRDSTNSVCSYPSZLTHBTJSTMTTNDTOPTRYTTDTVDTWDTZSUAHUGXUSDUYUUZSVEFVNDVUVWSTXAFXCDXDRXOFXPFYERZARZMWZWD
converted_total_amountnumber | string

Converted total amount.

converted_total_tax_amount_importednumber | string

Converted imported tax amount.

converted_total_tax_amount_calculatednumber | string

Converted calculated tax amount.

conversion_ratenumber | string

Currency conversion rate.

converted_taxable_amountnumber | string

Converted taxable amount.

converted_total_discountnumber | string

Converted total discount amount.

converted_subtotalnumber | string

Converted subtotal amount.

converted_total_tax_liability_amountnumber | string

Converted total tax liability amount.

addressesTransactionAddressBuilder[] | TransactionAddress-Input[]Required
transaction_itemsTransactionItemCreateUpdate[]Required
customerCustomerCreate

Response

requires_exemptionExemptionRequired

Indicates if transaction requires tax exemption.

organization_idstringRequired

Unique identifier of the organization. This field is deprecated, and should no longer be used. The value is populated through the 'x-organization-id' header.

external_idstringRequired

External identifier of the transaction.

datestringRequired

Transaction date and time

shop_datestring

Transaction date in the shop's local timezone

shop_date_tzstring

Timezone of the shop

descriptionstring

Description of the transaction.

refund_statusTransactionRefundStatus

Status of refund, if applicable

Available options:FULLY_REFUNDEDPARTIALLY_REFUNDED
total_amountstring

Total amount of the transaction.

customer_idstring

Unique identifier of the customer.

marketplaceboolean

Indicates if transaction is marketplace-based.

exemptTransactionExemptStatusEnum

Exemption status (e.g., NOT_EXEMPT)

Available options:NOT_EXEMPTPARTIALLY_EXEMPTFULLY_EXEMPTZERO_RATE_NOT_EXEMPT
exemptionsTransactionEmbeddedExemption[]

List of exemptions applied (if any).

related_tostring

Related transaction identifier.

secondary_external_idstring

Secondary External Identifier.

secondary_sourcestring

Secondary source information

external_friendly_idstring

Friendly identifier of the original item.

total_tax_amount_importedstring

Imported tax amount.

tax_rate_importedstring

Imported tax rate.

total_tax_amount_calculatedstring

Calculated tax amount.

tax_rate_calculatedstring

Calculated tax rate.

total_tax_liability_amountstring

Total tax liability amount.

tax_liability_sourceTaxLiabilitySourceEnum

Source of tax liability.

Available options:CALCULATEDCOLLECTED
taxable_amountstring

Taxable amount.

currencyCurrencyEnum

Currency code (ISO 4217, e.g., USD)

Available options:AEDAFNALLAMDANGAOAARSAUDAWGAZNBAMBBDBDTBGNBHDBIFBMDBNDBOBBRLBSDBTNBWPBYNBZDCADCDFCHFCLPCNYCOPCRCCUCCUPCVECZKDJFDKKDOPDZDEGPERNETBEURFJDFKPGBPGELGGPGHSGIPGMDGNFGTQGYDHKDHNLHRKHTGHUFIDRILSIMPINRIQDIRRISKJEPJMDJODJPYKESKGSKHRKMFKPWKRWKWDKYDKZTLAKLBPLKRLRDLSLLYDMADMDLMGAMKDMMKMNTMOPMRUMURMVRMWKMXNMYRMZNNADNGNNIONOKNPRNZDOMRPABPENPGKPHPPKRPLNPYGQARRONRSDRUBRWFSARSBDSCRSDGSEKSGDSHPSLLSOSSPLSRDSTNSVCSYPSZLTHBTJSTMTTNDTOPTRYTTDTVDTWDTZSUAHUGXUSDUYUUZSVEFVNDVUVWSTXAFXCDXDRXOFXPFYERZARZMWZWD
lockedboolean

Transaction lock status.

sourceSourceEnum

Source platform (e.g., STRIPE)

Available options:BIGCOMMERCEBESTBUYBUNNYCHARGEBEESHOPIFYSHOPLINEECWIDSTRIPEAMAZONTIKTOKCUSTOMUNKNOWNIMPORTZUORAAPIDECKQUICKBOOKSAPIAPPLE_APP_STOREGOOGLE_APP_STOREWALMARTPAYPALNETSUITEXEROMAXIORECURLYSALESFORCEETSYEBAYWIXSQUARESPACEWOOCOMMERCEMAGENTOMACYSBILLING_PLATFORMDEELRIPPLINGGUSTOFACEBOOKOTHERORDWAYINSTAGRAMPINTERESTWAYFAIRWISHPOSTARGETNEWEGGGROUPONGOOGLE_EXPRESSNOCNOCMERCADO_LIBREMODALYSTNORDSTROMFAIRESHOPWAREZOHOSAGE-INTACCTAIRWALLEXORBZENSKARMICROSOFT_DYNAMICS_365KICKSTARTERINTERNAL_ERPRILLETCAMPFIREKILL_BILLPROVISIONVERTEX_O_SERIESCHECKOUTCHAMPDUALENTRYODOOBILL_COMINTUIT_ENTERPRISE_SUITEACUMATICAPLENTYONEHYPERLINE
connection_idstring

Connection Identifier

filing_idstring

Filing identifier.

citystring

City of the transaction address.

countystring

County of the transaction address.

statestring

State of the transaction address.

countryCountryCodeEnum

Country code (ISO Alpha-2).

Available options:AFAXALDZASADAOAIAQAGARAMAWAUATAZBSBHBDBBBYBEBZBJBMBTBOBQBABWBVBRIOBNBGBFBICVKHCMCAKYCFTDCLCNCXCCCOKMCGCDCKCRHRCUCWCYCZDKDJDMDOECEGSVGQEREESZETFKFOFJFIFRGFPFTFGAGMGEDEGHGIGRGLGDGPGUGTGGGNGWGYHTHMVAHNHKHUISINIDIRIQIEIMILITCIJMJPJEJOKZKEKIKPKRKWKGLALVLBLSLRLYLILTLUMOMGMWMYMVMLMTMHMQMRMUYTMXFMMDMCMNMEMSMAMZMMNANRNPNLNCNZNINENGNUNFMKMPNOOMPKPWPSPAPGPYPEPHPNPLPTPRQARERORURWBLSHKNLCMFPMVCWSSMSTSASNRSSCSLSGSXSKSISBSOZAGSSSESLKSDSRSJSECHSYTWTJTZTHTLTGTKTOTTTNTRTMTCTVUGUAAEGBUSUMUYUZVUVEVNVGVIWFEHYEZMZWXKZZ_EU
postal_codestring

Postal code of the transaction.

tax_idstring

Tax ID associated with the transaction. DEPRECATED: This field is only populated for QuickBooks integrations and will be removed in a future version.

statusTransactionStatusEnum

Transaction status (e.g., COMMITTED)

Available options:PENDINGCOMMITTEDCANCELLEDFULLY_REFUNDEDPARTIALLY_REFUNDEDINVALIDARCHIVED
document_typeDocumentTypeEnum

Document type distinguishing invoices from sales orders.

Available options:INVOICESALES_ORDERCASH_SALECASH_REFUND
created_fromstring

Identifier of the invoice that created from a sales order.

address_statusAddressStatus

Address verification status (e.g., VERIFIED).

Available options:UNVERIFIEDINVALIDPARTIALLY_VERIFIEDVERIFIEDUNVERIFIABLEBLANK
processing_statusProcessingStatusEnum

Status of processing (e.g., ADDRESS_DONE)

Available options:NEWUPDATEDQUEUEDADDRESS_DONEEXEMPT_DONENEXUS_DONEPROCESSEDFILING_STARTEDFILING_DONELOCKEDPENDINGARCHIVEDNEEDS_REFETCHEXCLUDED_IN_CALCULATIONDEFERRED_FROM_FILING
is_duplicateboolean
destination_currencyCurrencyEnum

Destination currency code (ISO 4217, e.g., USD)

Available options:AEDAFNALLAMDANGAOAARSAUDAWGAZNBAMBBDBDTBGNBHDBIFBMDBNDBOBBRLBSDBTNBWPBYNBZDCADCDFCHFCLPCNYCOPCRCCUCCUPCVECZKDJFDKKDOPDZDEGPERNETBEURFJDFKPGBPGELGGPGHSGIPGMDGNFGTQGYDHKDHNLHRKHTGHUFIDRILSIMPINRIQDIRRISKJEPJMDJODJPYKESKGSKHRKMFKPWKRWKWDKYDKZTLAKLBPLKRLRDLSLLYDMADMDLMGAMKDMMKMNTMOPMRUMURMVRMWKMXNMYRMZNNADNGNNIONOKNPRNZDOMRPABPENPGKPHPPKRPLNPYGQARRONRSDRUBRWFSARSBDSCRSDGSEKSGDSHPSLLSOSSPLSRDSTNSVCSYPSZLTHBTJSTMTTNDTOPTRYTTDTVDTWDTZSUAHUGXUSDUYUUZSVEFVNDVUVWSTXAFXCDXDRXOFXPFYERZARZMWZWD
converted_total_amountstring

Converted total amount.

converted_total_tax_amount_importedstring

Converted imported tax amount.

converted_total_tax_amount_calculatedstring

Converted calculated tax amount.

conversion_ratestring

Currency conversion rate.

converted_taxable_amountstring

Converted taxable amount.

converted_total_discountstring

Converted total discount amount.

converted_subtotalstring

Converted subtotal amount.

converted_total_tax_liability_amountstring

Converted total tax liability amount.

idstringRequired

The unique transaction identifier.

store_namestring

Display name of the store when the organization has multiple stores for a source.

is_deferred_transactionboolean

Whether this transaction was deferred (rolled over) from a prior filing period.

directionTransactionDirectionEnum
Available options:SALEPURCHASE
addressesTransactionAddressRead-Output[]Required

List of addresses associated.

transaction_itemsTransactionItemRead[]Required

List of items in the transaction.

total_recoverable_input_vatstring

Recoverable input VAT across this transaction's lines, in the transaction's currency. 0.00 for sales and outside the EU and UK.

converted_total_recoverable_input_vatstring

Recoverable input VAT across this transaction's lines in the destination currency. Null when the transaction is unconverted.

input_vat_recovery_ratestring

Pro-rata coefficient 0-100 used to scale recoverable input VAT on this purchase. Null for sales and outside the EU and UK. 100 when the organization has no partial exemption rate for the tax-point year.

customerCustomerRead

Customer information associated with the transaction.

typeTransactionTypeEnumRequired

The type of transaction (e.g., SALE, REFUND, PARTIAL_CREDIT_NOTE).

Available options:SALEFULL_CREDIT_NOTEPARTIAL_CREDIT_NOTETAX_REFUNDTAX_COLLECTIONARCHIVE
total_discountstring

Total amount of all discounts applied to the transaction.

subtotalstring

Subtotal amount before any discounts are applied.

final_total_amountstring

Final total amount including tax liability.

converted_final_total_amountstring

Converted final total amount including tax liability.

200

Successful Response

422

Validation Error

cURL
POST /v1/customers/{customer_id}/transactions
-H "x-api-key: ***"
{ "organization_id": "...",
"external_id": "...",
"date": "..." }
Example request
https://api.trykintsugi.com/v1/customers/{customer_id}/transactions
Response
{
"requires_exemption": {
"jurisdiction": "string",
"customer_id": "string",
"organization_id": "string",
"exemption_type": "customer",
"start_date": "string",
"status": "ACTIVE",
"reseller": true,
"country_code": "AF",
"end_date": "string",
"FEIN": "string",
"sales_tax_id": "string",
"source": "NETSUITE"
},
"organization_id": "string",
"external_id": "string",
"date": "string",
"shop_date": "string",
"shop_date_tz": "string",
"description": "string",
"refund_status": "FULLY_REFUNDED",
"total_amount": "0.00",
"customer_id": "string",
"marketplace": true,
"exempt": "NOT_EXEMPT",
"exemptions": [
{
"id": "string",
"created_at": "string",
"updated_at": "string",
"exemption_type": "customer",
"jurisdiction": "string",
"country_code": "AF",
"start_date": "string",
"end_date": "string",
"customer_id": "string",
"transaction_id": "string",
"reseller": false,
"FEIN": "string",
"sales_tax_id": "string",
"status": "ACTIVE",
"organization_id": "string",
"certificate_import_id": "string",
"source": "NETSUITE"
}
],
"related_to": "string",
"secondary_external_id": "string",
"secondary_source": "string",
"external_friendly_id": "string",
"total_tax_amount_imported": "0.00",
"tax_rate_imported": "0.00",
"total_tax_amount_calculated": "0.00",
"tax_rate_calculated": "0.00",
"total_tax_liability_amount": "0.00",
"tax_liability_source": "CALCULATED",
"taxable_amount": "0.00",
"currency": "AED",
"locked": false,
"source": "BIGCOMMERCE",
"connection_id": "string",
"filing_id": "string",
"city": "string",
"county": "string",
"state": "string",
"country": "AF",
"postal_code": "string",
"tax_id": "string",
"status": "PENDING",
"document_type": "INVOICE",
"created_from": "string",
"address_status": "UNVERIFIED",
"processing_status": "NEW",
"is_duplicate": false,
"destination_currency": "AED",
"converted_total_amount": "string",
"converted_total_tax_amount_imported": "string",
"converted_total_tax_amount_calculated": "string",
"conversion_rate": "string",
"converted_taxable_amount": "string",
"converted_total_discount": "string",
"converted_subtotal": "string",
"converted_total_tax_liability_amount": "string",
"id": "string",
"store_name": "string",
"is_deferred_transaction": false,
"direction": "SALE",
"addresses": [
{
"phone": "string",
"street_1": "string",
"street_2": "string",
"city": "string",
"county": "string",
"state": "string",
"postal_code": "string",
"country": "AF",
"full_address": "string",
"type": "BILL_TO",
"is_unincorporated": false,
"status": "UNVERIFIED",
"id": "string",
"transaction_id": "string",
"connection_id": "string"
}
],
"transaction_items": [
{
"external_id": "string",
"organization_id": "string",
"date": "string",
"description": "string",
"external_product_id": "string",
"product": "string",
"product_id": "string",
"product_name": "string",
"product_description": "string",
"quantity": "1.0",
"amount": "0.00",
"tax_amount_imported": "0.00",
"tax_rate_imported": "0.00",
"tax_amount_calculated": "0.00",
"tax_rate_calculated": "0.00",
"original_currency": "AED",
"destination_currency": "AED",
"converted_amount": "string",
"converted_taxable_amount": "string",
"converted_tax_amount_imported": "string",
"converted_tax_amount_calculated": "string",
"converted_total_discount": "string",
"converted_subtotal": "string",
"taxable_amount": "0.00",
"tax_exemption": "PRODUCT",
"exempt": false,
"id": "string",
"tax_items": [
{
"rule_id": "0000",
"rate": "string",
"amount": "string",
"converted_amount": "string",
"currency": "AED",
"destination_currency": "AED",
"external_id": "string",
"name": "string",
"type": "IMPORTED_ORIGINAL",
"jurisdiction_type": "COUNTRY",
"jurisdiction_name": "string"
}
],
"total_discount": "string",
"subtotal": "string",
"is_reverse_charge_self_accounted": false,
"recoverability_percent": "string",
"recoverable_input_vat": "0.00",
"converted_recoverable_input_vat": "string"
}
],
"total_recoverable_input_vat": "0.00",
"converted_total_recoverable_input_vat": "string",
"input_vat_recovery_rate": "string",
"customer": {
"phone": "string",
"street_1": "string",
"street_2": "string",
"city": "string",
"county": "string",
"state": "string",
"postal_code": "string",
"country": "AF",
"full_address": "string",
"name": "string",
"external_id": "string",
"status": "ACTIVE",
"email": "string",
"company_name": "string",
"source": "BIGCOMMERCE",
"connection_id": "string",
"address_status": "UNVERIFIED",
"registration_number": "string",
"external_friendly_id": "string",
"customer_tax_registrations": [
{
"id": "string",
"customer_id": "string",
"country_code": "AF",
"tax_type": "gst",
"tax_id": "string",
"is_valid": true
}
],
"id": "string",
"organization_id": "string",
"store_name": "string"
},
"type": "SALE",
"total_discount": "string",
"subtotal": "string",
"final_total_amount": "string",
"converted_final_total_amount": "string"
}