Skip to main content

Overview

After placing an order, poll the /checkOrder endpoint to track status and retrieve card codes when fulfilled. Most orders process within seconds.
Poll every 5-10 seconds until order reaches a final state: FULFILLED, PARTIALLY_FILLED, or REFUNDED.

API Reference

GET /v3/gift-cards/checkOrder/{orderId}

Complete endpoint documentation

Order Status Values

Order is processing. Continue polling. Most orders resolve within 30 seconds.
Success! All cards delivered. fulfilled_quantity === quantity. Cards available in cards array.
Partial success. Some cards delivered, rest cancelled. fulfilled_quantity < quantity. Partial refund issued automatically.
Failed. Order completely failed. fulfilled_quantity === 0. Full refund issued automatically.

Sandbox Testing

Use sandbox mode to test without spending real balance:

Test Failed Order

Use TEST_REFUND as type ID → Simulates failed order (REFUNDED status)

Test Partial Success

Use TEST_PARTIAL as type ID → Simulates 50% fulfillment (PARTIALLY_FILLED status)
Sandbox Example

Basic Status Check

Response Examples

Handling (Processing)

Fulfilled (Success)

Partially Filled

Simple Polling Implementation

Handling Different Results

Complete Polling Example

Best Practices

Poll Every 5 Seconds

Balance between responsiveness and API load

Set Timeout

Stop polling after 5 minutes (60 attempts)

Handle All States

Process FULFILLED, PARTIALLY_FILLED, and REFUNDED

Test First

Use sandbox mode with TEST_REFUND and TEST_PARTIAL

Next Steps

Secure Delivery

Encrypt and deliver cards to customers

Place Orders

Submit orders with validation

API Reference

Complete endpoint documentation