Creating Transactions
Interactive playground for creating transactions and retrieving transaction records
Creating Transactions
Overview
Transactions represent completed sales in Kintsugi. Each transaction records a sale with customer information, line items, addresses, and tax details. Transactions are used for compliance tracking, nexus determination, and tax filing preparation.When to Create Transactions
- After payment confirmation: When a sale is completed and payment is received
- Order fulfillment: When an order is shipped or delivered
- Invoice creation: When generating invoices for completed sales
- Batch sync: Daily or periodic syncing of completed orders
Workflow
- Create a Transaction - Record a completed sale
- Retrieve Transactions - Search and retrieve transaction records
Step 1: Create a Transaction
Create a transaction using the interactive playground below withPOST /v1/transactions.
Required Fields
external_id: Your internal transaction/order identifier (must be unique)date: Transaction date and time (UTC)currency: Currency code (e.g., USD, EUR)total_amount: Total transaction amountsource: Source of the transaction (e.g., “API”, “SHOPIFY”)status: Transaction status (use “COMMITTED” for completed sales)type: Transaction type (typically “SALE”)transaction_items: Array of line itemsaddresses: Array of addresses (at minimum: SHIP_TO or BILL_TO)
Example Request
Step 2: Retrieve Transactions
After creating transactions, retrieve them usingGET /v1/transactions. You can:
- Filter by
external_idusing thesearch_queryparameter - Filter by date range using
date__gteanddate__lte - Filter by status, state, country, and more
- Paginate through results
Authentication
This endpoint requires two headers:x-api-key: Your API keyx-organization-id: Your organization ID
Try It Out
Use the interactive playground below to create a transaction. The playground will automatically include the required authentication headers.Common Use Cases
Basic Transaction
Create a simple transaction with minimal required fields:Transaction with Customer
Include customer information:Response Fields
The API returns detailed transaction information:id: Kintsugi’s unique transaction identifierexternal_id: Your transaction identifierdate: Transaction datetotal_amount: Total transaction amounttotal_tax_amount_calculated: Calculated tax amountstatus: Transaction statusaddresses: Array of addressestransaction_items: Array of line itemscustomer: Customer information (if provided)
Next Steps
- Get Transactions - List and search transactions
- Get Transaction By ID - Retrieve specific transaction
- Update Transaction - Modify transaction details
- Syncing Transaction Records - Learn more about transaction management
Related Resources
Body
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 identifier of the transaction.
1Transaction date and time
SALE, FULL_CREDIT_NOTE, PARTIAL_CREDIT_NOTE, TAX_REFUND, ARCHIVE Indicates if transaction requires tax exemption.
Transaction date in the shop's local timezone
Timezone of the shop
Description of the transaction.
Status of refund, if applicable
FULLY_REFUNDED, PARTIALLY_REFUNDED Total amount of the transaction.
Unique identifier of the customer.
Indicates if transaction is marketplace-based.
Exemption status (e.g., NOT_EXEMPT)
NOT_EXEMPT, PARTIALLY_EXEMPT, FULLY_EXEMPT, ZERO_RATE_NOT_EXEMPT List of exemptions applied (if any).
Related transaction identifier.
Secondary External Identifier.
Secondary source information
Friendly identifier of the original item.
Imported tax amount.
Imported tax rate.
Calculated tax amount.
Calculated tax rate.
Total tax liability amount.
Source of tax liability.
CALCULATED, COLLECTED Taxable amount.
Currency code (ISO 4217, e.g., USD)
AED, AFN, ALL, AMD, ANG, AOA, ARS, AUD, AWG, AZN, BAM, BBD, BDT, BGN, BHD, BIF, BMD, BND, BOB, BRL, BSD, BTN, BWP, BYN, BZD, CAD, CDF, CHF, CLP, CNY, COP, CRC, CUC, CUP, CVE, CZK, DJF, DKK, DOP, DZD, EGP, ERN, ETB, EUR, FJD, FKP, GBP, GEL, GGP, GHS, GIP, GMD, GNF, GTQ, GYD, HKD, HNL, HRK, HTG, HUF, IDR, ILS, IMP, INR, IQD, IRR, ISK, JEP, JMD, JOD, JPY, KES, KGS, KHR, KMF, KPW, KRW, KWD, KYD, KZT, LAK, LBP, LKR, LRD, LSL, LYD, MAD, MDL, MGA, MKD, MMK, MNT, MOP, MRU, MUR, MVR, MWK, MXN, MYR, MZN, NAD, NGN, NIO, NOK, NPR, NZD, OMR, PAB, PEN, PGK, PHP, PKR, PLN, PYG, QAR, RON, RSD, RUB, RWF, SAR, SBD, SCR, SDG, SEK, SGD, SHP, SLL, SOS, SPL, SRD, STN, SVC, SYP, SZL, THB, TJS, TMT, TND, TOP, TRY, TTD, TVD, TWD, TZS, UAH, UGX, USD, UYU, UZS, VEF, VND, VUV, WST, XAF, XCD, XDR, XOF, XPF, YER, ZAR, ZMW, ZWD Transaction lock status.
Source platform (e.g., STRIPE)
BIGCOMMERCE, BESTBUY, BUNNY, CHARGEBEE, SHOPIFY, STRIPE, AMAZON, TIKTOK, CUSTOM, UNKNOWN, IMPORT, ZUORA, APIDECK, QUICKBOOKS, API, APPLE_APP_STORE, GOOGLE_APP_STORE, WALMART, PAYPAL, NETSUITE, XERO, MAXIO, RECURLY, SALESFORCE, ETSY, EBAY, WIX, SQUARESPACE, WOOCOMMERCE, MAGENTO, BILLING_PLATFORM, DEEL, RIPPLING, GUSTO, FACEBOOK, OTHER, ORDWAY, INSTAGRAM, PINTEREST, WAYFAIR, WISH, POS, TARGET, NEWEGG, GROUPON, GOOGLE_EXPRESS, NOCNOC, MERCADO_LIBRE, MODALYST, NORDSTROM, FAIRE, SHOPWARE, ZOHO, SAGE-INTACCT, AIRWALLEX, ORB, ZENSKAR, MICROSOFT_DYNAMICS_365, KICKSTARTER, INTERNAL_ERP Connection Identifier
Filing identifier.
City of the transaction address.
County of the transaction address.
State of the transaction address.
Country code (ISO Alpha-2).
AF, AX, AL, DZ, AS, AD, AO, AI, AQ, AG, AR, AM, AW, AU, AT, AZ, BS, BH, BD, BB, BY, BE, BZ, BJ, BM, BT, BO, BQ, BA, BW, BV, BR, IO, BN, BG, BF, BI, CV, KH, CM, CA, KY, CF, TD, CL, CN, CX, CC, CO, KM, CG, CD, CK, CR, HR, CU, CW, CY, CZ, DK, DJ, DM, DO, EC, EG, SV, GQ, ER, EE, SZ, ET, FK, FO, FJ, FI, FR, GF, PF, TF, GA, GM, GE, DE, GH, GI, GR, GL, GD, GP, GU, GT, GG, GN, GW, GY, HT, HM, VA, HN, HK, HU, IS, IN, ID, IR, IQ, IE, IM, IL, IT, CI, JM, JP, JE, JO, KZ, KE, KI, KP, KR, KW, KG, LA, LV, LB, LS, LR, LY, LI, LT, LU, MO, MG, MW, MY, MV, ML, MT, MH, MQ, MR, MU, YT, MX, FM, MD, MC, MN, ME, MS, MA, MZ, MM, NA, NR, NP, NL, NC, NZ, NI, NE, NG, NU, NF, MK, MP, NO, OM, PK, PW, PS, PA, PG, PY, PE, PH, PN, PL, PT, PR, QA, RE, RO, RU, RW, BL, SH, KN, LC, MF, PM, VC, WS, SM, ST, SA, SN, RS, SC, SL, SG, SX, SK, SI, SB, SO, ZA, GS, SS, ES, LK, SD, SR, SJ, SE, CH, SY, TW, TJ, TZ, TH, TL, TG, TK, TO, TT, TN, TR, TM, TC, TV, UG, UA, AE, GB, US, UM, UY, UZ, VU, VE, VN, VG, VI, WF, EH, YE, ZM, ZW, XK, ZZ_EU Postal code of the transaction.
Tax ID associated with the transaction. DEPRECATED: This field is only populated for QuickBooks integrations and will be removed in a future version.
Transaction status (e.g., COMMITTED)
PENDING, COMMITTED, CANCELLED, FULLY_REFUNDED, PARTIALLY_REFUNDED, INVALID, ARCHIVED Response
Successfully created transaction