Connect your own tooling to your Buy It HERE shop — products, stock, orders, balance, webhooks.
Generate an API key in your shop dashboard (API section). Send it on every request:
Authorization: Bearer here_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Base URL: https://buyithere.xyz/api/v1 · Responses are JSON.
{ "slug": "my-product", "name": "My Product", "price_usd": 9.99, "kind": "stock", "section": "products", "description": "..." }
{ "items": ["user1:pass1", "user2:pass2"] } // or { "text": "user1:pass1\nuser2:pass2" }
{ "url": "https://your-app.com/hook" }
When a sale is delivered we POST a signed JSON body to your webhook URL:
{ "event": "order.delivered", "shop_slug": "you", "order_id": "ord_...", "product_name": "My Product",
"amount_usd": 10.09, "qty": 1, "email_masked": "a***@gmail.com", "pay_method": "USDT_TRON", "delivered_at": "..." }
Verify it with the x-here-signature header:
sha256=HMAC_SHA256(rawBody, webhook_secret). Discord webhook URLs get a ready-to-post embed instead.
# List products
curl https://buyithere.xyz/api/v1/products \
-H "Authorization: Bearer here_yourkey"
# Push 5 keys into stock
curl -X POST https://buyithere.xyz/api/v1/products/prod_abc123/stock \
-H "Authorization: Bearer here_yourkey" \
-H "content-type: application/json" \
-d '{"items": ["k1", "k2", "k3", "k4", "k5"]}'