Skip to Content
Docs
Commerce settings

Retrieve commerce settings

GET/commerce_settings

Headers

AuthorizationstringRequired
HTTP Basic auth: your API key as the password, with an empty username. See Authentication.

Returns

Your Commerce settings for the key's environment.

resourcestring
invoicingobject
Show 6 child attributesHide child attributes
enabledboolean

Whether orders get an invoice unless a session's invoice_creation says otherwise.

number_prefixstring

The invoice series' prefix. The number follows it.

next_numberinteger
credit_note_prefixstring
next_credit_note_numberinteger
footerstring or null

Printed at the foot of every invoice and credit note.

sellerobject

The seller details on your invoices and credit notes. Until you set them, they're your legal entity's.

Show 4 child attributesHide child attributes
legal_namestring
addressobject or null

null when you haven't set one and your legal entity has none.

Show 2 child attributesHide child attributes
Option 1object
Show 6 child attributesHide child attributes
line1string
line2string or null
citystring
statestring or null
postal_codestring
countrystring

Two-letter country code (ISO 3166-1 alpha-2).

Option 2null
tax_idstring or null
emailstring or null

Where buyers' replies to invoice emails go. null when you haven't set one and your legal entity has none.

test_modeboolean
updatedstring or null

null until the first update.

Errors

401
The API key is missing or wrong.
403
The key's permissions don't allow this route.
Was this page helpful?