# Kintsugi

> Record sales, estimate sales tax, and keep track of your Kintsugi products, customers, exemptions, registrations and filings.

App · 25 actions. Web page: https://docs.lodol.com/docs/integrations/kintsugi

## Actions

### Archive customer

Archive a customer so they no longer show.

**Inputs**

- Customer (`customer_id`, text, required): The customer's Kintsugi ID.

**Outputs**

- `data` (object): The response from Kintsugi.

**Example output**

```json
{
  "data": {}
}
```

### Archive product

Archive a product so it no longer shows. Creating it again with the same ID restores it.

**Inputs**

- Product (`product_id`, text, required): The product's Kintsugi ID.

**Outputs**

- `data` (object): The response from Kintsugi.

**Example output**

```json
{
  "data": {}
}
```

### Create customer

Add a customer, or get the existing one with the same ID.

**Inputs**

- Your customer ID (`externalId`, text): Your own stable ID for the customer. Creating again with the same ID returns the existing customer.
- Name (`name`, text): The customer's name.
- Company (`companyName`, text): Their registered business name, when it differs from the name.
- Email (`email`, text): Their email address.
- Phone (`phone`, text): Their phone number.
- Street (`street1`, text): Street address.
- Address line 2 (`street2`, text): Second address line.
- City (`city`, text): City.
- County (`county`, text): County or district.
- State (`state`, text): State or province code, such as TX.
- Postal code (`postalCode`, text): Postal or ZIP code.
- Country (`countryCode`, text): Two-letter country code, such as US.
- Tax registrations (`taxRegistrations`, list): Their tax registration numbers, one per country and tax type. Updating adds or replaces these and leaves others alone.

**Outputs**

- `data` (object): The customer.

**Example output**

```json
{
  "data": {
    "addressStatus": "VERIFIED",
    "city": "Austin",
    "companyName": "Rivera Design LLC",
    "countryCode": "US",
    "county": "Travis",
    "email": "jane@example.com",
    "externalId": "cus-1001",
    "id": "cust_2mNpQr7Ls8f3k",
    "name": "Jane Rivera",
    "organizationId": "orgn_2mNpQr7Ls8f3k",
    "phone": "+1 512 555 0142",
    "postalCode": "78701",
    "source": "API",
    "state": "TX",
    "status": "ACTIVE",
    "street1": "100 Congress Ave",
    "street2": "Suite 200",
    "taxRegistrations": [
      {
        "countryCode": "CA",
        "id": "ctr_2mNpQr7Ls8f3k",
        "isValid": true,
        "taxId": "123456789RT0001",
        "taxType": "gst"
      }
    ]
  }
}
```

### Create exemption

Record a customer's sales tax exemption.

**Inputs**

- Customer (`customerId`, text, required): The customer the exemption is for.
- Type (`exemptionType`, text, required): What the exemption covers. One of: `customer`, `wholesale`, `transaction` (One transaction), `reverse_charge` (Reverse charge), `partial`.
- Starts (`startDate`, date, required): The first day it applies.
- Ends (`endDate`, date): The last day it applies. Leave empty when it doesn't expire.
- Country (`countryCode`, text): The two-letter country it covers, such as US.
- State (`jurisdiction`, text): The state or province code it covers, such as TX.
- For resale (`reseller`, true/false): Whether it is claimed for resale.
- FEIN (`fein`, text): The Federal Employer Identification Number to record.
- Sales tax ID (`salesTaxId`, text): The sales tax registration number to record.
- Partial form code (`certificateType`, text): For a partial exemption, its form code, such as CDTFA-230-M.
- Transaction (`transactionId`, text): The one transaction it covers, by Kintsugi ID. Leave empty to cover the customer's transactions.
- Status (`status`, text): Active when empty; only active exemptions apply. One of: `ACTIVE`, `INACTIVE`, `EXPIRED`, `DEACTIVATED`.

**Outputs**

- `data` (object): The exemption.

**Example output**

```json
{
  "data": {
    "countryCode": "US",
    "customerId": "cust_2mNpQr7Ls8f3k",
    "customerName": "Jane Rivera",
    "endDate": "2026-12-31",
    "exemptionType": "wholesale",
    "fein": "12-3456789",
    "hasCertificate": false,
    "id": "exmp_2mNpQr7Ls8f3k",
    "jurisdiction": "TX",
    "organizationId": "orgn_2mNpQr7Ls8f3k",
    "reseller": true,
    "salesTaxId": "32012345678",
    "startDate": "2026-01-01",
    "status": "ACTIVE",
    "transactionId": "tran_2mNpQr7Ls8f3k"
  }
}
```

### Create product

Add a product with its tax category, or get the existing one with the same ID.

**Inputs**

