---
title: "List your orders"
method: GET
path: "/v1/orders"
tags: ["Orders"]
---

# List your orders

`GET /v1/orders`

## Request

- Base URL: `https://api.mystars.tg`
- URL: `https://api.mystars.tg/v1/orders`
- Auth: API key in header `X-Api-Key`

Tenant-scoped list, newest first, keyset-paginated. Pass the returned
`next_cursor` back as `?cursor=` to page; a null `next_cursor` is the
last page. The cursor does not remember your filter: send the same
`status` on every page, or the next page is unfiltered.

**Direct orders only.** The orders a campaign creates for its recipients
are not listed here; read them through the campaign
(`GET /v1/campaigns/{id}/recipients`). `GET /v1/orders/{id}` still
returns one by its id.

This list is metered by your general per-minute budget, not by the
order-lifecycle bucket.

## Query parameters

- `status` 'received' | 'awaiting_payment' | 'paid' | 'reserved' | 'swapping' | 'funding' | 'purchasing' | 'fulfilling' | 'completed' | 'delivered' | 'failed' | 'reversed' | 'expired' | 'held' | 'cancelled': Lifecycle status. A new order starts in `awaiting_payment`. The normal path is `awaiting_payment` → `paid` → `reserved` → `funding` → `purchasing` → `delivered`. **Terminal** (nothing moves the order on; stop polling). The callback named on each goes to the order's `callback_url`, when you set one: - `delivered` — the item was delivered to the recipient. Callback `order.delivered`. - `completed` — the same as `delivered`, on older orders. No callback. - `reversed` — the item could not be delivered and your payment was reversed to you (`failure_reason: undeliverable`). Callback `order.reversed`. - `failed` — the payment named this order but could not be applied: an amount outside the tolerance, or the other asset; it is reversed to the sender. Only an `awaiting_payment` order can end here. Callback `order.failed`. - `expired` — no payment arrived before `expires_at`. Callback `order.expired`. - `cancelled` — you cancelled it with `POST /v1/orders/{id}/cancel` while it was `awaiting_payment`. No callback: the cancel answer is the confirmation. **In progress** (no action needed; keep polling or wait for the callback): - `awaiting_payment` — waiting for your payment, until `expires_at`. The only cancellable status. - `paid` — the payment was matched; delivery is about to start. - `reserved`, `funding`, `purchasing` — delivery steps. An order may step back to `paid` or an earlier step and run again; that is a retry, not a failure. - `held` — delivery or a reversal is being retried, or is under manual review; `failure_reason` says which. Do not re-create the order. It ends `delivered` or `reversed`. - `received`, `swapping`, `fulfilling` — kept for older orders; no new order enters them. Branch on the terminal set above, and treat any status you do not recognise as in progress.
- `limit` integer
- `cursor` string

## Response `200`

A page of orders.

