---
title: "POST /answerShippingQuery"
method: POST
path: "/answerShippingQuery"
---

# POST /answerShippingQuery

`POST /answerShippingQuery`

If you sent an invoice requesting a shipping address and the parameter *is\_flexible* was specified, the Bot API will send an [Update](https://core.telegram.org/bots/api/#update) with a *shipping\_query* field to the bot. Use this method to reply to shipping queries. On success, True is returned.

## Request body

- object
  - `shipping_query_id` string, required — Unique identifier for the query to be answered
  - `ok` boolean, required — Specify True if delivery to the specified address is possible and False if there are any problems (for example, if delivery to the specified address is not possible)
  - `shipping_options` ShippingOption[] — Required if *ok* is True. A JSON-serialized array of available shipping options.
    - `id` string, required — Shipping option identifier
    - `title` string, required — Option title
    - `prices` LabeledPrice[], required — List of price portions
      - `label` string, required — Portion label
      - `amount` integer, required — Price of the product in the *smallest units* of the [currency](/bots/payments#supported-currencies) (integer, **not** float/double). For example, for a price of `US$ 1.45` pass `amount = 145`. See the *exp* parameter in [currencies.json](https://core.telegram.org/bots/payments/currencies.json), it shows the number of digits past the decimal point for each currency (2 for the majority of currencies).
  - `error_message` string — Required if *ok* is False. Error message in human readable form that explains why it is impossible to complete the order (e.g. "Sorry, delivery to your desired address is unavailable'). Telegram will display this message to the user.

## Response `200`

- object
  - `ok` boolean, required
  - `result` boolean, required

## Other responses

- `default`

---

[API](https://skmtc.net/stoplight/apis/telegram-bot-api.md) · [All operations](https://skmtc.net/stoplight/apis/telegram-bot-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/stoplight/telegram-bot-api/versions/be4bbb34b64a/schema)