- Your product ID (`externalId`, text, required): Your own stable ID for the product, such as its SKU. Creating again with the same ID returns the existing product.
- Name (`name`, text, required): The product's name.
- Description (`description`, text): A description of the product.
- Tax category (`productCategory`, text, required): The product's top-level tax category. One of: `Physical` (Physical goods), `Digital` (Digital goods), `Misc` (Miscellaneous), `Services`.
- Tax subcategory (`productSubcategory`, text, required): The subcategory's exact label from List product categories, such as General Clothing.
- Tax-exempt (`taxExempt`, true/false, required): Whether tax calculation treats the product as exempt.
- Approval (`status`, text): The product's tax classification approval. One of: `APPROVED`, `PARTIALLY_APPROVED` (Partly approved), `PENDING`.

**Outputs**

- `data` (object): The product.

**Example output**

```json
{
  "data": {
    "code": "PHYSICAL_GENERAL_CLOTHING",
    "description": "Short-sleeve t-shirt",
    "externalId": "sku-1001",
    "id": "prod_2mNpQr7Ls8f3k",
    "name": "Organic cotton tee",
    "organizationId": "orgn_2mNpQr7Ls8f3k",
    "productCategory": "Physical",
    "productSubcategory": "General Clothing",
    "sku": [
      "sku-1001"
    ],
    "source": "API",
    "status": "APPROVED",
    "taxExempt": false
  }
}
```

### Create transaction

Record a completed sale so Kintsugi tracks nexus and files it. Sending the same ID again updates it.

**Inputs**

- Your transaction ID (`externalId`, text, required): Your own stable ID for the sale, such as the order number.
- Date (`date`, date and time, required): When the sale happened. It decides which filing period it falls in.
- Currency (`currency`, text, required): The three-letter currency code, such as USD.
- Total (`totalAmount`, text): The sale's total amount, such as 49.99.
- Addresses (`addresses`, list): The sale's addresses. Tax follows the Ship to address.
- Lines (`items`, list): The lines sold.
- Customer ID (`customer_id`, text): Your ID for the customer.
- Customer name (`customer_name`, text): The customer's name.
- Customer email (`customer_email`, text): The customer's email address.
- Description (`description`, text): A description of the sale.
- Marketplace sale (`marketplace`, true/false): Whether a marketplace collected and paid the tax on this sale.

**Outputs**

- `data` (object): The transaction.

**Example output**

```json
{
  "data": {
    "addressStatus": "VERIFIED",
    "addresses": [
      {
        "city": "Austin",
        "countryCode": "US",
        "postalCode": "78701",
        "state": "TX",
        "street1": "100 Congress Ave",
        "type": "SHIP_TO"
      }
    ],
    "createdAt": "2026-11-20T15:04:06Z",
    "currency": "USD",
    "customerId": "cust_2mNpQr7Ls8f3k",
    "customerName": "Jane Rivera",
    "date": "2026-11-20T15:04:05Z",
    "description": "Online order",
    "direction": "SALE",
    "externalFriendlyId": "INV-1001",
    "externalId": "order-1001",
    "finalTotalAmount": "108.25",
    "hasExemptions": false,
    "id": "tran_2mNpQr7Ls8f3k",
    "items": [
      {
        "amount": "100.00",
        "exempt": false,
        "id": "item_2mNpQr7Ls8f3k",
        "productId": "prod_2mNpQr7Ls8f3k",
        "productName": "Organic cotton tee",
        "quantity": "2",
        "taxAmountCalculated": "8.25",
        "taxLiabilityAmount": "8.25"
      }
    ],
    "locked": false,
    "organizationId": "orgn_2mNpQr7Ls8f3k",
    "processingStatus": "PROCESSED",
    "source": "API",
    "status": "COMMITTED",
    "taxableAmount": "100.00",
    "totalAmount": "100.00",
    "totalTaxAmountCalculated": "8.25",
    "totalTaxLiabilityAmount": "8.25",
    "type": "SALE",
    "updatedAt": "2026-11-20T15:05:00Z"
  }
}
```

### Estimate tax

Work out the sales tax on a sale without recording it.

**Inputs**

- Your sale ID (`externalId`, text, required): Your ID for the sale; it comes back with the estimate.
- Date (`date`, date and time, required): When the sale takes place. Rates in force then are used.
- Currency (`currency`, text, required): The three-letter currency code of every amount, such as USD.
- Addresses (`addresses`, list, required): The sale's addresses. A Ship to or Bill to address is needed.
- Lines (`transactionItems`, list, required): The lines to price, at least one.
- Customer (`customer_id`, text): Your ID for the buyer, so their exemptions and registrations apply.
- As if registered (`simulateActiveRegistration`, true/false): Price it as though you were registered where it ships, to see what buyers would pay.

