API Development And
Integration Guide

Get Started

Overview

Sandbox vs Production

Authentication (API Keys)

Headers & Environments

Product API

Fetch Product List

Product Parameters

Sample Response

Filtering & Pagination

Order API

Place Order (Pull Codes)

Order History (order-list)

View Order Details (order -detail)

Sample Order Payloads

Response Fields Explained

Customer API

Check Account Balance

Credit & Combined Balance

Sample Responses

Common Parameters & Headers

Global Headers

Language Settings

Pagination Standards

Error Handling & Status Codes (Optional)

Common Errors

Status Responses

Retry Logic

Postman Collection & Tools (Optional)

API Testing Guide

Postman Import

Curl Examples

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

Example Handling Scenarios

Scenario
HTTP Code
Error Code
Suggested Handling
Invalid/malformed request
400
INVALID_PAYLOAD
Show user-friendly validation error
Missing or invalid API key
401
UNAUTHORIZED
Request correct API key and retry
Insufficient permissions
403
FORBIDDEN
Review entitlement or permissions
Resource not found
404
NOT_FOUND
Handle as "no data", don’t retry
Rate limit exceeded
429
TOO_MANY_REQUESTS
Pause and retry after backoff
Temporary server issue
503
SERVICE_UNAVAILABLE
Retry with exponential backoff
Unexpected server error
500
INTERNAL_ERROR
Alert support team, retry may help

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.