Store API Documentation
Integrate your application with the GODDAYEDIT LOGS product catalog and customer wallet.
https://godddayeditlogsmarketplace.store/api/v1All API requests require an account access token. Purchases are charged to the wallet belonging to that token. Never share a token or embed it in browser-side JavaScript, a mobile app, or a public repository.
1. Get an access token
- Sign in or create a customer account on the store.
- Open Profile Settings and find Store API Access.
- Select Create API Token, then copy and securely save the token. The full value is shown only once.
Creating a new token rotates and immediately revokes the previous one. You can revoke your token from the same profile section. Tokens are stored as hashes on the server.
2. Authentication and request format
Send your token on every request in the HTTP Authorization header:
Authorization: Bearer YOUR_API_TOKEN
Accept: application/json
Content-Type: application/json
Use HTTPS. Requests without a valid token return 401. API tokens provide the same wallet purchasing authority as your store account, so keep them on a trusted backend.
3. Endpoints
GET /products
List active local and connected-provider products. Supports pagination and optional exact category and text filters.
Query parameters: page (default 1), per_page (default 25, max 100), category, search (max 100 characters).
curl -H "Authorization: Bearer YOUR_API_TOKEN" \
"https://godddayeditlogsmarketplace.store/api/v1/products?page=1&per_page=25&search=vpn"
Each product includes id, name, description, category, price, currency, stock, min_quantity, max_quantity, and image_url. Use the returned product ID exactly when creating an order. Locally stocked products use IDs prefixed with custom_; HStora products use hstora_.
{
"success": true,
"data": [{
"id": "custom_42",
"name": "Example product",
"description": "Product description",
"category": "Accounts",
"price": 1000,
"currency": "NGN",
"stock": 5,
"min_quantity": 1,
"max_quantity": 50,
"image_url": ""
}],
"meta": {"page": 1, "per_page": 25, "total": 1, "pages": 1}
}
GET /products/{product_id}
Get the current details for one catalog item.
curl -H "Authorization: Bearer YOUR_API_TOKEN" \
"https://godddayeditlogsmarketplace.store/api/v1/products/custom_42"
GET /categories
Get the distinct category names currently represented in the active catalog.
GET /me
Get the account associated with the token and its current wallet balance.
{
"success": true,
"data": {
"id": 123,
"username": "store-customer",
"email": "customer@example.com",
"wallet": {"balance": 5000, "currency": "NGN"}
}
}
GET /wallet
Get only the current wallet balance and currency.
GET /transactions
List wallet transactions belonging only to the token owner. Supports page and per_page (default 25, max 100). Each record includes its ID, amount, type, description, and creation time.
POST /orders
Place a product order using the wallet belonging to the access token. The product price and stock are checked by the server; do not send a price or user ID.
Required header: Idempotency-Key — a unique value for this purchase attempt, 1–128 characters. Reuse the same key and identical body to safely retry; use a new key for a new purchase.
JSON body: product_id from the catalog and integer quantity (1–50, also subject to product limits).
curl -X POST \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Idempotency-Key: order-2026-0001" \
-H "Content-Type: application/json" \
-d '{"product_id":"custom_42","quantity":1}' \
"https://godddayeditlogsmarketplace.store/api/v1/orders"
A successful order response includes the order ID, status, total, and the order's fulfillment data. Fulfillment can contain purchased account credentials; protect it like a password.
GET /orders
List orders belonging only to the token owner. Supports page and per_page (default 25, max 100).
GET /orders/{order_id}
Get one of your orders, including its current status and fulfillment data. Other customers' orders are not visible.
4. Responses and errors
Responses are JSON. Successful responses use {"success":true,"data":...}. Errors use {"success":false,"error":{"code":"...","message":"..."}}.
| HTTP | Meaning |
|---|---|
| 400 | Malformed JSON, missing authentication/idempotency header, invalid input, or HTTPS required. |
| 401 | Token is missing, invalid, or revoked. |
| 402 | Insufficient wallet balance. |
| 404 | Unknown endpoint, unavailable product, or order not owned by this account. |
| 409 | Stock/price conflict or idempotency key conflict/request still processing. |
| 422 | Invalid quantity or provider could not fulfil the order. |
| 500 | Unexpected API or storage error. |
5. Important integration notes
- Wallet funding is done through the store's secure hosted checkout; this API does not expose a deposit or payment-confirmation endpoint.
- Always check the product's latest price and stock before presenting it; checkout performs its own validation.
- Use an Idempotency-Key for every purchase attempt. A retry with that key returns the saved result and will not submit a second order.
- Use your token only from a server you control. Do not send it to a browser or expose it in client-side application code.
- Supplier/provider credentials and internal provider endpoints are never part of this public API.
For API support, contact the Customer Center.