The Tax Association object 

Tax
Tax Association
The Tax Association object

Attributes

  • idstring

    Unique identifier for the object.

  • calculationstring

    The Tax Calculation that was included in PaymentIntent.

  • payment_intentstring

    The PaymentIntent that this Tax Association is tracking.

  • tax_transaction_attemptsnullable array of objects

    Information about the tax transactions linked to this payment intent

    • tax_transaction_attempts.committednullable object

      If status is committed, this attribute contains further details about the committed tax transaction and subsequent reversals.

    • tax_transaction_attempts.errorednullable object

      If status is errored, this attribute contains further details about the type of error encountered.

      • tax_transaction_attempts.errored.reasonenum

        Details on why we couldn’t commit the tax transaction.

        Possible enum values
        another_payment_associated_with_calculation

        Another payment already committed the calculation. Refunds on this payment won’t affect the tax transaction.

        calculation_expired

        The calculation expired and can’t be committed as a tax transaction.

        currency_mismatch

        The payment and tax calculation have different presentment currencies. Can’t commit the tax transaction.

        original_transaction_voided

        The original sales tax transaction was voided.

        unique_reference_violation

        A tax transaction with the provided reference (PaymentIntent id) already exists.

    • tax_transaction_attempts.sourcestring

      The source of the tax transaction attempt. This is either a refund or a payment intent.

    • tax_transaction_attempts.statusstring

      The status of the transaction attempt. This can be errored or committed.

More attributes

  • objectstring

    String representing the object’s type. Objects of the same type share the same value.

The Tax Association object
{
"id": "taxa_1PXmsbE5ebw4kUHWxtSTF08x",
"object": "tax.association",
"calculation": "taxcalc_1PXmsRE5ebw4kUHW9SOln70o",
"payment_intent": "pi_1PXmsSE5ebw4kUHWK7FIhQlS",
"tax_transaction_attempts": [
{
"source": "pi_1PXmsSE5ebw4kUHWK7FIhQlS",
"status": "committed",
"committed": {
"transaction": "tax_1PXmsRE5ebw4kUHWLyVEiMis"
}
},
{
"source": "re_1PXmsSE5ebw4kUHWK7FIhQlS",
"status": "committed",
"committed": {
"transaction": "tax_1PXmsgE5ebw4kUHW7Gg8jvpX"
}
}
]
}