Transactions

Get transaction

Retrieves the latest version of a single transaction by its ID. The response includes a version field identifying the latest version. Voided transactions do not include the body field.

post/v1/seller/transactions/id:{transactionId}/get

Request

  • Base URL: https://api.anrok.com
  • URL: https://api.anrok.com/v1/seller/transactions/id:{transactionId}/get
  • Auth: HTTP bearer

Request body

object required

Response

OK

OR

Example response

{
  "id": "stripe:in_1JSW342eZvKYlo2C",
  "anrokCreatedTime": "2025-01-01T00:00:00Z",
  "anrokModifiedTime": "2025-01-02T18:00:00Z",
  "sourceBillingSystem": {
    "name": "stripe",
    "integrationId": "si5kec86tpyt",
    "invoiceId": "in_1JSW342eZvKYlo2C"
  },
  "body": {
    "accountingDate": "2025-01-01",
    "taxDate": "2025-01-01",
    "currencyCode": "USD",
    "customer": {
      "id": "cus_1234567890",
      "name": "John Doe"
    },
    "addresses": [
      {
        "address": {
          "city": null,
          "line1": null,
          "region": "TX",
          "country": "US",
          "postalCode": "10101"
        }
      }
    ],
    "inputAmount": 39800,
    "preTaxAmount": "39800",
    "taxAmountDue": {
      "inclusive": "0",
      "exclusive": "2467.6",
      "total": "2467.6"
    },
    "taxAmountAdded": {
      "expected": 2468,
      "seen": 2468
    },
    "invoiceTotalAmountExpected": 42268,
    "jurisSummaries": [
      {
        "id": "us-TX",
        "name": "Texas",
        "preTaxAmount": "39800",
        "taxAmountDue": {
          "inclusive": "0",
          "exclusive": "2467.6",
          "total": "2467.6"
        },
        "taxIdValidation": {
          "processedTaxIds": [
            {
              "taxId": "1234567890",
              "isValid": true
            }
          ]
        }
      }
    ],
    "lineItems": [
      {
        "id": "li_1234567890",
        "product": {
          "internalId": "sp3hgz76gve3",
          "externalId": "PLU1",
          "name": "Product 1",
          "productTaxCategory": {
            "type": "standard",
            "id": "saasBusiness",
            "name": "SaaS - General, B2B"
          }
        },
        "quantity": null,
        "unitPrice": null,
        "inputAmount": 39800,
        "preTaxAmount": "39800",
        "taxAmountDue": {
          "inclusive": "0",
          "exclusive": "2467.6",
          "total": "2467.6"
        },
        "jurises": [
          {
            "id": "us-TX",
            "name": "Texas",
            "calc": {
              "isRemitting": true,
              "taxes": [
                {
                  "id": "",
                  "name": "Texas",
                  "nonTaxableAmount": "7960",
                  "exemptions": [],
                  "taxableAmount": "31840",
                  "rate": "0.0625",
                  "taxAmount": {
                    "inclusive": "0",
                    "exclusive": "1990"
                  }
                },
                {
                  "id": "4109000",
                  "name": "Hill County",
                  "nonTaxableAmount": "7960",
                  "exemptions": [],
                  "taxableAmount": "31840",
                  "rate": "0.005",
                  "taxAmount": {
                    "inclusive": "0",
                    "exclusive": "159.2"
                  }
                },
                {
                  "id": "2109108",
                  "name": "Aquilla",
                  "nonTaxableAmount": "7960",
                  "exemptions": [],
                  "taxableAmount": "31840",
                  "rate": "0.01",
                  "taxAmount": {
                    "inclusive": "0",
                    "exclusive": "318.4"
                  }
                }
              ]
            }
          }
        ]
      }
    ]
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.