Products
A product is what you sell on a payment plan: its price, the plan terms you offer, and the down payment you ask for. Orders and payment links are both created from a product, so keep products current and everything downstream follows.
productsQuery
List your products with cursor pagination. Filter by name, status, cadence, route, price ranges, term lengths and creation date.
By default you get your undeleted products with status ACTIVE, the ones that can be sold right now. Set status to PAUSED or ALL for the others. Deleted products are left out unless you set includeDeleted to true, which includes them whatever the status, so the ids on old orders can still be resolved.
POST/graphql
products(input: ProductsInput): ProductConnection!
Arguments
| Name | Type | Description |
|---|---|---|
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.name | String | Products whose name contains this text. |
input.status | ProductStatus | Filter undeleted products by status: ACTIVE, PAUSED or ALL. Defaults to ACTIVE. |
input.includeDeleted | Boolean | Also include deleted products, regardless of status. Defaults to false. |
input.frequencies | [ProductPaymentFrequency!] | Only products billed on these cadences. |
input.productIds | [ID!] | Only these products. |
input.routes | [ProductRoute!] | Filter by credit approval route. INVALID selects an invalid or missing stored route. |
input.minimumPriceMin | Float | Minimum price at least this, in USD. |
input.minimumPriceMax | Float | Minimum price at most this, in USD. |
input.priceMin | Float | Sticker price at least this, in USD. |
input.priceMax | Float | Sticker price at most this, in USD. |
input.fundingTerms | [Int!] | Products offering any of these funding terms (months). |
input.pacTerms | [Int!] | Products offering any of these pay-as-collected terms. |
input.createdAtFrom | String | Created on or after. A date (YYYY-MM-DD or YYYYMMDD) starts at midnight America/Chicago, including daylight saving time changes. A full ISO 8601 timestamp (e.g. 2026-11-14T10:30:00Z) is used as is; without an offset it is UTC. |
input.createdAtTo | String | Created on or before. A date (YYYY-MM-DD or YYYYMMDD) includes the whole day in America/Chicago, including daylight saving time changes. A full ISO 8601 timestamp (e.g. 2026-11-14T10:30:00Z) is used as is; without an offset it is UTC. |
input.sortBy | ProductSortField | CREATED_AT, NAME or MINIMUM_PRICE. Defaults to CREATED_AT. |
input.sortDesc | Boolean | Descending when true. Defaults to true: newest, largest or Z to A first. |
Returns
| Field | Type | Description |
|---|---|---|
totalCount | Int! | How many products match your filter, across every page. |
pageInfo | PageInfo! | hasNextPage tells you whether to keep going; endCursor is what you pass as after. |
edges[].node | Product | One Product per edge, with its cursor beside it. The Product fields follow. |
Each Product node
| Field | Type | Description |
|---|---|---|
id | ID! | The product id. Pass it to product, updateProduct, deleteProduct and createPaymentLink. |
name | String! | The product name. |
description | String | Your description of the product. It isn’t shown on the checkout page, but a product link uses it as the preview text when the link is shared, for example in a text message or on social media. |
price | Float | The sticker price, in USD. |
minimumPrice | Float | The lowest price a checkout may use, in USD. Null when none is set. |
downPayment | Float | An initial payment the customer makes to Payva at checkout, in USD. |
frequency | ProductPaymentFrequency | The billing cadence: DAILY, WEEKLY, BIWEEKLY or MONTHLY. |
fundingTerms | [Int!]! | The funding term lengths offered, in months. |
pacTerms | [Int!]! | The pay-as-collected term lengths offered. |
isActive | Boolean | Whether the product can be sold right now. Never null on reads. Deleted products are always inactive. |
isDeleted | Boolean! | True once deleted. Included in product listings only when requested, and still referenced by orders. No longer editable or sellable. |
route | ProductRoute! | The credit approval routes this product allows at checkout. INVALID when the stored route is not valid. Values below. |
productImageUrl | String | The product image shown at checkout. |
redirectUrl | String | Where the customer is sent after checkout. Always an https URL. |
createdAt | String | When the product was created, a timestamp. |
Example
query Products($input: ProductsInput) {
products(input: $input) {
totalCount
edges { node { id name price minimumPrice frequency fundingTerms isActive isDeleted } }
}
}{
"input": {
"first": 3,
"status": "ACTIVE"
}
}{
"data": {
"products": {
"totalCount": 12,
"edges": [
{
"node": {
"id": "501",
"name": "Studio membership, 12 months",
"price": 10000,
"minimumPrice": 1500,
"frequency": "MONTHLY",
"fundingTerms": [
3,
6,
12
],
"isActive": true,
"isDeleted": false
}
}
]
}
}
}productQuery
Fetch one product by id, with every attribute. Null when the id isn’t found on your account or is a legacy product.
Use it when you hold a product id from an order or a payment link and need the full record, including fields the list omits from its example. Deleted products still resolve, flagged isDeleted.
POST/graphql
product(id: ID!): Product
Arguments
| Name | Type | Description |
|---|---|---|
id | ID!required | The product id. Legacy product ids return null. |
Returns
| Field | Type | Description |
|---|---|---|
id | ID! | The product id. |
name | String! | The product name. |
description | String | Your description of the product. It isn’t shown on the checkout page, but a product link uses it as the preview text when the link is shared, for example in a text message or on social media. |
price | Float | The sticker price, in USD. |
minimumPrice | Float | The lowest price a checkout may use, in USD. Null when none is set. |
downPayment | Float | An initial payment the customer makes to Payva at checkout, in USD. |
frequency | ProductPaymentFrequency | The billing cadence. |
fundingTerms | [Int!]! | Funding term lengths offered, in months. |
pacTerms | [Int!]! | Pay-as-collected term lengths offered. |
isActive | Boolean | Whether the product can be sold. Never null on reads. |
isDeleted | Boolean! | True once deleted. |
route | ProductRoute! | The credit approval routes this product allows at checkout. INVALID when the stored route is not valid. Values under products. |
productImageUrl | String | The product image. |
redirectUrl | String | The post-checkout redirect. Always an https URL. |
createdAt | String | When the product was created, a timestamp. |
Example
query Product($id: ID!) {
product(id: $id) {
id name description price minimumPrice
downPayment frequency fundingTerms pacTerms route isActive isDeleted
}
}{
"id": "501"
}{
"data": {
"product": {
"id": "501",
"name": "Studio membership, 12 months",
"description": "Unlimited classes, billed monthly",
"price": 10000,
"minimumPrice": 1500,
"downPayment": 0,
"frequency": "MONTHLY",
"fundingTerms": [
3,
6,
12
],
"pacTerms": [],
"route": "UPFRONT_ONLY",
"isActive": true,
"isDeleted": false
}
}
}createProductMutation
Create a product. Name and price are required, and amounts are in USD. price and minimumPrice must each be at least 500 and at most your account maximum (30,000 unless Payva has set another for you). Returns the new product.
FORBIDDEN.POST/graphql
createProduct(input: CreateProductInput!): Product!
Arguments
| Name | Type | Description |
|---|---|---|
input.name | String!required | The product name. Cannot be empty. |
input.price | Float!required | The sticker price, in USD. At least 500; at most your account maximum. |
input.description | String | Your description of the product. It isn’t shown on the checkout page, but a product link uses it as the preview text when the link is shared, for example in a text message or on social media. |
input.minimumPrice | Float | The lowest price a checkout may use, in USD. At least 500; at most your account maximum. Defaults to the sticker price, and must not exceed it. |
input.downPayment | Float | An initial payment the customer makes to Payva at checkout, in USD. |
input.fundingTerms | [Int!] | Funding term lengths to offer, in months, e.g. [3, 6, 12]. |
input.pacTerms | [Int!] | Pay-as-collected term lengths to offer. |
input.isActive | Boolean | Whether it can be sold straight away. Defaults to true. |
input.route | ProductRoute!required | The credit approval routes the product allows. Must be one your account allows. |
input.productImageUrl | String | An image URL shown at checkout. |
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 product's id. |
name | String! | The product name. |
price | Float | The sticker price, in USD. |
minimumPrice | Float | The minimum price, in USD, when set. |
downPayment | Float | An initial payment the customer makes to Payva at checkout, in USD. |
route | ProductRoute! | The routes the product allows. |
isActive | Boolean | Whether it can be sold. |
createdAt | String | When the product was created, a timestamp. |
Example
mutation CreateProduct($input: CreateProductInput!) {
createProduct(input: $input) {
id name price minimumPrice downPayment route isActive createdAt
}
}{
"input": {
"name": "Coaching program, 6 months",
"price": 3000,
"minimumPrice": 1500,
"downPayment": 500,
"fundingTerms": [
3,
6,
12
],
"route": "AUTOROUTE"
}
}{
"data": {
"createProduct": {
"id": "503",
"name": "Coaching program, 6 months",
"price": 3000,
"minimumPrice": 1500,
"downPayment": 500,
"route": "AUTOROUTE",
"isActive": true,
"createdAt": "2026-07-21T15:12:00Z"
}
}
}updateProductMutation
Update a product. Every field is optional: send only what changes. Amounts are in USD. Returns the updated product.
FORBIDDEN.A price below 500 or above your account maximum is refused with INVALID_REQUEST. A product already priced above the maximum can keep or lower that price, but not raise it. minimumPrice must not exceed the sticker price, whether you change one or both. minimumPrice and isActive cannot be null: omit them to leave them unchanged. A redirectUrl that is invalid, non-HTTPS, credentialed, single-label or a blocked host is refused. IP literal ranges are not filtered. A legacy or deleted product cannot be updated; you get NOT_FOUND. To pause sales without deleting, set isActive to false. Omitting route keeps the current route; route cannot be null.
POST/graphql
updateProduct(id: ID!, input: UpdateProductInput!): Product!
Arguments
| Name | Type | Description |
|---|---|---|
id | ID!required | The product to update. Legacy products return NOT_FOUND. |
input.name | String | A new name. Cannot be empty. |
input.description | String | A new description. |
input.price | Float | A new sticker price. At least 500; at most your account maximum. A product already above the maximum may keep or lower its price, not raise it. |
input.minimumPrice | Float | A new minimum price, in USD. Same limits as price. Must not exceed the sticker price. Omit it to leave it unchanged. Cannot be null. |
input.downPayment | Float | An initial payment the customer makes to Payva at checkout, in USD. |
input.fundingTerms | [Int!] | Funding term lengths, in months. |
input.pacTerms | [Int!] | Pay-as-collected term lengths. |
input.isActive | Boolean | Pause (false) or resume (true) sales. Omit it to leave it unchanged. Cannot be null. |
input.route | ProductRoute | New credit approval routes. Must be one your account allows. Omit it to keep the current route. Cannot be null: null is refused with INVALID_REQUEST. |
input.productImageUrl | String | An image URL. |
input.redirectUrl | String | The 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 product id. |
name | String! | The product name. |
price | Float | The sticker price, in USD. |
minimumPrice | Float | The minimum price, in USD, when set. |
isActive | Boolean | Whether it can be sold. |
Example
mutation UpdateProduct($id: ID!, $input: UpdateProductInput!) {
updateProduct(id: $id, input: $input) {
id name price minimumPrice isActive
}
}{
"id": "501",
"input": {
"price": 12000,
"isActive": true
}
}{
"data": {
"updateProduct": {
"id": "501",
"name": "Studio membership, 12 months",
"price": 12000,
"minimumPrice": 1500,
"isActive": true
}
}
}deleteProductMutation
Delete a product. Legacy product ids return NOT_FOUND. A deleted product can no longer be edited or used for new checkouts or payment links, but stays available in your products list when includeDeleted is true, flagged isDeleted, and stays attached to existing orders. Returns true.
FORBIDDEN.Prefer isActive: false when you only want to stop selling for a while. Deletion is permanent and orders already on the product keep their link to it.
POST/graphql
deleteProduct(id: ID!): Boolean!
Arguments
| Name | Type | Description |
|---|---|---|
id | ID!required | The product to delete. Legacy products return NOT_FOUND. |
Returns
| Field | Type | Description |
|---|---|---|
deleteProduct | Boolean! | True when the product was deleted. |
Example
mutation DeleteProduct($id: ID!) {
deleteProduct(id: $id)
}{
"id": "503"
}{
"data": {
"deleteProduct": true
}
}Types
ProductPaymentFrequencyEnum
| Value | Meaning |
|---|---|
DAILY | Every day. |
WEEKLY | Every week. |
BIWEEKLY | Every two weeks. |
MONTHLY | Every month. |
ProductRouteEnum
The credit approval routes a product allows at checkout: the route field and the route input on createProduct and updateProduct. See How an order gets its route for what each one does. Your account's route settings decide which you can set. Any other is refused with INVALID_REQUEST, and the message lists the ones you can use.
| Value | Meaning |
|---|---|
AUTOROUTE | UPFRONT or PAC: the credit decision at checkout picks the route. |
PAC_ONLY | PAC only: you are paid out as each customer payment comes in. |
UPFRONT_ONLY | UPFRONT only: you are paid out upfront. |
INVALID | The stored product route is not valid. Rejected on mutations. |