Praecise account/ Reference/ Billing

The account's relationships

get/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)required
    In the path. The Praecise account id: sub in ID tokens.

Responses

  • 200application/json
    Oldest first.
    • relationshipslist of object
      • idstring (uuid)
      • namestring
      • countrystring
      • tax_idstring
      • currencystring
        Set by the first amount; does not change.
      • statestring
        One of: open, closed.
      • processor_refstring
        The payer at the card processor; only to the product that set it.
      • newboolean
        Make a further relationship (on the person's word).
  • 401application/json
    No valid client id and secret.
    • errorstringrequired
      What went wrong, in a sentence.
    • detailstring
  • 403application/json
    Another product's line, or an account that has not signed in to the caller.
    • errorstringrequired
      What went wrong, in a sentence.
    • detailstring
  • 404application/json
    No such account, relationship, line or invoice.
    • errorstringrequired
      What went wrong, in a sentence.
    • detailstring
  • 429application/json
    Over the limit for a minute. Retry-After says when to try again.
    • errorstringrequired
      What went wrong, in a sentence.
    • detailstring
  • 503application/json
    Billing is not switched on. Nothing to do; do not retry in a loop.
    • errorstringrequired
      What went wrong, in a sentence.
    • detailstring

This page as Markdown