API key
48 alphanumeric characters. The key remains available under My account until you regenerate it.
A focused interface for catalog access, balance management and instant digital delivery.
https://api.goribucshop.comACCESS
Every API request requires your personal key in the X-API-Key header. Keep it private and use it only from your backend.
48 alphanumeric characters. The key remains available under My account until you regenerate it.
Never expose the key in frontend code, mobile apps or public repositories.
X-API-Key: YOUR_API_KEY
FIRST REQUEST
Request the current catalog in seconds. Replace the placeholder with your API key.
curl "https://api.goribucshop.com/api/v2/catalog" \
-H "X-API-Key: YOUR_API_KEY"
import requests
response = requests.get(
"https://api.goribucshop.com/api/v2/catalog",
headers={"X-API-Key": "YOUR_API_KEY"},
timeout=15,
)
response.raise_for_status()
print(response.json())
/api/v2/catalogReturns currently listed products, prices, and availability from the shop's latest catalog data.
skustringStable GORIB product code.
fulfillmentstringinstant_code, automatic or assisted.
recipient_typestringWhich recipient value the order requires.
required_fieldsarrayExact public field keys required for this product: player_id, server_id, server_region or riot_id.
supports_player_checkbooleanWhether the recipient nickname can be verified before checkout.
price_usdstringUnit price in USD with three decimal places.
availablebooleanWhether ordering is enabled according to the latest catalog data.
stockinteger | nullFinite code stock, or null for non-stock products.
[
{
"sku": "GORIB-MOBILE-LEGENDS-GLOBAL-86-DIAMONDS",
"name": "GORIB Mobile Legends Global 86 Diamonds",
"category": "games/mobile-legends/global",
"fulfillment": "automatic",
"recipient_type": "mobile_legends_player_server",
"required_fields": ["player_id", "server_id"],
"supports_player_check": true,
"price_usd": "1.250",
"available": true,
"stock": null,
"min_quantity": 1,
"max_quantity": 20
}
]/api/v2/profileReturns account details and available balance.
{
"telegram_id": 123456789,
"username": "username",
"language": "en",
"balance_usd": "250.000",
"api_key_hint": "Ab12••••Xy90"
}/api/v2/ordersCreates one protected order for any SKU in the unified catalog.
Send one unique Idempotency-Key per intended order. For a timeout or uncertain response, retry the identical request with the same key; the API returns the existing order instead of creating a duplicate charge.
X-API-KeyrequiredYour private API key.
Idempotency-KeyrequiredUnique value, 8–100 letters, numbers or hyphens.
skurequiredPublic GORIB SKU from the catalog.
quantityrequiredMust be inside the product’s current limits.
fieldsconditionalObject containing every key listed in the product’s required_fields.
recipientlegacyBackward-compatible shortcut for products that require only one recipient field.
curl -X POST \
"https://api.goribucshop.com/api/v2/orders" \
-H "X-API-Key: YOUR_API_KEY" \
-H "Idempotency-Key: checkout-8f31a2c4" \
-H "Content-Type: application/json" \
-d '{"sku":"GORIB-MOBILE-LEGENDS-GLOBAL-86-DIAMONDS","quantity":1,"fields":{"player_id":"123456789","server_id":"1234"}}'{
"order_id": "GORIB-DIGITAL-550e8400-e29b-41d4-a716-446655440000",
"sku": "GORIB-MOBILE-LEGENDS-GLOBAL-86-DIAMONDS", "status": "processing", "quantity": 1,
"unit_price_usd": "1.250", "total_price_usd": "1.250",
"balance_usd": "248.750", "codes": [],
"status_url": "/api/v2/orders/GORIB-DIGITAL-550e8400-e29b-41d4-a716-446655440000"
}/api/v2/orders/{order_id}Returns the current result, item statuses and any delivered customer codes.
An API key can read only orders created by the same account. Recipient values are returned in recipient_fields; internal processing details are never included.
statusstringThe overall order status. Use it to decide whether polling must continue.
items[].statusstringThe result of each individual item in the order.
refunded_usdstringThe exact amount automatically returned to the API account balance.
completed_atstring | nullNull while processing; an ISO 8601 timestamp after the order reaches a final status.
codesarrayDelivered customer codes for a successful code item; otherwise an empty array.
{
"order_id": "GORIB-AUTO-550e8400-e29b-41d4-a716-446655440000",
"status": "partial",
"recipient": "52460279202",
"recipient_name": "Player",
"recipient_fields": {"player_id": "52460279202"},
"total_price_usd": "1.750",
"refunded_usd": "0.875",
"balance_before_usd": "10.000",
"balance_after_usd": "9.125",
"created_at": "2026-10-14T09:31:41.689001+00:00",
"completed_at": "2026-10-14T09:31:50.032958+00:00",
"items": [
{
"sku": "GORIB-PUBG-AUTO-60",
"name": "GORIB PUBG UC Auto 60",
"status": "done",
"quantity": 1,
"unit_price_usd": "0.875",
"total_price_usd": "0.875",
"codes": []
},
{
"sku": "GORIB-PUBG-AUTO-60",
"name": "GORIB PUBG UC Auto 60",
"status": "error",
"quantity": 1,
"unit_price_usd": "0.875",
"total_price_usd": "0.875",
"codes": []
}
]
}/api/v2/api-key/rotateInvalidates the current key and issues a new one.
The new key remains available under My account. The previous key stops working immediately.
ORDER LIFECYCLE
Use the top-level order status as the source of truth. All status values are lowercase and case-sensitive.
Keep polling while the order is processing. Stop only when it becomes completed, partial or failed.
processingNoAccepted and still being fulfilled.Continue polling. Do not mark the order as delivered.completedYesEvery item was delivered successfully.Stop polling and mark the order as successful.partialYesAt least one item succeeded and at least one item failed.Stop polling. Deliver successful items and read refunded_usd for the automatic refund.failedYesNo items were delivered successfully.Stop polling. Read refunded_usd and show the order as failed.processingThe item is still being fulfilled.Wait for the top-level order to reach a final status.doneThe item was delivered successfully.Use delivered codes when the codes array is not empty.errorThe item was not delivered.Do not retry automatically. Check the final order status and refunded_usd.An HTTP 200 response only means the API request succeeded. Always inspect the JSON order status.
Instant-code products can return completed directly from POST /api/v2/orders. Poll only when the returned status is processing.
refunded_usd is the exact amount returned to the API account balance. For a partial order, it covers only failed items.
completed_at is null while the order is processing and contains an ISO 8601 timestamp after a final result.
import time
from urllib.parse import urljoin
import requests
BASE_URL = "https://api.goribucshop.com"
API_KEY = "YOUR_API_KEY"
TERMINAL_STATUSES = {"completed", "partial", "failed"}
created = create_response.json()
order = created
if created["status"] == "processing":
status_url = urljoin(BASE_URL, created["status_url"])
while order["status"] not in TERMINAL_STATUSES:
time.sleep(3)
response = requests.get(
status_url,
headers={"X-API-Key": API_KEY},
timeout=15,
)
response.raise_for_status()
order = response.json()
if order["status"] == "completed":
handle_success(order)
elif order["status"] == "partial":
handle_partial(order["items"], order["refunded_usd"])
else:
handle_failure(order["refunded_usd"])
If an order is processing or its result is uncertain, poll its status or retry the identical request with the same key. Use a new key only for a genuinely new order after the previous one is resolved.
REFERENCE
GOOD PRACTICE
Treat your API key like a password. Rotate it immediately if it may have been exposed.