{
  "info": {
    "name": "Pay Sef API 1.0",
    "description": "The Pay Sef partner API. Authenticate with an API key (`pays_test_…` or `pays_live_…`) as a Bearer token. Money is whole kobo everywhere (₦1 = 100 kobo), in fields named `*_kobo`; rates are basis points in fields named `*_bp` (250 = 2.5%). Every response uses the envelope `{success, status_code, message, data, meta}`; errors add `error_code`. Request bodies can be up to 32 KB. A key only works on the endpoints listed here; any other endpoint answers `403 FORBIDDEN`.\n\nTwo addresses, one API. Build and test against the sandbox address, `https://sandbox.paysef.com/api/v1`, with a test key. It takes test keys only: a live key or a call with no key answers `403 SANDBOX_TEST_KEY_REQUIRED`. To go live, change both the address to `https://api.paysef.com/api/v1` and the key to your live key. The key, not the address, decides whether an order is a test, so test keys keep working on `api.paysef.com` too.\n\nClient contract. Responses look the same whichever network delivered the order. Branch on `error_code` and `customer_status`, never on `message` or a display label. Lists put paging in `meta.pagination`, as a cursor page `{limit, has_more, next_cursor, prev_cursor}`. Timestamps are UTC ISO 8601 ending in `Z`. Keys are only ever added: ignore keys you do not know, and a key marked deprecated stays until integrations have moved off it. New endpoints answer `201` for a create, `202` with `poll_url` for work that finishes later, and `200` otherwise; existing endpoints keep the codes they have. Guides: https://paysef.com/docs\n\nSet the `apiKey` collection variable to your pays_test_ key first. Docs: https://paysef.com/docs",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "auth": {
    "type": "bearer",
    "bearer": [
      {
        "key": "token",
        "value": "{{apiKey}}",
        "type": "string"
      }
    ]
  },
  "variable": [
    {
      "key": "baseUrl",
      "value": "https://api.paysef.com/api/v1"
    },
    {
      "key": "apiKey",
      "value": "",
      "description": "Your pays_test_ or pays_live_ key. Never share or commit it."
    }
  ],
  "item": [
    {
      "name": "Services and products",
      "item": [
        {
          "name": "List services",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/services",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "services"
              ]
            },
            "description": "Returns the services that are currently available, sorted by name. The `service_code` (or `id`) is what you pass to [List products](#list-products).\n\nThis endpoint also works without a key on `api.paysef.com` (not on the sandbox address), at standard prices. Limited to 120 requests per minute per IP address; cache the result."
          }
        },
        {
          "name": "List products and prices",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/services/:service/products?",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "services",
                ":service",
                "products"
              ],
              "query": [
                {
                  "key": "network",
                  "value": "MTN",
                  "description": "Only products for this network or biller group, e.g. `MTN` (case-insensitive).",
                  "disabled": true
                },
                {
                  "key": "type",
                  "value": "",
                  "description": "Only products of this type. For data: `SME`, `GIFTING`, `CORPORATE`, `AWOOF`, `DATA_SHARE` or `DIRECT` (a plan with no type of its own is `SME`). Ignored for airtime.",
                  "disabled": true
                }
              ],
              "variable": [
                {
                  "key": "service",
                  "value": "DATA",
                  "description": "A `service_code` such as `DATA` (any case) or the service `id`."
                }
              ]
            },
            "description": "Returns what you can buy in a service, priced for your account type (standard for Customer accounts, wholesale for API Partner accounts).\n\n**Airtime** returns networks and their airtime types with a discount in basis points (`discount_bp`); you buy airtime by `network` and `type` with your own amount. **Every other service** returns products with a `sku` and a fixed `selling_price_kobo`. For electricity the product identifies the distribution company; you are charged `amount_kobo × (1 − discount_bp / 10000)`.\n\nPrices and discounts use your account type's rule, falling back to the Customer rule, the same way purchases are charged; the order's `amount_debited_kobo` is always what you paid. A service that is switched off returns an empty list. Limited to 120 requests per minute per IP address and path."
          }
        }
      ]
    },
    {
      "name": "Wallet and transactions",
      "item": [
        {
          "name": "Get wallet balance",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/wallets/me",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "wallets",
                "me"
              ]
            },
            "description": "With a **live** key, returns your Pay Sef wallets; purchases are paid from `main_wallet.available_balance`. With a **test** key, returns your test wallet instead, with `is_test: true` and the balance also at the top level."
          }
        },
        {
          "name": "List transactions",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/transactions?",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "transactions"
              ],
              "query": [
                {
                  "key": "limit",
                  "value": "20",
                  "description": "Number of entries to return. Values outside 1 to 100 are clamped.",
                  "disabled": true
                },
                {
                  "key": "cursor",
                  "value": "",
                  "description": "The `next_cursor` (or `prev_cursor`) from the previous page's `meta.pagination`.",
                  "disabled": true
                },
                {
                  "key": "direction",
                  "value": "",
                  "description": "`prev` for newer entries; anything else means `next` (older).",
                  "disabled": true
                },
                {
                  "key": "type",
                  "value": "",
                  "description": "Only credits or only debits.",
                  "disabled": true
                },
                {
                  "key": "service_category",
                  "value": "",
                  "description": "Only entries for one service, e.g. `AIRTIME` or `DATA` (any case).",
                  "disabled": true
                },
                {
                  "key": "date_from",
                  "value": "",
                  "description": "Only entries on or after this date: `YYYY-MM-DD` or an ISO 8601 timestamp.",
                  "disabled": true
                },
                {
                  "key": "date_to",
                  "value": "",
                  "description": "Only entries up to the end of this date: `YYYY-MM-DD` or an ISO 8601 timestamp. Must not be before `date_from`.",
                  "disabled": true
                },
                {
                  "key": "q",
                  "value": "",
                  "description": "Free-text search in the narration and reference.",
                  "disabled": true
                }
              ]
            },
            "description": "Returns ledger entries (credits and debits) on your **live** wallets, newest first, using cursor pagination. Test-mode orders do not create ledger entries, so they never appear here, even with a test key; use [List orders](/docs/api/orders#list-orders) for those.\n\nEach entry links to what it came from: a purchase carries `order_id`, `order_ref` and `customer_status` (`processing`, `delivered` or `failed`); a wallet top-up carries `deposit_reference`. Entries with no order or deposit leave these keys out. Show `label` (`Purchase`, `Wallet top-up`, `Refund`, …); `type` stays for integrations that already read it."
          }
        },
        {
          "name": "Get a transaction",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/transactions/:id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "transactions",
                ":id"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": "0199f2a4-6c1e-7b3a-9d42-5e8f1a2b3c4d",
                  "description": "The transaction `id` (a UUID) from List transactions."
                }
              ]
            },
            "description": "Returns one ledger entry with the wallet balance before and after it, and the same links as [List transactions](#list-transactions). A purchase adds `customer_status` (`processing`, `delivered` or `failed`, the same values as the order's own `customer_status`); branch on that. `order_status` is a display label kept for older integrations and is deprecated.\n\nA wallet top-up adds `deposit`: `deposit_reference` (the reference support asks for), `paid_at` (when the payer's bank made the transfer, UTC), `gross_amount_kobo`, `fee_kobo`, `net_amount_kobo` (equal to the entry's `amount_kobo`, and `gross = fee + net`), `gateway_reference`, `session_id`, and `sender` (`{name, bank_name, account_last4}`, with the name shortened to `Ibrahim A.`, or `null` when the bank did not say who paid)."
          }
        }
      ]
    },
    {
      "name": "Airtime",
      "item": [
        {
          "name": "Buy airtime",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}",
                "description": "Unique per order. Reuse the same value when retrying the same order."
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/vtu/airtime/purchase",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "vtu",
                "airtime",
                "purchase"
              ]
            },
            "description": "Sends airtime of any amount from ₦100 to ₦1,000,000 (`amount_kobo` 10000 to 100000000) to one number. Get the networks and `type` values from [List products](/docs/api/catalog#list-products) with service `AIRTIME`. You pay `amount_kobo` less the discount for your account type; the response's `amount_debited_kobo` is the exact charge.\n\nThe phone number's network is not checked against `network` for single purchases, so validate it on your side. A `network` and `type` pair that is not in the catalogue is refused with `400`: \"GLO GIFTING airtime is not available. Choose another network or type.\"",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"network\": \"MTN\",\n  \"type\": \"VTU\",\n  \"phone_number\": \"08031234560\",\n  \"amount_kobo\": 50000,\n  \"reference\": \"your-order-1042\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Buy airtime in bulk",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}",
                "description": "Unique per order. Reuse the same value when retrying the same order."
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/vtu/airtime/bulk",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "vtu",
                "airtime",
                "bulk"
              ]
            },
            "description": "Sends airtime to up to **50** numbers in one request. The total is reserved at once and the orders are processed in the background; the response is always `202`. Follow progress with [Get a bulk batch](/docs/api/orders#get-bulk-batch) and read each item's `status`, or wait for one webhook per order.\n\nEvery number must belong to `network` (checked by its prefix); for a number ported to another network, set `network` on that line. A number repeated in the batch is bought once. Every line is checked before anything is reserved: a bad line (not a Nigerian number, wrong network, below ₦100, or the same product sent to that number within your duplicate-guard window) is reported in `400 BULK_LINES_INVALID`, with one `details` entry per line, and nothing is charged. The 50-number limit counts numbers after repeats are merged. Bulk requests do not take `reference` or `callback_url`; webhooks go to your account webhook URL. Sending the same Idempotency-Key again returns the existing batch with `202`.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"network\": \"MTN\",\n  \"type\": \"VTU\",\n  \"amount_kobo\": 50000,\n  \"recipients\": [\n    {\n      \"phone_number\": \"08031112220\"\n    },\n    {\n      \"phone_number\": \"08061112224\",\n      \"amount_kobo\": 100000\n    },\n    {\n      \"phone_number\": \"08021112228\",\n      \"network\": \"AIRTEL\"\n    }\n  ]\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        }
      ]
    },
    {
      "name": "Data",
      "item": [
        {
          "name": "Buy data",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}",
                "description": "Unique per order. Reuse the same value when retrying the same order."
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/vtu/data/purchase",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "vtu",
                "data",
                "purchase"
              ]
            },
            "description": "Buys one data bundle for one number. Find the `sku` with [List products](/docs/api/catalog#list-products) for service `DATA`, for example `?network=MTN&type=SME`. The price is the product's `selling_price_kobo`.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"sku\": \"DATA_MTN_SME_1GB\",\n  \"phone_number\": \"08031234560\",\n  \"reference\": \"your-order-1043\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Buy data in bulk",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}",
                "description": "Unique per order. Reuse the same value when retrying the same order."
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/vtu/data/bulk",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "vtu",
                "data",
                "bulk"
              ]
            },
            "description": "Buys the same bundle for up to **50** numbers. Every number must belong to the bundle's network (checked by its prefix); for a number ported to that network, send `{ \"phone_number\": \"…\", \"ported\": true }` instead of a plain string. A number repeated in the batch is bought once. Bad lines are reported together in `400 BULK_LINES_INVALID` and nothing is charged. The orders are processed in the background and the response is always `202`; see [Get a bulk batch](/docs/api/orders#get-bulk-batch).",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"sku\": \"DATA_MTN_SME_1GB\",\n  \"phone_numbers\": [\n    \"08031112220\",\n    \"08061112224\",\n    {\n      \"phone_number\": \"08021112228\",\n      \"ported\": true\n    }\n  ]\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        }
      ]
    },
    {
      "name": "Cable TV",
      "item": [
        {
          "name": "Validate a smartcard",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/vtu/cable/validate",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "vtu",
                "cable",
                "validate"
              ]
            },
            "description": "Checks a smartcard or IUC number with the cable provider and returns the customer's name, so your customer can confirm it before paying. Send the `sku` of the bouquet you are about to buy (the same value you send to [Pay for a cable TV bouquet](#purchase-cable)); Pay Sef finds the TV provider from it. A well-formed request always returns `200`; check `is_valid`. No Idempotency-Key is needed.\n\nA verified smartcard also carries, when the network reports them, `current_bouquet`, `due_date` (usually `YYYY-MM-DD`) and `renewal_amount_kobo` (what renewing the current bouquet costs); each is `null` when unknown. `can_renew` is `true` only when the smartcard verified and `renewal_amount_kobo` is known. Offer \"renew\" on this flag: a `renew` purchase without a known renewal price answers `400`.\n\nThe old `biller` field is refused with `400`: \"Use sku instead of biller (the sku of the bouquet you will buy).\"",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"sku\": \"CABLE_DSTV_COMPACT\",\n  \"smartcard_number\": \"7032345670\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Pay for a cable TV bouquet",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}",
                "description": "Unique per order. Reuse the same value when retrying the same order."
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/vtu/cable/purchase",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "vtu",
                "cable",
                "purchase"
              ]
            },
            "description": "Pays for a bouquet on a smartcard. Find the bouquet `sku` with [List products](/docs/api/catalog#list-products) for service `CABLE_TV`. Validate the smartcard first so your customer can confirm the name.\n\n`subscription_type` is optional. `change` buys the bouquet in `sku`; `renew` renews the decoder's current bouquet at that plan's price, so send it only when [Validate a smartcard](#validate-smartcard) returned `can_renew: true`. When the network's renewal price differs from the plan's, `renew` answers `400 VALIDATION_ERROR` naming both amounts and nothing is held. Left out, the bouquet in `sku` is bought.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"sku\": \"CABLE_DSTV_COMPACT\",\n  \"smartcard_number\": \"7032345670\",\n  \"reference\": \"your-order-1044\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        }
      ]
    },
    {
      "name": "Electricity",
      "item": [
        {
          "name": "Validate a meter",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/vtu/electricity/validate",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "vtu",
                "electricity",
                "validate"
              ]
            },
            "description": "Checks a prepaid meter number with its distribution company and returns the customer's name. Send the `sku` of the electricity plan you are about to buy (the same value you send to [Buy an electricity token](#purchase-electricity)); Pay Sef finds the distribution company from it. Postpaid meters, and meters whose type the distribution company does not report, return `is_valid: false`; only prepaid electricity is supported. A well-formed request always returns `200`; check `is_valid`.\n\nThe old `biller` field is refused with `400`: \"Use sku instead of biller (the sku of the electricity plan you will buy).\"",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"sku\": \"ELECTRICITY_IKEDC_PREPAID\",\n  \"meter_number\": \"45012345670\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Buy an electricity token",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}",
                "description": "Unique per order. Reuse the same value when retrying the same order."
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/vtu/electricity/purchase",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "vtu",
                "electricity",
                "purchase"
              ]
            },
            "description": "Buys a prepaid token for ₦100 to ₦1,000,000 (`amount_kobo` 10000 to 100000000; your distribution company may set its own minimum). Use the `sku` of the distribution company from [List products](/docs/api/catalog#list-products) for service `ELECTRICITY`. The token is in `token` on the order once it succeeds: the token itself, with no label in front, the same whichever network delivered it. Format it for display however suits your customers.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"sku\": \"ELECTRICITY_IKEDC_PREPAID\",\n  \"meter_number\": \"45012345670\",\n  \"amount_kobo\": 100000,\n  \"reference\": \"your-order-1045\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        }
      ]
    },
    {
      "name": "Exam PINs",
      "item": [
        {
          "name": "Validate a JAMB profile ID",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/vtu/exam/validate",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "vtu",
                "exam",
                "validate"
              ]
            },
            "description": "Checks a candidate's JAMB profile ID with the exam body and returns the candidate's name, so your customer can confirm it before paying. Only plans whose PIN is tied to a candidate profile (JAMB UTME and Direct Entry) can be validated. Send the `sku` of the plan you are about to buy (the same value you send to [Buy an exam PIN](#purchase-exam-pin)); the exam body checks the profile against that exam type. Spaces in `profile_id` are removed before it is checked. A well-formed request always returns `200`; check `is_valid`. No Idempotency-Key is needed.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"sku\": \"EXAM_JAMB_UTME_PIN\",\n  \"profile_id\": \"1234567890\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Buy an exam PIN",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}",
                "description": "Unique per order. Reuse the same value when retrying the same order."
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/vtu/exam/purchase",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "vtu",
                "exam",
                "purchase"
              ]
            },
            "description": "Buys one exam PIN. Find the `sku` with [List products](/docs/api/catalog#list-products) for service `EXAM_PIN`. `phone_number` is your customer's number and becomes the order's recipient. In live mode the PIN and serial number are returned together in `token`, as the provider sends them.\n\nThe duplicate guard applies per phone number and product, so a second PIN of the same exam for the same phone number within the window is refused; lower the window in Developer settings if you need that.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"sku\": \"EXAM_WAEC_PIN\",\n  \"phone_number\": \"08031234560\",\n  \"reference\": \"your-order-1046\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        }
      ]
    },
    {
      "name": "Orders and bulk status",
      "item": [
        {
          "name": "List orders",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/vtu/orders?",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "vtu",
                "orders"
              ],
              "query": [
                {
                  "key": "limit",
                  "value": "20",
                  "description": "Number of orders to return.",
                  "disabled": true
                },
                {
                  "key": "cursor",
                  "value": "",
                  "description": "The `next_cursor` from the previous page's `meta.pagination`. Leave it out for the first page; stop when `has_more` is false. There is no `offset`.",
                  "disabled": true
                },
                {
                  "key": "status",
                  "value": "",
                  "description": "Only orders with this status (any case).",
                  "disabled": true
                },
                {
                  "key": "reference",
                  "value": "",
                  "description": "Only the order with this `order_ref` or your `reference`.",
                  "disabled": true
                }
              ]
            },
            "description": "Returns your most recent orders, newest first. A test key lists test orders and a live key lists live orders. Use `status` and `reference` to find specific orders; to look up one order, use [Get an order](#get-order)."
          }
        },
        {
          "name": "Get an order",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/vtu/orders/:id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "vtu",
                "orders",
                ":id"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": "VTU-20261017-9A8B7C6D5E4F",
                  "description": "`order_id`, `order_ref` or your `reference`."
                }
              ]
            },
            "description": "Returns the current state of one order. `{id}` can be the `order_id`, the `order_ref` or your own `reference`. Use this (or [Verify an order](#verify-order)) to resolve a pending order. It finds the order whichever of your keys (test or live) created it; check `is_test`."
          }
        },
        {
          "name": "Verify an order",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/vtu/orders/verify/:reference",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "vtu",
                "orders",
                "verify",
                ":reference"
              ],
              "variable": [
                {
                  "key": "reference",
                  "value": "your-order-1042",
                  "description": "Your `reference`, or the `order_ref`."
                }
              ]
            },
            "description": "Looks up an order by your own `reference` (or its `order_ref`) and returns its current state. This is the requery endpoint: call it after a timeout or a `202` to learn whether an order exists and how it ended, **before** you consider buying again. Like Get an order, it finds test and live orders with either key."
          }
        },
        {
          "name": "Get a bulk batch",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/vtu/bulk/:batch_id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "vtu",
                "bulk",
                ":batch_id"
              ],
              "variable": [
                {
                  "key": "batch_id",
                  "value": "0199f2b0-1a2b-7c3d-8e4f-5a6b7c8d9e0f",
                  "description": "The `batch_id` from the bulk purchase response."
                }
              ]
            },
            "description": "Returns a bulk batch and every order in it. The batch-level `status` and counts are recomputed each time an order in it finishes; read **each item's `status`** (or `customer_status`) to know what was delivered to whom. `items` is left out when the batch has no orders."
          }
        }
      ]
    }
  ]
}
