For the complete documentation index, see llms.txt. This page is also available as Markdown.

User Validation

Verifies whether the game ID and server information entered by the user are valid and whether the item can be purchased.

  • Game ID is the value used to identify the final recipient (user or character) who will receive the item. In ONEshop, it is transmitted as serviceUserId. (Depending on the game structure, it may be used as a UID or a Character ID.)

  • ONEshop does not hold the user's game account information and decides whether to proceed with the purchase based on the game server's response. The game server must verify that the received game ID and server actually exist and that the item can be purchased before responding.

Titles without a registered validation URL cannot process payments. You can register the URL in ONEconsole > Webshop > Developer > Server Integration.

Call Timing

Validation is called when the user enters the game ID and when the user purchases an item. You can tell the two requests apart by whether param.prodId is included.

Timing
param.prodId
Game server handling

UID login

Not included

Called when the user enters the game ID (UID) in ONEshop and logs in. Respond after checking only whether the game ID and server are valid.

  • Item information is not available at this point, so respond with 0000 or 1000.

  • If you respond with 1001 at this point, the ONEshop flow stops. Determine whether the item can be purchased (1001) at the time of item purchase.

Item purchase

Included

Called when the user requests an item purchase. Check both the validity of the game ID and server and whether the item can be purchased before responding.

Request URI

HTTP Type

HTTPS

HTTP Method

POST

URL

You can register the server URL in ONEconsole > Webshop > Developer > Server Integration. For setup instructions, refer to the Server Integration guide.

Header

Content-Type: application/json; charset=UTF-8

Accept: application/json

Request

Name
Type
Mandatory
Description

param.clientId

String

M

ONEshop Title ID (e.g., WS00000001)

param.prodId

String

Optional

ONEshop Item ID

  • Included only at the time of item purchase.

  • Requests at UID login do not include this field.

param.serviceUserId

String

M

User's Game ID (up to 100 bytes)

param.serviceServerId

String

Optional

User's Server ID (up to 100 bytes)

  • Passed when a Server List type is set in the Player Identity Field.

param.serviceCustomFields

String (JSON String)

Optional

User Custom Field

  • Passed when you have added a Custom Field in ONEconsole > Webshop > Developer > Player Identity Field.

  • A JSON string in the format {"field key": "input value"}.

  • For details, see Player Identity Field.

signature

String

M

Signature to prevent tampering

  • You can find the signature key in the License tab of ONEconsole > Webshop > Developer > Server Integration.

  • For the signing target and verification method, see Signature Verification below.

Example

Signature Verification

Item
Details

Algorithm

SHA512withRSA

Verification key

The license key (Base64 public key) in the License tab of ONEconsole > Webshop > Developer > Server Integration

Signing target

The {"param":{...}} string (UTF-8), which is the request body excluding signature

Signature value

Base64

  • Use the raw request body (bytes) exactly as received for signature verification. Parsing the JSON and serializing it again is not recommended because the field order, whitespace, and Unicode escaping may change, causing verification to fail. If you must re-serialize, keep the field order, use no whitespace, and do not escape Unicode characters such as Korean.

  • Fields without a value (such as prodId and serviceServerId) are included in neither the request nor the signing target.

  • If signature verification fails, respond with HTTP 200 and set result.code to 2000. Any code other than 0000, 1000, and 1001 is treated as a validation failure.

Response

Name
Type
Mandatory
Description

result.code

String

M

0000: Success

1000: Non-member (game ID not registered on the game server)

1001: Not allowed to purchase

  • If you respond with any value other than these three, or do not respond, it is treated as a validation failure and the purchase does not proceed.

result.message

String

M

  • When result.code is 1001, this message is displayed to the user.

  • It is recommended to provide the message in a language appropriate for the target users.

  • Example messages

    • "구매 가능한 횟수를 초과하였습니다."(You have exceeded the maximum number of purchases allowed.)

    • "이미 구매한 상품입니다."(This product has already been purchased.)

    • "이벤트 기간이 종료된 상품입니다."(This product is no longer available as the event period has ended.)

developerPayload

String

Optional

An identifier for a purchase provided by the developer in the validation response.

  • It is passed as is in the payment request, and is also included in the PNS after payment completion and used for purchase verification.

  • If you do not provide it, it is difficult to match a purchase in the sales history with a developer order, so providing it is recommended.

Example

Last updated