2-Token Auth
What made this section unhelpful for you?
Error Codes
400 Bad Request - Invalid value for audience
JWT audience (aud) value of 'cambridgefx' was expected. Make sure that the audience ("aud") is set to "cambridgefx" (in the JWT claimset).
400 Bad Request - 'exp' token is set too far into the future
This error is the result of setting the token too far into the future. The threshold is approximately 24 hours after the issue.
400 Bad Request - Invalid Issuer (either Partner or User)
User not found or partner access not configured. Check the "error_description" parameter for more information.
400 Bad Request - Invalid signature key
The auth key or signature must be current; otherwise, the token will not be signed properly that can't be charged for some reason.
400 Bad Request - JWT Token is expired
Token expired. Regenerate token, and as a general rule, it is recommended to use 'current time + 20 minutes' as your expiry date/time.