Update Xero Document Status
PUT/api/ledger/connections/:connectionId/xero-document-status
Choose which kinds of document are created in Xero as drafts awaiting approval. Requires the accounting.manage_settings permission.
accounting:writeGrant this scope to your token under Settings → Developer → Personal Access Tokens.
Authentication: Requires Bearer token.
Body:
draft_types(array, required, may be empty) — any ofinvoice,bill,credit_note,manual_journal, each at most once. An empty array sends everything approved (the default).
Forward-only: documents already in Xero keep their status. Updating a document SKU.io sent as a draft never changes its status in Xero, so a draft stays a draft until someone approves it there, and an approved document is never moved back to draft. Voiding a document that is still a draft deletes it in Xero (Xero only voids approved documents).
Returns the saved setting in the same shape as Get Xero Document Status.
Request
Responses
- 200
- 401
- 403
- 404
- 422
- 429
OK
Response Headers
Unauthenticated — the bearer token is missing, revoked, expired, or malformed. Never retry automatically; fix the credential. See the Errors guide.
Forbidden — the token lacks a required scope, the endpoint is not available to API tokens, or the user behind the token lacks the permission. A human must adjust the token scopes or user permissions; do not retry.
Not found — no record with the given identifier (or the route does not exist). Verify the ID before retrying.
Unprocessable Content
Response Headers
Rate limited — platform limit is 1,000 requests/min; individual tokens may carry lower limits. Honor the Retry-After header before retrying. See the Rate Limits guide.