Orders
Order management and purchases
API key for authentication. Get your key from the dashboard.
120List of orders
trueAuthentication required or invalid
GET /api/v2/orders HTTP/1.1
Host: bulkmail.shop
X-API-Key: YOUR_API_KEY
Accept: */*
{
"success": true,
"data": [
{
"id": 1,
"order_number": "ORD-20240101-001",
"product_name": "text",
"quantity": 1,
"unit_price": 1,
"total_amount": 1,
"status": "pending",
"created_at": "2026-01-01T00:00:00.000Z"
}
],
"meta": {
"current_page": 1,
"per_page": 20,
"total": 100,
"total_pages": 5
}
}Purchase products using wallet balance. Stock is delivered immediately upon successful purchase.
Error Codes:
INSUFFICIENT_BALANCE- Not enough balanceINSUFFICIENT_STOCK- Not enough stock available
API key for authentication. Get your key from the dashboard.
Order created
trueOrder placed successfullyBad request (insufficient balance/stock)
Authentication required or invalid
POST /api/v2/orders HTTP/1.1
Host: bulkmail.shop
X-API-Key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 29
{
"product_id": 1,
"quantity": 1
}{
"success": true,
"message": "Order placed successfully",
"data": {
"id": 1,
"order_number": "text",
"quantity": 1,
"total_amount": 1,
"status": "text",
"stock_items": [
"text"
]
}
}API key for authentication. Get your key from the dashboard.
Order details with stock items
trueAuthentication required or invalid
Resource not found
GET /api/v2/orders/{id} HTTP/1.1
Host: bulkmail.shop
X-API-Key: YOUR_API_KEY
Accept: */*
{
"success": true,
"data": {
"id": 1,
"order_number": "ORD-20240101-001",
"product_name": "text",
"quantity": 1,
"unit_price": 1,
"total_amount": 1,
"status": "pending",
"created_at": "2026-01-01T00:00:00.000Z",
"stock_items": [
"text"
]
}
}Only pending orders can be cancelled. Refund will be credited to wallet.
API key for authentication. Get your key from the dashboard.
Order cancelled
trueOrder cancelled successfullyOrder cannot be cancelled
Authentication required or invalid
Resource not found
POST /api/v2/orders/{id}/cancel HTTP/1.1
Host: bulkmail.shop
X-API-Key: YOUR_API_KEY
Accept: */*
{
"success": true,
"message": "Order cancelled successfully",
"data": {
"refunded_amount": 1
}
}API key for authentication. Get your key from the dashboard.
txtPossible values: Exported data
Authentication required or invalid
Resource not found
GET /api/v2/orders/{id}/export HTTP/1.1
Host: bulkmail.shop
X-API-Key: YOUR_API_KEY
Accept: */*
textLast updated