Skip to content
gist.link ↗

createPaymentMethodConfig

Mutation Settings API — POST https://settings.api.gist.link/graphql

Create a non-secret payment method configuration. ROLE_ADMIN.

settings:mutation:createPaymentMethodConfig

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

type Mutation {
createPaymentMethodConfig(input: CreatePaymentMethodConfigInput!): PaymentMethodConfig!
}
Argument Type Required Description
input CreatePaymentMethodConfigInput! Yes —

PaymentMethodConfig! — see the Settings types reference.

Terminal window
curl https://settings.api.gist.link/graphql \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H 'Content-Type: application/json' \
-d @- <<'JSON'
{
"query": "mutation CreatePaymentMethodConfig($input: CreatePaymentMethodConfigInput!) { createPaymentMethodConfig(input: $input) { uuid created_at updated_at } }",
"variables": {
"input": {
"provider": "example",
"display_name": "Example"
}
}
}
JSON