younifyd
Menu

Get Taxes From Basket

Retrieve the external taxation information for a basket.

GET/organizations/{organizationId}/baskets/{basketId}/taxes

Use it in a workflow

  1. Add a step and choose the Salesforce Commerce Cloud connector.
  2. Pick the Get Taxes From Basket action (under Shopper Baskets v1).
  3. Fill in the fields below, then reference the result from later steps as {{getTaxesFromBasket.response.data}}.

Request

Path parameters

organizationIdstringrequired

An identifier for the organization the request is being made by

basketIdstringrequired

The ID of the basket to be modified.

Query parameters

siteIdstringrequired

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.

Response

Returns 200 with an object. Read it in later steps with {{getTaxesFromBasket.response.data.<field>}}.

taxesobject

Map containing the TaxItems for the line item ids: Map<LineItemId, TaxItems []>

json
{
  "taxes": {}
}

Need more? See the Salesforce Commerce Cloud guide for connection setup and behaviour shared by every action.

Get Taxes From Basket — Salesforce Commerce Cloud — Documentation