Skip to content
gist.link ↗

createSupplier

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

Create a supplier profile. bank_details are ENCRYPTED AT REST (libsodium secretbox) and never returned by the API — only bank_name, bank_country and account_last4 are readable afterwards. ROLE_ADMIN or ROLE_PAY_MANAGER.

pay:mutation:createSupplier

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 {
createSupplier(input: SupplierInput!): Supplier!
}
Argument Type Required Description
input SupplierInput! Yes —

Supplier! — 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 CreateSupplier($input: SupplierInput!) { createSupplier(input: $input) { id uuid name email currency created_at updated_at } }",
"variables": {
"input": {
"name": "Example",
"email": "ada@example.com",
"address": {}
}
}
}
JSON