Skip to main content

Simulate transaction status

Simulate transaction status changes a sandbox payout status.

For the step-by-step payout flows, see Testing payouts.

important

This request works in the sandbox only.

Endpoint​

POST /api/v1/simulations/transactions/{systemReferenceNumber}/transition

Simulate transaction status changes a payout status.

Request​

{
"nextStatus": "RFI_REQUESTED",
"requestInfoFor": "creditor_salaryStatement"
}

Parameters​

FieldRequiredDescription
nextStatusYesStatus to apply. See the values below.
requestInfoForNoInformation to request. If you omit it, the default is creditor_lastName.

nextStatus values​

StatusUse
RFI_REQUESTEDRequest more information
COMPLIANCE_COMPLETEDMark compliance as approved
REJECTEDReject the transaction. This status is permanent.
PAIDMark the payout as paid
RETURNMark the payout as returned by the bank
EXPIREDMark the payout as expired

requestInfoFor​

Omit requestInfoFor to use creditor_lastName.

{
"nextStatus": "RFI_REQUESTED"
}

Set requestInfoFor when you need a specific item.

{
"nextStatus": "RFI_REQUESTED",
"requestInfoFor": "creditor_salaryStatement"
}
PartyAccepted values
Creditor (beneficiary)creditor_firstName, creditor_address, creditor_bankName, creditor_passport, creditor_bankStatement, creditor_sourceOfFunds, creditor_others
Debtor (sender)debtor_firstName, debtor_lastName, debtor_address, debtor_bankName, debtor_passport, debtor_bankStatement, debtor_sourceOfFunds, debtor_others

Valid transitions​

FromTo
ACTION_REQUIREDRFI_REQUESTED
ACTION_REQUIREDCOMPLIANCE_COMPLETED
RFI_RESPONDEDCOMPLIANCE_COMPLETED
RFI_RESPONDEDREJECTED
SENT_TO_BANKPAID
SENT_TO_BANKRETURN
PAIDRETURN
SCHEDULEDEXPIRED
AWAITING_FUNDSEXPIRED

Response​

A successful call returns HTTP 200.

{
"message": "Status has been updated to PAID successfully"
}

An invalid transition returns HTTP 422.

{
"errors": [
{
"code": "sim_invalid_next_status",
"description": "Next Status allowed from current ACTION_REQUIRED is RFI_REQUESTED"
}
]
}

Error codes​

CodeMeaningWhat to do
sim_invalid_system_reference_numberThe transaction ID is invalid or does not existConfirm the payout was created
sim_invalid_next_statusThe status transition is not allowedUse a transition from the table above
unauthorizedThe API key is missing or invalidCheck the x-api-key header
forbiddenThe caller does not have permissionContact Nium Support
LLM-ready documentation:: llms.txt and llms-full.txt
Was this page helpful?