Skip to main content
GET
/
api
/
v1
/
business
/
orders
Order History
curl --request GET \
  --url https://api-stage.ugift.me/api/v1/business/orders \
  --header 'X-API-Key: <api-key>'
{
  "total": 24,
  "page": 1,
  "totalPages": 3,
  "orders": [
    {
      "_id": "65b0d1e2f3a4b56789012345",
      "productCode": "AMAZON_UK_STD",
      "merchant": {
        "name": "Amazon UK"
      },
      "currency": "GBP",
      "valuePurchased": 50,
      "status": "active",
      "isPaid": true,
      "isActive": true,
      "createdAt": "2025-04-12T14:22:10.000Z",
      "updatedAt": "2025-04-12T14:22:11.000Z",
      "imageUrl": "https://cdn.ugift.me/products/amazon-uk-card.png"
    }
  ]
}

Documentation Index

Fetch the complete documentation index at: https://docs.ugift.me/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

X-API-Key
string
header
required

Your UGiftMe API key for authentication.

Format: Secure API key (e.g., <your-api-key>)

Required: All endpoints require this header

Example: X-API-Key: <your-api-key>

Query Parameters

page
integer
default:1
Required range: x >= 1
limit
integer
default:10
sortBy
string
default:createdAt
order
enum<string>
default:desc
Available options:
asc,
desc

Response

Paginated orders

total
integer
required
Example:

24

page
integer
required
Example:

1

totalPages
integer
required
Example:

3

orders
object[]
required