Payment cancellation inquiry
- Print
- PDF
Payment cancellation 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.
View payment cancellation history by payment ID.
Note
Only Google payments are viewed.
request
GET https://dashboard-api.gamepot.ntruss.com/v1/api/project/{projectId}/purchase/voided/{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) |
id | String | Payment cancellation ID |
member_id | String | User UID |
package_id | String | Package name |
price | int | Amount of payment |
deleted | Boolean | Whether to delete (true : delete, false : normal) |
purchasedAt | String | Payment date |
voidedAt | String | Payment cancellation date |
createdAt | String | Creation date |
updatedAt | String | Renewal |
deletedAt | String | Delete date |
currency | String | currency |
status | Int | state |
purchase_id | Please refer to Payment inquiry API for the purchase_id part of successful response values. |
example
Request example
curl --request GET \
--url https://dashboard-api.gamepot.ntruss.com/v1/api/project/12a0f2ff-xxxx-xxxx-xxxx-9c13ef02f5fs/purchase/voided/GPA.3381-xxxx-xxxx-12398 \
--header 'accept-language: ko' \
--header 'x-api-key: 86dcgffae0641745432as02a8801ce5a5475f764fxxxxxxxxx'
Example response
{
"status": 1,
"result": {
"id": "xxxxxxxxxxxxxx",
"member_id": "xxxxxxxxxxxxxx",
"package_id": "xxx.xxx.xxxxxxx",
"price": 3000,
"deleted": false,
"purchasedAt": "Fri Feb 21 2020 16:32:35 GMT+0900 (GMT+09:00)",
"voidedAt": "Fri Feb 21 2020 16:33:58 GMT+0900 (GMT+09:00)",
"createdAt": "Fri Feb 21 2020 17:25:10 GMT+0900 (GMT+09:00)",
"updatedAt": "Fri Feb 21 2020 17:25:10 GMT+0900 (GMT+09:00)",
"deletedAt": null,
"currency": "KRW",
"status": 0,
"purchase_id": {
"status": 1,
"exchange_price": 3000,
"project_id": "xxxxxxxxxxxxxxxxxx",
"store_id": "google",
"payment_id": "google",
"signature": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"order_id": "xxxxxxxxxxxxxx",
"currency": "KRW",
"userdata": "{\"unique_id\":\"\",\"server_id\":\"\",\"player_id\":\"\",\"etc\":\"\"}",
"price": 3000,
"id": "xxxxxxxxxxxxxx",
"unique_id": "",
"transaction_id": "GPA.3307-2597-6064-86473",
"createdAt": "Fri Feb 21 2020 16:32:39 GMT+0900 (GMT+09:00)",
"updatedAt": "Fri Feb 21 2020 17:25:10 GMT+0900 (GMT+09:00)",
"request": "https://xxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"response": "{\"status\":1}"
}
}
}
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?