Skip to content
gist.link ↗

createBillPayment

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

Record an outbound wire/EFT payment to a supplier (status pending — no money moves yet). Idempotent via idempotencyKey. ROLE_ADMIN or ROLE_PAY_MANAGER.

pay:mutation:createBillPayment

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 {
createBillPayment(input: CreateBillPaymentInput!): BillPayment!
}
Argument Type Required Description
input CreateBillPaymentInput! Yes —

BillPayment! — 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 CreateBillPayment($input: CreateBillPaymentInput!) { createBillPayment(input: $input) { id uuid amount currency status created_at updated_at } }",
"variables": {
"input": {
"supplierId": "example",
"amount": 10,
"currency": "example",
"method": "example"
}
}
}
JSON