Cancel a pending operation
curl --request DELETE \
--url https://api.finsync.ar/api/operations/{id} \
--header 'x-api-key: <api-key>'const options = {method: 'DELETE', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.finsync.ar/api/operations/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));const options = {method: 'DELETE', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.finsync.ar/api/operations/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.finsync.ar/api/operations/{id}"
headers = {"x-api-key": "<api-key>"}
response = requests.delete(url, headers=headers)
print(response.text){
"operation_id": 123,
"message": "Operation cancelled successfully",
"cancelled_transactions": 2
}Operations
Cancel a pending operation
Cancels an operation by setting all its transactions to ‘adjusted’ status. Only works if all transactions in the operation are currently ‘pending’.
DELETE
/
api
/
operations
/
{id}
Cancel a pending operation
curl --request DELETE \
--url https://api.finsync.ar/api/operations/{id} \
--header 'x-api-key: <api-key>'const options = {method: 'DELETE', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.finsync.ar/api/operations/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));const options = {method: 'DELETE', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.finsync.ar/api/operations/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.finsync.ar/api/operations/{id}"
headers = {"x-api-key": "<api-key>"}
response = requests.delete(url, headers=headers)
print(response.text){
"operation_id": 123,
"message": "Operation cancelled successfully",
"cancelled_transactions": 2
}Authorizations
API Key for authentication
Path Parameters
Operation ID to cancel