Skip to content
gist.link ↗

completePaymentMethodSetup

Mutation Billing API — POST https://billing.api.gist.link/graphql

Finish saving the card after the browser confirms the embedded form: verifies the setup succeeded, vaults the method in pay, stores its display snapshot (brand/last4/expiry) and detaches any previously saved card. Any org member.

billing:mutation:completePaymentMethodSetup

The calling IAM key must hold this permission (or a wildcard that covers it: billing:mutation:* or billing:*) and the access token must have been minted with audience=billing. See Permissions.

type Mutation {
completePaymentMethodSetup(setupRef: String!): Subscription!
}
Argument Type Required Description
setupRef String! Yes —

Subscription! — see the Billing types reference.

Terminal window
curl https://billing.api.gist.link/graphql \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H 'Content-Type: application/json' \
-d @- <<'JSON'
{
"query": "mutation CompletePaymentMethodSetup($setupRef: String!) { completePaymentMethodSetup(setupRef: $setupRef) { uuid status created_at updated_at } }",
"variables": {
"setupRef": "example"
}
}
JSON