Validate a Payment - Sandbox

Overview

When a payment is created, it can be Approved or Rejected to test different outcomes.

How to Approve or Reject Payments

To change the status of a transfer while using the Sandbox:

  1. Call POST - List All Payments.
  2. Lookup the corresponding TransferId assigned to the transaction.
  3. Call POST - Approve or Reject a Transfer Id.
  4. Enter the TransferId.
  5. Update the TransferStatus to "Approved" or "Rejected" as required.

REQUEST

curl --location 'https://caxapi-integration.azurewebsites.net/api/sandbox/payments-out' \
--header 'Content-Type: application/json' \
--header 'authorization: Bearer <access_token>' \
--data '{
  "TransferId": 164165,
  "TransferStatus": "Approved"
}'

RESPONSE

{
    "MainAccountHolderName": "<MainAccountHolderName>",
    "Content": {
        "Model": {
            "ApiStatusCode": 100,
            "ApiStatus": "IsValid",
            "ApiStatusDescription": "Valid Operation"
        },
        "ExpectedResponses": [
            "IsValid"
        ]
    },
    "AuthorisedClientModel": {
        "ClientId": "<ClientId>",
        "ClientRef": "<ClientRef>",
        "UserId": "<UserId>",
        "TokenStartDate": "2023-11-06T10:06:28.1175216",
        "TokenEndDate": "2024-04-24T10:33:04.4417713",
        "ApiStatusCode": 100,
        "ApiStatus": "IsValid",
        "ApiStatusDescription": "Valid Operation"
    },
    "AuthorisedUserModel": {
        "UserId": "<UserId>",
        "AppVersion": "20240322.1",
        "TokenStartDate": "2024-03-25T00:00:00",
        "TokenEndDate": "2024-04-24T00:00:00",
        "LoginTimestamp": "2024-03-25T10:33:04.410525",
        "ApiLoginType": 1,
        "ApiStatusCode": 100,
        "ApiStatus": "IsValid",
        "ApiStatusDescription": "Valid Operation"
    }