Add taxation information for a basket item.
Operation ID: addTaxesForBasketItemThis method allows you to apply external taxation data to an existing basket to be able to pass tax rates and optional values for a specific taxable line item. This endpoint can be called only if external taxation mode was used for basket creation. See POST /baskets for more information.
curl "https://{shortCode}.api.commercecloud.salesforce.com/checkout/shopper-baskets/v1/organizations/{organizationId}/baskets/{basketId}/items/{itemId}/taxes?siteId=RefArch" \
-X PUT \
-H "content-type: application/json" \
-d '{
"taxItems": [
{
"id": "DE_7",
"rate": 0.07,
"value": 13.99
},
{
"id": "DE_19",
"rate": 0.19
}
]
}'
An identifier for the organization the request is being made by
f_ecom_zzxy_prd
The item id.
430ef5aad3a24de59378458434
The ID of the basket to be modified.
The identifier of the site that a request is being made in the context of. Attributes might have site specific values, and some objects may only be assigned to specific sites
RefArch
{
"taxItems": [
{
"id": "DE_7",
"rate": 0.07,
"value": 13.99
},
{
"id": "DE_19",
"rate": 0.19
}
]
}
The list of tax items. It is read only.
Success, without body.