AlmondTill/G3N API

refreshStripeAccountStatus

mutation · in the family Organization structure

What it does

Re-check your Stripe account’s status — charges enabled? details submitted?

Pull the connected account's current charges_enabled/details_submitted and re-stamp the org. Unprovisioned refuses CONFLICT/REF_STATE; a processor read failure maps CONFLICT/RECONCILE (retryable). Requires the unrestricted capability + the current revision.

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:

What happens

Reads the processor and re-stamps the flags; no webhook dependency.

Arguments

NameTypeRequiredNotes
idID ID!yesThe id of the record.
revisionID ID!yesThe revision id you read on the record; the change is refused if an edit landed in the meantime.
reasonStringno

Concurrency

Send the record’s current revision from your last read as revision. A stale revision is refused as CONFLICT/REVISION_STALE — read the record again and retry with the new value.

Returns

Organization Organization! — An organization — the container: a merchant's operating organization within its org group.

Example request

graphql
mutation ExampleRefreshStripeAccountStatus($id: ID!, $revision: ID!, $reason: String) {
  refreshStripeAccountStatus(id: $id, revision: $revision, reason: $reason) {
    id
    sysId
    type
    caption
    status
    parentId
    rootId
    createdAt
    updatedAt
    revisionNum
    revision
    jurisdiction
    code
    legalName
    brandName
    operatingAsName
    owners
    costCentre
    primaryPhysicalFacility
    defaultCurrency
    allowedCurrencies
    stripeAccountRef
    stripeChargesEnabled
    stripeDetailsSubmitted
  }
}

Variables:

json
{
  "id": "01900000-0000-7000-8000-1971e30a0000",
  "revision": "01900000-0000-7000-8000-b7960e180000",
  "reason": "Correcting a miscount."
}

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

Example response

json
{
  "data": {
    "refreshStripeAccountStatus": {
      "id": "01900000-0000-7000-8000-1971e30a0000",
      "sysId": "OR-EXMP-0000-000F",
      "type": "Organization",
      "caption": "Blue jeans",
      "status": "<status>",
      "parentId": "01900000-0000-7000-8000-eacdfcfd0000",
      "rootId": "01900000-0000-7000-8000-a1295a650000",
      "createdAt": "2027-01-31T00:00:00.000Z",
      "updatedAt": "2027-01-31T00:00:00.000Z",
      "revisionNum": 1,
      "revision": "01900000-0000-7000-8000-53c6eea90000",
      "jurisdiction": "<jurisdiction>",
      "code": "BJ-001",
      "legalName": "Blue jeans",
      "brandName": "Blue jeans",
      "operatingAsName": "Blue jeans",
      "owners": [
        "01900000-0000-7000-8000-f89daae50000"
      ],
      "costCentre": "<cost centre>",
      "primaryPhysicalFacility": "01900000-0000-7000-8000-925e35910000",
      "defaultCurrency": "<default currency>",
      "allowedCurrencies": [
        "<allowed currencies>"
      ],
      "stripeAccountRef": "<stripe account ref>",
      "stripeChargesEnabled": true,
      "stripeDetailsSubmitted": true
    }
  },
  "extensions": {
    "at": {
      "callId": "01EXAMPLE-CALL-ID",
      "version": {
        "requested": {
          "name": "genesis",
          "number": 0
        },
        "serviced": {
          "name": "genesis",
          "number": 0
        }
      }
    }
  }
}

Errors this call can answer

Used in