**Outputs**

- `data` (object): The response from Kintsugi.

**Example output**

```json
{
  "data": {
    "addresses": [
      {
        "city": "Austin",
        "countryCode": "US",
        "postalCode": "78701",
        "state": "TX",
        "status": "VERIFIED",
        "type": "SHIP_TO"
      }
    ],
    "currency": "USD",
    "externalId": "quote-1001",
    "hasActiveRegistration": true,
    "taxRate": "0.0825",
    "taxableAmount": "49.99",
    "totalTaxAmount": "4.12",
    "transactionItems": [
      {
        "amount": "49.99",
        "exempt": false,
        "externalId": "line-1",
        "productCode": "PHYSICAL_GENERAL_CLOTHING",
        "taxAmount": "4.12",
        "taxItems": [
          {
            "amount": "3.12",
            "name": "TX STATE TAX",
            "rate": "0.0625"
          }
        ],
        "taxRate": "0.0825",
        "taxableAmount": "49.99"
      }
    ]
  }
}
```

### Get customer

Get one customer.

**Inputs**

- Customer (`customer_id`, text, required): The customer's Kintsugi ID.

**Outputs**

- `data` (object): The customer.

**Example output**

```json
{
  "data": {
    "addressStatus": "VERIFIED",
    "city": "Austin",
    "companyName": "Rivera Design LLC",
    "countryCode": "US",
    "county": "Travis",
    "email": "jane@example.com",
    "externalId": "cus-1001",
    "id": "cust_2mNpQr7Ls8f3k",
    "name": "Jane Rivera",
    "organizationId": "orgn_2mNpQr7Ls8f3k",
    "phone": "+1 512 555 0142",
    "postalCode": "78701",
    "source": "API",
    "state": "TX",
    "status": "ACTIVE",
    "street1": "100 Congress Ave",
    "street2": "Suite 200",
    "taxRegistrations": [
      {
        "countryCode": "CA",
        "id": "ctr_2mNpQr7Ls8f3k",
        "isValid": true,
        "taxId": "123456789RT0001",
        "taxType": "gst"
      }
    ]
  }
}
```

### Get exemption

Get one exemption.

**Inputs**

- Exemption (`exemption_id`, text, required): The exemption's Kintsugi ID.

**Outputs**

- `data` (object): The exemption.

**Example output**

```json
{
  "data": {
    "countryCode": "US",
    "customerId": "cust_2mNpQr7Ls8f3k",
    "customerName": "Jane Rivera",
    "endDate": "2026-12-31",
    "exemptionType": "wholesale",
    "fein": "12-3456789",
    "hasCertificate": false,
    "id": "exmp_2mNpQr7Ls8f3k",
    "jurisdiction": "TX",
    "organizationId": "orgn_2mNpQr7Ls8f3k",
    "reseller": true,
    "salesTaxId": "32012345678",
    "startDate": "2026-01-01",
    "status": "ACTIVE",
    "transactionId": "tran_2mNpQr7Ls8f3k"
  }
}
```

### Get filing

Get one sales tax return with its amounts.

**Inputs**

- Filing (`filing_id`, text, required): The filing's Kintsugi ID.

**Outputs**

- `data` (object): The filing.

**Example output**

```json
{
  "data": {
    "amount": "3401.25",
    "amountSales": "41200.00",
    "canApprove": true,
    "countryCode": "US",
    "createdAt": "2026-10-01T00:00:00Z",
    "currency": "USD",
    "dateFiled": "2027-01-10",
    "dueDate": "2027-01-20",
    "endDate": "2026-12-31",
    "id": "fili_2mNpQr7Ls8f3k",
    "organizationId": "orgn_2mNpQr7Ls8f3k",
    "registrationId": "regi_2mNpQr7Ls8f3k",
    "startDate": "2026-10-01",
    "stateCode": "TX",
    "stateName": "Texas",
    "status": "UNFILED",
    "taxType": "SALES_TAX",
    "totalTaxLiability": "3401.25",
    "transactionCount": 412
  }
}
```

### Get nexus

Get your sales tax exposure in one place, with its measurement periods.

**Inputs**

- Nexus (`nexus_id`, text, required): The nexus's Kintsugi ID.

**Outputs**

- `data` (object): The nexus.

**Example output**

