Account

Update billing details

PATCH
/v1/account/billing

How your account is identified on invoices, and the defaults a new invoice falls back to when dueInDays, taxBps or note is not given. Send only what changes; null clears a field. Live and sandbox keep their own.

Authorization

apiKey
headerAuthorizationBearer <token>

An API key from the Developers page. rhq_test_ keys reach the sandbox, rhq_live_ keys the live side.

Request Body

application/json
  1. body
legalName?|null
addressLines?array<>|

The full new list, replacing any you had. At most 4 lines

address?|

The same address as its parts, for a form to open again. Send it with addressLines, which is still what invoices print

taxId?|null
billingEmail?|null
defaultDueDays?|

dueInDays for a new invoice when none is given

defaultTaxBps?|

taxBps for a new invoice when none is given

invoiceNote?|

note for a new invoice when none is given

country?|

Your own home country, for the tax rules engine’s presets (issue #341)

region?|

Your own home state or region, for the Indian preset

Response Body

How you are identified on invoices, and the defaults for a new one

application/json
  1. response

How you are identified on invoices, and the defaults for a new one

legalName*|

Printed on invoices instead of your account name, when the two differ

addressLines*array<string>

Printed under the legal name, line by line

address*|

The same address as its parts, when it was saved with them. Null, lines only

taxId*string|null
billingEmail*string|null
defaultDueDays*|

dueInDays for a new invoice when none is given. Null, 14 days

defaultTaxBps*|

taxBps for a new invoice when none is given. Null, no tax

invoiceNote*|

note for a new invoice when none is given

country*|

Your own home country, for the tax rules engine’s presets (issue #341)

region*|

Your own home state or region, for the Indian preset

actor*|

Who last updated these billing details

curl -X PATCH "https://example.com/v1/account/billing" \  -H "Content-Type: application/json" \  -d '{}'
{  "legalName": "Northwind Telecom Ltd",  "addressLines": [    "1 Market Street",    "San Francisco, CA 94105"  ],  "address": {    "line1": "1 Market Street",    "line2": "Suite 400",    "city": "San Francisco",    "postalCode": "94105"  },  "taxId": "12-3456789",  "billingEmail": "[email protected]",  "defaultDueDays": 14,  "defaultTaxBps": 2000,  "invoiceNote": "Thank you for your business",  "country": null,  "region": null,  "actor": {    "kind": "user",    "label": "string"  }}