Run in Apidog
Cancels a PayTo agreement by sending a cancellation request to the bank. The agreement status will be set to pending while the bank processes the cancellation.
Request Body Params application/json
{
"reason" : "customer_requested"
}
Request Code Samples
curl --location --request DELETE 'https://api-sandbox.squarepay.com.au/v2/pay-to/agreements/Loan1337' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data-raw '{
"reason": "customer_requested"
}'
Responses application/json
Agreement cancellation request submitted successfully
{
"reference" : "Loan1337" ,
"status" : "pending"
}
Modified at 2025-09-30 11:25:21