```json
{
  "data": {
    "countryCode": "US",
    "createdAt": "2026-01-05T10:00:00Z",
    "currency": "USD",
    "economicNexusMet": false,
    "id": "nexs_2mNpQr7Ls8f3k",
    "isCurrentlyDisregarded": false,
    "nexusMetDate": "2026-06-01",
    "organizationId": "orgn_2mNpQr7Ls8f3k",
    "periods": [
      {
        "endDate": "2026-12-31",
        "startDate": "2026-01-01",
        "taxLiabilityAmount": "0.00",
        "transactionCount": 180,
        "transactionsAmount": "412000.00"
      }
    ],
    "physicalNexusMet": false,
    "salesThreshold": "500000.00",
    "stateCode": "TX",
    "stateName": "Texas",
    "status": "APPROACHING",
    "taxLiability": "0.00",
    "taxType": "SALES_TAX",
    "transactionCount": 180,
    "transactionsAmount": "412000.00",
    "transactionsThreshold": 200,
    "updatedAt": "2026-11-20T10:00:00Z"
  }
}
```

### Get product

Get one product.

**Inputs**

- Product (`product_id`, text, required): The product's Kintsugi ID.

**Outputs**

- `data` (object): The product.

**Example output**

```json
{
  "data": {
    "code": "PHYSICAL_GENERAL_CLOTHING",
    "description": "Short-sleeve t-shirt",
    "externalId": "sku-1001",
    "id": "prod_2mNpQr7Ls8f3k",
    "name": "Organic cotton tee",
    "organizationId": "orgn_2mNpQr7Ls8f3k",
    "productCategory": "Physical",
    "productSubcategory": "General Clothing",
    "sku": [
      "sku-1001"
    ],
    "source": "API",
    "status": "APPROVED",
    "taxExempt": false
  }
}
```

### Get registration

Get one tax registration.

**Inputs**

- Registration (`registration_id`, text, required): The registration's Kintsugi ID.

**Outputs**

- `data` (object): The registration.

**Example output**

```json
{
  "data": {
    "amountFees": "0.00",
    "countryCode": "US",
    "doNotFile": false,
    "filingFrequency": "QUARTERLY",
    "filingWebsiteUrl": "https://comptroller.texas.gov",
    "id": "regi_2mNpQr7Ls8f3k",
    "imported": false,
    "organizationId": "orgn_2mNpQr7Ls8f3k",
    "registrationDate": "2026-03-01",
    "registrationEmail": "tax@example.com",
    "salesTaxId": "32012345678",
    "stateCode": "TX",
    "stateName": "Texas",
    "status": "REGISTERED",
    "taxType": "SALES_TAX"
  }
}
```

### Get transaction

Get one transaction with its lines and the tax on each.

**Inputs**

- Transaction (`transaction_id`, text, required): The transaction's Kintsugi ID.

**Outputs**

- `data` (object): The transaction.

**Example output**

```json
{
  "data": {
    "addressStatus": "VERIFIED",
    "addresses": [
      {
        "city": "Austin",
        "countryCode": "US",
        "postalCode": "78701",
        "state": "TX",
        "street1": "100 Congress Ave",
        "type": "SHIP_TO"
      }
    ],
    "createdAt": "2026-11-20T15:04:06Z",
    "currency": "USD",
    "customerId": "cust_2mNpQr7Ls8f3k",
    "customerName": "Jane Rivera",
    "date": "2026-11-20T15:04:05Z",
    "description": "Online order",
    "direction": "SALE",
    "externalFriendlyId": "INV-1001",
    "externalId": "order-1001",
    "finalTotalAmount": "108.25",
    "hasExemptions": false,
    "id": "tran_2mNpQr7Ls8f3k",
    "items": [
      {
        "amount": "100.00",
        "exempt": false,
        "id": "item_2mNpQr7Ls8f3k",
        "productId": "prod_2mNpQr7Ls8f3k",
        "productName": "Organic cotton tee",
        "quantity": "2",
        "taxAmountCalculated": "8.25",
        "taxLiabilityAmount": "8.25"
      }
    ],
    "locked": false,
    "organizationId": "orgn_2mNpQr7Ls8f3k",
    "processingStatus": "PROCESSED",
    "source": "API",
    "status": "COMMITTED",
    "taxableAmount": "100.00",
    "totalAmount": "100.00",
    "totalTaxAmountCalculated": "8.25",
    "totalTaxLiabilityAmount": "8.25",
    "type": "SALE",
    "updatedAt": "2026-11-20T15:05:00Z"
  }
}
```

### List customers

List your customers, newest first.

**Inputs**

- Search (`search`, text): A customer's ID or your ID for them, or part of their name or email.
- Countries (`country`, list): Only customers in these countries, as two-letter codes such as US.
- States (`state`, list): Only customers in these states or provinces, as codes such as TX.
- Sort by (`sort`, text): What to sort by. Date added when empty. One of: `createdAt` (Date added), `name`, `city`, `state`, `postalCode` (Postal code), `country`, `status`, `street1` (Street).
- Order (`order`, text): Newest first when empty. One of: `desc` (Descending), `asc` (Ascending).
- Page size (`limit`, number): How many to list on a page. At least 1.
- Next page (`cursor`, text): The nextCursor from the page before, to read the page after it.

