Approve a pending operation
curl --request POST \
--url https://api.finsync.ar/api/operations/{id}/approve \
--header 'x-api-key: <api-key>'const options = {method: 'POST', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.finsync.ar/api/operations/{id}/approve', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));const options = {method: 'POST', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.finsync.ar/api/operations/{id}/approve', 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}/approve"
headers = {"x-api-key": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text){
"operation_id": 123,
"message": "Operation approved successfully",
"approved_transactions": 2
}Operations
Approve a pending operation
Approves an operation by setting all its transactions to ‘completed’ status. Only works if all transactions in the operation are currently ‘pending’.
POST
/
api
/
operations
/
{id}
/
approve
Approve a pending operation
curl --request POST \
--url https://api.finsync.ar/api/operations/{id}/approve \
--header 'x-api-key: <api-key>'const options = {method: 'POST', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.finsync.ar/api/operations/{id}/approve', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));const options = {method: 'POST', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.finsync.ar/api/operations/{id}/approve', 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}/approve"
headers = {"x-api-key": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text){
"operation_id": 123,
"message": "Operation approved successfully",
"approved_transactions": 2
}Authorizations
API Key for authentication
Path Parameters
Operation ID to approve