The accounting export
GET
/api/v1/accounting/{provider}
const url = 'https://digize.com/api/v1/accounting/quickbooks';const options = {method: 'GET', headers: {'x-api-key': '<x-api-key>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://digize.com/api/v1/accounting/quickbooks \ --header 'x-api-key: <x-api-key>'How the export of invoices, store orders and payments to QuickBooks or Xero is going: what’s sent, waiting and failed, why the books refused what they did, and its settings.
Needs the settings:read permission.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”provider
required
quickbooks or xero.
string
Responses
Section titled “Responses”Done
Media typeapplication/json
object
provider
required
quickbooks or xero.
string
connected
required
boolean
settings
required
Any of:
object
exportFrom
required
string
paused
required
boolean
object
exportFrom
required
string
paused
required
boolean
missing
required
What’s still to choose before the export can run.
Array<string>
running
required
boolean
lastError
required
string | null
counts
required
object
pending
required
integer
synced
required
integer
failed
required
integer
skipped
required
integer
failures
required
Array<object>
object
kind
required
string
localId
required
The invoice, order, payment or contact it is in Digize.
string
label
required
string
status
required
string
error
required
Why the books wouldn’t take it.
string | null
attempts
required
integer
remoteId
required
Its id in the books.
string | null
updatedAt
required
string format: date-time
recent
required
Array<object>
object
kind
required
string
localId
required
The invoice, order, payment or contact it is in Digize.
string
label
required
string
status
required
string
error
required
Why the books wouldn’t take it.
string | null
attempts
required
integer
remoteId
required
Its id in the books.
string | null
updatedAt
required
string format: date-time
Example
{ "provider": "quickbooks", "lastRunStatus": "synced", "failures": [ { "kind": "customer", "status": "pending" } ], "recent": [ { "kind": "customer", "status": "pending" } ]}What was sent isn’t valid (invalid).
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
object
key
additional properties
any
Example
{ "error": { "code": "invalid" }}No key, or one that’s unknown, off or expired.
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
object
key
additional properties
any
Example
{ "error": { "code": "invalid" }}The key doesn’t have the permission this needs.
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
object
key
additional properties
any
Example
{ "error": { "code": "invalid" }}Nothing has that id (not_found).
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
object
key
additional properties
any
Example
{ "error": { "code": "invalid" }}Over the rate limit; see retry-after.
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
object
key
additional properties
any
Example
{ "error": { "code": "invalid" }}