Skip to main content

Prime a CDR Sharing Arrangement

Prepare an agreement and get the consent URL to send the Consumer to.

POST /directory/{directoryId}/action/cds-au/cdr-sharing-v1/prime

Scope: biza-au:og:cds-au:sharing:prime

Implementation notes​

  • Priming creates an agreement in PRIMED status and returns its agreementId and a consent URL (redirectUri in the response). Send the Consumer to the consent URL within 10 minutes. See Consent Flow.
  • templateId must name an active Agreement Template. An unknown or deleted template returns 400.
  • redirectUri, and errorRedirectUri if you supply it, must be in the template's allowed_redirect_uris, or the request returns 400. Open Gateway returns the Consumer to them when the consent flow ends, with state and the outcome in the query string: see Consent redirect.
  • userId, name, email and principalId identify the Consumer. Use the same principalId for the same Consumer every time: it is how you reach the Consumer's agreements and data later.
  • participantIds (optional) limits the consent screen to those Data Holders, by their participantId from List Participants. Without it, the Consumer can choose any Data Holder the template's industries allow.
  • agreementId (optional) amends an existing agreement: the Consumer consents again, and the new version replaces the current one when it is authorised. An earlier prime of the same agreement that was never completed expires. See Amending an agreement.
  • Send x-v: 1. Any other version returns 400.

Reference​

From the Open Gateway API 4.0.1. See the full reference.

Loading...