Nexus Integrations / API / Roblox Integration
Record Roblox Purchase
Tell Nexus that Roblox has accepted a purchase so Nexus can create the order and entitlement.
1. Endpoint
POST
https://api.gpirblx.com/api/v1/stores/@me/purchasesRecords a ProcessReceipt purchase. Nexus uses the product price and ignores client-supplied price changes.
2. Parameters
| Name | Location | Required | Description |
|---|---|---|---|
storeId | Body | Yes | The store ID used by the Roblox integration. |
user_id | Body | Yes | The Roblox buyer ID. |
product_id | Body | Yes | The Nexus product ID. |
purchase_id | Body | Yes | The unique Roblox purchase ID. |
3. Request
When sending JSON, include the following request body:
{
"storeId": "STORE_ID",
"user_id": "123456789",
"product_id": "PRODUCT_ID",
"purchase_id": "ROBLOX_PURCHASE_ID"
}Example request:
curl -X POST "https://api.gpirblx.com/api/v1/stores/@me/purchases" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"storeId":"STORE_ID","user_id":"123456789","product_id":"PRODUCT_ID","purchase_id":"ROBLOX_PURCHASE_ID"}'4. Response
Successful response:
{
"purchaseId": "ROBLOX_PURCHASE_ID",
"alreadyProcessed": false,
"order": { "id": "order_id", "status": "DELIVERED" },
"entitlement": { "id": "entitlement_id", "status": "ACTIVE" }
}