- object
  - `orders` Order[], required
    - `order_id` string, uuid, required
    - `status` 'received' | 'awaiting_payment' | 'paid' | 'reserved' | 'swapping' | 'funding' | 'purchasing' | 'fulfilling' | 'completed' | 'delivered' | 'failed' | 'reversed' | 'expired' | 'held' | 'cancelled', required: Lifecycle status. A new order starts in `awaiting_payment`. The normal path is `awaiting_payment` → `paid` → `reserved` → `funding` → `purchasing` → `delivered`. **Terminal** (nothing moves the order on; stop polling). The callback named on each goes to the order's `callback_url`, when you set one: - `delivered` — the item was delivered to the recipient. Callback `order.delivered`. - `completed` — the same as `delivered`, on older orders. No callback. - `reversed` — the item could not be delivered and your payment was reversed to you (`failure_reason: undeliverable`). Callback `order.reversed`. - `failed` — the payment named this order but could not be applied: an amount outside the tolerance, or the other asset; it is reversed to the sender. Only an `awaiting_payment` order can end here. Callback `order.failed`. - `expired` — no payment arrived before `expires_at`. Callback `order.expired`. - `cancelled` — you cancelled it with `POST /v1/orders/{id}/cancel` while it was `awaiting_payment`. No callback: the cancel answer is the confirmation. **In progress** (no action needed; keep polling or wait for the callback): - `awaiting_payment` — waiting for your payment, until `expires_at`. The only cancellable status. - `paid` — the payment was matched; delivery is about to start. - `reserved`, `funding`, `purchasing` — delivery steps. An order may step back to `paid` or an earlier step and run again; that is a retry, not a failure. - `held` — delivery or a reversal is being retried, or is under manual review; `failure_reason` says which. Do not re-create the order. It ends `delivered` or `reversed`. - `received`, `swapping`, `fulfilling` — kept for older orders; no new order enters them. Branch on the terminal set above, and treat any status you do not recognise as in progress.
    - `type` 'stars' | 'premium', required
    - `recipient_username` string, required
    - `quantity` integer, nullable
    - `months` integer, nullable
    - `amount_ton` string, nullable: The order's price in GRAM (decimal string), fixed at creation; `null` when unknown. It is the amount due only on a `ton` order. A `usdt_ton` order is paid in USDT — read `payment.amount` (in `payment.asset`) there; this GRAM figure is not what you send. The field name `amount_ton` is frozen for wire compatibility.
    - `payment_currency` 'ton' | 'usdt_ton', required: The asset the order is paid in. `ton` = the native coin GRAM (ex TON), sent as a plain transfer — it is not USDT on TON. `usdt_ton` = USDT (TON), sent as a jetton transfer. Required on every create and pricing request: a request without it is rejected with `400 bad_request`.
    - `payment` PaymentInstruction, nullable, required: How to pay for the order. Send EXACTLY `amount` of `asset` with `memo`, as a `transfer` of that kind. A payment in the other asset is not applied to the order: it is reversed to the sender in the asset received. The order is normally marked `failed` with `wrong_currency` once the payment has been returned. If that step cannot complete, the order expires and the payment is still returned.
      - `currency` 'ton' | 'usdt_ton', required: The asset the order is paid in. `ton` = the native coin GRAM (ex TON), sent as a plain transfer — it is not USDT on TON. `usdt_ton` = USDT (TON), sent as a jetton transfer. Required on every create and pricing request: a request without it is rejected with `400 bad_request`.
      - `chain` string, required
      - `pay_to_address` string, required: The treasury wallet to pay. The SAME address is returned for both `ton` and `usdt_ton` — a USDT jetton transfer routes by owner, so its destination is this (owner) address, not a derived jetton-wallet address.
      - `memo` string, required: The required transfer memo (equals the order id).
      - `amount` string, required: Exact amount to send, as a decimal string.
      - `amount_units` 'ton' | 'usdt', required: Legacy unit label of `amount` (`ton` means GRAM). Frozen for wire compatibility — read `asset` instead.
      - `amount_smallest_unit` string, required: The same amount as an integer string in the smallest unit of `asset` (`amount` × 10^`decimals`) — nano-GRAM for GRAM, micro-USDT for USDT. Build the on-chain transfer from this, never from a re-scaled `amount`.
      - `asset` 'GRAM' | 'USDT', required: The asset to send: `GRAM` on a `ton` order, `USDT` on a `usdt_ton` order.
      - `decimals` 9 | 6, required: Decimal places of `asset` — 9 for GRAM, 6 for USDT.
      - `transfer` 'native' | 'jetton', required: How to send it. `native` — a plain GRAM transfer to `pay_to_address` with `memo` as the comment. `jetton` — a TEP-74 transfer of the `jetton_master` jetton whose destination is `pay_to_address`, with `memo` as the forward-payload comment.
      - `jetton_master` string, nullable, required: The USDT jetton master address for a `jetton` transfer — send only this jetton. `null` for a `native` transfer.
      - `fee` FeeBreakdown, nullable, required: Itemisation of the `usdt_ton` processing fee that is ALREADY part of the all-in amount. `subtotal + processing_fee == total == amount`. Pass-through network cost only — it does not reveal our cost basis or markup. It takes one of two forms, named by `kind`: a swap-backed fee (the 1% DEX swap fee plus GRAM swap gas) or, for an order settled without a swap, network gas alone. Only `total` (= `amount`) is binding — the `subtotal`/`processing_fee` split is informational and may shift by a cent with the live FX rate.
        - `subtotal` string, required: The item price before the processing fee, as a decimal string (USDT).
        - `processing_fee` string, required: The pass-through network cost, rounded up to the cent, as a decimal string (USDT) — the 1% DEX swap fee plus GRAM swap gas for a swap-backed order, or network gas alone for an order settled without a swap.
        - `total` string, required: subtotal + processing_fee — equals `amount`. Decimal string (USDT).
        - `description` string, required: Human-readable label for the fee components — for example "1% swap + 0.5 GRAM gas" for a swap-backed fee, or "TON network gas" for a fee that is network gas alone. A label for display; do not parse it — branch on `kind`.
        - `kind` 'swap' | 'network', required: Machine-readable fee form. `swap` — a swap-backed fee (the 1% DEX swap fee plus GRAM swap gas); `network` — network gas alone, for an order settled without a swap. Use it to choose your own wording for the fee.
        - `currency` 'usdt', required: The unit of the fee amounts (always `usdt`).
    - `payment_tx` string, nullable
    - `purchase_tx` string, nullable
    - `failure_reason` string, nullable: Why the order ended where it did, or where it is stuck. Null otherwise. TERMINAL — `underpaid` / `overpaid` / `wrong_currency` (→ `failed`, your funds reversed to you), `undeliverable` (→ `reversed`, your funds reversed to you — the goods could not be delivered, so **you have your money back**), or `expired` (no payment arrived within the window). A payment that still arrives once the order reads `expired` is reversed to the sender (unless it is below the dust threshold); the order stays `expired` and `reversal_tx` carries the reference of the first such reversal. `no_memo` / `wrong_memo`: no longer set. A payment with a missing or unrecognised memo names no order, so it is reversed to its sender and no order changes because of it; an order is never matched to it by amount. Orders failed earlier may still carry these values. `wrong_currency`: the payment named this order but arrived in the other asset than `payment_currency` — for example USDT sent to a `ton` order. It is not converted: it is reversed to the sender in the asset received (reference in `reversal_tx`). The order is normally marked `failed` with `wrong_currency` once the payment has been returned. If that step cannot complete, the order expires and the payment is still returned (reference in the expired order's `reversal_tx`). IN PROGRESS, on a `held` order — the order has not finished and no action is needed from you unless a value says otherwise: `fulfilment_retrying`: delivery did not succeed on the first attempt and we are still working on it. `recipient_unreachable`: the recipient could not be reached, and we are retrying. This is the one worth checking on your side — confirm the username is right and can receive the item. `reversal_pending`: the goods could not be delivered and we are still returning your funds; the order reaches `reversed` when that lands. `reversal_unsettled`: the return could NOT be delivered to you (your address kept refusing it), so **you do NOT have your money back** and a person is settling it by hand. Note the direction on the last one: `undeliverable` is about the GOODS and ends with you made whole; `reversal_unsettled` is about the RETURN and does not. See **Reversals & delivery**.
    - `reversal_tx` string, nullable: The reference (transaction hash) of a reversal that returned a payment for this order to its sender; `null` while there is none, or when a reversal was confirmed without a reference we can show (contact support); never a placeholder (since 2.1.3). On a `failed` or `reversed` order it is the reversal of your payment. On an `expired` or `cancelled` order it is the first payment that arrived after the order closed and was returned to its sender (`cancelled` since 2.1.3); the status does not change and no webhook is sent for it. See **Reversals & delivery**.
    - `telegram_message` string, nullable: Fragment's verbatim text of the last refusal it gave for this order, present only on `failed` or `reversed` orders; `null` when Fragment never refused it (since 2.3.0). For example "You can buy a minimum of 12,500 stars". `null` on every other status. It is the same text as the order webhook `telegram_message`.
    - `created_at` string, date-time
    - `updated_at` string, date-time
    - `expires_at` string, date-time, nullable: Non-null only while `awaiting_payment`.
  - `next_cursor` string, nullable, required: Pass back as `?cursor=`; null on the last page.

## Other responses

- `400`: Malformed request (`bad_request`): a missing or invalid field, header or query parameter (the `message` names it), a malformed `cursor`, a body that is not valid JSON, or a body nested deeper than 64 levels. Send integer query parameters as plain decimal digits: the pricing, order, giveaway and series routes refuse any other spelling (a sign, decimal point, exponent, hex prefix or surrounding spaces) with a `400` naming the parameter. Fix the request; retrying it unchanged gets the same answer.
- `401`: Missing or invalid `X-Api-Key`.
- `403`: The API key is valid, but the tenant is suspended (for example after `/api_revoke` — run `/api_rotate` in the bot to restore access) or banned, or the product (campaigns, giveaways) is not enabled for it. Products are enabled per tenant on request. A source address blocked at our edge gets `403 forbidden` with the message `source blocked`, whatever the key.
- `429`: A rate limit was reached (`rate_limited`). See **Rate limits** in the overview. Which `429`s carry headers: - **Per-minute buckets** — the general request budget, the order-lifecycle bucket, the pricing/recipient-check probe cap (60 req/min), the campaign bucket, and your giveaway read, write, quote and attestation buckets. Every answer metered by one carries `RateLimit-Policy`, `RateLimit-Limit`, `RateLimit-Remaining` and `RateLimit-Reset` (seconds); a `429` adds `Retry-After` (seconds). - **Caps, no `Retry-After`** — the daily intake cap and the daily order cap on `POST /v1/orders` (UTC day), the per-recipient guard on unfinished orders to one `@username`, and the cap on live campaigns. These `429`s carry no `Retry-After`, but they do carry the `RateLimit-*` headers of the per-minute bucket the request passed (often with `RateLimit-Remaining` above zero): branch on `Retry-After`, never on `RateLimit-Remaining`. Back off; the daily intake and order caps clear at the next UTC midnight. - **The daily budget of ineligible-recipient refusals** on `POST /v1/orders` — its `429` carries `Retry-After` and `error.retry_after`, both the seconds until 00:00 UTC, when the budget resets, plus the `RateLimit-*` headers of the order bucket it passed. `error.retry_after` is what sets it apart from the other `429`s. While the budget's places are held only by your own checks still running, the create answers a short `429` instead: `Retry-After` of a few seconds and no `error.retry_after` — retry after `Retry-After`. - **The giveaway quote budget shared by all tenants** — its `429` carries `Retry-After` (seconds until the shared budget reopens) and the `RateLimit-*` headers of your own quote bucket, never figures for the shared budget. - **Edge throttle** — a coarse per-IP throttle in front of the API answers the same envelope with `Retry-After: 1` and no `RateLimit-*` headers.

## Changes

- **2026-10-31** `9f589c4dd26b`: 93 warning, 34 info
  - added the new `antibot_enforce_unavailable` enum value to the `error/code` response property for the response status `400`
  - added the new `antibot_enforce_unavailable` enum value to the `error/code` response property for the response status `401`
  - added the new `antibot_enforce_unavailable` enum value to the `error/code` response property for the response status `429`
  - added the new `attestation_limit_reached` enum value to the `error/code` response property for the response status `400`
  - …123 more
- **2026-09-28** `6ebdc05ab41d`: 2 info
  - added the required property `orders/items/payment` to the response with the `200` status
  - added the required property `orders/items/payment_currency` to the response with the `200` status

[Operation history](https://skmtc.dev/mystars/apis/mystars-faas-fulfilment-api/changes/v1/orders/get.md)

---

[API](https://skmtc.dev/mystars/apis/mystars-faas-fulfilment-api.md) - [All operations](https://skmtc.dev/mystars/apis/mystars-faas-fulfilment-api/llms.txt) - [OpenAPI document](https://skmtc.dev/mystars/apis/mystars-faas-fulfilment-api/revisions/b6cdc8aff8c2?raw)
