Creates the given code, decreases the customer's credits if level <= 1.
ARGUMENTS
API-KEY (Required) : Your API application key. See here for more details.
code (Required) : The code to be created.
URL (Required) : URL this code should resolve to. The URL must be URL-Encoded!.
expiration (Optional) : UNIX Timestamp this code will expire. When not given, the code never expires.
RETURNS
boolean true : In case of success.
throws an error : In case of failure
EXAMPLE REQUEST (HTTP GET)
http://decode.kaywa.com/api/createCode?API-KEY=&code=2029998765&URL=http%3A%2F%2Fwww.kaywa.com
EXAMPLE RESPONSE
true
ERROR CODES
1 : DECODE_APIERROR_INVALID_CODE - The code passed was invalid.
3 : DECODE_APIERROR_INSUFFICIENT_CREDITS - Insufficient credits to create a new code.
4 : DECODE_APIERROR_CODE_EXISTS - The code passed already exists.
6 : DECODE_APIERROR_NOT_AUTHORISED - Customer not authorized to create code.
The URL passed must be URL-Encoded