Skip to content

Products API

Fetch product information from your store.

List Products

http
GET /api/external/v1/products

Query Parameters

ParameterTypeDescription
pageintegerPage number (default: 1)
per_pageintegerItems per page (default: 15, max: 100)
categorystringFilter by category slug
typestringFilter by type: digital, subscription, physical
is_activebooleanFilter by active status
searchstringSearch in name and description
sortstringSort field: name, price, created_at
orderstringSort order: asc, desc

Example Request

bash
curl -X GET "https://yourstore.pixlpay.net/api/external/v1/products?category=ranks&sort=price&order=asc" \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Accept: application/json"

Response

json
{
  "success": true,
  "data": [
    {
      "id": 1,
      "name": "VIP Rank",
      "slug": "vip-rank",
      "description": "Access to VIP features and perks",
      "price": "9.99",
      "compare_price": "14.99",
      "type": "digital",
      "category": {
        "id": 1,
        "name": "Ranks",
        "slug": "ranks"
      },
      "images": [
        {
          "url": "https://cdn.pixlpay.net/...",
          "is_primary": true
        }
      ],
      "is_active": true,
      "stock": null,
      "created_at": "2025-01-15T10:30:00Z",
      "updated_at": "2025-01-15T10:30:00Z"
    }
  ],
  "meta": {
    "current_page": 1,
    "last_page": 3,
    "per_page": 15,
    "total": 42
  }
}

Get Single Product

http
GET /api/external/v1/products/{id}

Example Request

bash
curl -X GET "https://yourstore.pixlpay.net/api/external/v1/products/1" \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Accept: application/json"

Response

json
{
  "success": true,
  "data": {
    "id": 1,
    "name": "VIP Rank",
    "slug": "vip-rank",
    "description": "Access to VIP features and perks",
    "price": "9.99",
    "compare_price": "14.99",
    "type": "digital",
    "category": {
      "id": 1,
      "name": "Ranks",
      "slug": "ranks"
    },
    "images": [
      {
        "url": "https://cdn.pixlpay.net/...",
        "is_primary": true
      }
    ],
    "is_active": true,
    "stock": null,
    "delivery_servers": [
      {
        "id": 1,
        "name": "Main Server"
      }
    ],
    "created_at": "2025-01-15T10:30:00Z",
    "updated_at": "2025-01-15T10:30:00Z"
  }
}

Product Object

FieldTypeDescription
idintegerUnique identifier
namestringProduct name
slugstringURL-friendly identifier
descriptionstringProduct description
pricestringCurrent price
compare_pricestringOriginal price (for discounts)
typestringdigital, subscription, physical
categoryobjectCategory info
imagesarrayProduct images
is_activebooleanWhether product is available
stockintegerStock quantity (null = unlimited)
created_atstringISO 8601 timestamp
updated_atstringISO 8601 timestamp

Errors

StatusErrorDescription
401UnauthorizedInvalid or missing token
403ForbiddenToken lacks products:read scope
404Not FoundProduct doesn't exist

Built for game developers, by game developers.