PayTo Receivables Report
GET
https://api-beta.monoova.com/paytoreceivables/v2/report/{date}
Path Parameters
- datestringrequiredExampleDescriptionDefault20261029000000Pattern^\d{4}(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])[0-5]\d[0-5]\d$
Query Parameters
- endDatestringExampleDescriptionDefault20261029235959Pattern^\d{4}(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])[0-5]\d[0-5]\d$
- skipstringExampleDescriptionDefault0Pattern^\d{1,9}$
- takestringExampleDescriptionDefault1000Pattern^\d{1,9}$
- accountNumberstringExampleDescriptionDefault765432177Pattern^\d{1,9}$
- clientUniqueIdstringExampleDescriptionDefault5F2B8C1D9E7A4B3C8D6E0F1A2B3C4Pattern^[A-Za-z0-9_-]{1,50}$
- payIdstringExampleDescriptionDefaultPattern^[^@\s]{1,64}@[^@\s]{1,191}$
- payIdNamestringExampleDescriptionDefaultMonoova Test Account 01Pattern^.{1,140}$
Header Parameters
- acceptstringDescriptionDefaultapplication/octet-streamAllowedapplication/octet-streamapplication/json
Responses
200
400
- badRequestResponse_V2Example
{ "durationMs": 4, "status": "Error", "statusDescription": "The date supplied is invalid. Provide the date in yyyyMMddHHmmss format, for example 20261029000000." }Description- durationMsintegerExampleDescriptionDefault4Pattern^\d{1,10}$
- statusstringExampleDescriptionDefaultErrorPattern^[A-Za-z]{2,50}$
- statusDescriptionstringExampleDescriptionDefaultThe date supplied is invalid. Provide the date in yyyyMMddHHmmss format, for example 20261029000000.Pattern^.{1,500}$
401
- unauthorisedResponse_V2Example
{ "durationMs": 2, "status": "Unauthorized", "statusDescription": "Authentication failed. Supply a valid API key as the basic authentication username." }Description- durationMsintegerExampleDescriptionDefault2Pattern^\d{1,10}$
- statusstringExampleDescriptionDefaultUnauthorizedPattern^[A-Za-z]{2,50}$
- statusDescriptionstringExampleDescriptionDefaultAuthentication failed. Supply a valid API key as the basic authentication username.Pattern^.{1,500}$
403
- forbiddenResponse_V2Example
{ "durationMs": 3, "status": "Forbidden", "statusDescription": "The Sign-In Account is not permitted to access this report." }Description- durationMsintegerExampleDescriptionDefault3Pattern^\d{1,10}$
- statusstringExampleDescriptionDefaultForbiddenPattern^[A-Za-z]{2,50}$
- statusDescriptionstringExampleDescriptionDefaultThe Sign-In Account is not permitted to access this report.Pattern^.{1,500}$
404
- notFoundResponse_V2Example
{ "durationMs": 1, "status": "Error", "statusDescription": "The requested resource was not found. Check the URL and include the date path parameter." }Description- durationMsintegerExampleDescriptionDefault1Pattern^\d{1,10}$
- statusstringExampleDescriptionDefaultErrorPattern^[A-Za-z]{2,50}$
- statusDescriptionstringExampleDescriptionDefaultThe requested resource was not found. Check the URL and include the date path parameter.Pattern^.{1,500}$
500
- internalServerErrorResponse_V2Example
{ "durationMs": 118, "status": "Error", "statusDescription": "An unexpected error occurred while processing the request. Please try again later." }Description- durationMsintegerExampleDescriptionDefault118Pattern^\d{1,10}$
- statusstringExampleDescriptionDefaultErrorPattern^[A-Za-z]{2,50}$
- statusDescriptionstringExampleDescriptionDefaultAn unexpected error occurred while processing the request. Please try again later.Pattern^.{1,500}$
502
- badGatewayResponse_V2Example
{ "durationMs": 1520, "status": "Error", "statusDescription": "An invalid response was received from an upstream service. Please try again later." }Description- durationMsintegerExampleDescriptionDefault1520Pattern^\d{1,10}$
- statusstringExampleDescriptionDefaultErrorPattern^[A-Za-z]{2,50}$
- statusDescriptionstringExampleDescriptionDefaultAn invalid response was received from an upstream service. Please try again later.Pattern^.{1,500}$
504
- gatewayTimeoutResponse_V2Example
{ "durationMs": 30012, "status": "Error", "statusDescription": "The request timed out before the report was generated. Please try again later." }Description- durationMsintegerExampleDescriptionDefault30012Pattern^\d{1,10}$
- statusstringExampleDescriptionDefaultErrorPattern^[A-Za-z]{2,50}$
- statusDescriptionstringExampleDescriptionDefaultThe request timed out before the report was generated. Please try again later.Pattern^.{1,500}$
curl
curl --request GET \
--url 'https://api-beta.monoova.com/paytoreceivables/v2/report/{date}?endDate=20261029235959&skip=0&take=1000&accountNumber=765432177&clientUniqueId=5F2B8C1D9E7A4B3C8D6E0F1A2B3C4&payId=monoovatestaccount01%40gmail.com&payIdName=Monoova%20Test%20Account%2001' \
--header 'accept: application/octet-stream'javascript
var myHeaders = new Headers();
myHeaders.append("accept", "application/octet-stream");
myHeaders.append("content-type", "application/json");
var requestOptions = {
method: 'GET',
headers: myHeaders,
redirect: 'follow'
};
fetch("https://api-beta.monoova.com/paytoreceivables/v2/report/{date}?endDate=20261029235959&skip=0&take=1000&accountNumber=765432177&clientUniqueId=5F2B8C1D9E7A4B3C8D6E0F1A2B3C4&[email protected]&payIdName=Monoova Test Account 01", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));ruby
require "uri"
require "json"
require "net/http"
url = URI("https://api-beta.monoova.com/paytoreceivables/v2/report/{date}?endDate=20261029235959&skip=0&take=1000&accountNumber=765432177&clientUniqueId=5F2B8C1D9E7A4B3C8D6E0F1A2B3C4&[email protected]&payIdName=Monoova Test Account 01")
https = Net::HTTP.new(url.host, url.port)
https.use_ssl = true
request = Net::HTTP::Get.new(url)
request["accept"] = "application/octet-stream"
request["content-type"] = "application/json"
response = https.request(request)
puts response.read_body
python
import requests
import json
url = "https://api-beta.monoova.com/paytoreceivables/v2/report/{date}?endDate=20261029235959&skip=0&take=1000&accountNumber=765432177&clientUniqueId=5F2B8C1D9E7A4B3C8D6E0F1A2B3C4&[email protected]&payIdName=Monoova Test Account 01"
payload = {}
headers = {
'accept': 'application/octet-stream',
'content-type': 'application/json'
}
response = requests.request("GET", url, headers=headers, data=payload)
print(response.text)
200
// Successful validation. The PayTo receivables report was generated and is returned as an application/octet-stream of comma-separated values (CSV): a header row followed by one row per PayTo transaction. The schema below describes each column, in the order the columns appear. The sample includes every account-specific column; your report includes only those configured for your account.
400
// Bad request. One or more parameters failed validation, for example a date or endDate that is not in yyyyMMddHHmmss format.
{
"durationMs": 4,
"status": "Error",
"statusDescription": "The date supplied is invalid. Provide the date in yyyyMMddHHmmss format, for example 20261029000000."
}401
// Unauthorised. The API key supplied as the basic authentication username is missing or invalid. In the live environment, the Sign-In Account is locked for one hour after five failed authentication attempts, and the response indicates that the account is locked and the time (UTC) that it will be unlocked.
{
"durationMs": 2,
"status": "Unauthorized",
"statusDescription": "Authentication failed. Supply a valid API key as the basic authentication username."
}403
// Forbidden. The API key was authenticated, but your Sign-In Account is not permitted to access reporting. Contact Monoova support to request access to this report.
{
"durationMs": 3,
"status": "Forbidden",
"statusDescription": "The Sign-In Account is not permitted to access this report."
}404
// Not found. The requested URL does not match an available endpoint, for example the date path parameter is missing or the path is incorrect. Check the URL and resend the request.
{
"durationMs": 1,
"status": "Error",
"statusDescription": "The requested resource was not found. Check the URL and include the date path parameter."
}500
// Internal server error. An unexpected error prevented the Platform from generating the report. Retry the request and contact Monoova support if the error persists.
{
"durationMs": 118,
"status": "Error",
"statusDescription": "An unexpected error occurred while processing the request. Please try again later."
}502
// Bad gateway. The Platform received an invalid response from an upstream service while generating the report, so no report was returned. The report is read-only, so you can safely retry the request after a short wait. Contact Monoova support if the error persists.
{
"durationMs": 1520,
"status": "Error",
"statusDescription": "An invalid response was received from an upstream service. Please try again later."
}504
// Gateway timeout. An upstream service did not respond in time while the report was being generated, so no report was returned. Retry the request after a short wait, or reduce the size of the report with endDate, take or a filter such as accountNumber. Contact Monoova support if the error persists.
{
"durationMs": 30012,
"status": "Error",
"statusDescription": "The request timed out before the report was generated. Please try again later."
}