Authentication
Methods related to authentication
Last updated
Was this helpful?
Methods related to authentication
Last updated
Was this helpful?
AccountCode
string
The AccountCode
is a unique key which represents a Number account. This code will never change throughout the life of your account. Each AccountCode
is 2 letters and 7 numbers. You can also use this code when communicating with Number support team.
Example: EP911XXXX
SessKey
string
A unique session key used for authentication in API calls. This key is generated upon successful authentication and must be included in all subsequent requests.
Example: B9F24903C3BA4770AE303032303541303032353437
FunctionOk
boolean
Indicates if the function executed correctly.
RespMsg
string
Friendly response message for the user.
ErrMsg
string
Error message. Empty or null if no error.
ErrCode
int
Error code. 0 indicates success.
You will need to reauthenticate when one of the following two errors occur:
5030: Expired Session Key (session key has expired after 25 hours)
5050: Unauthorized Session Key (your IP has changed since you last authenticated)
The system will lock your IP out if you send 6 unsuccessful authentication attempts in a row. Always abort unsuccessful authentication attempts instead of retrying and notify the user. Only the Number support team can remove the lock from a merchant.
Token
string
The Token
is a 32-characater hexadecimal string generated from the Client Admin Portal which acts as a password when authenticating to our APIs. A newly generated Token
will be good for 2 years. Keep your tokens stored safely and securely, and do not email them without extra layers of security.
Example: 2148B239CF6846BDA5D141BF4A4CFBE8