Praecise account/ Reference/ Billing

Set a relationship's details, its processor reference or its state

patch/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)required
    In the path. The Praecise account id: sub in ID tokens.
  • idstring (uuid)required
    In the path. The relationship's id.

Request bodyapplication/json, required

  • 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).

Responses

  • 200application/json
    Set.
    • relationshipobject
      • 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).
  • 400application/json
    A field is wrong; the error says which.
    • errorstringrequired
      What went wrong, in a sentence.
    • detailstring
  • 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
  • 409application/json
    Several relationships and none named, a currency that differs, or a closed relationship.
    • 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