Starship Rewards API

Orders Overview

Create, track, and manage digital product orders with real-time status and voucher delivery

Orders Overview

The Orders API enables complete order lifecycle management for digital products, from creation through fulfillment with secure voucher delivery.

Order Ecosystem

Order Creation Initiate purchases for gift cards, mobile top-ups, and digital services with multi-currency support and real-time inventory validation.

Order Tracking Monitor order status from placement through delivery with detailed transaction history and status updates.

Voucher Delivery Secure delivery of digital vouchers with encrypted codes, PINs, and redemption instructions upon successful order completion.

API Documentation

Create Order API

Submit new orders for digital products with customer information and payment processing.

Key Operations:

  • Submit order with product selection
  • Provide customer information
  • Specify payment method
  • Receive order confirmation

→ Create Order API Documentation

List Orders API

Search and filter order history with comprehensive pagination and filtering options.

Key Operations:

  • View order history with pagination
  • Filter by status, product, or date
  • Access order summaries
  • Monitor order pipeline

→ List Orders API Documentation

Get Order Details API

Retrieve complete order information including decrypted voucher codes for delivered orders.

Key Operations:

  • Get detailed order information
  • Access decrypted voucher codes
  • View delivery status
  • Track fulfillment progress

→ Get Order Details API Documentation

Quick Start

  1. Authenticate - Get your access token via the Authentication API
  2. Browse Products - Use the Products API to find products
  3. Calculate Pricing - Use the Charges API to get pricing
  4. Create Order - Submit order using the Create Order API
  5. Track Status - Monitor orders with List Orders API
  6. Deliver Vouchers - Retrieve codes via Get Order Details API

Order Status Flow

Pending

Order has been placed and is awaiting processing. Payment validation is complete.

Processing

Order is actively being processed. Voucher codes are being generated.

Delivered

Order has been successfully completed. Voucher codes are available and can be retrieved via the order details endpoint.

Failed or Cancelled

Order could not be completed due to payment failure, inventory issues, or cancellation. No vouchers were generated.

Order Status Values

Primary Status

StatusDescriptionVouchers Available
PLACEDOrder has been placedNo
PENDINGOrder placed, awaiting processingNo
DELIVEREDOrder completed successfullyYes
PARTIALLY_DELIVEREDSome items deliveredPartial
CANCELLEDOrder was cancelledNo
FAILEDOrder processing failedNo

Sub Status

Orders also have a detailed sub-status that provides more granular information about processing:

Sub StatusDescription
PARTIALPartial completion of order items
INITIALInitial state after order creation
REFUNDEDOrder has been refunded
COMPLETEDOrder fully completed
NOT_REFUNDEDFailed order not yet refunded
RECONCILEDOrder reconciled with vendor
PROCESSINGOrder is being processed
VENDOR_ORDER_PENDINGWaiting for vendor order creation
VENDOR_ORDER_CREATEDVendor order has been created
VENDOR_VOUCHER_FETCHEDVouchers fetched from vendor
GV_LINK_PENDINGGift voucher link creation pending
GV_LINK_CLAIMEDGift voucher link has been claimed
GV_LINK_UNCLAIMEDGift voucher link not yet claimed
BULK_LIMIT_EXCEEDEDBulk order limit exceeded

Additional Order Enums

Delivery Mode

ModeDescription
ONLINEVoucher delivered online/digitally
OFFLINEVoucher delivered offline/physically
ONLINE_OR_OFFLINESupports both delivery modes
NANot applicable

Delivery Type

TypeDescription
REALTIMEImmediate delivery upon order completion
DELAYEDDelivery scheduled for later time

Classification

TypeDescription
OPEN_LOOPCan be used at multiple merchants
CLOSED_LOOPCan only be used at specific merchant
SEMI_OPENLimited to merchant group/category
SEMI_CLOSERestricted but broader than closed loop
TypeDescription
PRIVATEPrivate voucher link (restricted access)
PROTECTEDProtected voucher link (password/auth required)

Inventory Status

StatusDescription
AVAILABLEInventory available for allocation
ALLOCATEDInventory allocated to order
DELIVEREDInventory delivered to customer
COMPLETEDInventory fulfillment completed
BLOCKEDInventory blocked from use
REVOKEDInventory revoked/cancelled

Recharge Status

StatusDescription
PENDINGRecharge request pending
DELIVEREDRecharge delivered successfully
FAILEDRecharge failed
CANCELLEDRecharge cancelled
RECHARGEDRecharge completed

Security Features

Encryption

All sensitive voucher data is encrypted at rest using AES-256 encryption:

  • Card/voucher numbers
  • PIN codes
  • Reference numbers
  • Redemption URLs

Access Control

  • JWT authentication required for all endpoints
  • Client-specific order visibility
  • Audit logging for all order operations

Data Protection

  • Vouchers only decrypted when order is delivered
  • Secure transmission over HTTPS
  • PCI compliance for payment card data

Common Integration Patterns

Validate Product Availability

Before creating an order, verify the product is available for the desired denomination and quantity using the Product Availability API. This prevents order failures due to availability issues.

Calculate Total Cost

Use the Charges API to calculate the exact cost including discounts, fees, and taxes. Display this transparent pricing to customers before order creation.

Create Order

Submit the order with customer details and payment information. The order will be validated and processed asynchronously. Store the returned order ID for tracking.

Poll for Completion

Check the order status periodically using the Get Order Details endpoint. When status changes to "delivered", voucher codes become available.

Retrieve Vouchers

Once delivered, fetch the complete order details to access decrypted voucher codes, PINs, and redemption instructions. Deliver these securely to your customer.

Best Practices

  1. Idempotency - Include unique reference codes to prevent duplicate orders
  2. Error Handling - Implement robust retry logic for transient failures
  3. Status Monitoring - Poll order status at reasonable intervals (e.g., every 30 seconds)
  4. Secure Storage - Never log or store decrypted voucher codes
  5. Customer Communication - Send status updates via email/SMS during processing

Next Steps