Bamboo Card
HomeTroubleshooting

Troubleshooting

Common issues developers may face while integrating with Bamboo Card APIs.

A. Authentication issues

401 Unauthorized error

Check your Authorization header — it must use HTTP Basic Auth in the format Basic base64(clientId:clientSecret). Verify your Client ID and Client Secret are correct for the environment you're targeting. See the Authentication guide.

Invalid or missing Basic Auth credentials

Every request requires an Authorization: Basic ... header. Omitting the header or supplying incorrect credentials returns 401. Ensure the Base64-encoded string encodes exactly clientId:clientSecret. See the Authentication guide.

Using sandbox credentials in production (or vice versa)

Sandbox and production credentials are separate. Using sandbox credentials against the production environment (or vice versa) will fail authentication. Use the correct credential pair for each environment. See Environments.

IP address not allowlisted

Bamboo blocks requests from IPs that are not on your allowlist, even with valid credentials. Add your server's IP address to the allowlist via the Bamboo Client Portal or by contacting support.

Regenerated credentials — secret mismatch

Regenerating your Client Secret invalidates the old one immediately. Update every integration that uses the old secret. The Client ID stays the same — only the Client Secret changes after regeneration.

B. Catalog issues

Catalog response is empty

If the catalog returns an empty items array, check your filter parameters. CurrencyCode, CountryCode, or Name filters may not match any products. Try calling the endpoint without filters first, then narrow results from there. See Get catalog v2.

Using the wrong country or currency filter

CountryCode must be a 2-letter ISO code (e.g., US, GB) and CurrencyCode must be a 3-letter ISO code (e.g., USD, GBP). Mixing them up or using the wrong value returns an empty result.

v1 vs v2 catalog differences

v1 returns a flat brands array with no filtering or pagination. v2 supports filtering by currency, country, name, product ID, and brand ID, plus pagination and target-currency display. Both versions are actively supported. See Get catalog v2 and Get catalog v1.

Sandbox catalog behavior

The sandbox catalog mirrors live catalog structure for realistic testing. Sandbox accounts, balances, and orders are fully isolated from production. Orders created in sandbox are associated with the sandbox channel. See Get catalog v2.

TargetCurrency confusion

TargetCurrencyconverts display pricing to a single settlement currency without changing the underlying product denomination. It does not affect the product's native currency or the amount charged to your account.

C. Order issues

Order failed

Check the error reason code in the 400 response from Place Order. Common causes: InsufficientBalance (top up your account), InvalidProductIds (verify the product ID from the catalog), InvalidDenomination (value outside minFaceValue/maxFaceValue), UserNotEnabled (contact support). See Place Order.

Partial fulfillment

When order status is PartialFailed, at least one card succeeded and at least one failed. Inspect each item's cards array for individual card statuses. Only cards with status Sold contain valid redemption codes. See Get Order.

When to use Get Order after Place Order

Place Order returns a requestId. Use that value with Get Order to retrieve full order details and purchased card codes. If the order status is Pending, Bamboo has not finished processing — retry the endpoint or wait for the webhook callback. See Get Order.

Card release timing — when to release card codes

Only deliver card codes to end users after the card status is Sold. Do not release codes from orders in Pending, Processing, or Failed state.

Looking up orders using references

The clientReferenceNumber field in the Orders report equals the RequestId you submitted when placing the order. Use it to map Bamboo orders back to your internal records. See Orders.

D. Webhook / Notification issues

Webhook not received

Confirm your endpoint URL is a publicly accessible HTTPS URL. Check delivery attempts in the Bamboo Webhooks portal under Test Messages. Bamboo retries failed deliveries automatically. See Webhooks.

Svix webhooks vs Notification URL callbacks — what's the difference?

Bamboo has two notification systems. Svix webhooks deliver productupdated.v1 and ordercompleted.v1 events with signature verification via the Webhooks portal. Notification URL callbacks are order-status POST callbacks to a URL you configure via the API. See Webhooks and Notification.

Webhook signature verification failed

Verify the three Svix headers — svix-id, svix-timestamp, and svix-signature — using your Webhook Secret and the Svix library. An incorrect secret or a modified request payload will cause verification to fail. See Webhooks.

Endpoint returning non-2xx responses

Your endpoint must return HTTP 2xx to confirm receipt. Non-2xx responses cause Bamboo to retry delivery. Return 200 immediately and handle any heavy processing asynchronously.

How to retrieve the configured Notification URL callback

Call GET /api/Integration/v1/notification to view the currently stored callback URL and secret key for your account. See Get Notification.

E. Environment issues

Sandbox vs production base URL

The sandbox and production environments use the same base URL structure but require different credentials. Ensure your integration uses the correct credential pair for the environment you intend to target. See Environments.

Separate credentials for sandbox and production

Each environment has its own Client ID and Client Secret. You cannot use sandbox credentials for production requests or vice versa. Obtain separate credentials for each environment from the Bamboo Client Portal.

Best practices for testing safely in sandbox

Always validate new integrations in sandbox before moving to production. Sandbox orders, accounts, and balances are fully isolated from production. Sandbox reports and transactions return sandbox-only activity. See Environments.

Still stuck?

If you're still experiencing issues, please contact our support team.

tech.support@bamboo-card.com