Get Async Payment Instruction Request Status
GET
https://sand-api.monoova.com/au/payto/pas-v1/PaymentInstructionAsync/request/{uniqueRequestId}
Path Parameters
- uniqueRequestIdstringrequiredExampleDescriptionDefault595a3202-e9aa-406e-a2a3-5efb6ca8b72aPattern^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$
Responses
200
- AsyncJobResponseDescription
- traceIdstringExampleDescriptionDefaultbe393fae-52c2-4c9e-a262-4974de6da750Pattern^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$
- uniqueRequestIdstringExampleDescriptionDefault595a3202-e9aa-406e-a2a3-5efb6ca8b72aPattern^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$
- paymentInitiationUIDstringExampleDescriptionDefaultBCORP00000001Pattern^[a-zA-Z0-9_-]{1,35}$
- locationstringExampleDescriptionDefaulthttps://sand-api.monoova.com/au/payto/pas-v1/PaymentInstruction/BCORP00000001Pattern^https://\S+$
- statusstringExampleDescriptionDefaultCompletedPattern^(Accepted|Processing|Completed|Failed|Expired)$
- errorCodestringExampleDescriptionDefaultPAS_AGREEMENT_NOT_FOUNDPattern^[A-Z0-9_]{1,64}$
- errorMessagestringExampleDescriptionDefaultThe PaymentAgreement with the provided ID was not found: BCORP123456Pattern^.+$
400
- ErrorResponseDescription
- traceIdstringExampleDescriptionDefault4ea61012-2d9b-413d-a5b4-90ad69a68741Pattern^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$
- errorsErrorDto[]Description
- errorCodestringExampleDescriptionDefaultPAS_PMT_UID_REQUIREDPattern^[A-Z0-9_]{1,64}$
- errorMessagestringExampleDescriptionDefaultpaymentInitiationUID requiredPattern^.+$
401
403
- ErrorResponseDescription
- traceIdstringExampleDescriptionDefault4ea61012-2d9b-413d-a5b4-90ad69a68741Pattern^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$
- errorsErrorDto[]Description
- errorCodestringExampleDescriptionDefaultPAS_PMT_UID_REQUIREDPattern^[A-Z0-9_]{1,64}$
- errorMessagestringExampleDescriptionDefaultpaymentInitiationUID requiredPattern^.+$
404
- ErrorResponseDescription
- traceIdstringExampleDescriptionDefault4ea61012-2d9b-413d-a5b4-90ad69a68741Pattern^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$
- errorsErrorDto[]Description
- errorCodestringExampleDescriptionDefaultPAS_PMT_UID_REQUIREDPattern^[A-Z0-9_]{1,64}$
- errorMessagestringExampleDescriptionDefaultpaymentInitiationUID requiredPattern^.+$
500
- ErrorResponseDescription
- traceIdstringExampleDescriptionDefault4ea61012-2d9b-413d-a5b4-90ad69a68741Pattern^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$
- errorsErrorDto[]Description
- errorCodestringExampleDescriptionDefaultPAS_PMT_UID_REQUIREDPattern^[A-Z0-9_]{1,64}$
- errorMessagestringExampleDescriptionDefaultpaymentInitiationUID requiredPattern^.+$
502
- ErrorResponseDescription
- traceIdstringExampleDescriptionDefault4ea61012-2d9b-413d-a5b4-90ad69a68741Pattern^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$
- errorsErrorDto[]Description
- errorCodestringExampleDescriptionDefaultPAS_PMT_UID_REQUIREDPattern^[A-Z0-9_]{1,64}$
- errorMessagestringExampleDescriptionDefaultpaymentInitiationUID requiredPattern^.+$
curl
curl --request GET \
--url https://sand-api.monoova.com/au/payto/pas-v1/PaymentInstructionAsync/request/{uniqueRequestId} \
--header 'accept: application/json'javascript
var myHeaders = new Headers();
myHeaders.append("accept", "application/json");
myHeaders.append("content-type", "application/json");
var requestOptions = {
method: 'GET',
headers: myHeaders,
redirect: 'follow'
};
fetch("https://sand-api.monoova.com/au/payto/pas-v1/PaymentInstructionAsync/request/{uniqueRequestId}", 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://sand-api.monoova.com/au/payto/pas-v1/PaymentInstructionAsync/request/{uniqueRequestId}")
https = Net::HTTP.new(url.host, url.port)
https.use_ssl = true
request = Net::HTTP::Get.new(url)
request["accept"] = "application/json"
request["content-type"] = "application/json"
response = https.request(request)
puts response.read_body
python
import requests
import json
url = "https://sand-api.monoova.com/au/payto/pas-v1/PaymentInstructionAsync/request/{uniqueRequestId}"
payload = {}
headers = {
'accept': 'application/json',
'content-type': 'application/json'
}
response = requests.request("GET", url, headers=headers, data=payload)
print(response.text)
200
// OK. Returns the current status of the asynchronous request.
{
"traceId": "be393fae-52c2-4c9e-a262-4974de6da750",
"uniqueRequestId": "595a3202-e9aa-406e-a2a3-5efb6ca8b72a",
"paymentInitiationUID": "BCORP00000001",
"location": "https://sand-api.monoova.com/au/payto/pas-v1/PaymentInstruction/BCORP00000001",
"status": "Completed",
"errorCode": "PAS_AGREEMENT_NOT_FOUND",
"errorMessage": "The PaymentAgreement with the provided ID was not found: BCORP123456"
}400
// Bad Request. The request is invalid. Check errors for details.
{
"traceId": "4ea61012-2d9b-413d-a5b4-90ad69a68741",
"errors": [
{
"errorCode": "PAS_PMT_UID_REQUIRED",
"errorMessage": "paymentInitiationUID required"
}
]
}401
// Unauthorized. The bearer token is missing, invalid or expired.
403
// Forbidden. Your account is not permitted to perform this operation. Contact Monoova to configure access.
{
"traceId": "4ea61012-2d9b-413d-a5b4-90ad69a68741",
"errors": [
{
"errorCode": "PAS_PMT_UID_REQUIRED",
"errorMessage": "paymentInitiationUID required"
}
]
}404
// Not Found. No asynchronous request was found with this uniqueRequestId.
{
"traceId": "4ea61012-2d9b-413d-a5b4-90ad69a68741",
"errors": [
{
"errorCode": "PAS_PMT_UID_REQUIRED",
"errorMessage": "paymentInitiationUID required"
}
]
}500
// Internal Server Error. An unexpected error occurred. Try again later and contact Monoova support if the problem persists.
{
"traceId": "4ea61012-2d9b-413d-a5b4-90ad69a68741",
"errors": [
{
"errorCode": "PAS_PMT_UID_REQUIRED",
"errorMessage": "paymentInitiationUID required"
}
]
}502
// Bad Gateway. An upstream service, such as the NPP gateway, returned an error or no response.
{
"traceId": "4ea61012-2d9b-413d-a5b4-90ad69a68741",
"errors": [
{
"errorCode": "PAS_PMT_UID_REQUIRED",
"errorMessage": "paymentInitiationUID required"
}
]
}