Update forecasted transaction
Changed onUpdate the forecasted transaction with the specified ID using JSON Patch operations, given that the provided ETag matches. Some fields can only be updated if the forecasted transaction was manually created by a user (origin type USER). For example, if the forecasted transaction was automatically generated from accounting data, the counterpartyId cannot be changed.
Request
- Base URLhttps://api.atlar.com
- AuthHTTP basic
- TypeScripthttps://skmtc.dev/atlar/apis/atlar-api-v2/docs/analytics/v2beta/forecasted-transactions/:id/patch.tsA function with typed inputs. Its response is checked against the schema.
Path parameters
Atlar resource ID.
Headers
ETag (version) of resource to be updated.
Request body
Example request
[
{
"value": 1502
}
]Response
The updated forecasted transaction.
Example response
{
"id": "2ed9a3ee-60aa-4f9f-a858-2eed4eefbbc8",
"organizationId": "0160f6ab-5741-49e1-af46-9138927e547e",
"scenarioId": "2ed9a3ee-60aa-4f9f-a858-2eed4eefbbc8",
"externalId": "walVNuin6X5Mvte4xhg1ibTAVSACfN4Q9hl",
"parent": {
"id": "2ed9a3ee-60aa-4f9f-a858-2eed4eefbbc8"
},
"amount": {
"currency": "EUR",
"stringValue": "15.02",
"value": 1502
},
"date": "2022-05-07",
"origin": {
"id": "2ed9a3ee-60aa-4f9f-a858-2eed4eefbbc8"
},
"metadata": {
"my_metadata_key": "2a9a79b9-601c-449b-aa05-432f41dbbc4a"
},
"counterparty": {
"partyType": "INDIVIDUAL",
"name": "Customer #312",
"nationalIdentifier": {
"type": "CIVIC",
"market": "DE",
"number": "2012121212"
},
"address": {
"country": "DE",
"countrySubdivision": "US-CA",
"city": "Stockholm",
"postalCode": "11111",
"streetName": "Example street",
"streetNumber": "47"
},
"account": {
"market": "DE",
"identifiers": [
{
"type": "IBAN",
"market": "DE",
"number": "DE75512108001245126199"
}
],
"routing": [
{
"type": "BIC",
"number": "BUKBGB22"
}
]
}
},
"created": "2022-05-04T18:31:12.889104898Z",
"updated": "2022-05-04T18:47:32.213842599Z",
"version": 1,
"etag": "version:3"
}Changes
- warning
added the new
BD_BRNenum value to the////response property for the response status - warning
added the new
CZ_NBCenum value to the////response property for the response status - warning
added the new
MY_JOMPAY_BILLER_CODEenum value to the////response property for the response status - warning
added the new
MY_JOMPAY_BILLER_CODEenum value to the/////response property for the response status - warning
added the new
PH_BRSTNenum value to the////response property for the response status - warning
added the new
WALLET_AIRWALLEX_NUMBERenum value to the////response property for the response status - warning
added the new
WALLET_AIRWALLEX_NUMBERenum value to the/////response property for the response status - warning
added the new
WALLET_UNITenum value to the////response property for the response status - warning
added the new
WALLET_UNITenum value to the/////response property for the response status - info
added the optional property
to the response with the status - info
added the optional property
//to the response with the status
- warning