**Outputs**

- `data` (object): The response from Kintsugi.

**Example output**

```json
{
  "data": {
    "hasMore": false,
    "items": [
      {
        "addressStatus": "VERIFIED",
        "city": "Austin",
        "companyName": "Rivera Design LLC",
        "countryCode": "US",
        "county": "Travis",
        "email": "jane@example.com",
        "externalId": "cus-1001",
        "id": "cust_2mNpQr7Ls8f3k",
        "name": "Jane Rivera",
        "organizationId": "orgn_2mNpQr7Ls8f3k",
        "phone": "+1 512 555 0142",
        "postalCode": "78701",
        "source": "API",
        "state": "TX",
        "status": "ACTIVE",
        "street1": "100 Congress Ave",
        "street2": "Suite 200",
        "taxRegistrations": [
          {
            "countryCode": "CA",
            "id": "ctr_2mNpQr7Ls8f3k",
            "isValid": true,
            "taxId": "123456789RT0001",
            "taxType": "gst"
          }
        ]
      }
    ],
    "nextCursor": "eyJpZCI6InByb2RfMiJ9"
  }
}
```

### List exemptions

List your customers' sales tax exemptions.

**Inputs**

- Customers (`customerId`, list): Only these customers' exemptions, by Kintsugi ID.
- Status (`status`, list): Only exemptions with one of these statuses. One or more of: `ACTIVE`, `INACTIVE`, `EXPIRED`, `DEACTIVATED`.
- Type (`exemptionType`, list): Only exemptions of these types. One or more of: `customer`, `wholesale`, `transaction` (One transaction), `reverse_charge` (Reverse charge), `partial`.
- Countries (`country`, list): Only exemptions in these countries, as two-letter codes.
- State (`jurisdiction`, text): Only exemptions for this state or province code.
- Starting on or after (`startDate`, date): Only exemptions that start on or after this day.
- Ending on or before (`endDate`, date): Only exemptions that end on or before this day.
- Search (`search`, text): An exemption ID, or part of a customer's name or email.
- Page size (`limit`, number): How many to list on a page. At least 1.
- Next page (`cursor`, text): The nextCursor from the page before, to read the page after it.

**Outputs**

- `data` (object): The response from Kintsugi.

**Example output**

```json
{
  "data": {
    "hasMore": false,
    "items": [
      {
        "countryCode": "US",
        "customerId": "cust_2mNpQr7Ls8f3k",
        "customerName": "Jane Rivera",
        "endDate": "2026-12-31",
        "exemptionType": "wholesale",
        "fein": "12-3456789",
        "hasCertificate": false,
        "id": "exmp_2mNpQr7Ls8f3k",
        "jurisdiction": "TX",
        "organizationId": "orgn_2mNpQr7Ls8f3k",
        "reseller": true,
        "salesTaxId": "32012345678",
        "startDate": "2026-01-01",
        "status": "ACTIVE",
        "transactionId": "tran_2mNpQr7Ls8f3k"
      }
    ],
    "nextCursor": "eyJpZCI6InByb2RfMiJ9"
  }
}
```

### List filings

List your sales tax returns and what is due on each.

**Inputs**

- Status (`status`, list): Only filings with one of these statuses. One or more of: `UNFILED`, `FILED`, `FILING`, `SUBMITTED`, `PAUSED`, `SKIPPED`, `CANCELLED`, `ISSUE`.
- Countries (`countryCode`, list): Only these countries, as two-letter codes.
- States (`stateCode`, list): Only these states or provinces, as codes such as TX.
- Registration (`registrationId`, text): Only filings under this registration.
- Period starts on or after (`startDateGte`, date): Only periods that start on or after this day.
- Period ends on or before (`endDateLte`, date): Only periods that end on or before this day.
- Filed on or after (`dateFiledGte`, date): Only returns filed on or after this day.
- Search (`search`, text): An organization's name, or a state's name or code.
- Sort by (`sort`, text): What to sort by. Kintsugi's own order when empty. One of: `endDate` (Period end), `startDate` (Period start), `dateFiled` (Date filed), `status`, `stateCode` (State), `countryCode` (Country), `amount` (Amount due), `totalTaxLiability` (Tax owed).
- Order (`order`, text): Ascending when empty. One of: `asc` (Ascending), `desc` (Descending).
- Page size (`limit`, number): How many to list on a page. At least 1.
- Next page (`cursor`, text): The nextCursor from the page before, to read the page after it.

**Outputs**

- `data` (object): The response from Kintsugi.

**Example output**

