Added
Writing bookkeeping statuses and accounting fields back to Spendesk (experimental)
about 12 hours ago by ReadMe API
Accounting integrations can now write their results back to Spendesk instead of only reading payables and settlements. These experimental endpoints require the experimental:accounting:update scope:
- Update bookkeeping status of payables – for example, mark payables as exported manually;
- Update state of settlements – mark settlements as exported;
- Update accounting fields of a payable and mark a payable as ready for export.
You can also upload documentary evidence with Upload a payable attachment (scope experimental:payable-attachment:write).
curl --request PUT \
--url https://public-api.spendesk.com/v1/payables/bookkeeping-status \
--header 'accept: application/json' \
--header 'authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.masked' \
--header 'content-type: application/json' \
--data '{ "payables": [ { "id": "bc9cef35-401d-4ea4-b384-ed725e6685cf", "version": 1, "status": "exportedManually" } ] }'Request access to experimental features from your CSM or at [email protected].