> For the complete documentation index, see [llms.txt](https://apidocs.akinon.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://apidocs.akinon.com/commerce-openapis/dynamic-bin-scheduler/promotions/get-promotions-for-basket.md).

# Get promotions for basket

Returns the promotion activations currently on record for a basket. Unlike the `/preorder/` endpoints, this does **not** assign a card — it queries existing `PreOrderCall` records matching `basket_id` + `basket_modified_date`.

Use this to re-fetch the promotion list after the card was already assigned (e.g. when re-rendering the checkout summary).

When `voucher_code` is provided, only promotions with `usable_with_voucher_code: true` are returned, preventing non-stackable promotions from being shown alongside a voucher.

```json
{"openapi":"3.0.3","info":{"title":"Bankaci API","version":"1.0.0"},"tags":[{"name":"Promotions","description":"Query promotions for a basket or multiple saved cards"}],"servers":[{"url":"{BASE_URL}/api/v1","description":"Bankaci API","variables":{"BASE_URL":{"default":"https://your-bankaci-instance.example.com","description":"Base URL of the Bankaci service"}}}],"paths":{"/promotions/":{"post":{"tags":["Promotions"],"summary":"Get promotions for basket","description":"Returns the promotion activations currently on record for a basket. Unlike the\n`/preorder/` endpoints, this does **not** assign a card — it queries existing\n`PreOrderCall` records matching `basket_id` + `basket_modified_date`.\n\nUse this to re-fetch the promotion list after the card was already assigned\n(e.g. when re-rendering the checkout summary).\n\nWhen `voucher_code` is provided, only promotions with `usable_with_voucher_code: true`\nare returned, preventing non-stackable promotions from being shown alongside a voucher.\n","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BasketRequest"}}}},"responses":{"200":{"description":"Active promotion activations for the basket","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BasketOfferResponse"}}}},"422":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationError"}}}}}}}},"components":{"schemas":{"BasketRequest":{"type":"object","required":["id","modified_date"],"properties":{"id":{"type":"integer","description":"Omnitron basket ID"},"modified_date":{"type":"string","format":"date-time","description":"Last modification timestamp of the basket (ISO 8601)"},"voucher_code":{"type":"string","nullable":true,"description":"Optional voucher code applied to the basket. When provided, only promotions\nwith `usable_with_voucher_code: true` are returned.\n"}}},"BasketOfferResponse":{"type":"object","properties":{"basket_offers":{"type":"array","items":{"$ref":"#/components/schemas/BasketOfferItem"},"description":"Basket offer activations eligible for this card/basket combination.\nEmpty array when no promotions match the card BIN.\n"}}},"BasketOfferItem":{"type":"object","properties":{"basket_offer_id":{"type":"integer","description":"Omnitron BasketOffer ID to activate for this basket"},"session_code":{"type":"string","format":"uuid","description":"Unique session UUID linking this activation to its `PreOrderCall` record.\nUsed internally for usage verification.\n"}}},"ValidationError":{"type":"object","properties":{"detail":{"type":"array","items":{"type":"object","properties":{"loc":{"type":"array","items":{"type":"string"}},"msg":{"type":"string"},"type":{"type":"string"}}}}}}}}}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://apidocs.akinon.com/commerce-openapis/dynamic-bin-scheduler/promotions/get-promotions-for-basket.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
