Praecise account/ Reference/ Billing
One relationship, with the caller's own lines and invoices
get/api/billing/{account}/relationships/{id}
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. - idstring (uuid)requiredIn the path. The relationship's id.
Responses
- 200application/jsonThe relationship.
- 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).
- lineslist of object
- kindstringrequiredOne of: subscription, covered, usage.
- coversstringFor a covered line: the ref of the subscription line that pays for it.
- labelstringrequiredAt most 140 characters.
- labelsobject
- planstringAt most 60 characters.
- statestringOne of: trialing, active, past_due, unpaid, paused, canceled, incomplete, incomplete_expired.
- periodobject
- startstring (date-time)
- endstring (date-time)
- amountobject
- valueintegerrequiredWhole minor units. At least 0.
- currencystringrequiredPattern: ^[A-Z]{3}$.
- valueintegerrequired
- manage_urlstring (uri)
- kindstringrequired
- invoiceslist of object
- numberstringrequiredAt most 64 characters.
- datestring (date)required
- amountobjectrequired
- valueintegerrequiredWhole minor units. At least 0.
- currencystringrequiredPattern: ^[A-Z]{3}$.
- valueintegerrequired
- statestringrequiredOne of: draft, open, paid, void, uncollectible.
- urlstring (uri)required
- numberstringrequired
- relationshipobject
- 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
- 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