Payment links
A payment link is a shareable checkout URL for one product at one price. Create one from your own system, send it to a customer, and the order appears in orders when they complete checkout. Add your own query-string parameters to a link to get them back in your webhooks: see Checkout link parameters.
paymentLinksQuery
Your saved payment links, most recently updated first. Cursor-paginated and filterable by product, amount and creation date.
The list the portal calls saved links. Filter by productId to see every price a product has been offered at, or walk it all for an audit of what is live.
POST/graphql
paymentLinks(input: PaymentLinksInput): PaymentLinkConnection!
Arguments
| Name | Type | Description |
|---|---|---|
input.productId | ID | Only links for this product. |
input.amountMin | Float | Amount at least this, in USD, inclusive. Non-numeric amounts and amounts with more than 12 integer or 4 fractional digits do not match. |
input.amountMax | Float | Amount at most this, in USD, inclusive. Non-numeric amounts and amounts with more than 12 integer or 4 fractional digits do not match. |
input.createdAtFrom | String | Created on or after. A date (YYYY-MM-DD or YYYYMMDD) starts at midnight America/Chicago. A full ISO 8601 timestamp (e.g. 2026-11-14T10:30:00Z) is inclusive; a timestamp without an offset is UTC. |
input.createdAtTo | String | Created on or before. A date (YYYY-MM-DD or YYYYMMDD) includes the whole day in America/Chicago. A full ISO 8601 timestamp (e.g. 2026-11-14T10:30:00Z) is inclusive; a timestamp without an offset is UTC. |
input.first | Int | Page size, 1–100. Defaults to 25. |
input.after | String | The endCursor from the previous page. Omit it for the first page. |
input.sortDesc | Boolean | Links are sorted by last update. Most recently updated first when true. Defaults to true. |
Returns
| Field | Type | Description |
|---|---|---|
totalCount | Int! | How many payment links match your filter, across every page. |
pageInfo | PageInfo! | hasNextPage tells you whether to keep going; endCursor is what you pass as after. |
edges[].node | PaymentLink | One PaymentLink per edge, with its cursor beside it. The PaymentLink fields follow. |
Each PaymentLink node
| Field | Type | Description |
|---|---|---|
id | ID! | The payment link id. Pass it to paymentLink, updatePaymentLink and deletePaymentLink. |
productId | ID! | The product the link sells. |
name | String! | Your internal name for the link. |
description | String! | Shown to the customer at checkout. |
amount | Float! | The price, in USD. |
link | String! | The shareable checkout URL. |
redirectUrl | String | Where the customer is sent after checkout. Always an https URL. |
createdAt | DateTime! | When the link was created. |
updatedAt | DateTime! | When it last changed. |
Example
query PaymentLinks($input: PaymentLinksInput) {
paymentLinks(input: $input) {
totalCount
edges { node { id name amount link updatedAt } }
}
}{
"input": {
"productId": "501",
"first": 3
}
}{
"data": {
"paymentLinks": {
"totalCount": 2,
"edges": [
{
"node": {
"id": "7001",
"name": "Spring promo",
"amount": 1200,
"link": "https://checkout.payva.example/payment/7Qm4Z",
"updatedAt": "2026-07-20T18:04:00Z"
}
}
]
}
}
}paymentLinkQuery
Fetch one payment link by id. Null when the id isn’t found on your account.
Use it to confirm a link before you send it, or to recover the checkout URL from an id you stored.
POST/graphql
paymentLink(id: ID!): PaymentLink
Arguments
| Name | Type | Description |
|---|---|---|
id | ID!required | The payment link id. |
Returns
| Field | Type | Description |
|---|---|---|
id | ID! | The payment link id. |
productId | ID! | The product the link sells. |
name | String! | Your internal name for the link. |
description | String! | Shown to the customer. |
amount | Float! | The price, in USD. |
link | String! | The shareable checkout URL. |
redirectUrl | String | The post-checkout redirect. Always an https URL. |
createdAt | DateTime! | When the link was created. |
updatedAt | DateTime! | When it last changed. |
Example
query PaymentLink($id: ID!) {
paymentLink(id: $id) {
id name description amount link productId
}
}{
"id": "7001"
}{
"data": {
"paymentLink": {
"id": "7001",
"name": "Spring promo",
"description": "20% off the spring bundle",
"amount": 1200,
"link": "https://checkout.payva.example/payment/7Qm4Z",
"productId": "501"
}
}
}createPaymentLinkMutation
Create a shareable checkout link for one of your products. The price is in USD, at least 500 and no more than your account's maximum. Links you create through the API are MONTHLY. Existing links on another schedule show no cadence. You cannot create a link for a paused product. A legacy product returns NOT_FOUND.
FORBIDDEN.The link is saved to your account, so it also appears in the portal's saved links. A price above your account maximum is refused with INVALID_REQUEST and a message naming the limit.
POST/graphql
createPaymentLink(input: CreatePaymentLinkInput!): PaymentLink!
Arguments
| Name | Type | Description |
|---|---|---|
input.productId | ID!required | The product to sell. Legacy products return NOT_FOUND; paused products cannot have payment links. |
input.name | String!required | Your internal name for the link. |
input.description | String!required | Shown to the customer at checkout. |
input.price | Float!required | In USD. At least 500; at most your account maximum. |
input.redirectUrl | String | Where to send the customer after checkout. An absolute HTTPS URL only; query parameters are passed along. IP literal ranges are not filtered. |
Returns
| Field | Type | Description |
|---|---|---|
id | ID! | The new link's id. |
name | String! | Your internal name for the link. |
amount | Float! | The price, in USD. |
link | String! | The shareable checkout URL. Send this to your customer. |
createdAt | DateTime! | When the link was created. |
Example
mutation CreatePaymentLink($input: CreatePaymentLinkInput!) {
createPaymentLink(input: $input) {
id name amount link
}
}{
"input": {
"productId": "501",
"name": "Spring promo",
"description": "20% off the spring bundle",
"price": 1200,
"redirectUrl": "https://shop.payva.example/thanks"
}
}{
"data": {
"createPaymentLink": {
"id": "7002",
"name": "Spring promo",
"amount": 1200,
"link": "https://checkout.payva.example/payment/7Qm5a"
}
}
}updatePaymentLinkMutation
Update a payment link you own. Every field is optional. A new price is in USD, at least 500 and within your account maximum. Returns the updated payment link.
FORBIDDEN.Changing the price does not change orders already placed through the link; it only affects checkouts from now on. The same account maximum applies as on creation.
POST/graphql
updatePaymentLink(id: ID!, input: UpdatePaymentLinkInput!): PaymentLink!
Arguments
| Name | Type | Description |
|---|---|---|
id | ID!required | The payment link to update. |
input.name | String | A new internal name. |
input.description | String | A new customer-facing description. |
input.price | Float | A new price, in USD. At least 500; at most your account maximum. |
input.redirectUrl | String | A new post-checkout redirect. An absolute HTTPS URL only; query parameters are passed along. IP literal ranges are not filtered. |
Returns
| Field | Type | Description |
|---|---|---|
id | ID! | The payment link id. |
name | String! | Your internal name for the link. |
amount | Float! | The price, in USD. |
link | String! | The shareable checkout URL. |
updatedAt | DateTime! | When it last changed. |
Example
mutation UpdatePaymentLink($id: ID!, $input: UpdatePaymentLinkInput!) {
updatePaymentLink(id: $id, input: $input) {
id name amount link updatedAt
}
}{
"id": "7001",
"input": {
"name": "Spring promo (extended)",
"price": 1000
}
}{
"data": {
"updatePaymentLink": {
"id": "7001",
"name": "Spring promo (extended)",
"amount": 1000,
"link": "https://checkout.payva.example/payment/7Qm4Z",
"updatedAt": "2026-07-21T09:30:00Z"
}
}
}deletePaymentLinkMutation
Delete a payment link. The URL stops working. Returns true.
FORBIDDEN.Orders already placed through the link are untouched. A customer who opens the old URL after this sees no checkout.
POST/graphql
deletePaymentLink(id: ID!): Boolean!
Arguments
| Name | Type | Description |
|---|---|---|
id | ID!required | The payment link to delete. |
Returns
| Field | Type | Description |
|---|---|---|
deletePaymentLink | Boolean! | True when the link was deleted. |
Example
mutation DeletePaymentLink($id: ID!) {
deletePaymentLink(id: $id)
}{
"id": "7001"
}{
"data": {
"deletePaymentLink": true
}
}