Skip to content
gist.link ↗

removePaymentMethod

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

Remove the saved payment method (collection will start dunning at the next period close). Any org member.

billing:mutation:removePaymentMethod

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 {
removePaymentMethod: Subscription!
}

This mutation takes no arguments.

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 RemovePaymentMethod { removePaymentMethod { uuid status created_at updated_at } }",
"variables": {}
}
JSON