Store API Documentation

Integrate your application with the GODDAYEDIT LOGS product catalog and customer wallet.

API base URL: https://godddayeditlogsmarketplace.store/api/v1
All 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

  1. Sign in or create a customer account on the store.
  2. Open Profile Settings and find Store API Access.
  3. 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":"..."}}.

HTTPMeaning
400Malformed JSON, missing authentication/idempotency header, invalid input, or HTTPS required.
401Token is missing, invalid, or revoked.
402Insufficient wallet balance.
404Unknown endpoint, unavailable product, or order not owned by this account.
409Stock/price conflict or idempotency key conflict/request still processing.
422Invalid quantity or provider could not fulfil the order.
500Unexpected API or storage error.

5. Important integration notes

For API support, contact the Customer Center.

💬 Live Support