Get Async Request Status
GET
https://sand-api.monoova.com/au/card/ccm/CreditCardTransactionAsync/request/{uniqueRequestId}
Path Parameters
- uniqueRequestIdstringrequiredExampleDescriptionDefault2aa15c3e-4cd2-5c47-918c-ddc5d32a87aePattern^[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
- AsyncJobResponseExample
{ "traceId": "d1e1321b-c3ad-5425-aeb5-6fb240f605f3", "uniqueRequestId": "2aa15c3e-4cd2-5c47-918c-ddc5d32a87ae", "clientTransactionUniqueReference": "REF-20261013-0001", "location": "https://sand-api.monoova.com/au/card/ccm/CreditCardTransaction/REF-20261013-0001", "status": "Completed" }- traceIdstringExampleDescriptionDefault71170aca-7ed5-5045-b317-39f21a1d985ePattern^[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}$
- uniqueRequestIdstringExampleDescriptionDefault2aa15c3e-4cd2-5c47-918c-ddc5d32a87aePattern^[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}$
- clientTransactionUniqueReferencestringExampleDescriptionDefaultREF-20261013-0001Pattern^[a-zA-Z0-9_-]{1,40}$
- locationstringExampleDescriptionDefaulthttps://sand-api.monoova.com/au/card/ccm/CreditCardTransaction/REF-20261013-0001Pattern^(https?://|/)\S+$
- statusstringExampleDescriptionDefaultCompletedPattern^(Accepted|Processing|Completed|Failed|Expired)$
- errorCodestringExampleDescriptionDefaultCCM_REFUND_REJECTEDPattern^CCM_[A-Za-z0-9_]+$
- errorMessagestringExampleDescriptionDefaultRefund rejected by payment processorPattern^.+$
400
- ErrorResponseExample
{ "traceId": "171b5625-4d14-51df-bc39-93b9eb67cdf5", "errors": [ { "errorCode": "CCM_JOBID_INVALID", "errorMessage": "Async Job Id is not valid Guid - must use the UniqueRequestId returned by the originating call" } ] }- traceIdstringExampleDescriptionDefault71170aca-7ed5-5045-b317-39f21a1d985ePattern^[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
- errorCodestringExampleDescriptionDefaultCCM_VALIDATION_ERRORPattern^CCM_[A-Za-z0-9_]+$
- errorMessagestringExampleDescriptionDefaultError validating request message - amount.currencyAmount requiredPattern^.+$
- sourceErrorCodestringExampleDescriptionDefaultDECLINEDPattern^\S+$
- sourceErrorMessagestringExampleDescriptionDefaultTransaction declined by issuerPattern^.+$
401
403
- ErrorResponseExample
{ "traceId": "ba57bc2d-ed91-5eae-86b9-b2b58830e12b", "errors": [ { "errorCode": "CCM_ACC_DISABLED_ERROR", "errorMessage": "Card transactions disabled for accountId 6279059700012345" } ] }- traceIdstringExampleDescriptionDefault71170aca-7ed5-5045-b317-39f21a1d985ePattern^[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
- errorCodestringExampleDescriptionDefaultCCM_VALIDATION_ERRORPattern^CCM_[A-Za-z0-9_]+$
- errorMessagestringExampleDescriptionDefaultError validating request message - amount.currencyAmount requiredPattern^.+$
- sourceErrorCodestringExampleDescriptionDefaultDECLINEDPattern^\S+$
- sourceErrorMessagestringExampleDescriptionDefaultTransaction declined by issuerPattern^.+$
404
- ErrorResponseExample
{ "traceId": "3f57254f-e5ac-5a20-b826-81bb18965642", "errors": [ { "errorCode": "CCM_JOB_NOT_FOUND_ERROR", "errorMessage": "AsyncJob with RequestId 2aa15c3e-4cd2-5c47-918c-ddc5d32a87ae not found" } ] }- traceIdstringExampleDescriptionDefault71170aca-7ed5-5045-b317-39f21a1d985ePattern^[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
- errorCodestringExampleDescriptionDefaultCCM_VALIDATION_ERRORPattern^CCM_[A-Za-z0-9_]+$
- errorMessagestringExampleDescriptionDefaultError validating request message - amount.currencyAmount requiredPattern^.+$
- sourceErrorCodestringExampleDescriptionDefaultDECLINEDPattern^\S+$
- sourceErrorMessagestringExampleDescriptionDefaultTransaction declined by issuerPattern^.+$
500
- ErrorResponseExample
{ "traceId": "b587a610-7ccb-55cd-a265-f4480ee8cc9f", "errors": [ { "errorCode": "CCM_UNEXPECTED_ERROR", "errorMessage": "Internal server error. Please contact Monoova support." } ] }- traceIdstringExampleDescriptionDefault71170aca-7ed5-5045-b317-39f21a1d985ePattern^[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
- errorCodestringExampleDescriptionDefaultCCM_VALIDATION_ERRORPattern^CCM_[A-Za-z0-9_]+$
- errorMessagestringExampleDescriptionDefaultError validating request message - amount.currencyAmount requiredPattern^.+$
- sourceErrorCodestringExampleDescriptionDefaultDECLINEDPattern^\S+$
- sourceErrorMessagestringExampleDescriptionDefaultTransaction declined by issuerPattern^.+$
502
504
- ErrorResponseExample
{ "traceId": "6bee84c5-67c9-5ee8-a74e-240009071bae", "errors": [ { "errorCode": "CCM_CC_GWM_TIMEOUT", "errorMessage": "Timeout from CC Gateway Manager" } ] }- traceIdstringExampleDescriptionDefault71170aca-7ed5-5045-b317-39f21a1d985ePattern^[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
- errorCodestringExampleDescriptionDefaultCCM_VALIDATION_ERRORPattern^CCM_[A-Za-z0-9_]+$
- errorMessagestringExampleDescriptionDefaultError validating request message - amount.currencyAmount requiredPattern^.+$
- sourceErrorCodestringExampleDescriptionDefaultDECLINEDPattern^\S+$
- sourceErrorMessagestringExampleDescriptionDefaultTransaction declined by issuerPattern^.+$
curl
curl --request GET \
--url https://sand-api.monoova.com/au/card/ccm/CreditCardTransactionAsync/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/card/ccm/CreditCardTransactionAsync/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/card/ccm/CreditCardTransactionAsync/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/card/ccm/CreditCardTransactionAsync/request/{uniqueRequestId}"
payload = {}
headers = {
'accept': 'application/json',
'content-type': 'application/json'
}
response = requests.request("GET", url, headers=headers, data=payload)
print(response.text)
200
// Success. The status of the async request was returned. The API can also return this response with HTTP status 201 Created, or with HTTP status 422 Unprocessable Content when the async request has failed.
{
"traceId": "71170aca-7ed5-5045-b317-39f21a1d985e",
"uniqueRequestId": "2aa15c3e-4cd2-5c47-918c-ddc5d32a87ae",
"clientTransactionUniqueReference": "REF-20261013-0001",
"location": "https://sand-api.monoova.com/au/card/ccm/CreditCardTransaction/REF-20261013-0001",
"status": "Completed",
"errorCode": "CCM_REFUND_REJECTED",
"errorMessage": "Refund rejected by payment processor"
}400
// Bad request. uniqueRequestId is not a valid GUID returned by the originating request.
{
"traceId": "71170aca-7ed5-5045-b317-39f21a1d985e",
"errors": [
{
"errorCode": "CCM_VALIDATION_ERROR",
"errorMessage": "Error validating request message - amount.currencyAmount required",
"sourceErrorCode": "DECLINED",
"sourceErrorMessage": "Transaction declined by issuer"
}
]
}401
// Unauthorized. The bearer token is missing, malformed or expired. Generate a new bearer token and retry the request.
403
// Forbidden. Your mAccount is not permitted to perform this operation - for example card payments are not enabled for your account.
{
"traceId": "71170aca-7ed5-5045-b317-39f21a1d985e",
"errors": [
{
"errorCode": "CCM_VALIDATION_ERROR",
"errorMessage": "Error validating request message - amount.currencyAmount required",
"sourceErrorCode": "DECLINED",
"sourceErrorMessage": "Transaction declined by issuer"
}
]
}404
// Not found. No async request matches uniqueRequestId.
{
"traceId": "71170aca-7ed5-5045-b317-39f21a1d985e",
"errors": [
{
"errorCode": "CCM_VALIDATION_ERROR",
"errorMessage": "Error validating request message - amount.currencyAmount required",
"sourceErrorCode": "DECLINED",
"sourceErrorMessage": "Transaction declined by issuer"
}
]
}500
// Internal server error. An unexpected condition prevented Monoova from completing the request. Retry the request and contact Monoova support if the error persists.
{
"traceId": "71170aca-7ed5-5045-b317-39f21a1d985e",
"errors": [
{
"errorCode": "CCM_VALIDATION_ERROR",
"errorMessage": "Error validating request message - amount.currencyAmount required",
"sourceErrorCode": "DECLINED",
"sourceErrorMessage": "Transaction declined by issuer"
}
]
}502
// Bad gateway. A downstream service returned an invalid response. Retry the request and contact Monoova support if the error persists.
504
// Gateway timeout. A downstream service did not respond in time. Retry the request and contact Monoova support if the error persists.
{
"traceId": "71170aca-7ed5-5045-b317-39f21a1d985e",
"errors": [
{
"errorCode": "CCM_VALIDATION_ERROR",
"errorMessage": "Error validating request message - amount.currencyAmount required",
"sourceErrorCode": "DECLINED",
"sourceErrorMessage": "Transaction declined by issuer"
}
]
}