PUT api/v1/offers/topup
Update an existing topup offer.
i. Request Example
{
"offerId": 71394388,
"gameId": 3637,
"title": "Simple Title Update",
"offerDesc": "<p>Simple Description Update.</p>",
"offerDuration": 30,
"agreeCheck": true,
"price": 5,
"serverId": 6590,
"categoryId": 6590,
"instruction": "Simple Instruction Update.",
"deliveryGuarantee": 22,
"totalUnit": 2000,
"minUnitPerOrder": 10,
"currencyPerUnit": 15,
"topUpCategoryId": 103
}
ii. Request Parameters
Body Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| offerId | int | Yes | Offer ID to update. |
| gameId | int | Yes | Game ID. |
| price | decimal | Yes | Offer price. |
| offerDuration | int | Yes | Offer duration in days(3, 7, 14, 30). |
| agreeCheck | bool | Yes | Agreement check. |
| title | string | Yes | Offer title. |
| offerDesc | string | No | Offer description. |
| minUnitPerOrder | decimal | Yes | Minimum units per order. |
| totalUnit | int | Yes | Total units available. |
| currencyPerUnit | decimal | Yes | Currency amount per unit. |
| deliveryGuarantee | int | Yes | Delivery guarantee time. |
| categoryId | int | Yes | Category ID. |
| instruction | string | Yes | Instruction for the offer. |
| serverId | int | Yes | Server ID. |
| topUpCategoryId | int | Yes | Topup category ID. |
iii. Response Example
Success Response
{
"code": 10000,
"message": "",
"requestId": "550e8400-e29b-41d4-a716-446655440000",
"data": {
"offerId": 71394388,
"navigateURL": "https://www.playerauctions.com/lol-top-up/71394388t!simple-title/",
"title": "Simple Title",
"productType": "topup",
"imageBlacklist": ""
}
}
Response Parameters
| Parameter | Type | Description |
|---|---|---|
| code | int | Response code. 10000 indicates success, other values indicate an error. |
| message | string | Response message. Contains error details on failure. |
| requestId | string | Unique identifier for the request, used for tracking. |
| data.offerId | int | Created offer ID. |
| data.navigateURL | string | URL to navigate to the offer page. |
| data.title | string | Offer title. |
| data.productType | string | Product type: "topup" for topup offers. |
| data.imageBlacklist | string | Image blacklist. |
iv. Error Response Example
Error Response
{
"code": 10002,
"message": "Invalid parameter.",
"requestId": "550e8400-e29b-41d4-a716-446655440000"
}Common Error Codes
| Parameter | Type | Description |
|---|---|---|
| code | int | Error code. Common values: 10002 (Invalid parameter), 50001 (Internal server error). |
| message | string | Detailed error message explaining what went wrong. |
| requestId | string | Unique identifier for the request, used for tracking. |