Praecise account/ Reference/ Billing
Ensure a relationship: the one named, the account's only one, or its first
post/api/billing/{account}/relationships
Before you call
- Credential
Authorization: Basic $KEY- Callers
The server of a product in the account service's client list.
Parameters
- accountstring (uuid)requiredIn the path. The Praecise account id:
subin ID tokens.
Request bodyapplication/json, required
- idstring (uuid)
- namestring
- countrystring
- tax_idstring
- currencystringSet by the first amount; does not change.
- statestringOne of: open, closed.
- processor_refstringThe payer at the card processor; only to the product that set it.
- newbooleanMake a further relationship (on the person's word).
Responses
- 200application/jsonIt was there.
- relationshipobject
- idstring (uuid)
- namestring
- countrystring
- tax_idstring
- currencystringSet by the first amount; does not change.
- statestringOne of: open, closed.
- processor_refstringThe payer at the card processor; only to the product that set it.
- newbooleanMake a further relationship (on the person's word).
- relationshipobject
- 201application/jsonMade now.
- relationshipobject
- idstring (uuid)
- namestring
- countrystring
- tax_idstring
- currencystringSet by the first amount; does not change.
- statestringOne of: open, closed.
- processor_refstringThe payer at the card processor; only to the product that set it.
- newbooleanMake a further relationship (on the person's word).
- relationshipobject
- 400application/jsonA field is wrong; the error says which.
- errorstringrequiredWhat went wrong, in a sentence.
- detailstring
- errorstringrequired
- 401application/jsonNo valid client id and secret.
- errorstringrequiredWhat went wrong, in a sentence.
- detailstring
- errorstringrequired
- 403application/jsonAnother product's line, or an account that has not signed in to the caller.
- errorstringrequiredWhat went wrong, in a sentence.
- detailstring
- errorstringrequired
- 404application/jsonNo such account, relationship, line or invoice.
- errorstringrequiredWhat went wrong, in a sentence.
- detailstring
- errorstringrequired
- 409application/jsonSeveral relationships and none named, a currency that differs, or a closed relationship.
- errorstringrequiredWhat went wrong, in a sentence.
- detailstring
- errorstringrequired
- 429application/jsonOver the limit for a minute.
Retry-Aftersays when to try again.- errorstringrequiredWhat went wrong, in a sentence.
- detailstring
- errorstringrequired
- 503application/jsonBilling is not switched on. Nothing to do; do not retry in a loop.
- errorstringrequiredWhat went wrong, in a sentence.
- detailstring
- errorstringrequired