The format of the returned data
The following data structure is used to return data from both the provider's server and the partner’s server.
Successful request
In the case of a successful request, the following structure is returned:
js
{
status: 'success'
data: {
field1: value1,
field2: value2,
...
fieldN: valueN,
}
}Failed request
In case of an error, the following data with HTTP code 200 is returned:
js
{
status: 'error',
error: {
message: 'ValueNotFound',
details: {
field1: value1,
field2: value2,
...
fieldN: valueN,
}
}
}message - an error message will be provided for each method, listing possible errors. details - data allowing for detailed error analysis.