The Tax Transaction object
Attributes
id(string) Unique identifier for the transaction.object(string) String representing the object’s type. Objects of the same type share the same value.created(timestamp) Time at which the object was created. Measured in seconds since the Unix epoch.currency(string) Three-letter ISO currency code, in lowercase. Must be a supported currency.customer(string, nullable) The ID of an existing Customer used for the resource.customer_details(object) The customer’s details, such as address and tax IDs.customer_details.address(object, nullable) The customer’s postal address (for example, home or business location).customer_details.address.city(string, nullable) City, district, suburb, town, or village.customer_details.address.country(string) Two-letter country code (ISO 3166-1 alpha-2).customer_details.address.line1(string, nullable) Address line 1, such as the street, PO Box, or company name.customer_details.address.line2(string, nullable) Address line 2, such as the apartment, suite, unit, or building.customer_details.address.postal_code(string, nullable) ZIP or postal code.customer_details.address.state(string, nullable) State/province as an ISO 3166-2 subdivision code, without country prefix, such as “NY” or “TX”.
customer_details.address_source(enum, nullable) The type of customer address provided. Possible enum values:billingDenotes the address as billing address.shippingDenotes the address as shipping address.
customer_details.ip_address(string, nullable) The customer’s IP address (IPv4 or IPv6).customer_details.tax_ids(array of objects) The customer’s tax IDs (for example, EU VAT numbers).customer_details.tax_ids.type(enum) The type of the tax ID, one ofad_nrt,ar_cuit,eu_vat,bo_tin,br_cnpj,br_cpf,cn_tin,co_nit,cr_tin,do_rcn,ec_ruc,eu_oss_vat,hr_oib,pe_ruc,ro_tin,rs_pib,sv_nit,uy_ruc,ve_rif,vn_tin,gb_vat,nz_gst,au_abn,au_arn,in_gst,no_vat,no_voec,za_vat,ch_vat,mx_rfc,sg_uen,ru_inn,ru_kpp,ca_bn,hk_br,es_cif,pl_nip,it_cf,fo_vat,gi_tin,py_ruc,tw_vat,th_vat,jp_cn,jp_rn,jp_trn,li_uid,li_vat,lk_vat,my_itn,us_ein,kr_brn,ca_qst,ca_gst_hst,ca_pst_bc,ca_pst_mb,ca_pst_sk,my_sst,sg_gst,ae_trn,cl_tin,sa_vat,id_npwp,my_frp,il_vat,ge_vat,ua_vat,is_vat,bg_uic,hu_tin,si_tin,ke_pin,tr_tin,eg_tin,ph_tin,al_tin,bh_vat,kz_bin,ng_tin,om_vat,de_stn,ch_uid,tz_vat,uz_vat,uz_tin,md_vat,ma_vat,by_tin,ao_tin,bs_tin,bb_tin,cd_nif,mr_nif,me_pib,zw_tin,ba_tin,gn_nif,mk_vat,sr_fin,sn_ninea,am_tin,np_pan,tj_tin,ug_tin,zm_tin,kh_tin,aw_tin,az_tin,bd_bin,bj_ifu,et_tin,kg_tin,la_tin,cm_niu,cv_nif,bf_ifu, orunknownPossible enum values:ad_nrtae_trnal_tinam_tinao_tinar_cuitau_abnau_arnaw_tinaz_tinba_tinbb_tinbd_binbf_ifubg_uicbh_vatbj_ifubo_tinbr_cnpjbr_cpfbs_tinby_tinca_bnca_gst_hstca_pst_bcca_pst_mbca_pst_skca_qstcd_nifch_uidch_vatcl_tincm_niucn_tinco_nitcr_tincv_nifde_stndo_rcnec_ruceg_tines_cifet_tineu_oss_vateu_vatfo_vatgb_vatge_vatgi_tingn_nifhk_brhr_oibhu_tinid_npwpil_vatin_gstis_vatit_cfjp_cnjp_rnjp_trnke_pinkg_tinkh_tinkr_brnkz_binla_tinli_uidli_vatlk_vatma_vatmd_vatme_pibmk_vatmr_nifmx_rfcmy_frpmy_itnmy_sstng_tinno_vatno_voecnp_pannz_gstom_vatpe_rucph_tinpl_nippy_rucro_tinrs_pibru_innru_kppsa_vatsg_gstsg_uensi_tinsn_nineasr_finsv_nitth_vattj_tintr_tintw_vattz_vatua_vatug_tinunknownus_einuy_rucuz_tinuz_vatve_rifvn_tinza_vatzm_tinzw_tin
customer_details.tax_ids.value(string) The value of the tax ID.
customer_details.taxability_override(enum) The taxability override used for taxation. Possible enum values:customer_exemptThe customer is exempt of tax.noneNo taxability override (default).reverse_chargeThe customer is entitled to reverse charge tax treatment.
line_items(object, nullable, expandable (can be expanded into an object with theexpandrequest parameter)) The tax collected or refunded, by line item.line_items.object(string) String representing the object’s type. Objects of the same type share the same value. Always has the valuelist.line_items.data(array of objects) Details about each object.line_items.data.id(string) Unique identifier for the object.line_items.data.object(string) String representing the object’s type. Objects of the same type share the same value.line_items.data.amount(integer) The line item amount in the smallest currency unit. Iftax_behavior=inclusive, then this amount includes taxes. Otherwise, taxes were calculated on top of this amount.line_items.data.amount_tax(integer) The amount of tax calculated for this line item, in the smallest currency unit.line_items.data.livemode(boolean) If the object exists in live mode, the value istrue. If the object exists in test mode, the value isfalse.line_items.data.metadata(object, nullable) Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.line_items.data.product(string, nullable) The ID of an existing Product.line_items.data.quantity(integer) The number of units of the item being purchased. For reversals, this is the quantity reversed.line_items.data.reference(string) A custom identifier for this line item in the transaction.line_items.data.reversal(object, nullable) Iftype=reversal, contains information about what was reversed.line_items.data.reversal.original_line_item(string) Theidof the line item to reverse in the original transaction.
line_items.data.tax_behavior(enum) Specifies whether theamountincludes taxes. Iftax_behavior=inclusive, then the amount includes taxes. Possible enum values:exclusiveTaxes are calculated on top of the line item amount (default).inclusiveTaxes are included in the line item amount.
line_items.data.tax_code(string) The tax code ID used for this resource.line_items.data.type(enum) Ifreversal, this line item reverses an earlier transaction. Possible enum values:reversalRepresents a partial or full reversal of an earlier transaction.transactionRepresents a customer sale or order.
line_items.has_more(boolean) True if this list has another page of items after this one that can be fetched.line_items.url(string) The URL where this list can be accessed.
livemode(boolean) If the object exists in live mode, the value istrue. If the object exists in test mode, the value isfalse.metadata(object, nullable) Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.posted_at(timestamp) The Unix timestamp representing when the tax liability is assumed or reduced.reference(string) A custom unique identifier, such as ‘myOrder_123’.reversal(object, nullable) Iftype=reversal, contains information about what was reversed.reversal.original_transaction(string, nullable) Theidof the reversedTransactionobject.
ship_from_details(object, nullable) The details of the ship from location, such as the address.ship_from_details.address(object) The address from which the goods in the transaction are shipped from.ship_from_details.address.city(string, nullable) City, district, suburb, town, or village.ship_from_details.address.country(string) Two-letter country code (ISO 3166-1 alpha-2).ship_from_details.address.line1(string, nullable) Address line 1, such as the street, PO Box, or company name.ship_from_details.address.line2(string, nullable) Address line 2, such as the apartment, suite, unit, or building.ship_from_details.address.postal_code(string, nullable) ZIP or postal code.ship_from_details.address.state(string, nullable) State/province as an ISO 3166-2 subdivision code, without country prefix, such as “NY” or “TX”.
shipping_cost(object, nullable) The shipping cost details for the transaction.shipping_cost.amount(integer) The shipping amount in the smallest currency unit. Iftax_behavior=inclusive, then this amount includes taxes. Otherwise, taxes were calculated on top of this amount.shipping_cost.amount_tax(integer) The amount of tax calculated for shipping, in the smallest currency unit.shipping_cost.shipping_rate(string, nullable) The ID of an existing ShippingRate.shipping_cost.tax_behavior(enum) Specifies whether theamountincludes taxes. Iftax_behavior=inclusive, then the amount includes taxes. Possible enum values:exclusiveTaxes are calculated on top of the shipping cost amount (default).inclusiveTaxes are included in the shipping cost amount.
shipping_cost.tax_code(string) The tax code ID used for shipping.
tax_date(timestamp) The calculation uses the tax rules and rates that are in effect at this timestamp. You can use a date up to 31 days in the past or up to 31 days in the future. If you use a future date, Stripe doesn’t guarantee that the expected tax rules and rate being used match the actual rules and rate that will be in effect on that date. We deploy tax changes before their effective date, but not within a fixed window.type(enum) Ifreversal, this transaction reverses an earlier transaction. Possible enum values:reversalRepresents a partial or full reversal of an earlier transaction.transactionRepresents a customer sale or order.
The Tax Transaction object
json
{
"id": "tax_1NaS0I2eZvKYlo2CRuMhUcmz",
"object": "tax.transaction",
"created": 1690932566,
"currency": "usd",
"customer": null,
"customer_details": {
"address": {
"city": "South San Francisco",
"country": "US",
"line1": "354 Oyster Point Blvd",
"line2": "",
"postal_code": "94080",
"state": "CA"
},
"address_source": "shipping",
"ip_address": null,
"tax_ids": [],
"taxability_override": "none"
},
"line_items": {
"object": "list",
"data": [
{
"id": "tax_li_ONCP443tgfS8I1",
"object": "tax.transaction_line_item",
"amount": 1499,
"amount_tax": 148,
"livemode": false,
"metadata": null,
"product": null,
"quantity": 1,
"reference": "Pepperoni Pizza",
"reversal": null,
"tax_behavior": "exclusive",
"tax_code": "txcd_40060003",
"type": "transaction"
}
],
"has_more": false,
"url": "/v1/tax/transactions/tax_1NaS0I2eZvKYlo2CRuMhUcmz/line_items"
},
"livemode": false,
"metadata": null,
"posted_at": 1690932566,
"reference": "myOrder_123",
"reversal": null,
"shipping_cost": {
"amount": 300,
"amount_tax": 0,
"tax_behavior": "exclusive",
"tax_code": "txcd_92010001"
},
"ship_from_details": {
"address": {
"postal_code": "75001",
"state": "TX",
"country": "US"
}
},
"tax_date": 1690932566,
"type": "transaction"
}