Available in Classic and VPC
This page describes how to set the delivery of server to server requests for item provision and login validation.
Request purchased item
You can set to deliver HTTP requests through webhooks to proceed with the provision of items according to the purchase or use of coupons.
The following describes how to set the delivery of HTTP requests through a webhook for the item provision.
- Log in to the dashboard with the admin account.
- Click the Project settings > General menus, in that order.
- In the Purchase item (operation) or Coupon item (operation) field in the Webhook area, enter the HTTP/HTTPS URL by referring to the following guide.
- See Request and response after purchase for item provision after purchase.
- See Request and response after coupon use for item provision after coupon use.
- When providing items to test users, enter the request in the field marked with (Test user) .
- Click the [Save] button.
Request and response after purchase
Set HTTP request and response by referring to the following table and code.
-
Request
https://{domain}? userId={userId}&orderId={orderId}&projectId={projectId}&platform={platform}&productId={productId}&store={store}&payment={payment}&transactionId={transactionId}&gamepotOrderId={gamepotOrderId}&uniqueId={uniqueId}&tp={tp}&server_id={server_id}&player_id={player_id}&status={status}&remoteip={remoteip}&userdata={userdata}Property Type Maximum length Description userIdString128 User ID transactionIdString512 Order number (GPA-xxxx-xxxx-) storeString64 Store information ( apple,google,one)projectIdString128 Project ID productIdString256 Product ID registered in Google Play Store, Apple App Store, and ONE Store platformString128 Operating platform information ( android,ios)paymentString64 Payment method uniqueIdString512 Order ID managed in GAMEPOT gamepotOrderIdString512 Order ID managed in GAMEPOT orderIdString512 Order ID managed in GAMEPOT serverIdString- serverId ( serverIdentered when calling setServerId API)playerIdString- playerId ( playerIdentered when calling setPlayerId API)tpInteger- - 1: test payment
- 0: general payment
remoteipString- IP Address userdataString- User data (JSON format) - {"player_id" : String, "server_id" : String, "metadata" : String, "options" : String}player_id: Player ID value (playerId)server_id: Server ID value (serverId)metadata: metadata (metadata value entered at the time of purchase)options: options (additional option value entered at the time of purchase)
-
Response
{ "status": 1, "message" : "" }Property Type Description statusIntegerResult value -
0: failure,1: Succeeded
messageStringError message -
Request and response after gifting and coupon use
Set HTTP request and response by referring to the following table and code.
-
Request
https://{domain}? userId={userId}&projectId={projectId}&platform={platform}&store={store}&userData={userData}&itemId=[{itemData}, {itemData}, ...]&title={title}&content={content}&serverId={serverId}&playerId={playerId}Property Type Maximum length Description userIdString128 User ID (If the Game > Gift > Target value in the dashboard is All, all)projectIdString128 Project ID platformString128 Operating platform information ( android,ios)storeString64 Store information ( apple,google,one)titleString- The value entered in Dashboard > Game > Gift > Title contentString- The value entered in Dashboard > Game > Gift > Description targetString- GAMEPOT Dashboard > Game > Gift > Target value - All: all/User ID: user userDataString- The value entered in the second parameter when calling the client SDK coupon API, or the value entered in Dashboard > Game > Gift > UserData serverIdString- Server ID value ( serverIdentered when calling setServerId API)playerIdString- Player ID value ( playerIdentered when calling setPlayerId API)itemIdArray- itemData Array - itemData(JSON) {"item_id" : String, "store_item_id" : String, "count" : Number}item_id: unique ID of the item created in Game > Item in the dashboardstore_item_id: ID of the item to be providedcount: number of items to be provided
-
Response
{ "status": 1, "message" : "" }Property Type Description statusIntegerResult value -
0: failure,1: Succeeded
messageStringError message -