Skip to content

Orders API

Access and manage orders in your store.

List Orders

http
GET /api/external/v1/orders

Query Parameters

ParameterTypeDescription
pageintegerPage number (default: 1)
per_pageintegerItems per page (default: 15, max: 100)
statusstringFilter: pending, completed, refunded, cancelled
payment_statusstringFilter: pending, paid, failed
fromstringStart date (YYYY-MM-DD)
tostringEnd date (YYYY-MM-DD)
customer_emailstringFilter by customer email
sortstringSort field: created_at, total
orderstringSort order: asc, desc

Example Request

bash
curl -X GET "https://yourstore.pixlpay.net/api/external/v1/orders?status=pending&from=2025-01-01" \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Accept: application/json"

Response

json
{
  "success": true,
  "data": [
    {
      "id": 1,
      "order_number": "ORD-2025-001",
      "status": "completed",
      "payment_status": "paid",
      "total": "29.99",
      "subtotal": "29.99",
      "tax": "0.00",
      "currency": "USD",
      "customer": {
        "id": 1,
        "email": "player@example.com",
        "username": "Player123"
      },
      "items": [
        {
          "id": 1,
          "product_id": 1,
          "product_name": "VIP Rank",
          "quantity": 1,
          "price": "29.99",
          "delivery_status": "delivered"
        }
      ],
      "payment_method": "stripe",
      "created_at": "2025-01-20T14:30:00Z",
      "completed_at": "2025-01-20T14:35:00Z"
    }
  ],
  "meta": {
    "current_page": 1,
    "last_page": 10,
    "per_page": 15,
    "total": 150
  }
}

Get Single Order

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

Example Request

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

Response

Returns full order object with items and delivery details.

Fulfill Order

Mark an order as fulfilled (delivered).

http
POST /api/external/v1/orders/{id}/fulfill

Request Body

json
{
  "note": "Delivered manually via console"
}

Example Request

bash
curl -X POST "https://yourstore.pixlpay.net/api/external/v1/orders/1/fulfill" \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"note": "Delivered manually"}'

Response

json
{
  "success": true,
  "data": {
    "id": 1,
    "order_number": "ORD-2025-001",
    "status": "completed",
    "completed_at": "2025-01-20T15:00:00Z"
  },
  "message": "Order fulfilled successfully"
}

Order Object

FieldTypeDescription
idintegerUnique identifier
order_numberstringHuman-readable order number
statusstringOrder status
payment_statusstringPayment status
totalstringTotal amount
subtotalstringSubtotal before tax
taxstringTax amount
currencystringCurrency code
customerobjectCustomer information
itemsarrayOrder items
payment_methodstringPayment provider used
created_atstringISO 8601 timestamp
completed_atstringISO 8601 timestamp

Order Item Object

FieldTypeDescription
idintegerItem ID
product_idintegerProduct ID
product_namestringProduct name at time of purchase
quantityintegerQuantity ordered
pricestringPrice per item
delivery_statusstringpending, delivered, failed

Errors

StatusErrorDescription
401UnauthorizedInvalid or missing token
403ForbiddenToken lacks required scope
404Not FoundOrder doesn't exist
422UnprocessableOrder already fulfilled

Built for game developers, by game developers.