```json
{
  "data": {
    "hasMore": false,
    "items": [
      {
        "amount": "3401.25",
        "amountSales": "41200.00",
        "canApprove": true,
        "countryCode": "US",
        "createdAt": "2026-10-01T00:00:00Z",
        "currency": "USD",
        "dateFiled": "2027-01-10",
        "dueDate": "2027-01-20",
        "endDate": "2026-12-31",
        "id": "fili_2mNpQr7Ls8f3k",
        "organizationId": "orgn_2mNpQr7Ls8f3k",
        "registrationId": "regi_2mNpQr7Ls8f3k",
        "startDate": "2026-10-01",
        "stateCode": "TX",
        "stateName": "Texas",
        "status": "UNFILED",
        "taxType": "SALES_TAX",
        "totalTaxLiability": "3401.25",
        "transactionCount": 412
      }
    ],
    "nextCursor": "eyJpZCI6InByb2RfMiJ9"
  }
}
```

### List nexus

List where you have, or are close to, a sales tax obligation.

**Inputs**

- Status (`status`, list): Only places with one of these statuses. One or more of: `EXPOSED`, `APPROACHING`, `PENDING_REGISTRATION` (Pending registration), `OSS_PENDING_REGISTRATION` (Oss pending registration), `REGISTERED`, `OSS_REGISTERED` (Oss registered), `NOT_EXPOSED` (Not exposed).
- Countries (`countryCode`, list): Only these countries, as two-letter codes.
- States (`stateCode`, list): Only these states or provinces, as codes such as TX.
- Search (`search`, text): A state's code or name.
- Page size (`limit`, number): How many to list on a page. At least 1.
- Next page (`cursor`, text): The nextCursor from the page before, to read the page after it.

**Outputs**

- `data` (object): The response from Kintsugi.

**Example output**

```json
{
  "data": {
    "hasMore": false,
    "items": [
      {
        "countryCode": "US",
        "createdAt": "2026-01-05T10:00:00Z",
        "currency": "USD",
        "economicNexusMet": false,
        "id": "nexs_2mNpQr7Ls8f3k",
        "isCurrentlyDisregarded": false,
        "nexusMetDate": "2026-06-01",
        "organizationId": "orgn_2mNpQr7Ls8f3k",
        "physicalNexusMet": false,
        "salesThreshold": "500000.00",
        "stateCode": "TX",
        "stateName": "Texas",
        "status": "APPROACHING",
        "taxLiability": "0.00",
        "taxType": "SALES_TAX",
        "transactionCount": 180,
        "transactionsAmount": "412000.00",
        "transactionsThreshold": 200,
        "updatedAt": "2026-11-20T10:00:00Z"
      }
    ],
    "nextCursor": "eyJpZCI6InByb2RfMiJ9"
  }
}
```

### List organizations

List the organizations your key can reach.

**Inputs**

- Name contains (`search`, text): Only organizations whose name contains this.
- Status (`status`, text): Only organizations with this status. One of: `ACTIVE`, `ARCHIVED`.
- Page size (`limit`, number): How many to list on a page. At least 1.
- Next page (`cursor`, text): The nextCursor from the page before, to read the page after it.

**Outputs**

- `data` (object): The response from Kintsugi.

**Example output**

```json
{
  "data": {
    "hasMore": false,
    "items": [
      {
        "city": "Austin",
        "id": "orgn_2mNpQr7Ls8f3k",
        "isTest": false,
        "name": "Acme Corp",
        "state": "TX",
        "status": "ACTIVE"
      }
    ],
    "nextCursor": "eyJpZCI6InByb2RfMiJ9"
  }
}
```

### List product categories

List every tax category and the subcategories you can give a product.

**Inputs**: None.

**Outputs**

- `data` (list): The response from Kintsugi.

**Example output**

```json
{
  "data": [
    {
      "category": "Physical",
      "subcategories": [
        {
          "description": "Everyday clothing and apparel",
          "example": "T-shirts, jeans",
          "label": "General Clothing"
        }
      ]
    }
  ]
}
```

### List products

List your products and their tax classification.

**Inputs**

- Search (`search`, text): A product's ID or your ID for it, or part of its name or description.
- Status (`status`, list): Only products with one of these approval statuses. One or more of: `APPROVED`, `PARTIALLY_APPROVED` (Partially approved), `PENDING`, `ARCHIVED`.
- Tax category (`productCategory`, text): Only products in this tax category. One of: `Physical` (Physical goods), `Digital` (Digital goods), `Misc` (Miscellaneous), `Services`.
- Tax subcategory (`productSubcategory`, text): Only products with this exact subcategory label, such as General Clothing.
- Sort by (`orderBy`, text): What to sort by. Kintsugi's own order when empty. One of: `createdAt` (Date added), `name`, `status`, `externalId` (Your product ID), `source`.
- Order (`order`, text): Ascending or descending, when sorting. One of: `desc` (Descending), `asc` (Ascending).
- Page size (`limit`, number): How many to list on a page. At least 1.
- Next page (`cursor`, text): The nextCursor from the page before, to read the page after it.

