Where the package sends the browser after sign-in; no tenant key or session, as the sealed state names the firm. Redirects to the admin UI's Settings → Accounting with connected={provider}, or with error saying why.
Parameters
providerstring, in the path, required
codestring, in the query
statestring, in the query, required
errorstring, in the query
Response 302
To the admin UI.
GET/v1/admin/accounting
The accounting connection
Needs the accounting.manage permission. The firm's connection that isn't disconnected (null when there is none), the packages offered and how many syncs failed.
Response 200 · object
The connection.
accountingAccountingOverview, required
connectionAccountingConnection or null, required
idinteger (int64), required
providerstring, required
One of: xeroquickbookssagezohowave
org_namestring, required
statusstring, required
One of: activeneeds_reconnect
mappedboolean, required
mappingAccountingMapping or null, required
tax_codesobject, required
By VAT rate: standard, reduced, zero, exempt, none.
sales_accountstring, required
bank_accountsobject, required
By payment method: bank_transfer, card, cash, cheque and other, and paypal for a firm taking PayPal (a PayPal payment pushed with none fails, saying so).
Needs the accounting.manage permission. Nothing more is pushed; what is in the package stays. Connecting the same organisation again resumes with its mapping.
Response 200 · object
The connection.
accountingAccountingOverview, required
connectionAccountingConnection or null, required
idinteger (int64), required
providerstring, required
One of: xeroquickbookssagezohowave
org_namestring, required
statusstring, required
One of: activeneeds_reconnect
mappedboolean, required
mappingAccountingMapping or null, required
tax_codesobject, required
By VAT rate: standard, reduced, zero, exempt, none.
sales_accountstring, required
bank_accountsobject, required
By payment method: bank_transfer, card, cash, cheque and other, and paypal for a firm taking PayPal (a PayPal payment pushed with none fails, saying so).
Needs the accounting.manage permission. The package's sign-in address, carrying a sealed state that names the firm, the staff member and the package, good for 10 minutes. The package sends the browser back to /v1/accounting/callback/{provider}.
Needs the accounting.manage permission. A tax code for each VAT rate the firm uses, the sales account and a bank account for each payment method. With sync_from (a date), documents sent from then, and their payments, are queued unless queued already.
Request body · object
mappingAccountingMapping, required
tax_codesobject, required
By VAT rate: standard, reduced, zero, exempt, none.
sales_accountstring, required
bank_accountsobject, required
By payment method: bank_transfer, card, cash, cheque and other, and paypal for a firm taking PayPal (a PayPal payment pushed with none fails, saying so).
By VAT rate: standard, reduced, zero, exempt, none.
sales_accountstring, required
bank_accountsobject, required
By payment method: bank_transfer, card, cash, cheque and other, and paypal for a firm taking PayPal (a PayPal payment pushed with none fails, saying so).