Skip to content
Navigation

Poll order status

Requires an active API credential with the orders:read permission. Polling is the source of truth for final order state. Polling alone is enough for correctness; using webhooks as well gives faster updates. Treat status: fulfilled as successful. processing is not final. action_required means inspect actions. failed and canceled are final; failed responses may include failure_reason. codes can still grow afterwards if Cardzone delivers replacement codes the store paid for, and a merchant can retry a failed order from the dashboard, which moves it back to processing. When status is action_required, inspect actions and handle each type/code pair. For wallet_topup_required, the action message includes the aggregate additional wallet top-up amount needed for all current wallet-blocked orders in the store. Salla-only actions are not returned for API-created orders.

GET
https://cardzone.ai/api/b2b/v1/orders/{id}

Authorization

  • BearerAuth
    HTTP
    required

Path parameters

  • id
    string
    required

    Pass the Cardzone order_id returned by the API. A legacy full order UUID or the merchant_order_ref supplied on create is also accepted.

Returns

200

Current order state

JSON
  • order_id
    string
    required

    Cardzone order identifier. This is a reversible Base58 representation of the internal UUID.

    maxLength: 22 · minLength: 22 · pattern: ^[123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{22}$
  • status
    processing
    or
    fulfilled
    or
    action_required
    or
    failed
    or
    canceled
    required

    processing: accepted or still fulfilling. fulfilled: successful; safe to mark the partner order successful. action_required: inspect actions and take the required action. failed: terminal failure; inspect failure_reason when present. Replacement codes the store paid for can still be added to codes, and a dashboard retry moves the order back to processing. canceled: terminal cancellation; no fulfillment action remains.

  • product_id
    string
    or null
    required
    format: uuid
  • quantity
    integer
    required
  • actions
    array of
    object
    required

    Actions required from the API consumer. Empty when no action is needed.

    • type
      wallet
      or
      fulfillment
      required
    • code
      wallet_topup_required
      or
      merchant_attention_required
      or
      manual_review_required
      required

      Machine-readable action the API consumer should handle.

    • message
      string
      required

      Human-readable action summary. Wallet actions include the aggregate additional top-up amount needed for all current wallet-blocked orders in the store.

  • created_at
    string
    required
    format: date-time
  • merchant_order_ref
    optional
    string
    or null

    Merchant order reference supplied on create, when present.

  • product_code
    optional
    string
    or null
  • purchase_price
    optional
    object
    • amount
      string
      required

      Decimal amount as a string

    • currency
      string
      required
  • recommended_retail_price
    optional
    object
    • amount
      string
      required

      Decimal amount as a string

    • currency
      string
      required
  • code
    optional
    string
    or null

    First delivered voucher code/PIN when available

  • codes
    optional
    array of
    string

    All delivered voucher codes/PINs when available. Includes replacement codes Cardzone delivered and charged to the store, which can appear while status is failed.

  • failure_reason
    optional
    string
    or null

    Backward-compatible human-readable failure summary. Provider messages and responses are never exposed here.

  • failure_code
    optional
    fulfillment_failed
    or
    player_id_incorrect
    or null

    Cardzone-owned terminal failure identifier. fulfillment_failed is the generic failure and player_id_incorrect means the submitted player ID was definitively rejected. Provider messages and responses are never exposed here.

401

Missing, revoked, or unknown API key. A live key also gets this while its store is inactive, or until the store's business verification is approved and its primary user's email is verified.
JSON
  • error
    object
    required
    • code
      string
      required
    • message
      string
      required
    • details
      optional
      unknown

      Optional field-level validation details

    • product_status
      optional
      out_of_stock
      or
      unavailable

      Present on 404 product errors when the product exists but cannot be ordered: out_of_stock or unavailable, with the same meaning as the catalog status. Absent when the product id is unknown or deleted.

403

The API credential is valid but does not include the required permission.
JSON
  • error
    object
    required
    • code
      string
      required
    • message
      string
      required
    • details
      optional
      unknown

      Optional field-level validation details

    • product_status
      optional
      out_of_stock
      or
      unavailable

      Present on 404 product errors when the product exists but cannot be ordered: out_of_stock or unavailable, with the same meaning as the catalog status. Absent when the product id is unknown or deleted.

404

Order was not found
JSON
  • error
    object
    required
    • code
      string
      required
    • message
      string
      required
    • details
      optional
      unknown

      Optional field-level validation details

    • product_status
      optional
      out_of_stock
      or
      unavailable

      Present on 404 product errors when the product exists but cannot be ordered: out_of_stock or unavailable, with the same meaning as the catalog status. Absent when the product id is unknown or deleted.

Type to search…

↑↓ navigate↵ selectEsc close