Skip to content
gist.link ↗

startPaymentMethodSetup

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

Start saving a card through the suite’s own pay charge rail: returns the PSP client secret + publishable key so the billing frontend renders an EMBEDDED card form (payment element) — never a PSP-hosted page. Any org member.

billing:mutation:startPaymentMethodSetup

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 {
startPaymentMethodSetup: PaymentMethodSetup!
}

This mutation takes no arguments.

PaymentMethodSetup! — 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 StartPaymentMethodSetup { startPaymentMethodSetup { setup_ref client_secret publishable_key provider } }",
"variables": {}
}
JSON