Error

Error

In case of any error the response always includes metadata about the specific error, where ever there is redirect involved the error metadata is always part of the query parameter where in case of an "api" call's the response includes an body

Response Example

{

" status ": " PAYMENT_REQUIRED "

" error ": " INSUFFICIENT_FUND "

" message ": " OPTIONAL_MESSAGE "

" customerMessage ": " OPTIONAL_CUSTOMER_MESSAGE_SHOULD_BE_DISPLAYED_WHEN_PRESENT "

" trace ": " OPTIONAL_USED_FOR_DEBUGGING "

" details ": " OPTIONAL_USED_FOR_DEBUGGING "

}

List of errors

Status/Error HTTP Status Code
MOVED_TEMPORARILY 302
PURCHASE_REQUEST_NOT_VALID 400
BAD_REQUEST 400
TOKEN_CONTEXT_IS_NOT_VALID 401
UNAUTHORIZED 401
TOKEN_NOT_FOUND 401
INSUFFICIENT_BALANCE 402
USER_DECLINED_PURCHASE_DURING_CONFIRMATION 403
USER_IS_BLOCKED 403
USER_IS_BLACKLISTED 403
PAYMENT_TEMPORARILY_BLOCKED 403
FORBIDDEN 403
SUBSCRIPTION_TYPE_NOT_FOUND 404
SUBSCRIPTION_NOT_FOUND 404
NOT_FOUND 404
USER_ALREADY_SUBSCRIBED 409
CONFLICT 409
SUBSCRIPTION_ALREADY_CANCELLED 410
SERVICE_UNAVAILABLE 500
PROVIDER_IDENTITY_TYPE_IS_MISSING_FOR_USER 500
NOT_IMPLEMENTED 501
WIFI_AUTHENTICATION_NOT_AVAILABLE 501