AlmondTill/G3N API

createStripeOnboardingLink

mutation · in the family Organization structure

What it does

Get the Stripe onboarding link — where the owner completes the payments-account paperwork.

Mint an ephemeral Stripe-hosted onboarding link for the org's connected account. Unprovisioned refuses CONFLICT/REF_STATE; a processor refusal maps CONFLICT/RECONCILE (retryable — the stored ref and the processor disagree). Requires the unrestricted capability. No revision — this mutates nothing on the record.

Before you call

A bearer session from an API key (see Authentication and key hygiene) or a signed-in user.

Capability area: Organization structure — Opening and closing organizations and facilities — the legal and physical structure of your group.

Roles that may call it:

Careful

The link is short-lived and personal to your account setup.

Arguments

NameTypeRequiredNotes
idID ID!yesThe id of the record.

Returns

StripeOnboardingLink StripeOnboardingLink! — An ephemeral Stripe-hosted onboarding link. The merchant completes Stripe-owned requirement collection there (the Standard shape — platform-supplied ToS refuses structurally, probed live).

Example request

graphql
mutation ExampleCreateStripeOnboardingLink($id: ID!) {
  createStripeOnboardingLink(id: $id) {
    url
    expiresAt
  }
}

Variables:

json
{
  "id": "01900000-0000-7000-8000-37386ae00000"
}

Send it with the envelope naming the version: "extensions": {"at": {"version": {"name":"genesis","number":0}}}.

Example response

json
{
  "data": {
    "createStripeOnboardingLink": {
      "url": "https://example.com/hook",
      "expiresAt": 1
    }
  },
  "extensions": {
    "at": {
      "callId": "01EXAMPLE-CALL-ID",
      "version": {
        "requested": {
          "name": "genesis",
          "number": 0
        },
        "serviced": {
          "name": "genesis",
          "number": 0
        }
      }
    }
  }
}

Errors this call can answer

Used in