**Outputs**

- `data` (object): The response from Kintsugi.

**Example output**

```json
{
  "data": {
    "hasMore": false,
    "items": [
      {
        "code": "PHYSICAL_GENERAL_CLOTHING",
        "description": "Short-sleeve t-shirt",
        "externalId": "sku-1001",
        "id": "prod_2mNpQr7Ls8f3k",
        "name": "Organic cotton tee",
        "organizationId": "orgn_2mNpQr7Ls8f3k",
        "productCategory": "Physical",
        "productSubcategory": "General Clothing",
        "sku": [
          "sku-1001"
        ],
        "source": "API",
        "status": "APPROVED",
        "taxExempt": false
      }
    ],
    "nextCursor": "eyJpZCI6InByb2RfMiJ9"
  }
}
```

### List registrations

List the states and countries where you are registered to collect tax.

**Inputs**

- Status (`status`, list): Only registrations with one of these statuses. One or more of: `REGISTERED`, `PROCESSING`, `UNREGISTERED`, `DEREGISTERING`, `DEREGISTERED`, `CANCELLED`, `VALIDATING`, `AWAITING_CLARIFICATION` (Awaiting clarification), `SELF_MANAGED` (Self managed).
- Countries (`countryCode`, list): Only these countries, as two-letter codes.
- States (`stateCode`, list): Only these states or provinces, as codes such as TX.
- Sort by (`sort`, text): What to sort by. Kintsugi's own order when empty. One of: `registrationDate` (Registration date), `stateCode` (State), `countryCode` (Country), `status`, `organizationName` (Organization).
- Order (`order`, text): Ascending when empty. One of: `asc` (Ascending), `desc` (Descending).
- Page size (`limit`, number): How many to list on a page. At least 1.
- Next page (`cursor`, text): The nextCursor from the page before, to read the page after it.

**Outputs**

- `data` (object): The response from Kintsugi.

**Example output**

```json
{
  "data": {
    "hasMore": false,
    "items": [
      {
        "amountFees": "0.00",
        "countryCode": "US",
        "doNotFile": false,
        "filingFrequency": "QUARTERLY",
        "filingWebsiteUrl": "https://comptroller.texas.gov",
        "id": "regi_2mNpQr7Ls8f3k",
        "imported": false,
        "organizationId": "orgn_2mNpQr7Ls8f3k",
        "registrationDate": "2026-03-01",
        "registrationEmail": "tax@example.com",
        "salesTaxId": "32012345678",
        "stateCode": "TX",
        "stateName": "Texas",
        "status": "REGISTERED",
        "taxType": "SALES_TAX"
      }
    ],
    "nextCursor": "eyJpZCI6InByb2RfMiJ9"
  }
}
```

### List transactions

List your sales and purchases, newest first, filtered as you choose.

**Inputs**

- Search (`search`, text): A transaction's ID, your ID or readable ID, its description or the customer's name.
- From (`startDate`, date): Only transactions on or after this day.
- To (`endDate`, date): Only transactions on or before this day.
- Status (`status`, list): Only transactions with one of these statuses. One or more of: `PENDING`, `COMMITTED`, `CANCELLED`, `FULLY_REFUNDED` (Fully refunded), `PARTIALLY_REFUNDED` (Partially refunded), `INVALID`.
- Sales or purchases (`direction`, text): Only sales or only purchases. Both when empty. One of: `SALE` (Sales), `PURCHASE` (Purchases).
- Customer (`customerId`, text): Only this customer's transactions.
- Countries (`country`, list): Only transactions in these countries, as two-letter codes.
- States (`state`, list): Only transactions in these states or provinces, as codes such as TX.
- Filing (`filingId`, text): Only transactions in this filing.
- Sort by (`sort`, text): What to sort by. Date when empty. One of: `date`, `totalAmount` (Total), `status`, `country`.
- Order (`order`, text): Newest first when empty. One of: `desc` (Descending), `asc` (Ascending).
- Page size (`limit`, number): How many to list on a page. At least 1.
- Next page (`cursor`, text): The nextCursor from the page before, to read the page after it.

**Outputs**

- `data` (object): The response from Kintsugi.

**Example output**

