Update a transfer
curl --request PATCH \
--url https://api.scoutworks.app/api/v1/transfers/{transferId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"amount": "<string>",
"date": "2023-12-25",
"destinationDate": "2023-12-25",
"description": "<string>",
"reference": "<string>"
}
'import requests
url = "https://api.scoutworks.app/api/v1/transfers/{transferId}"
payload = {
"amount": "<string>",
"date": "2023-12-25",
"destinationDate": "2023-12-25",
"description": "<string>",
"reference": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
amount: '<string>',
date: '2023-12-25',
destinationDate: '2023-12-25',
description: '<string>',
reference: '<string>'
})
};
fetch('https://api.scoutworks.app/api/v1/transfers/{transferId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": {
"id": "<string>",
"fromBankAccountId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"toBankAccountId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"amount": "<string>",
"date": "2023-12-25",
"destinationDate": "2023-12-25",
"fromTransactionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"toTransactionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"source": "csv",
"isReconciled": true,
"description": "<string>",
"reference": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
}{
"error": {
"code": "invalid_api_key",
"message": "<string>"
},
"errorRef": "<string>",
"retryAfter": 0,
"matchingIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}{
"error": {
"code": "invalid_api_key",
"message": "<string>"
},
"errorRef": "<string>",
"retryAfter": 0,
"matchingIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}{
"error": {
"code": "invalid_api_key",
"message": "<string>"
},
"errorRef": "<string>",
"retryAfter": 0,
"matchingIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}{
"error": {
"code": "invalid_api_key",
"message": "<string>"
},
"errorRef": "<string>",
"retryAfter": 0,
"matchingIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}{
"error": {
"code": "invalid_api_key",
"message": "<string>"
},
"errorRef": "<string>",
"retryAfter": 0,
"matchingIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}{
"error": {
"code": "invalid_api_key",
"message": "<string>"
},
"errorRef": "<string>",
"retryAfter": 0,
"matchingIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}{
"error": {
"code": "invalid_api_key",
"message": "<string>"
},
"errorRef": "<string>",
"retryAfter": 0,
"matchingIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}{
"error": {
"code": "invalid_api_key",
"message": "<string>"
},
"errorRef": "<string>",
"retryAfter": 0,
"matchingIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}{
"error": {
"code": "invalid_api_key",
"message": "<string>"
},
"errorRef": "<string>",
"retryAfter": 0,
"matchingIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}Accounting
Update a transfer
Changes the amount, dates, description or reference of both lines together. Only a transfer the API booked (source: api) whose lines are on no bank statement yet; any other answers 409 source_locked. A date in a closed accounting year answers 409 period_closed. A change is made as the admin who created the key, and both lines name the key, so Scoutworks shows a script did it. Writes count towards the key’s usual limit and a second one of 30 changes a minute. A group whose subscription has lapsed answers 402.
Send the ETag you last read for the transfer as If-Match: if the transfer has changed since, the request answers 412 stale_write and changes nothing. Optional, and recommended.
PATCH
/
transfers
/
{transferId}
Update a transfer
curl --request PATCH \
--url https://api.scoutworks.app/api/v1/transfers/{transferId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"amount": "<string>",
"date": "2023-12-25",
"destinationDate": "2023-12-25",
"description": "<string>",
"reference": "<string>"
}
'import requests
url = "https://api.scoutworks.app/api/v1/transfers/{transferId}"
payload = {
"amount": "<string>",
"date": "2023-12-25",
"destinationDate": "2023-12-25",
"description": "<string>",
"reference": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
amount: '<string>',
date: '2023-12-25',
destinationDate: '2023-12-25',
description: '<string>',
reference: '<string>'
})
};
fetch('https://api.scoutworks.app/api/v1/transfers/{transferId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": {
"id": "<string>",
"fromBankAccountId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"toBankAccountId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"amount": "<string>",
"date": "2023-12-25",
"destinationDate": "2023-12-25",
"fromTransactionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"toTransactionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"source": "csv",
"isReconciled": true,
"description": "<string>",
"reference": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
}{
"error": {
"code": "invalid_api_key",
"message": "<string>"
},
"errorRef": "<string>",
"retryAfter": 0,
"matchingIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}{
"error": {
"code": "invalid_api_key",
"message": "<string>"
},
"errorRef": "<string>",
"retryAfter": 0,
"matchingIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}{
"error": {
"code": "invalid_api_key",
"message": "<string>"
},
"errorRef": "<string>",
"retryAfter": 0,
"matchingIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}{
"error": {
"code": "invalid_api_key",
"message": "<string>"
},
"errorRef": "<string>",
"retryAfter": 0,
"matchingIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}{
"error": {
"code": "invalid_api_key",
"message": "<string>"
},
"errorRef": "<string>",
"retryAfter": 0,
"matchingIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}{
"error": {
"code": "invalid_api_key",
"message": "<string>"
},
"errorRef": "<string>",
"retryAfter": 0,
"matchingIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}{
"error": {
"code": "invalid_api_key",
"message": "<string>"
},
"errorRef": "<string>",
"retryAfter": 0,
"matchingIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}{
"error": {
"code": "invalid_api_key",
"message": "<string>"
},
"errorRef": "<string>",
"retryAfter": 0,
"matchingIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}{
"error": {
"code": "invalid_api_key",
"message": "<string>"
},
"errorRef": "<string>",
"retryAfter": 0,
"matchingIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}Authorizations
Headers
Path Parameters
Body
application/json
A field not listed here is refused with a 400.