This operation creates an identity with the required parameters.
Request
| PARAMETER | DESCRIPTION | FORMAT | EXAMPLE |
| partnerID |
ID of partner. Unique ID associated with each customer |
GUID | D61A14AE-0A0C-464B-B7AB-5900BE7462F9 |
| sign |
Parameters. partnerID, name, fullName, currency, parent, type, password, details, timestamp, nonce (for more information, see Creating Data Sign) |
string (64) |
5E0A0349AE36AD67CD21D891AB124CCE 8CC4171C5BD7EF5B26FCA86DB71F500A |
| name |
Identity name. Allowed characters a-zA-Z0-9._- |
string (48) | 8f335369-4200-42af-b6ad-4008e76f1ecc |
| fullName |
Identity name. This parameter is optional. The default value is an empty string. |
string (48) | 8f335369-4200-42af-b6ad-4008e76f1ecc |
| currency |
Currency. This value is in ISO 4217 format, so it is expressed with 3 letters. |
string (3) | USD |
| parent |
Parent name of created identity. This parameter is optional. The default value is an empty string. |
string (48) | O24052 |
| type | Identity type. This parameter is optional. The default value is an empty string. | string (32) | integration.player |
| password |
Password of identity. This parameter is optional. The default value is an empty string. |
string (256) | pass123 |
| details |
Raw text field. This parameter is optional. The default value is an empty string. |
string (1024) | |
| timestamp | Unix epoch seconds, UTC, decimal integer | string | 1731398400 |
| nonce | UUID v4, hyphenated | string | f47ac10b-58cc-4372-a567-0e02b2c3d479 |
Request example:
REST JSON
POST https://staging.tomhorngames.com/services/gms/RestCustomerIntegrationService.svc/CreateIdentity HTTP/1.1
Accept-Encoding: gzip,deflate
Content-Type: application/json
Content-Length: 123456
Host: staging.tomhorngames.com
{
"partnerID" : "9a2e7402-5cef-42ed-84a6-db589ce19fc6",
"sign" : "355B98FC4A3D7FA97758E52A65F07AEF5738FDB078762F5B5C097A828C10C36D",
"name" : "8f335369-4200-42af-b6ad-4008e76f1ecc",
"fullName" : "",
"currency" : "EUR",
"parent" : "",
"type" : "",
"password" : "123456",
"details" : "",
"timestamp": "1731398400",
"nonce": "f47ac10b-58cc-4372-a567-0e02b2c3d479"
}Response
| PARAMETER | DESCRIPTION | FORMAT | EXAMPLE |
| Code | Result codes: 0, 1, 11, 12, 1001, 1002, 1003, 1004, 1012, 1014, 1015, 1016, 1019 (for more information, see Result Codes) | integer | 0 |
| Message | Description of the error, if one has occurred. This value is filled only if an error takes place. | string (256) | Cannot find specified identity |
| Identity | This property is set only if the result code is 0 (success) | ||
| Name | Identity name | string (48) | 8f335369-4200-42af-b6ad-4008e76f1ecc |
| State |
The current state of identity:
|
short | 1 |
Response example:
REST JSON
{
"Code" : 0,
"Identity" : {
"Name" : "8f335369-4200-42af-b6ad-4008e76f1ecc",
"State" : 1
},
"Message" : null
}
Comments
0 comments
Article is closed for comments.