On this page
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 (OCC).
What happens
Reads the processor and re-stamps the flags; no webhook dependency.
Who may call it
Capability area: Organization structure — Opening and closing organizations and facilities — the legal and physical structure of your group.
- Owner
- System Administrator
- An API key whose scope allows
api:refreshStripeAccountStatus
Arguments
| Name | Type | Required | Notes |
|---|---|---|---|
id | ID ID! | yes | The id of the record. |
revision | ID ID! | yes | The revision id you read on the record; the change is refused if an edit landed in the meantime. |
reason | String | no | No further notes. |
Returns
Organization Organization! — An organization — THE CONTAINER: a merchant's operating organization within its org group.
Example request
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
stripeAccountRef
stripeChargesEnabled
stripeDetailsSubmitted
}
}
Variables:
{
"id": "01900000-0000-7000-8000-37386ae00000",
"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
{
"data": {
"refreshStripeAccountStatus": {
"id": "01900000-0000-7000-8000-37386ae00000",
"sysId": "OR-EXMP-0000-000F",
"type": "Organization",
"caption": "Blue jeans",
"status": "<status>",
"parentId": "01900000-0000-7000-8000-065235280000",
"rootId": "01900000-0000-7000-8000-a093dd800000",
"createdAt": "2027-01-31T00:00:00.000Z",
"updatedAt": "2027-01-31T00:00:00.000Z",
"revisionNum": 1,
"revision": "01900000-0000-7000-8000-b7960e180000",
"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>",
"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
VALIDATION/INVALID— Something in the request is not valid. (VALIDATION)AUTHN/REQUIRED— Sign in to do this. (AUTHN)AUTHZ/FORBIDDEN— Your role does not allow this action. (AUTHZ)RATE_LIMIT/THROTTLED— Too many requests in a short time. (RATE_LIMIT)NOT_FOUND/*— That record could not be found. (NOT_FOUND)CONFLICT/*— The record’s state, or a change made in the meantime, does not allow this; the codes are on the CONFLICT page. (CONFLICT)VALIDATION/VERSION_REQUIRED— The request did not say which app version it came from. (VALIDATION)