Skip to content
gist.link ↗

connectPaymentProvider

Mutation Pay API — POST https://pay.api.gist.link/graphql

Connect or replace credentials for an organization-owned payment processor account.

pay:mutation:connectPaymentProvider

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

type Mutation {
connectPaymentProvider(input: ConnectPaymentProviderInput!): PaymentProviderConnection!
}
Argument Type Required Description
input ConnectPaymentProviderInput! Yes —

PaymentProviderConnection! — see the Pay types reference.

Terminal window
curl https://pay.api.gist.link/graphql \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H 'Content-Type: application/json' \
-d @- <<'JSON'
{
"query": "mutation ConnectPaymentProvider($input: ConnectPaymentProviderInput!) { connectPaymentProvider(input: $input) { id uuid status created_at updated_at } }",
"variables": {
"input": {
"provider": "example",
"credentials": {}
}
}
}
JSON