Queek docs
App capabilities

Commerce

Commerce capabilities for Queek apps: orders, inventory, customers, discounts and coupons, loyalty and gift cards, payments, shipping and fulfilment, tax, markets and translations, data sync and sales channels.

Capabilities for orders, inventory, customers, discounts and coupons, loyalty and gift cards, payments, shipping and fulfilment, tax, markets and translations, data sync and sales channels. 24 capabilities on this page.

Each entry says what the capability does, what is worth knowing about it, and how you reach it. Scope names are explained on Merchant API scopes; How to read this catalogue explains the layout.

Orders

Invoices and payment documents

Available

Invoices is a built-in app a store installs from its Apps window: sequential per-store numbers, line items with several named taxes, instalments, recorded payments, an invoice of an order in one click, a customer page and PDF in English, French and Arabic, credit notes, payment reminders and a customer notice that they have paid. Apps can list and read the store’s invoices, draft, edit and delete a draft, issue it, raise an invoice from an order, record and void a payment, void or credit an invoice, and record the reference a tax authority gave an issued one, through the Merchant API once the store has installed Invoices (a store without it answers 403 app_not_installed); the store’s invoices/create, invoices/update and invoices/delete webhooks tell an app what changed.

Good to know:

  • Issuing takes the store’s next invoice number and freezes the document (POST invoices/{invoice}/issue needs merchant-invoices-update; POST orders/{order}/invoice raises the order’s invoice already issued and numbered under merchant-invoices-create alone), and the number is never reused. A draft is edited with PATCH invoices/{invoice} and deleted with DELETE invoices/{invoice} (merchant-invoices-delete); an issued invoice only takes a new due_at (any other field it takes answers 409 invoice_locked, and a void invoice, a credit note or an order-backed invoice takes nothing). A mistake after issuing is corrected with POST invoices/{invoice}/void (merchant-invoices-void, with a reason: refused while a payment is live, once a credit note exists or a tax authority reference is recorded, and for an order-backed invoice whose order took a payment) or with a credit note.

  • No part credit notes: POST invoices/{invoice}/credit-notes (merchant-invoices-void) credits the WHOLE invoice, once, and a body naming an amount or lines answers 422. A credit note records the correction only: it moves no money and voids or refunds no payment.

  • POST invoices/{invoice}/fiscal-reference records the reference a tax authority gave an issued invoice, under its own scope merchant-invoices-fiscal-reference (merchant-invoices-update does not carry it). It is written once and never changes: a draft or a void invoice answers 409 invoice_state_conflict with error.reason not_issued, and an invoice that already has a reference answers 409 with error.reason fiscal_reference_set, so correct a wrong reference with a credit note. The reference reads as fiscal_reference on the invoice and fires invoices/update; an optional meta (up to 20 string values) is kept for the merchant’s dashboard and is not returned. The scope puts a legal reference on a customer-facing document, so declaring it needs approval and installed stores must grant it.

  • POST invoices/{invoice}/payments needs an Idempotency-Key and only records money the merchant received; POST invoices/{invoice}/payments/{payment}/void takes a recorded payment back (both need merchant-invoices-record-payment). Nothing moves through Queek, and the payments of an order-backed invoice are the order’s own: take or refund them on the order (the void row answers 404 for one).

  • An app cannot fetch the customer page link, the PDF or a share message, rotate the link or duplicate an invoice, and an invoice has no online payment: the customer link, the order’s pay link, customer payment notices and the merchant’s bank details are never in the object, and the buyer’s name, email and phone read null without merchant-customers-contact-read (the q search, which matches the buyer’s name and phone, is refused with 403 without it).

  • Subscribe to invoices/create, invoices/update and invoices/delete (needs merchant-invoices-read; the payload is the invoice GET invoices/{invoice} returns, and a retry can repeat an event, so apply each event as an upsert keyed by data.id and ignore it only when its updated_at is strictly older than the one you hold (two writes in the same second share a timestamp); call GET invoices/{invoice} when unsure); GET invoices with updated_since reconciles. A credit note sends invoices/create for the note and invoices/update for the invoice. An order-backed invoice that only follows its order’s payments sends no invoices/* event: watch orders/paid and refunds/create, or read GET orders/{order}/invoice. An order cancelled with no payment voids its invoice with no event either (watch orders/cancelled), and a customer’s erasure or the store’s deletion clears buyer fields with none (customers/redact is the signal).

  • An order-backed invoice follows its order only when it is read: until then updated_since and the status filter do not see an order payment (the row keeps its old status and updated_at), and reading it refreshes it, which moves its updated_at.

  • Routes: GET api/v1/merchant/invoices, GET api/v1/merchant/invoices/{invoice}, GET api/v1/merchant/orders/{order}/invoice, POST api/v1/merchant/invoices, PATCH api/v1/merchant/invoices/{invoice}, DELETE api/v1/merchant/invoices/{invoice}, POST api/v1/merchant/invoices/{invoice}/issue, POST api/v1/merchant/orders/{order}/invoice, POST api/v1/merchant/invoices/{invoice}/payments, POST api/v1/merchant/invoices/{invoice}/payments/{payment}/void, POST api/v1/merchant/invoices/{invoice}/void, POST api/v1/merchant/invoices/{invoice}/credit-notes, POST api/v1/merchant/invoices/{invoice}/fiscal-reference

  • Scopes: merchant-invoices-read, merchant-invoices-create, merchant-invoices-update, merchant-invoices-delete, merchant-invoices-void, merchant-invoices-record-payment, merchant-invoices-fiscal-reference

  • Webhooks: invoices/create, invoices/update, invoices/delete

Orders read, create, import and status

Available

Apps can list and read orders in the same shape the order webhooks send, create an order for a customer that waits for payment (priced by the same engine the dashboard uses), import orders already charged elsewhere idempotently, move orders through the status machine including payment approval and rider assignment, and patch shipment and extension fields. Imports take their source attribution from the authenticated app installation.

Good to know:

  • Imports accept only orders already charged outside Queek.

  • An import claims no stock unless it says so (inventory_behavior, default bypass: no hold, no stock row, nothing at completion). decrement takes the stock at import with a sale row, obeying the store’s tracking and shortfall policy (a short line under block refuses the import with 409 conflict, data.reason insufficient_stock; stock never goes below zero, so there is no ignore-policy mode). reserve holds it while the order is open and takes it at completion, like a Queek order. The response carries meta.inventory_behavior. A re-send with the same Idempotency-Key and a changed body answers 409 idempotency_key_reuse; without a key, or once the key expired (24 hours), it returns the first order unchanged with the first import’s inventory_behavior.

  • A created order is a real order that waits for payment: by bank transfer for in-store or pickup orders, or online for any order (a delivery order must be paid online, and an online order needs a customer with a Queek account). There is no separate draft record, no payment link in the response, and no way to create it already paid. Cash, wallet and split payments are not offered.

  • Created orders are for pickup, in-store or delivery with one price from the engine: an app cannot set a price, a total or a status. The only price input is one optional discount: a store-funded discount_amount or a coupon_code of the store, not both. Creation takes no metafields (patch them afterwards).

  • Fulfilment orders are not available.

  • Only recorded payment and Queek wallet-refund transactions are readable.

  • Order-level attributes a shopper’s checkout sends (up to 50 keys, values up to 500 characters) are kept and returned as the order’s metadata, with contact keys removed for a caller without the customer contact grant. It is the same field a PATCH replaces whole.

  • Merchant-collected, offline and provider-side refunds have no recorded refund row; a refund Queek pays by hand is a refund of type manual, pending until Queek has paid it.

  • Payouts are read as settlement batches and as ledger rows (withdrawals, rider settlements and delivery charges) through their own scopes (see Payout and settlement reads).

  • A generic app installation takes its source from its key and omits channel; a supplied channel is rejected with 422.

  • An installed legacy marketplace app must send a channel matching its own slug, or it receives 422.

  • An import made with a merchant’s own key must send a channel and may choose either legacy slug; the slugs are not reserved.

  • Order lines carry variant_id (the variant p_id, null for a product without variants or a deleted variant), variant_uid and sku (the variant’s, or the product’s for a line without a variant), so sales per variant never need a match on variant_title; the sku is the store’s current one, not a snapshot.

  • The order list narrows to a creation window with from_date and to_date (whole days, YYYY-MM-DD) or date_range (today, this_week, this_month), counted on the store’s own calendar (the store’s timezone); they combine with updated_after and every other filter.

  • An import’s delivery_fee and discount are required (send 0.00 for none). On a dev store its placed_at becomes the order’s created_at (updated_at stays the import time, so updated_after polling still sees it) and must be within the last 120 days, the time a dev store keeps imported and generated test-data orders (older is 422; other dev-store orders are pruned at 30 days). On a live store the order is recorded now and placed_at is kept as its order date.

  • Routes: GET api/v1/merchant/orders, POST api/v1/merchant/orders, GET api/v1/merchant/orders/{order}, POST api/v1/merchant/orders/import, PATCH api/v1/merchant/orders/{order}, PATCH api/v1/merchant/orders/{order}/shipment, POST api/v1/merchant/orders/{order}/status, POST api/v1/merchant/orders/{order}/assign-rider

  • Scopes: merchant-orders-read, merchant-orders-create, merchant-orders-import, merchant-orders-update, merchant-orders-status-update

Returns

Available

Apps can record, list and read a store’s returns and move them through their life: a return of one or more order lines is requested, approved or declined, goods are received (and put back on the shelf), and it is closed or cancelled. A return holds no money: the customer is refunded with the order refund. Apps are told when a return is recorded or changes (returns/create, returns/update). A customer can also ask for a return from their account on the store, when the store takes requests online, and is emailed when it is received, approved or declined; the store decides every request. The merchant dashboard shows the same returns on the order and in a Returns list and holds the store’s return rules; there is no exchange.

Good to know:

  • A return can be recorded only on an order that was delivered, completed or served (or has a completion time) and was not cancelled or rejected (422 order_not_returnable otherwise), for lines of that order and no more units than GET orders/{order}/returnable shows (422 return_line_invalid). It starts requested (or open when the store has already agreed) and moves requested to open, declined or cancelled, open to closed or cancelled and closed back to open (POST returns/{return}/reopen); any other move answers 409 return_transition_invalid, and a return that already received units is closed, not cancelled.

  • POST returns/{return}/receive needs an Idempotency-Key and merchant-returns-update. Received units go back on the shelf unless restock is false, only for tracked stock the order actually took and never more than the shelf is still missing; an untracked or digital product restocks 0 and the receive still succeeds (the line’s restocked_quantity says what went back). Per-location restock is not offered.

  • A return holds no money and creates no refund: refund the customer with POST orders/{order}/refunds (merchant-orders-refund-create). A refund of a line a return covers does not put it back on the shelf unless it asks to, and never above what the return leaves, so a returned unit is never restocked twice. A closed return can be reopened (POST returns/{return}/reopen, merchant-returns-update); a declined or cancelled return is final. GET orders/{order}/refund-suggestion (merchant-orders-read; naming a return also needs merchant-returns-read, else 403 insufficient_scope) answers the amount a refund of some lines, or of the units a return received, would give back, computed by Queek from what the customer paid: send it as the refund amount instead of working it out. It reads only, never refunds, and answers a null amount with a reason wherever the refund itself would be refused or the order’s figures cannot be rebuilt to the cent.

  • The customer’s own words (customer_note) are returned only to a caller that holds merchant-customers-contact-read, and the store’s private note is never returned to a key or an app (it is for a dashboard session only). decline_reason and customer_message (what the store told the customer when it approved or declined) are not masked: every caller holding merchant-returns-read gets them, and they are sent in the returns/* webhook payload; only customer_note is masked. There is no exchange, no return label and no return fee.

  • A customer asks for a return from their signed-in account on the store only while the store’s return rules have online requests on, for an order placed on the store’s own site or channel (not a Queek marketplace or point-of-sale sale) that was delivered or completed: it arrives as a requested return (returns/create, source storefront) that the store approves or declines, and asking refunds and restocks nothing. The customer is emailed when it is received, approved and declined, with the store’s customer_message, for these requests only, never for a return an app, a key or the dashboard records. The return rules (window, accepted reasons, final sale by product) are set in the merchant dashboard only: no Merchant API row or app reads or writes them. Each change is a dated version that never makes an earlier order’s rules less generous, and the statutory minimum periods of the store’s country lift the window and set final sale aside where the law gives the customer those rights.

  • Subscribe to returns/create and returns/update (needs merchant-returns-read; one event per recorded return and per change, including a receive and a refund made through the return). The payload is the return GET returns/{return} gives a caller without merchant-customers-contact-read, so it never carries customer_note or the store’s note, and the installation whose key made the change is not sent its own event. A retry can repeat an event and two events can arrive out of order: dedupe on the event id, apply each event as an upsert keyed by data.id, and keep the one with the newer updated_at (whole seconds); when two events of one return carry the same updated_at (two changes in the same second) their order is not known, so call GET returns/{return} for the current state.

  • Routes: GET api/v1/merchant/returns, GET api/v1/merchant/returns/{return}, GET api/v1/merchant/orders/{order}/returnable, POST api/v1/merchant/returns, POST api/v1/merchant/returns/{return}/approve, POST api/v1/merchant/returns/{return}/decline, POST api/v1/merchant/returns/{return}/cancel, POST api/v1/merchant/returns/{return}/close, POST api/v1/merchant/returns/{return}/reopen, POST api/v1/merchant/returns/{return}/receive, GET api/v1/merchant/orders/{order}/refund-suggestion

  • Scopes: merchant-returns-read, merchant-returns-create, merchant-returns-update

  • Webhooks: returns/create, returns/update

Inventory

Inventory, purchase orders and stock alerts

Available

Apps can read stock levels per store location, make audited set or delta adjustments at a named location, list, create and update suppliers, create and read purchase orders, receive goods against them (which adds stock), and list low-stock and out-of-stock products through the Merchant API. A purchase order line can name the variant it is for. Apps cannot list, create or change locations.

Good to know:

  • Stock is read and adjusted per location: levels list each location’s quantity and what open orders hold there, and an adjustment takes an optional location (its number); left out, it changes the product’s online total. Apps cannot list, create or re-route locations: the location number comes from the merchant.

  • A level adjustment changes one item per call; only bulk restock handles several products, and it skips products with variants.

  • A purchase order line names a product and, optionally, a variant (items[].variant, its p_id): one line per product and variant. A line with a variant receives into that variant; a product-level line names the variant at receive (items[].variant), required when the product has active variants (422 variant_required, nothing received). Receipt lines carry the variant the goods went to.

  • Receiving needs an Idempotency-Key header. It records the ordered unit cost on the receipt but never changes the product’s own cost price.

  • Apps create and change suppliers (POST suppliers, PATCH suppliers/{supplier}: name, contact, email, phone, address, active) but cannot delete them or write the merchant’s own notes and custom data. A supplier has no lead time or minimum order field. Suppliers and purchase orders have no short numeric id, only an opaque one.

  • A purchase order cannot be edited or deleted; the changes are marking a DRAFT as ordered (POST purchase-orders/{po}/order, cannot be undone), cancelling a DRAFT (POST purchase-orders/{po}/cancel), receiving goods (receiving a draft marks it ordered first) and closing an ORDERED or PARTIAL order short (POST purchase-orders/{po}/close: status closed, what was received stays, nothing more can be received; closing an order that received nothing moves no stock, like a cancel). Any other status change answers 409 conflict; every change is written to the activity log.

  • The same product and variant twice is a 422 on items.{index}.product. unit_cost may be left out: the line then takes the variant’s cost price, else the product’s, else 0. Every received line writes a stock adjustment of type purchase_order_received (positive quantity_change, variant scope, reason_code null), readable at GET inventory/adjustments. unit_cost accepts a string or a number; responses are strings. An inventory_levels/update event for it carries reason unknown.

  • Suppliers and purchase orders are a plan feature of Starter and up (the lower paid plans do not carry it), and every write also needs the store's inventory tracking not to be disabled, because a purchase order receives stock into it. A store below that plan answers 403 subscription_feature_locked (data.feature_key names purchase_orders or supplier_management); a store on the plan with inventory tracking disabled answers 409 with error_code inventory_tracking_required, and nothing changes. Reading suppliers and purchase orders stays open on every plan, so history survives a downgrade. A key or app still needs the matching scope, and staff the matching permission.

  • There are no forecasts or reorder points.

  • Adjustments do not check open-order reservations.

  • Routes: POST api/v1/merchant/inventory/adjustments, GET api/v1/merchant/inventory/levels, POST api/v1/merchant/inventory/levels/adjustments, GET api/v1/merchant/inventory/low-stock, GET api/v1/merchant/inventory/out-of-stock, GET api/v1/merchant/suppliers, GET api/v1/merchant/purchase-orders, GET api/v1/merchant/purchase-orders/{po}, POST api/v1/merchant/purchase-orders, POST api/v1/merchant/purchase-orders/{po}/receive, POST api/v1/merchant/purchase-orders/{po}/cancel, POST api/v1/merchant/purchase-orders/{po}/order, POST api/v1/merchant/purchase-orders/{po}/close, POST api/v1/merchant/suppliers, PATCH api/v1/merchant/suppliers/{supplier}

  • Scopes: merchant-inventory-read, merchant-suppliers-read, merchant-purchase_orders-read, merchant-purchase_orders-detail, merchant-purchase_orders-create, merchant-purchase_orders-update

Customers

Customers and followers

Available

List customers and followers with cursor pagination, each carrying its tags and filterable with the tag parameter; campaign audience reads can include non-buyers. Contact fields and email/SMS marketing consent state require the review-protected contact scope.

Good to know:

  • Use audience=campaign to include non-buyers; this mode requires merchant-customers-contact-read. Poll this audience to discover new subscribers. not_opted_out means only that the person has not used Queek’s email unsubscribe; it is not permission to send. An import that stores info.marketing_opt_in=false excludes that contact from email campaigns only; SMS reachability is unchanged. sms_marketing_consent.state is not_subscribed until an app reports explicit opt-in; stored unsubscribed state and its consent timestamp remain visible even when the phone is absent or invalid; not_subscribed exposes no hidden ordering timestamp; phone presence and email consent do not imply SMS consent.

  • Routes: GET api/v1/merchant/customers, GET api/v1/merchant/customers/followers, GET api/v1/merchant/customers/{customer}

  • Scopes: merchant-customers-read, merchant-customers-contact-read

Available

Apps can read the campaign audience and email and SMS consent state, update consent for both channels, receive minimal consent events and manage saved customer segments: list, read, create, update and delete them, and preview who a set of rules matches. A previewed customer’s name, email and phone are null without merchant-customers-contact-read. Customers carry the store’s own tags, read on the customer object, replaced with PUT api/v1/merchant/customers/{customer}/tags and matched by a segment rule (tags_any, any of the listed tags); a static segment stays the hand-picked grouping.

Good to know:

  • Customer tags are the store’s own labels: a customer holds at most 250 tags of 255 characters, lowercased and deduplicated, and an app sets at most 100 tags per call, and a tag name is private to its store. Apps read tags on the customer (tags) and in the customers/create and customers/update webhooks with the existing customers read grants, and a segment rule tags_any matches a customer carrying any of the listed tags. PUT api/v1/merchant/customers/{customer}/tags (merchant-customers-update) replaces the whole list: send every tag the customer should keep, and [] clears them. Tags are trimmed, lowercased and deduplicated, and the customer answers them sorted. Two writers at the same moment are last-write-wins, so read the customer, change the list and send the whole list back. customers/update fires only when the list changed. The scope changes customer data, so declaring it needs approval and installed stores must grant it.

  • App-reported consent evidence is not independently verified.

  • An import that stores info.marketing_opt_in=false excludes that contact from email campaigns only; SMS reachability is unchanged.

  • SMS consent is stored only from explicit app or provider reports; there is no WhatsApp consent state.

  • A segment is a saved set of rules (auto) or a hand-picked list of up to 1,000 customers (static). The built-in default segments are not listed; reproduce one with rules.

  • Segments are identified by a UUID and members by customer id. A segment’s stored recipient count is the count at its last save; the preview answers the live count.

  • The customer_ids of a static segment are store customer ids (the p_id from the customer reads), and an update that sends customer_ids replaces the whole member list rather than adding to it.

  • Changing or deleting a segment a campaign uses changes who that campaign reaches at its next send. A saved segment an app creates can be the audience of the merchant’s email or SMS campaigns in the dashboard; the merchant sends them, and an app cannot start a send.

  • The segment scopes are customer-data scopes: declaring them needs approval, and installed stores must grant them.

  • Routes: GET api/v1/merchant/customers, PUT api/v1/merchant/customers/{customer}/tags, POST api/v1/merchant/customers/{customer}/email-marketing-consent, POST api/v1/merchant/customers/{customer}/sms-marketing-consent, GET api/v1/merchant/customer-segments, GET api/v1/merchant/customer-segments/{segment}, POST api/v1/merchant/customer-segments, PATCH api/v1/merchant/customer-segments/{segment}, DELETE api/v1/merchant/customer-segments/{segment}, POST api/v1/merchant/customer-segments/preview

  • Scopes: merchant-customers-read, merchant-customers-contact-read, merchant-customers-consent-update, merchant-customers-sms-consent-update, merchant-customers-update, merchant-customer-segments-read, merchant-customer-segments-create, merchant-customer-segments-update, merchant-customer-segments-delete

  • Webhooks: customers/update, customers_email_marketing_consent/update, customers_marketing_consent/update

Customer wishlists

Available

Shoppers can add, list and remove saved product and variant entries in a store-scoped wishlist through the storefront API, and apps with merchant-customers-detail can read a customer’s list. Only shoppers write, and Queek ships no wishlist page: an app supplies its own shopper interface.

Good to know:

  • One flat list per store customer; no sharing or cross-store lookup.

  • A wishlist holds at most 100 visible items.

  • There are no wishlist events or webhooks: read a customer’s list again to see changes.

  • Merchants and apps can only read; only signed-in shoppers write, through the storefront API.

  • There is no Merchant API or app-proxy write: a wishlist change has to come from the shopper’s own signed-in session.

  • Queek’s hosted storefront has no wishlist page, so the shopper-facing view is the app’s to build.

  • Routes: GET api/v1/client/store/wishlist-items, POST api/v1/client/store/wishlist-items, DELETE api/v1/client/store/wishlist-items/{ref}, GET api/v1/merchant/customers/{customer}/wishlist-items

  • Scopes: merchant-customers-detail

Discounts and coupons

Discounts and coupons create/publish

Available

List, retrieve, create, edit, publish and unpublish discounts; list, create and edit coupons, all through the merchant API.

Good to know:

  • No cart/checkout-time custom logic: created discounts apply through the platform pricing path only.

  • The create and update scopes for discounts and coupons are review-required: a later version of a listed app that adds one is reviewed before release.

  • Routes: PATCH api/v1/merchant/discounts/{discount}, PATCH api/v1/merchant/coupons/{coupon}

  • Scopes: merchant-discounts-create, merchant-coupons-create, merchant-discounts-update, merchant-coupons-update

Shopper coupon redemption on the storefront

Available

The storefront API can apply and remove a discount code on a shopper’s cart, checked against the same rules as checkout, and the cart totals show its effect. A code is consumed only when the order is placed, and no event tells an app that a code was redeemed.

Good to know:

  • Apply requests are throttled to 10 per minute.

  • A code is refused in a market that has its own prices (422 market_coupon_unavailable).

  • Applying a code does not consume it: usage is counted when the order is placed.

  • There is no separate redemption topic: an app learns which code was used from the coupon_code on the paid order, which the order webhook carries too.

  • Routes: POST api/v1/client/store/cart/discounts, DELETE api/v1/client/store/cart/discounts/{code}

Loyalty and gift cards

Loyalty and rewards programmes

Available

An app can run a loyalty or rewards programme with its own points ledger: it earns points from the orders/paid webhook (the order names its customer), reverses them on orders/cancelled and refunds/create, and redeems by creating a single-use coupon code with POST /coupons that the shopper applies on the storefront cart, checked by the same rules as checkout. Shoppers see their balance on the app’s own page, opened from a product-page block link; the signed storefront proxy tells the app who the signed-in shopper is when the app holds the identity grant.

Good to know:

  • Points live in the app’s own database: checkout redeems codes, not points.

  • A code is not tied to one customer: create it with usage_limit 1 and keep it private to the shopper it was issued for.

  • Coupons created through the Merchant API discount the items only, never the delivery fee, and take no cap amount.

  • Creating coupons needs merchant-coupons-create, which is review-required: a version that adds it is reviewed before release, and the merchant approves it at install.

  • A code is refused in a market that has its own prices (422 market_coupon_unavailable).

  • Routes: POST api/v1/merchant/coupons, POST api/v1/client/store/cart/discounts, GET api/v1/client/apps/{appSlug}/{path}

  • Scopes: merchant-coupons-create

  • Webhooks: orders/paid, orders/cancelled, refunds/create

Payments

Refund an order

Available

Merchants and apps with the merchant-orders-refund-create scope can refund an order payment, in full or in part, from the dashboard or with POST /orders/{order}/refunds. The refund follows the original payment: a payment the merchant took offline or collected themselves is recorded only, with no money moved by Queek; a payment on the store’s own gateway account goes back through that account when its provider supports refunds, and is recorded otherwise; a wallet payment goes back to the wallet; a Naira card or bank payment Queek collected through Paystack goes back to the original card or bank. The store’s ledger is debited only for money Queek collected, tracked stock is restocked and the customer is notified. Capture and void are not offered.

Good to know:

  • A refund cannot exceed what was received minus what was already refunded, and it cannot be undone.

  • A recorded refund moves no money: the merchant refunds the customer outside Queek.

  • A provider refund starts pending and ends success or failed: read it from the order’s refunds list or from the refunds/create and orders/updated events. A card refund can take up to 10 business days to reach the customer.

  • Idempotency-Key is required on every refund request.

  • Queek’s own provider refunds cover Naira payments collected through Paystack: a payment Queek collected through another provider or in another currency is refused with 422 refund_provider_unsupported, and a refund below the provider minimum with 422 refund_amount_below_minimum. Other payments are refunded to the wallet or recorded.

  • Capture and void are not offered by design: Queek charges the customer immediately, so there is no authorised-but-uncaptured payment to capture or void.

  • The scope is review-required: a version that adds it is released only after Queek reviews it, and the merchant approves it at install.

  • Routes: POST api/v1/merchant/orders/{order}/refunds

  • Scopes: merchant-orders-refund-create

  • Webhooks: refunds/create, orders/updated

Payout and settlement reads

Available

Apps can read what the store has been paid and what has left it. Released daily seller settlement batches and their order entries need merchant-payout-batches-read. The rest of the ledger needs merchant-payout-ledger-read, a separate grant: bank withdrawals, rider settlements, and the charges for a Queek rider trip or a courier label the store bought. A withdrawal shows its destination bank by name and last four digits only.

Good to know:

  • Payouts are read only: an app cannot start a withdrawal, change a bank account or move money.

  • A withdrawal shows the bank name and the last four digits of the account. The account holder, the full number and the bank code are never returned.

  • A batch is one released day of order settlements. Every other row is read with payout-transactions and its own scope, and has one of five types: withdrawal, rider_settlement, delivery_trip_charge, delivery_trip_charge_reversal or shipping_label_charge.

  • Ledger rows are identified by a UUID, not a short numeric id.

  • Both scopes are available to installed apps only, with merchant approval.

  • Routes: GET api/v1/merchant/payouts, GET api/v1/merchant/payouts/{payout}, GET api/v1/merchant/payout-transactions, GET api/v1/merchant/payout-transactions/{transaction}

  • Scopes: merchant-payout-batches-read, merchant-payout-ledger-read

Run a payment gateway for your own store

Available

A developer who owns a live store can build a private app that is that store’s own payment server: the manifest sets distribution to private, store to the store’s p_id and payment_provider to {contract: custom, name, create_url, verify_url}. Installing it on that store, as its owner, registers the store’s custom payment provider from those addresses. The app pulls its signing secret once with POST /app/payment-provider/signing-secret and then serves the custom payment provider contract, v1: Queek asks it to create a payment and to verify one, signed with that secret. The owner verifies the provider and switches it on in Payments; customers then pay through the app’s server and the money goes to the store.

Good to know:

  • The app is private to one live store the developer owns (not a development store or a template, and not an account that only administers it): it is never listed in the App Store and never reviewed, and no other store can see or install it. When the store changes owner the app is uninstalled from it: its keys stop working and the provider is parked as on any uninstall (a payment already started keeps confirming for the drain window), so the previous owner’s server takes no further payment.

  • A private app is a payment gateway only: it declares no storefront or dashboard extensions, no AI tools and no scope that needs a Queek review.

  • Only the store owner (or a Queek administrator) can install or remove it, whatever role other team members hold, and installing it means accepting that the app’s server takes this store’s customers’ payments. A store that already has a custom payment provider must deactivate it first; Queek never replaces one.

  • Installing does not switch collection on. The owner verifies the provider in Payments (Queek runs a real create and verify against the app’s addresses) and then switches it on, under the same gates as a custom payment provider: a plan that includes collecting into your own account, the identity verification tier Queek asks for it, a store in Nigeria, and a passing verification.

  • While the app runs the provider, the addresses and name come only from the app’s released manifest: the owner cannot edit them in Payments, and rotating the secret there re-issues it to the app instead of showing it. A new version with other addresses puts the provider back to unverified and switches collection off until the owner verifies it again; a new version that only changes the name changes nothing else.

  • The signing secret is given to the app once (the owner can re-issue it, and installing the app again lets it pull once more): keep it in your own secret store. It is never sent in an install handoff or a webhook.

  • Uninstalling the app parks the provider: payments already started keep confirming for the drain window, and the store collects through Queek again if the provider was what it collected through. Disabling the app stops new payments without moving who collects.

  • The contract is the custom payment provider contract, v1, and refunds are the store’s own, made outside Queek.

  • Routes: POST api/v1/merchant/app/payment-provider/signing-secret

  • Scopes: merchant-app_payment_secret-create

  • Manifest: distribution, store, payment_provider

Refund and payment events

Available

Apps can subscribe to refunds/create, sent whenever Queek records a refund: a refund to the customer’s wallet, a refund to the original card or bank through Queek’s payment provider, a refund back through the store’s own gateway account, a refund Queek pays by hand, or a refund the merchant recorded after refunding outside Queek. Apps with the merchant-orders-read grant receive it. A card or bank refund finishing or failing is signalled by orders/updated and shown in the order’s refunds list. The other payment topics are orders/paid and payment_checkouts/create.

Good to know:

  • refunds/create is sent once, when the refund is created, with its state at that moment; a card or bank refund is usually pending then, and it finishing or failing is signalled by orders/updated and shown in the order’s refunds list.

  • The payload is small: the refund id, the order id, the refunded payment id, the amount as a decimal string with its currency, the status, the type (wallet_credit, original_payment, own_account, recorded or manual), the reason (order_cancelled or merchant_refund), and the time. A market order adds presentment (what the shopper got back in the market currency); a refund made through a return or naming order lines adds return and line_items. It carries no note, customer details or balances.

  • Delivery needs an active installation that holds merchant-orders-read, the scope that also gates recorded payments and refunds on the order read.

  • Delivery is at least once; an app added later is not sent refunds already made and reads them from the order.

  • The payment topics are orders/paid, payment_checkouts/create and refunds/create. There is no payment-failed topic and no payout topic.

  • Scopes: merchant-orders-read

  • Webhooks: refunds/create, orders/updated

Shipping and fulfilment

Fulfil shipped orders

Available

Apps can fulfil shipped orders end to end: react to orders/paid, write the carrier and tracking, assign the store rider and move the order status. Orders carry the store location they are fulfilled from (location_id and routing), and there is no accept or reject step for external providers.

Good to know:

  • Stock is held per store location and each order names the location it is fulfilled from, but apps cannot list, create or re-route locations: the order’s location is set by the store’s own routing.

  • There is no fulfilment-order workflow and no accept or reject step for external providers.

  • The shipment write needs a shipping-method or courier order: self-delivery and pickup orders answer 404, so read the order’s delivery method first.

  • Routes: POST api/v1/merchant/orders/{order}/assign-rider, PATCH api/v1/merchant/orders/{order}/shipment, POST api/v1/merchant/orders/{order}/status

  • Scopes: merchant-orders-status-update

  • Webhooks: orders/paid, orders/fulfilled

Shipment tracking writes

Available

Apps can write carrier, tracking number, tracking URL and shipment status onto an order through the merchant API.

Good to know:

  • Writes only; there is no carrier tracking-event callback or polling contract.

  • Routes: PATCH api/v1/merchant/orders/{order}/shipment

  • Scopes: merchant-orders-update

Static shipping zones and rates

Available

Apps can list, create and replace the merchant’s static shipping zones through the merchant API. A zone prices a base rate plus an optional per-kg rate, with an optional weight range and a delivery window.

Good to know:

  • Zones are flat and merchant-configured: a base rate plus an optional per-kg rate.

  • The store’s own channels can also show live courier quotes and live Queek rider prices, which the store switches on in its delivery settings, with an optional percentage and/or fixed adjustment; the shopper pays exactly the quoted price, and courier quotes are for stores selling in NGN. Apps cannot add a carrier or supply or change a rate.

  • Routes: GET api/v1/merchant/shipping-zones, POST api/v1/merchant/shipping-zones, PUT api/v1/merchant/shipping-zones/{zone}

  • Scopes: merchant-shipping-read, merchant-shipping-create, merchant-shipping-update

Tax

Tax rows through the app API

Available

Apps can list, read, create and change the store’s tax rows (name, description, rate, channel, priority, active, applies_to_shipping) through the Merchant API, with the same rules as the dashboard. Checkout still applies only those rows.

Good to know:

  • A store keeps one active tax per channel: switching a tax on, or moving an active tax into a channel, switches off that channel’s other active tax. A tax on all applies together with the active tax of the checkout’s own channel.

  • Taxes are exclusive unless the merchant sets the store’s prices to include tax (a store setting no key can change): by default a rate is added on top of the discounted subtotal and never included in a price. A product marked taxable: false is skipped. When the setting is on, the order carries taxes_included: true, its tax is inside the total and total = subtotal - discount + shipping + (taxes_included ? 0 : tax_total). Several taxes that apply are added side by side, never compounded, and each is rounded in the store’s currency.

  • A rate is 0 to 100 percent with at most two decimals. It is not validated against any country’s tax rules: the merchant is responsible for the rate.

  • There is no delete: switch a tax off with active: false. A name is unique per channel, switched-off taxes included, so bring a tax back with active: true.

  • A row with applies_to_shipping also taxes the delivery or shipping fee the store receives, on the taxable share of the items. There is no tax-calculation callback and no tax-provider integration.

  • The write scopes change what shoppers are charged: declaring them needs app approval, and installed stores must grant them. Reading taxes does not need approval.

  • Routes: GET api/v1/merchant/taxes, GET api/v1/merchant/taxes/{tax}, POST api/v1/merchant/taxes, PATCH api/v1/merchant/taxes/{tax}

  • Scopes: merchant-taxes-read, merchant-taxes-create, merchant-taxes-update

Markets and translations

Regional catalogs and display currency

Available

Apps can define and publish markets (named countries with a currency) through the Merchant API, set each product’s fixed prices in a market, and read the store's published markets on the storefront (GET api/v1/client/store/markets). An app can also read which countries and currencies the store can launch a market in (GET api/v1/merchant/markets/options). An unpublished market changes nothing a shopper sees or pays; a published one shows its shoppers its own prices in its currency and charges their orders in it, through the store’s own payment account.

Good to know:

  • A market publishes only when the store’s own payment account can charge its currency (422 market_publish_no_provider) and every product shoppers can see has a price in it (422 market_publish_missing_prices). A product with no price in a market is hidden from it.

  • A market’s currency is charged only through the store’s own payment account, never Queek’s, so the currencies a store can sell in depend on its own provider: a Paystack account takes NGN, GHS, KES or ZAR, a Stripe account takes the longer list Stripe supports (USD, GBP and EUR among them).

  • The store’s own catalog prices and balance stay in the store currency: an order placed through a published market is created and charged in the market currency.

  • A market order is paid online by card or bank only, and is delivered by pickup, the store’s own shipping zones (priced in the market currency) or digital delivery. Wallet, saved-card, point-of-sale, offline and payment-plan tenders, store riders, courier and shop-for-me delivery are refused (422 market_method_unavailable, 422 market_delivery_unavailable).

  • A discount code is refused in a market that has its own prices (422 market_coupon_unavailable); the cart shows it as not applicable.

  • Markets need a store plan that includes its own payment account (Growth and above) and a verified own Paystack or Stripe account that the merchant has switched on in Payments.

  • Routes: GET api/v1/merchant/markets, GET api/v1/merchant/markets/options, POST api/v1/merchant/markets, PATCH api/v1/merchant/markets/{market}, DELETE api/v1/merchant/markets/{market}, GET api/v1/merchant/products/{product}/market-prices, PUT api/v1/merchant/products/{product}/market-prices, GET api/v1/client/store/markets

  • Scopes: merchant-markets-read, merchant-markets-write, merchant-items-detail, merchant-items-update

  • Webhooks: markets/create, markets/update, markets/destroy

Machine translation

Available

Apps can machine-translate the store’s own content into a language the store has enabled: ask for a quote, then confirm it. The app sends references, never text, and the cost is charged to the store’s credits.

Good to know:

  • Quote first, then confirm: a quote is good for ten minutes, for one run, and for the job it priced.

  • The body names content by reference (type, id, optional keys); the store’s text is read from the store and an app cannot send text.

  • Only languages the store has enabled, translated from its primary language.

  • A job is limited to 200,000 characters, 20 resources and 20 keys per resource; a store to 1,000,000 characters a day; an app to 30 requests a minute per store on each of the quote and run routes.

  • The cost is charged to the store’s credits and never exceeds the quote; the Idempotency-Key header is required on the run.

  • A text that fails a check is held with a reason and never written; the rest of the job still is.

  • Written translations carry origin machine until a person edits them.

  • Only machine translations are refreshed when the source changes: a translation a person wrote is never overwritten, even when it is out of date.

  • The merchant can switch machine translation off per app, and sees every run in the credit usage history and, over a threshold, in a notice.

  • Policy pages are held: they are translated by hand.

  • Routes: POST api/v1/merchant/translations/machine/quote, POST api/v1/merchant/translations/machine

  • Scopes: merchant-translations-machine

Translated commerce content

Available

Apps can read and write locales, translatable content and translations through the Merchant API, set the store’s default language, and receive locale and translation webhooks. Translations are not scoped to markets.

Good to know:

  • Translation writes carry at most 100 items per call.

  • A stored translation keeps the digest of the source it was written against and reads back outdated once the source changes.

  • A write must echo the current digest of each item, or the whole batch is rejected.

  • The theme_string type is one record per store, keyed <theme-slug>.<dotted-key>; its English defaults travel with the active theme.

  • The storefront serves theme_string overrides for non-primary published locales.

  • theme_string keys carry the theme slug, so switching theme leaves the old slug overrides dormant until pruned.

  • machine_translation_allowed advises against machine-filling privacy-policy, terms-of-service, returns-policy and shipping-policy.

  • Manual writes to those policy pages stay allowed.

  • The default language (POST locales/{locale}/default) sets which published locale the root address serves; empty means the primary.

  • Changing the default language emits locales/update for the gaining and the losing locale.

  • Translations are per store and locale, not per market: one translation serves that locale in every market the store sells in.

  • Scopes: merchant-locales-read, merchant-locales-write, merchant-translations-read, merchant-translations-write

  • Webhooks: locales/create, locales/update, locales/destroy, translations/update, translations/delete

Data sync

Bulk export and change feed

Available

An app can queue a whole-store export file (POST exports, then read the export until its download link is ready) and poll product, order and customer lists with best-effort updated_after reads. The export carries only the resources the app can read, with customer contact blank unless the app holds the contact scope. Deleted products and customers arrive as webhooks, so an app does not need to diff to find them.

Good to know:

  • The export is a zip of products.csv, orders.csv and customers.csv with a manifest.json. Each file is included only when the app holds merchant-items-read, merchant-orders-read or merchant-customers-read; an app holding none of them cannot export. Without merchant-customers-contact-read the name, email and phone cells are blank.

  • The export is built in the background and is a snapshot of the moment it was built. Order line items, delivery addresses and saved customer addresses are not in the files; manifest.json lists what is missing.

  • One export runs per store at a time, and an installation may request three per 24 hours. Requesting an export needs a paid plan (a Free store answers 403 subscription_feature_locked). Only an installed app’s own key can request or read an export: a merchant’s own key answers 403 insufficient_scope.

  • The download link is a bearer link valid for seven days: anyone holding it can download the customer data in the archive. The two export scopes are protected, so adding them to an app version needs Queek review and the merchant approves them at install.

  • Product, order and customer lists support updated_after; invoice, return and abandoned-checkout lists support updated_since (an RFC 3339 timestamp with an explicit offset). No other list has a change filter.

  • Product changes to variants, images, metafields, stock, region, price, discounts, bulk publish, unpublish, archive status or inventory tracking may be missed.

  • Order changes to items, properties, shipment, metafields or the customer profile may be missed.

  • Customer changes are compared on each customer’s updated_at, which has second precision; changes stored outside the customer record, such as order history, may be missed.

  • Deletions arrive as products/delete and customers/delete webhooks, which carry the product or only the customer id. A customer who stops being a customer without the row being removed is reported by customers/delete as well. The lists and the export do not mark a record as removed, and delivery is at least once.

  • Long-running updates can appear late.

  • The comparison time is not returned and may differ from each object’s updated_at.

  • There is no snapshot or high-water mark for the lists.

  • Routes: POST api/v1/merchant/exports, GET api/v1/merchant/exports/{export}

  • Scopes: merchant-exports-create, merchant-exports-read, merchant-items-read, merchant-orders-read, merchant-customers-read

  • Webhooks: products/delete, customers/delete

Idempotency, cursors and rate policy

Available

App writes can be made idempotent with an Idempotency-Key header, list APIs page with cursors, and rate limits and retry guidance are published. There is no bulk reconciliation envelope.

Good to know:

  • Idempotency-Key is optional on most writes and required on the ones that move money or stock: refunds, invoice payments, return receipts, purchase-order receipts, conversation replies and machine-translation runs. A completed response replays for 24 hours.
  • There is no bulk reconciliation endpoint; reconcile with cursor reads and updated_after (see Bulk export and change feed).

Sales channels

Product feed and external order import

Available

Apps build product feeds and channel syncs from Merchant API reads: each product carries its storefront url, base price and storefront_price (the shopper price), currency, barcode, stock, images and variants; each variant carries its own url, the product page opened on that variant (?variant=<variant id>), so use it as the feed link of that variant and the landing page shows the price of that variant; a registered publication limits the list to the products published to it; storefront_available, is_online, min_qty and service_type say what the storefront offers, has_required_addon says whether the shopper must pick an add-on that is a real choice and requires_packaging whether a takeaway/delivery pack is added at checkout, its size or kind picked by the shopper (addons lists at most 20 groups; both flags cover all of them), and each image carries a channel_image (the JPEG the chat channels use, with its size). The store object says whether the store may be listed at all (storefront.listable, blocked_by). Its storefront.platform_address is the origin of the store’s Queek address, which keeps working whatever custom domain the store connects, so a link built on it survives a domain change. products/create|update|delete and inventory_levels/update tell an app what changed on a product, and store/update tells it (at most one event per store and kind of change every two minutes) that prices, currency, identity, listability or availability moved, so it re-reads; a full list walk on a schedule reconciles anything missed, and finds removals. An order imported with a publication carries its p_id. The app generates and uploads the feed itself; brand, condition and channel category are not product fields, so read them from merchant-defined metafields or map them in the app.

Good to know:

  • Catalogue ids: use {product_p_id}_{variant_p_id} as the item id of a variant row, {product_p_id} for a product without variants, and {product_p_id} as every row's item_group_id. Never a bare variant id: product and variant ids are separate sequences that both start at 1000, so one can equal the other. The storefront pixel sends the same ids, so a platform can match a catalogue item to a pixel event.

  • Events are signals, not a snapshot: products/* and inventory_levels/update name one product, store/update names none (re-read GET products and GET store). store/update is debounced: at most one event per store and kind of change (prices, currency, identity, status, availability) every two minutes, carrying the state when it is sent. Re-read the full list on a schedule (daily at least) to repair a missed event and to find removals; updated_after finds new and edited product rows but can miss a price or discount change that touched no product row.

  • Products added to or removed from a publication are not announced to the app by Queek: the app made that write itself, and reads the membership with GET products?publication=. A collection change that moves a discount onto a product is not announced either: re-read.

  • No per-product sync status or rejection reason can be written back to Queek; the app keeps its own feed status.

  • Each product and variant carries a base price and a shopper storefront_price (use storefront_price in a feed), both in the product's currency; the product object carries only these store-currency prices. A market’s fixed prices are read one product at a time with GET products/{product}/market-prices (merchant-items-detail).

  • Publish only active variants (is_active true) that are storefront_available: the link of an inactive variant opens on the default variant, so a feed that lists it shows the wrong price. Use storefront_available (not the raw in_stock) for availability: a store that does not track stock is always in stock. Product list rows include drafts, archived and out-of-stock products; filter on status, published and is_online before emitting a feed, and refuse a store whose storefront.listable is false (a dev, test or template store, a password-protected storefront, a store that is not trading).

  • No brand, condition or channel-category field on the product; use a merchant-defined, non-hidden metafield (the product object carries metafields) or app-side mapping.

  • A variant has no image of its own on this object: use the product's images (channel_image is null for a photo that is WebP-only and has no JPEG tier yet; skip or wait for it).

  • A product with has_required_addon true cannot be bought from a feed link without choosing an add-on (the product page asks): treat it as not one-click orderable, or send the shopper to the product url. requires_packaging is not a blocking choice: it means a takeaway/delivery pack is added at checkout when the order is delivered or collected, and the shopper may pick which pack (its size or kind), which can change the total, so keep the product in the feed and do not treat its price as unknown. It is false for a product that ships nothing (digital). addons is bounded to 20 groups, so never infer either flag from it.

  • Imported orders must already be charged externally.

  • Routes: GET api/v1/merchant/publications, GET api/v1/merchant/products, GET api/v1/merchant/store

  • Scopes: merchant-items-read, merchant-publications-read, merchant-business_profile-read, merchant-orders-import

  • Webhooks: products/update, inventory_levels/update, store/update

On this page