Skip to content
Store Dev
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

NameTypeRequiredDefault ValueExampleDescription
AuthorizationstringY-BearerUser access token issued after user authentication
X-LangStringY-koLanguage code
X-NationStringY-KRCountry code
X-TimezoneStringY-Asia/SeoulTime zone
X-Utc-OffsetInt32Y-540UTC offset
caller-idStringY-{game_id}_SERVERAPI caller info {game_id}_SERVER (server)

Path Variable


NameTypeRequiredDefault ValueExampleDescription
service_idStringY-STOVE_QAGame code (issued by STOVE as game_id)

Body


NameTypeRequiredDefault ValueExampleDescription
detailsListY--Details list (max 100 items)

details


NameTypeRequiredDefault ValueExampleDescription
bill_platform_typestring(16)Y-SHOPPayment platform type - MOBILE: Mobile billing - SHOP: Store (online billing) Required for validation check
noti_typestring(32)Y-ONLINE_PURCHASENotification 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)
guidstring(50)N--STOVE member GUID (unique user ID per game) Required except for games without GUID (currently indie games)
tidstring(20)Y-T202202103125Order number issued by STOVE billing (TransactionDetailNo value when integrating PC_SDK)
member_nolongN-Member number Required only for games without GUID (currently indie games) Excluded from parameter list when GUID value exists

Response


Body


NameTypeRequiredDefault ValueExampleDescription
codeIntegerY-0Response code
messageStringY-OKResponse message
dataObjectN--Response data

data(SHOP, Online Products, Mobile Products)


NameTypeRequiredDefault ValueExampleDescription
tidstring(20)Y-T202202103125Transaction ID issued by STOVE Billing
product_idstring(20)Y-p1002Product code registered on STOVE Platform
product_pricedecimalY-1100, 0.99Transaction amount
product_currencystring(3)Y-KRW, USDCurrency code
txn_timelongY-1644489139000Payment time (Unix Timestamp UTC-0)
inservice_item_idstring(30)Y-cp7892In-game item ID

data(Store Products)


NameTypeRequiredDefault ValueExampleDescription
tidstring(20)Y-T202202103125Transaction ID issued by STOVE Billing
productsArrayY--Product information (array for shopping cart support)

products


NameTypeRequiredDefault ValueExampleDescription
tidstring(20)Y-T202202103125Transaction ID issued by STOVE Billing
product_idstring(20)Y-p1002Product code registered on STOVE Platform
quantityIntegerY-1Product quantity
product_pricedecimalY-1100, 0.99Transaction amount
product_currencystring(3)Y-KRW, USDCurrency code
txn_timelongY-1644489139000Payment time (Unix Timestamp UTC+0)
inservice_item_idstring(30)Y-cp7892In-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 Coderesponse_coderesponse_messageDescription
2000OKSuccess
200404Payment is not availableThe order does not exist in the platform
2002004Platform information does not existPlatform URL info missing
20099999Payment is not availableSystem error occurred on the platform
5002000~3000 rangeInternal ErrorInternal 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.