Skip to content
Last updated

Mandatory Response Fields

According to the RubyPlay Seamless Wallet API, all HTTP responses should return HTTP Status Code 200 "OK".

Any other HTTP Status Code will be considered a problem with the wallet's server and the request will be handled properly according to the invoked endpoint.

In case of business logic errors, the response must also be returned with HTTP Status Code 200 and an error code within the response body.

The result of the corresponding request must be reflected in the following fields in the response body:

FieldTypeDescription
codeStringResponse code (see the possible codes in the Response Codes).
descriptionStringShort description of the response code.

Other fields can also be presented in the responses but code and description fields are mandatory.

Common response example (in JSON format):

{
	"code": "0",
	"description": "Success"
}