Skip to content
💡 Want to test this API interactively? Open API Playground ↗

User Sync & Authorization API ​

Register or synchronize a buyer account from the merchant system, and obtain a one-time authorization code for redirecting to iGV pages.

Basic Information ​

PropertyValue
MethodPOST
Path/pay-fac/{merchant}/{ver}/user
AuthenticationRSA Signature
Content-Typeapplication/json

Path Parameters ​

ParameterTypeRequiredDescription
merchantstringYesMerchant ID assigned by iGV (contact the platform to obtain)
verstringYesAPI version, current: v1

Request Headers ​

HeaderTypeRequiredDescription
Content-TypestringYesAlways application/json
noncestringYesA unique random string per request (6–32 characters)
timestampstringYesUnix timestamp (seconds)
signaturestringYesBase64-encoded RSA signature (Signature Guide)

Request Body Parameters ​

ParameterTypeRequiredDescription
merchantUserNostringYesThe buyer's unique user ID in the merchant system
emailstringYesThe buyer's email address
firstNamestringNoFirst name
lastNamestringNoLast name

Request Example ​

http
POST /pay-fac/MERCHANT001/v1/user HTTP/1.1
Host: www.igv.com
Content-Type: application/json
timestamp: 1743478725
nonce: a1b2c3
signature: dGhpcyBpcyBhIHNhbXBsZSBzaWduYXR1cmU=

{
  "merchantUserNo": "U1000001",
  "email": "[email protected]",
  "firstName": "John",
  "lastName": "Doe"
}

Response Parameters ​

ParameterTypeDescription
userIdstringThe buyer's user ID in the iGV system
authorizationCodestringOne-time SSO authorization code

Success Response ​

json
{
  "code": "0000",
  "msg": "Success",
  "time": "2025-04-03 02:55:16",
  "data": {
    "userId": "1739298043323322369",
    "authorizationCode": "qScNfN7U6LfCeKADqmxW1fFbGdVLu0fY"
  }
}

Error Response ​

json
{
  "code": "10003",
  "msg": "Request signature error.",
  "time": "2025-04-03 02:55:16",
  "data": null
}

Using the Authorization Code ​

Append the authorizationCode as a URL query parameter to an iGV page URL to enable automatic SSO login for the buyer.

Example — Redirect to a product detail page:

https://www.igv.com/items/2001591587541073922?authorizationCode=qScNfN7U6LfCeKADqmxW1fFbGdVLu0fY

Note

  • The authorization code is single-use and becomes invalid after use
  • The authorization code has a short validity period; use it immediately after obtaining it
  • Request a new code each time the buyer needs to log in or be redirected to an iGV page

Error Handling ​

CodeDescriptionAction
0000SuccessUse the authorizationCode from data
10001URL parsing errorCheck the merchant and ver parameters
10002JSON parsing errorCheck the request body format
10003Signature verification failedCheck the signature algorithm and signature string
10004Server errorRetry the request

For the full error code reference, see Error Codes.

All game copyrights, trademarks, and service marks belong to their respective owners.