Get Async Payment Agreement Request Status
GET
https://sand-api.monoova.com/au/payto/pam-v1/PaymentAgreementAsync/request/{uniqueRequestId}
Path Parameters
- uniqueRequestIdstringrequiredExampleDescriptionDefault4834dba5-27b0-465c-aea7-aa530315c68cPattern^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$
Responses
200
- MandateManager.Application.Common.Dtos.AsyncJobResponseExample
{ "traceId": "1dabfaa9-abe8-4d2d-a69a-b723079d84ed", "uniqueRequestId": "4834dba5-27b0-465c-aea7-aa530315c68c", "accountId": "6279059778044302", "paymentAgreementUID": "MONPAG12345", "status": "Processing" }Description- traceIdstringExampleDescriptionDefault1dabfaa9-abe8-4d2d-a69a-b723079d84edPattern^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$
- uniqueRequestIdstringExampleDescriptionDefault4834dba5-27b0-465c-aea7-aa530315c68cPattern^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$
- accountIdstringExampleDescriptionDefault6279059778044302Pattern^[0-9]{16}$
- paymentAgreementUIDstringExampleDescriptionDefaultMONPAG12345Pattern^[a-zA-Z0-9_-]{1,35}$
- locationstring<uri>ExampleDescriptionDefaulthttps://sand-api.monoova.com/au/payto/pam-v1/PaymentAgreement/MONPAG12345FormaturiPattern^https://.+$
- statusstringExampleDescriptionDefaultProcessingPattern^(Accepted|Processing|Completed|Failed|Expired)$
- errorCodestringExampleDescriptionDefaultPAM_PAG_EXISTSPattern^[A-Z]{3}_[A-Z0-9_]+$
- errorMessagestringExampleDescriptionDefaultFailed to create payment agreement - PaymentAgreementUID already linked to mmsIdPattern^.+$
201
- MandateManager.Application.Common.Dtos.AsyncJobResponseExample
{ "traceId": "1dabfaa9-abe8-4d2d-a69a-b723079d84ed", "uniqueRequestId": "4834dba5-27b0-465c-aea7-aa530315c68c", "accountId": "6279059778044302", "paymentAgreementUID": "MONPAG12345", "location": "https://sand-api.monoova.com/au/payto/pam-v1/PaymentAgreement/MONPAG12345", "status": "Completed" }Description- traceIdstringExampleDescriptionDefault1dabfaa9-abe8-4d2d-a69a-b723079d84edPattern^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$
- uniqueRequestIdstringExampleDescriptionDefault4834dba5-27b0-465c-aea7-aa530315c68cPattern^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$
- accountIdstringExampleDescriptionDefault6279059778044302Pattern^[0-9]{16}$
- paymentAgreementUIDstringExampleDescriptionDefaultMONPAG12345Pattern^[a-zA-Z0-9_-]{1,35}$
- locationstring<uri>ExampleDescriptionDefaulthttps://sand-api.monoova.com/au/payto/pam-v1/PaymentAgreement/MONPAG12345FormaturiPattern^https://.+$
- statusstringExampleDescriptionDefaultProcessingPattern^(Accepted|Processing|Completed|Failed|Expired)$
- errorCodestringExampleDescriptionDefaultPAM_PAG_EXISTSPattern^[A-Z]{3}_[A-Z0-9_]+$
- errorMessagestringExampleDescriptionDefaultFailed to create payment agreement - PaymentAgreementUID already linked to mmsIdPattern^.+$
400
- MandateManager.Application.Common.Dtos.ErrorResponseExample
{ "traceId": "4ea61012-2d9b-413d-a5b4-90ad69a68741", "errors": [ { "errorCode": "PAM_JOBID_INVALID", "errorMessage": "uniqueRequestId 4834dba5 is invalid" } ] }Description- traceIdstringExampleDescriptionDefault4ea61012-2d9b-413d-a5b4-90ad69a68741Pattern^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$
- errorsMandateManager.Application.Common.Dtos.ErrorDto[]Description
- errorCodestringExampleDescriptionDefaultPAM_STARTDATE_EARLYPattern^[A-Z]{3}_[A-Z0-9_]+$
- errorMessagestringExampleDescriptionDefaultpaymentDetails.startDate must be future datePattern^.+$
401
403
- MandateManager.Application.Common.Dtos.ErrorResponseExample
{ "traceId": "4ea61012-2d9b-413d-a5b4-90ad69a68741", "errors": [ { "errorCode": "PAM_FORBIDDEN_ERROR", "errorMessage": "Not allowed to get async request status for account 6279059778044302" } ] }Description- traceIdstringExampleDescriptionDefault4ea61012-2d9b-413d-a5b4-90ad69a68741Pattern^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$
- errorsMandateManager.Application.Common.Dtos.ErrorDto[]Description
- errorCodestringExampleDescriptionDefaultPAM_STARTDATE_EARLYPattern^[A-Z]{3}_[A-Z0-9_]+$
- errorMessagestringExampleDescriptionDefaultpaymentDetails.startDate must be future datePattern^.+$
404
- MandateManager.Application.Common.Dtos.ErrorResponseExample
{ "traceId": "4ea61012-2d9b-413d-a5b4-90ad69a68741", "errors": [ { "errorCode": "PAM_JOB_NOT_FOUND_ERROR", "errorMessage": "Request not found for uniqueRequestId 4834dba5-27b0-465c-aea7-aa530315c68c" } ] }Description- traceIdstringExampleDescriptionDefault4ea61012-2d9b-413d-a5b4-90ad69a68741Pattern^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$
- errorsMandateManager.Application.Common.Dtos.ErrorDto[]Description
- errorCodestringExampleDescriptionDefaultPAM_STARTDATE_EARLYPattern^[A-Z]{3}_[A-Z0-9_]+$
- errorMessagestringExampleDescriptionDefaultpaymentDetails.startDate must be future datePattern^.+$
422
- MandateManager.Application.Common.Dtos.AsyncJobResponseExample
{ "traceId": "1dabfaa9-abe8-4d2d-a69a-b723079d84ed", "uniqueRequestId": "4834dba5-27b0-465c-aea7-aa530315c68c", "accountId": "6279059778044302", "paymentAgreementUID": "MONPAG12345", "status": "Failed", "errorCode": "PAM_PAG_EXISTS", "errorMessage": "Failed to create payment agreement - PaymentAgreementUID already linked to mmsId" }Description- traceIdstringExampleDescriptionDefault1dabfaa9-abe8-4d2d-a69a-b723079d84edPattern^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$
- uniqueRequestIdstringExampleDescriptionDefault4834dba5-27b0-465c-aea7-aa530315c68cPattern^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$
- accountIdstringExampleDescriptionDefault6279059778044302Pattern^[0-9]{16}$
- paymentAgreementUIDstringExampleDescriptionDefaultMONPAG12345Pattern^[a-zA-Z0-9_-]{1,35}$
- locationstring<uri>ExampleDescriptionDefaulthttps://sand-api.monoova.com/au/payto/pam-v1/PaymentAgreement/MONPAG12345FormaturiPattern^https://.+$
- statusstringExampleDescriptionDefaultProcessingPattern^(Accepted|Processing|Completed|Failed|Expired)$
- errorCodestringExampleDescriptionDefaultPAM_PAG_EXISTSPattern^[A-Z]{3}_[A-Z0-9_]+$
- errorMessagestringExampleDescriptionDefaultFailed to create payment agreement - PaymentAgreementUID already linked to mmsIdPattern^.+$
500
- MandateManager.Application.Common.Dtos.ErrorResponseExample
{ "traceId": "4ea61012-2d9b-413d-a5b4-90ad69a68741", "errors": [ { "errorCode": "PAM_UNEXPECTED_ERROR", "errorMessage": "Internal server error. Please contact Monoova support." } ] }Description- traceIdstringExampleDescriptionDefault4ea61012-2d9b-413d-a5b4-90ad69a68741Pattern^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$
- errorsMandateManager.Application.Common.Dtos.ErrorDto[]Description
- errorCodestringExampleDescriptionDefaultPAM_STARTDATE_EARLYPattern^[A-Z]{3}_[A-Z0-9_]+$
- errorMessagestringExampleDescriptionDefaultpaymentDetails.startDate must be future datePattern^.+$
502
- MandateManager.Application.Common.Dtos.ErrorResponseExample
{ "traceId": "4ea61012-2d9b-413d-a5b4-90ad69a68741", "errors": [ { "errorCode": "PAM_NPP_GATEWAY_ERROR", "errorMessage": "Error returned from NPP gateway - service unavailable" } ] }Description- traceIdstringExampleDescriptionDefault4ea61012-2d9b-413d-a5b4-90ad69a68741Pattern^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$
- errorsMandateManager.Application.Common.Dtos.ErrorDto[]Description
- errorCodestringExampleDescriptionDefaultPAM_STARTDATE_EARLYPattern^[A-Z]{3}_[A-Z0-9_]+$
- errorMessagestringExampleDescriptionDefaultpaymentDetails.startDate must be future datePattern^.+$
curl
curl --request GET \
--url https://sand-api.monoova.com/au/payto/pam-v1/PaymentAgreementAsync/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/pam-v1/PaymentAgreementAsync/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/pam-v1/PaymentAgreementAsync/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/pam-v1/PaymentAgreementAsync/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. The request is still being processed.
{
"traceId": "1dabfaa9-abe8-4d2d-a69a-b723079d84ed",
"uniqueRequestId": "4834dba5-27b0-465c-aea7-aa530315c68c",
"accountId": "6279059778044302",
"paymentAgreementUID": "MONPAG12345",
"location": "https://sand-api.monoova.com/au/payto/pam-v1/PaymentAgreement/MONPAG12345",
"status": "Processing",
"errorCode": "PAM_PAG_EXISTS",
"errorMessage": "Failed to create payment agreement - PaymentAgreementUID already linked to mmsId"
}201
// Created. The request completed successfully. location contains the URL of the created or updated resource.
{
"traceId": "1dabfaa9-abe8-4d2d-a69a-b723079d84ed",
"uniqueRequestId": "4834dba5-27b0-465c-aea7-aa530315c68c",
"accountId": "6279059778044302",
"paymentAgreementUID": "MONPAG12345",
"location": "https://sand-api.monoova.com/au/payto/pam-v1/PaymentAgreement/MONPAG12345",
"status": "Processing",
"errorCode": "PAM_PAG_EXISTS",
"errorMessage": "Failed to create payment agreement - PaymentAgreementUID already linked to mmsId"
}400
// Bad Request. The request failed validation. See errors for details.
{
"traceId": "4ea61012-2d9b-413d-a5b4-90ad69a68741",
"errors": [
{
"errorCode": "PAM_STARTDATE_EARLY",
"errorMessage": "paymentDetails.startDate must be future date"
}
]
}401
// Unauthorized. The bearer token is missing, invalid or expired. Bearer tokens are valid for 24 hours; generate a new token and retry.
403
// Forbidden. Your account is not permitted to perform this operation.
{
"traceId": "4ea61012-2d9b-413d-a5b4-90ad69a68741",
"errors": [
{
"errorCode": "PAM_STARTDATE_EARLY",
"errorMessage": "paymentDetails.startDate must be future date"
}
]
}404
// Not Found. The async request could not be found.
{
"traceId": "4ea61012-2d9b-413d-a5b4-90ad69a68741",
"errors": [
{
"errorCode": "PAM_STARTDATE_EARLY",
"errorMessage": "paymentDetails.startDate must be future date"
}
]
}422
// Unprocessable Content. The background job failed. See errorCode and errorMessage for the reason.
{
"traceId": "1dabfaa9-abe8-4d2d-a69a-b723079d84ed",
"uniqueRequestId": "4834dba5-27b0-465c-aea7-aa530315c68c",
"accountId": "6279059778044302",
"paymentAgreementUID": "MONPAG12345",
"location": "https://sand-api.monoova.com/au/payto/pam-v1/PaymentAgreement/MONPAG12345",
"status": "Processing",
"errorCode": "PAM_PAG_EXISTS",
"errorMessage": "Failed to create payment agreement - PaymentAgreementUID already linked to mmsId"
}500
// Internal Server Error. An unexpected error occurred. Contact Monoova support if the problem persists.
{
"traceId": "4ea61012-2d9b-413d-a5b4-90ad69a68741",
"errors": [
{
"errorCode": "PAM_STARTDATE_EARLY",
"errorMessage": "paymentDetails.startDate must be future date"
}
]
}502
// Bad Gateway. An upstream service, such as the NPP gateway, returned an error. Retry the request later.
{
"traceId": "4ea61012-2d9b-413d-a5b4-90ad69a68741",
"errors": [
{
"errorCode": "PAM_STARTDATE_EARLY",
"errorMessage": "paymentDetails.startDate must be future date"
}
]
}