```json
{
  "data": {
    "hasMore": false,
    "items": [
      {
        "addressStatus": "VERIFIED",
        "addresses": [
          {
            "city": "Austin",
            "countryCode": "US",
            "postalCode": "78701",
            "state": "TX",
            "street1": "100 Congress Ave",
            "type": "SHIP_TO"
          }
        ],
        "createdAt": "2026-11-20T15:04:06Z",
        "currency": "USD",
        "customerId": "cust_2mNpQr7Ls8f3k",
        "customerName": "Jane Rivera",
        "date": "2026-11-20T15:04:05Z",
        "description": "Online order",
        "direction": "SALE",
        "externalFriendlyId": "INV-1001",
        "externalId": "order-1001",
        "finalTotalAmount": "108.25",
        "hasExemptions": false,
        "id": "tran_2mNpQr7Ls8f3k",
        "items": [
          {
            "amount": "100.00",
            "exempt": false,
            "id": "item_2mNpQr7Ls8f3k",
            "productId": "prod_2mNpQr7Ls8f3k",
            "productName": "Organic cotton tee",
            "quantity": "2",
            "taxAmountCalculated": "8.25",
            "taxLiabilityAmount": "8.25"
          }
        ],
        "locked": false,
        "organizationId": "orgn_2mNpQr7Ls8f3k",
        "processingStatus": "PROCESSED",
        "source": "API",
        "status": "COMMITTED",
        "taxableAmount": "100.00",
        "totalAmount": "100.00",
        "totalTaxAmountCalculated": "8.25",
        "totalTaxLiabilityAmount": "8.25",
        "type": "SALE",
        "updatedAt": "2026-11-20T15:05:00Z"
      }
    ],
    "nextCursor": "eyJpZCI6InByb2RfMiJ9"
  }
}
```

### Update customer

Change a customer's details. Only the fields you fill in change.

**Inputs**

- Customer (`customer_id`, text, required): The customer's Kintsugi ID.
- Name (`name`, text): The customer's name.
- Company (`companyName`, text): Their registered business name, when it differs from the name.
- Email (`email`, text): Their email address.
- Phone (`phone`, text): Their phone number.
- Street (`street1`, text): Street address.
- Address line 2 (`street2`, text): Second address line.
- City (`city`, text): City.
- County (`county`, text): County or district.
- State (`state`, text): State or province code, such as TX.
- Postal code (`postalCode`, text): Postal or ZIP code.
- Country (`countryCode`, text): Two-letter country code, such as US.
- Tax registrations (`taxRegistrations`, list): Their tax registration numbers, one per country and tax type. Updating adds or replaces these and leaves others alone.

**Outputs**

- `data` (object): The customer.

**Example output**

```json
{
  "data": {
    "addressStatus": "VERIFIED",
    "city": "Austin",
    "companyName": "Rivera Design LLC",
    "countryCode": "US",
    "county": "Travis",
    "email": "jane@example.com",
    "externalId": "cus-1001",
    "id": "cust_2mNpQr7Ls8f3k",
    "name": "Jane Rivera",
    "organizationId": "orgn_2mNpQr7Ls8f3k",
    "phone": "+1 512 555 0142",
    "postalCode": "78701",
    "source": "API",
    "state": "TX",
    "status": "ACTIVE",
    "street1": "100 Congress Ave",
    "street2": "Suite 200",
    "taxRegistrations": [
      {
        "countryCode": "CA",
        "id": "ctr_2mNpQr7Ls8f3k",
        "isValid": true,
        "taxId": "123456789RT0001",
        "taxType": "gst"
      }
    ]
  }
}
```

### Update product

Change a product's details or tax category. Only the fields you fill in change.

**Inputs**

- Product (`product_id`, text, required): The product's Kintsugi ID.
- Your product ID (`externalId`, text): Your own stable ID for the product, such as its SKU. Creating again with the same ID returns the existing product.
- Name (`name`, text): The product's name.
- Description (`description`, text): A description of the product.
- Tax category (`productCategory`, text): The product's top-level tax category. One of: `Physical` (Physical goods), `Digital` (Digital goods), `Misc` (Miscellaneous), `Services`.
- Tax subcategory (`productSubcategory`, text): The subcategory's exact label from List product categories, such as General Clothing.
- Tax-exempt (`taxExempt`, true/false): Whether tax calculation treats the product as exempt.
- Approval (`status`, text): The product's tax classification approval. One of: `APPROVED`, `PARTIALLY_APPROVED` (Partly approved), `PENDING`.

**Outputs**

- `data` (object): The product.

**Example output**

```json
{
  "data": {
    "code": "PHYSICAL_GENERAL_CLOTHING",
    "description": "Short-sleeve t-shirt",
    "externalId": "sku-1001",
    "id": "prod_2mNpQr7Ls8f3k",
    "name": "Organic cotton tee",
    "organizationId": "orgn_2mNpQr7Ls8f3k",
    "productCategory": "Physical",
    "productSubcategory": "General Clothing",
    "sku": [
      "sku-1001"
    ],
    "source": "API",
    "status": "APPROVED",
    "taxExempt": false
  }
}
```
