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, currency, parent, type, password (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 |
displayName | Not in use | string (256) | |
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 | Not in use | string (1024) |
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",
"displayName" : "",
"currency" : "EUR",
"parent" : "",
"type" : "",
"password" : "123456",
"details" : ""
}
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
}
SOAP
<CreateIdentityResult>
<Code>0</Code>
<Message></Message>
<Identity>
<Name>8f335369-4200-42af-b6ad-4008e76f1ecc</Name>
<State>1</State>
</Identity>
</CreateIdentityResult>
Comments
0 comments
Article is closed for comments.