Bundles

Calculate discounts and taxes bundles

Changed on

Calculate discounts and taxes

Permissions

This endpoint is usually used internally for backend services and does not require user permissions.

post/pub/bundles

Request

  • Base URL
    http://example.com/.vtexcommercestable.com.br/api/rnb
  • URL
    http://example.com/.vtexcommercestable.com.br/api/rnb/pub/bundles
  • Auth
    • API key in header X-VTEX-API-AppKey and API key in header X-VTEX-API-AppToken
    • or API key in header VtexIdclientAutCookie

Headers

Content-Typestring required

Type of the content being sent.

Acceptstring required

HTTP Client Negotiation Accept Header. Indicates the types of responses the client can understand.

Request body

isShoppingCartboolean required

Indicates whether the item is a shopping cart.

originstring required

Origin.

salesChannelstring required

Sales channel.

profileIdstring required

Profile ID.

Example request

{
  "origin": "origin",
  "salesChannel": "channel",
  "profileId": "1",
  "items": [
    {
      "index": 1,
      "id": "1",
      "quantity": 1,
      "isGift": true,
      "measurementUnit": "un",
      "unitMultiplier": 1,
      "priceTags": [
        "tag"
      ],
      "params": [
        {
          "name": "Seller@CatalogSystem",
          "value": "1"
        }
      ],
      "priceSheet": [
        "pricesheet"
      ],
      "logisticsInfos": [
        "logistic"
      ],
      "sellerId": "1",
      "productSpecifications": [
        "spefification"
      ]
    }
  ]
}

Response

OK

Changes