Skip to main content

Overview

Once orders are fulfilled, retrieve card codes and serials from the API and deliver them securely to customers. Never store or transmit card codes in plain text.
Security Critical: Card codes are valuable credentials. Encrypt during storage and transmission.

API Reference

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

Retrieve fulfilled cards from order

Card Data Structure

Fulfilled orders contain cards with two fields:
Both value and serial are sensitive and must be protected.

Encryption Helpers

Storing Cards Securely

Delivery Methods

1. Email Delivery

2. In-App Display

3. Secure File Download

Audit Logging

Log delivery events without exposing card data:

Best Practices

Encrypt at Rest

Always encrypt cards before storing in database

Use HTTPS Only

Never transmit cards over unencrypted connections

Limit Access

Verify user ownership before showing cards

No Plain Text Logs

Never log card codes in plain text

Secure Deletion

Securely delete cards after customer retrieval if policy requires

Audit Trail

Log delivery events without sensitive data

Complete Delivery Flow

Security Checklist

1

Generate Encryption Key

Create a secure 32-byte encryption key and store in environment variables
2

Encrypt Before Storing

Always encrypt card value and serial before database insertion
3

Verify User Ownership

Check user ID matches order before displaying cards
4

Use HTTPS

Ensure all delivery methods use encrypted transport
5

Audit Logging

Log delivery events without including actual card codes
6

Secure Deletion

Implement card deletion policy if required by regulations

Next Steps

Overview

Back to integration overview

Track Status

Poll order fulfillment

API Reference

Complete endpoint documentation

Security Best Practices

General security guidelines

Place Orders

Submit validated orders

Load Catalog

Fetch available products