Cancel Account Updater Request

Follow the steps in this guide to cancel a previously submitted Account Updater request using its request_id. You can only cancel Account Updater requests whose status is INPROGRESS. See Cancel Account Updater Request in API Reference for field definitions.


Prerequisites

  1. See Create a Sandbox Account to sign up and log in to the Maast Manager portal.
  2. Follow the steps in Get Your API Credentials to save a sandbox ID and API key.
  3. See Authentication to format the credentials and generate your API token. (Alternatively, use the credentials as-is to test this endpoint with our 'Try It!' feature.)
  4. Use the Submit Account Updater Request guide to initiate an Account Updater request. Save the request_id value in the response.
  5. Follow the Get Summary of an Account Updater Request guide to verify the Account Updater request is still INPROGRESS.

Implement

Write a POST request. For the request endpoint, add the request_id value to the end of /platform/aus/request/cancel/. The resulting endpoint is /platform/aus/request/cancel/{request_id}, where the value replaces {request_id}.

Your complete request will resemble the following sample code:

curl --request POST \
     --url https://api-test.maast.com/platform/aus/request/cancel/112 \
     --header 'accept: application/json' \
     --header 'authorization: Basic OjllZGVjMjFhMzFjMHh5ejc4OWUzMGEzNDE2YWJjMTIz'

Integrate

Once you have written and sent your GET request, you will receive a response like this from the Maast server:

{
  "code": 0,
  "message": "AUS request canceled",
  "data": {
    "request_id": 1402,
    "merchant_id": 210000000289,
    "method": "harvest_card_id",
    "status": "CANCELED",
    "cnt_request": 1,
    "cnt_response": 0,
    "cnt_update": 0,
    "request_date": "2025-01-01",
    "cnt_update_api": 0,
    "rejected_cards": []
  }
}

Check the code field in the request response: 0 confirms that you have successfully canceled the Account Updater request. If the value is something other than 0, check Platform API Response Codes in Reference.

The data field shows information about the canceled Account Updater request. See Cancel Account Updater Request in API Reference for response field definitions.


Test and Go Live

See our Test and Go Live guide to test your API integration and to start transacting with an active production account.