- Last Updated
Check Payment Validity
Introduction
Used to verify the payment validity from the delivery system (Game / Mobile Billing / Online Billing).
When using the standard payment window for billing integration, it retrieves the detailed payment information using the GUID and transaction number.
Basic Information
text
POST /bill-cpm/v1.0/payment/{service_id}/details
Host:
https://api.onstove.com (LIVE)
https://api.gate8.com (SB)
Content-Type: application/json
Request
Header
| Name | Type | Required | Default Value | Example | Description |
|---|---|---|---|---|---|
| Authorization | string | Y | - | Bearer | User access token issued after user authentication |
| X-Lang | String | Y | - | ko | Language code |
| X-Nation | String | Y | - | KR | Country code |
| X-Timezone | String | Y | - | Asia/Seoul | Time zone |
| X-Utc-Offset | Int32 | Y | - | 540 | UTC offset |
| caller-id | String | Y | - | {game_id}_SERVER | API caller info {game_id}_SERVER (server) |
Path Variable
| Name | Type | Required | Default Value | Example | Description |
|---|---|---|---|---|---|
| service_id | String | Y | - | STOVE_QA | Game code (issued by STOVE as game_id) |
Body
| Name | Type | Required | Default Value | Example | Description |
|---|---|---|---|---|---|
| details | List | Y | - | - | Details list (max 100 items) |
details
| Name | Type | Required | Default Value | Example | Description |
|---|---|---|---|---|---|
| bill_platform_type | string(16) | Y | - | SHOP | Payment platform type - MOBILE: Mobile billing - SHOP: Store (online billing) Required for validation check |
| noti_type | string(32) | Y | - | ONLINE_PURCHASE | Notification type ONLINE_PURCHASE: Online general product purchase IAP_PURCHASE: Mobile general product purchase IAP_SUBSCRIPT: Mobile subscription product purchase IAP_OOAP: Mobile OOAP product purchase ONLINE_CART_PURCHASE: Online cart product purchase or multiple purchase case (web store) |
| guid | string(50) | N | - | - | STOVE member GUID (unique user ID per game) Required except for games without GUID (currently indie games) |
| tid | string(20) | Y | - | T202202103125 | Order number issued by STOVE billing (TransactionDetailNo value when integrating PC_SDK) |
| member_no | long | N | - | Member number Required only for games without GUID (currently indie games) Excluded from parameter list when GUID value exists |
Response
Body
| Name | Type | Required | Default Value | Example | Description |
|---|---|---|---|---|---|
| code | Integer | Y | - | 0 | Response code |
| message | String | Y | - | OK | Response message |
| data | Object | N | - | - | Response data |
data(SHOP, Online Products, Mobile Products)
| Name | Type | Required | Default Value | Example | Description |
|---|---|---|---|---|---|
| tid | string(20) | Y | - | T202202103125 | Transaction ID issued by STOVE Billing |
| product_id | string(20) | Y | - | p1002 | Product code registered on STOVE Platform |
| product_price | decimal | Y | - | 1100, 0.99 | Transaction amount |
| product_currency | string(3) | Y | - | KRW, USD | Currency code |
| txn_time | long | Y | - | 1644489139000 | Payment time (Unix Timestamp UTC-0) |
| inservice_item_id | string(30) | Y | - | cp7892 | In-game item ID |
data(Store Products)
| Name | Type | Required | Default Value | Example | Description |
|---|---|---|---|---|---|
| tid | string(20) | Y | - | T202202103125 | Transaction ID issued by STOVE Billing |
| products | Array | Y | - | - | Product information (array for shopping cart support) |
products
| Name | Type | Required | Default Value | Example | Description |
|---|---|---|---|---|---|
| tid | string(20) | Y | - | T202202103125 | Transaction ID issued by STOVE Billing |
| product_id | string(20) | Y | - | p1002 | Product code registered on STOVE Platform |
| quantity | Integer | Y | - | 1 | Product quantity |
| product_price | decimal | Y | - | 1100, 0.99 | Transaction amount |
| product_currency | string(3) | Y | - | KRW, USD | Currency code |
| txn_time | long | Y | - | 1644489139000 | Payment time (Unix Timestamp UTC+0) |
| inservice_item_id | string(30) | Y | - | cp7892 | In-game item ID |
Sample
Request
text
curl --location --request POST 'https://api.onstove.com/bill-cpm/v1.0/payment/{service_id}/details' \
--header 'Authorization: Bearer {{access_token}}'
--header 'caller-id: {{caller-id}}'
{
"details" : [
{
"tid": "T20220304125",
"bill_platform_type": "MOBILE",
"guid": 123456
},
{
"tid": "T20220304127",
"bill_platform_type": "SHOP",
"guid": 123456
}
]
}
Response
text
{
"code":0,
"message":"OK",
"data": [
// Online or Mobile Product
{
"tid":"T202202103125",
"product_id":"p1002",
"product_price":5000.00,
"product_currency":"KRW",
"txn_time":1644489139000,
"inservice_item_id":"cp7892"
}
// Store Product
{
"tid": "T202202103125",
"products": [
{
"product_id": "123456",
"quantity": 1,
"product_price": 5000.00,
"product_currency": "KRW",
"txn_time": 1644489139000,
"inservice_item_id": "cp7892"
}
]
}
]
}
Return Code
| HTTP Status Code | response_code | response_message | Description |
|---|---|---|---|
| 200 | 0 | OK | Success |
| 200 | 404 | Payment is not available | The order does not exist in the platform |
| 200 | 2004 | Platform information does not exist | Platform URL info missing |
| 200 | 99999 | Payment is not available | System error occurred on the platform |
| 500 | 2000~3000 range | Internal Error | Internal error: Contact publishing technical support |
Contact Us
If you have any questions, please contact us on Discord or by email at store.support@smilegate.com.