Payment inquiry
- Print
- PDF
Payment inquiry
- Print
- PDF
Article summary
Did you find this summary helpful?
Thank you for your feedback
We are preparing a localization service for the content. We will do our best to provide the localization service as soon as possible.
Display payment details by payment ID.
request
GET https://dashboard-api.gamepot.ntruss.com/v1/api/project/{projectId}/purchase/{transactionID}
Item | type | Required | Explanation | Remark |
---|---|---|---|---|
projectId | String | O | ProjectId in GamePot SDK | |
transactionID | String | O | Payment ID of GamePot SDK |
Request header
Header name | Required | Explanation |
---|---|---|
x-api-key | O | Authentication key issued by GamePot |
accept-language | X | Language used |
answer
Field name | type | Explanation |
---|---|---|
status | Int | Result value (1: success) |
(result의) status | Int | Payment result (1: success) |
exchange_price | Int | Amount of payment (Exchange rate applied) |
project_id | String | ProjectId in GamePot SDK |
store_id | String | Store ID (google,one,apple,galaxy) |
payment_id | String | Payment Store ID (google,tpay...) ㅣTypically the same as store_id |
signature | String | signature |
order_id | String | Order ID |
currency | String | currency |
userdata | String | User information |
price | Int | Amount of payment |
id | String | Unique ID of payment data |
unique_id | String | Unique ID |
transaction_id | String | Store payment ID |
createdAt | String | Creation date |
updatedAt | String | Renewal |
request | String | Payment request value |
response | String | Payment response value |
(item_id의) status | String | Result value (of item_id) |
type | String | Item type (inapp) |
name | String | Item name |
prices | String | Item price |
user_id | Please refer to User Lookup API for the user_id part of the response success value. |
example
Request example
curl --request GET \
--url https://dashboard-api.gamepot.ntruss.com/v1/api/project/12a0f2ff-xxxx-xxxx-xxxx-9c13ef02f5fs/purchase/GPA.xxxx-xxxx-xxxx-xxxxxx \
--header 'accept-language: ko' \
--header 'x-api-key: 86dcgffae0641745432as02a8801ce5a5475f764fxxxxxxxxx'
Example response
{
"status": 1,
"result": {
"status": 1,
"exchange_price": 5000,
"project_id": "xxxxxxxxxxxxxx",
"store_id": "google",
"payment_id": "google",
"signature": "xxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"order_id": "u8934",
"currency": "KRW",
"userdata": "{\"unique_id\":\"u8934\",\"server_id\":\"\",\"player_id\":\"\",\"etc\":\"\"}",
"price": 5000,
"id": "xxxxxxxxxxxxxx",
"unique_id": "u8934",
"transaction_id": "xxxxxxxxxxxxxx",
"createdAt": "Wed Mar 18 2020 17:55:29 GMT+0900 (GMT+09:00)",
"updatedAt": "Wed Mar 18 2020 17:55:29 GMT+0900 (GMT+09:00)",
"request": "https://xxxxxxxxxxxxxx",
"response": "{\"status\":1}",
"item_id": {
"status": null,
"type": "inapp",
"name": "name_001",
"prices": []
},
"user_id": {
"id": "xxxxxxxxxxxxxx",
"deleted": false,
"store_id": "google",
"country": "KR",
"remoteip": "xxx.xxx.xxx.xxx",
"adid": "xxxxxxxxxxxxxx",
"device": "android",
"network": "WIFI",
"version": "10",
"model": "Pixel_3",
"token": "xxxxxxxxxxxxxx",
"push": true,
"night": false,
"ad": true,
"memo": null,
"device_id": "xxxxxxxxxxxxxx",
"createdAt": "Wed Mar 18 2020 17:54:41 GMT+0900 (GMT+09:00)",
"updatedAt": "Wed Mar 18 2020 17:54:42 GMT+0900 (GMT+09:00)",
"loginedAt": "Wed Mar 18 2020 17:54:41 GMT+0900 (GMT+09:00)",
"deletedAt": null
}
}
}
Error code
Common error code that occurs when requesting Gamepot Open API.
parameter | Explanation |
---|---|
status | Error code (1: Refer to Error code in case of success or failure ) |
message | Error details |
Error code | Explanation |
---|---|
-1 | If you used a key that is not on the dashboard |
-2 | The key of the dashboard and the key of the header are different. |
-3 | When using a key deleted from the dashboard |
-4 | The dashboard used unused keys. |
-5 | If the key has expired |
-6 | If there is no project ID |
{
"status": -6,
"message": "projectId was wrong."
}
Was this article helpful?