Skip to content

What the books offer

GET
/api/v1/accounting/{provider}/options
curl --request GET \
--url https://digize.com/api/v1/accounting/quickbooks/options \
--header 'x-api-key: <x-api-key>'

The products or services, accounts and tax codes in the connected QuickBooks company or Xero organisation, for the export’s settings.

Needs the settings:read permission.

provider
required

quickbooks or xero.

string
Allowed values: quickbooks xero

Done

Media typeapplication/json
object
items
required

QuickBooks’ products and services.

Array<object>
object
id
required
string
name
required
string
type
string
rate
number | null
salesAccounts
required

Xero’s revenue accounts.

Array<object>
object
id
required
string
name
required
string
type
string
rate
number | null
paymentAccounts
required
Array<object>
object
id
required
string
name
required
string
type
string
rate
number | null
taxCodes
required
Array<object>
object
id
required
string
name
required
string
type
string
rate
number | null
salesTax
required

A US QuickBooks company, which works sales tax out itself.

boolean

Example generated

{
"items": [
{
"id": "example",
"name": "example",
"type": "example",
"rate": 1
}
],
"salesAccounts": [
{
"id": "example",
"name": "example",
"type": "example",
"rate": 1
}
],
"paymentAccounts": [
{
"id": "example",
"name": "example",
"type": "example",
"rate": 1
}
],
"taxCodes": [
{
"id": "example",
"name": "example",
"type": "example",
"rate": 1
}
],
"salesTax": true
}

What was sent isn’t valid (invalid).

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
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
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
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
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
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
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
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
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
message
required
string
details
object
key
additional properties
any

Example

{
"error": {
"code": "invalid"
}
}