DEVELOPER PLATFORM

Build with
GORIB API

A focused interface for catalog access, balance management and instant digital delivery.

BASE URLhttps://api.goribucshop.com
01

ACCESS

Authentication

Every API request requires your personal key in the X-API-Key header. Keep it private and use it only from your backend.

⌁

API key

48 alphanumeric characters. The key remains available under My account until you regenerate it.

◇

Server-side only

Never expose the key in frontend code, mobile apps or public repositories.

Request header
X-API-Key: YOUR_API_KEY
02

FIRST REQUEST

Quick start

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())
GET/api/v2/catalog

Returns currently listed products, prices, and availability from the shop's latest catalog data.

Response

skustring

Stable GORIB product code.

fulfillmentstring

instant_code, automatic or assisted.

recipient_typestring

Which recipient value the order requires.

required_fieldsarray

Exact public field keys required for this product: player_id, server_id, server_region or riot_id.

supports_player_checkboolean

Whether the recipient nickname can be verified before checkout.

price_usdstring

Unit price in USD with three decimal places.

availableboolean

Whether ordering is enabled according to the latest catalog data.

stockinteger | null

Finite code stock, or null for non-stock products.

200 OK
[
  {
    "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
  }
]
GET/api/v2/profile

Returns account details and available balance.

Use this endpoint to

  • Display the current balance
  • Confirm account identity
  • Read the masked API key hint
200 OK
{
  "telegram_id": 123456789,
  "username": "username",
  "language": "en",
  "balance_usd": "250.000",
  "api_key_hint": "Ab12••••Xy90"
}
GET/api/v2/orders/{order_id}

Returns the current result, item statuses and any delivered customer codes.

Create order→Poll status URL→Receive final result
Private order scope

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.

Important result fields

statusstring

The overall order status. Use it to decide whether polling must continue.

items[].statusstring

The result of each individual item in the order.

refunded_usdstring

The exact amount automatically returned to the API account balance.

completed_atstring | null

Null while processing; an ISO 8601 timestamp after the order reaches a final status.

codesarray

Delivered customer codes for a successful code item; otherwise an empty array.

Final partial result
{
  "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": []
    }
  ]
}
POST/api/v2/api-key/rotate

Invalidates the current key and issues a new one.

Update integrations

The new key remains available under My account. The previous key stops working immediately.

03

ORDER LIFECYCLE

Order and item statuses

Use the top-level order status as the source of truth. All status values are lowercase and case-sensitive.

Final status rule

Keep polling while the order is processing. Stop only when it becomes completed, partial or failed.

Order status

StatusFinal?MeaningIntegration action
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.

Item status

StatusMeaningIntegration action
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.
200

HTTP success is not delivery success

An HTTP 200 response only means the API request succeeded. Always inspect the JSON order status.

✓

Immediate completion

Instant-code products can return completed directly from POST /api/v2/orders. Poll only when the returned status is processing.

↩

Refund accounting

refunded_usd is the exact amount returned to the API account balance. For a partial order, it covers only failed items.

◷

Completion timestamp

completed_at is null while the order is processing and contains an ISO 8601 timestamp after a final result.

Safe polling example · Python
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"])
Safe retries

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.

04

REFERENCE

Error handling

StatusMeaningAction
400Invalid parameters or recipientCheck the SKU, quantity, and recipient fields.
401Missing or invalid API keyVerify the X-API-Key header.
402Insufficient balanceAdd funds to the account and retry.
404Order not found or not accessibleCheck the order ID and API account.
405Wrong HTTP methodUse GET to read data and POST to create orders.
409Product unavailable, out of stock, ordering closed, idempotency conflict, or order rejectedRefresh the catalog and check whether this key already created an order.
422Invalid request body or schemaCorrect the JSON, required fields, and value types.
503Recipient validation temporarily unavailableWait and retry the same checkout with the same Idempotency-Key.
05

GOOD PRACTICE

Security checklist

Treat your API key like a password. Rotate it immediately if it may have been exposed.

  • Keep credentials in environment variables or a secret manager
  • Use a new idempotency key for each checkout
  • Set request timeouts and log order IDs
  • Never publish delivered codes in application logs