API Development And
Integration Guide

Common Errors

When integrating with WUPEX, it’s crucial to handle common error scenarios correctly. A well-structured approach ensures a reliable user experience and simplifies troubleshooting.

Error Response Structure

All error responses follow this JSON pattern:

json
{
  "status": false,
  "error": {
    "code": "ERROR_CODE",
    "message": "Descriptive message to help fix the issue"
  }
}
  

Most Common Error Types

4xx Client Errors

5xx Server Errors

Handling & Best Practices

make file
x-api-key: YOUR_API_KEY
Accept-Language: en-US
  

Step 2: Fetch Available Gift Cards

json
[
{
"merchant": "YourMerchantCode",
"sku": "APPLE-USA-2USD",
"quantity": 1
}
]
  

Get product names, codes, pricing, and availability in real time.

Step 3: Place an Order

https
POST /api/order/pull-codes
  
https
POST /api/product/merchant/invited/list
Content-Type: application/json
  
json
[
{
"merchant": "YourMerchantCode",
"sku": "APPLE-USA-2USD",
"quantity": 1
}
]  

Step 4: Check Order Statust

https
GET /api/order/detail?orderName=A00000000000001  

Returns product serial codes, value, and fulfillment details.

Balance & Credit

https
GET /api/customer/balance 
json
{
"balance": 5000.00,
"credit": 0.00,
"creditBalance": 5000.00
} 

Let’s Boost Your
Business Efficiency

Say goodbye to delays, fraud, and complex setups—our solution is built for speed and trust.

Get Latest News for Free!

Sign up to get product updates, new partner alerts, and
exclusive API insights
No spam. Unsubscribe anytime

Why WUPEX?

Partners

Industries

Resources

Company

Downloads

Features

Support

Copyright © 2024 WUPEX | All Rights Reserved.

Why WUPEX?

Partners

Industries

Features

Support

Company

Resources

Downloads

Copyright © 2024 WUPEX | All Rights Reserved.