Orders
An order is one customer’s purchase that they pay for over time. It is where the money story starts: the plan, the schedule, what has been collected, what is still owed, and what has been paid out to you against it.
ordersQuery
List your orders, newest first by default. Cursor-paginated and filterable by status, payment frequency, product, amounts, payment counts and order date.
Use this to reconcile your books, build a dashboard, or find the orders for a product. For everything about a single order, pass its orderId to the order query.
Every filter you add narrows the results. Amounts are in USD. A date filter takes either a calendar date (YYYY-MM-DD), which starts at midnight US Central time (America/Chicago), or a full timestamp for an exact moment.
amountDiscounted is the total discount agreed after checkout. Sorting by AMOUNT_REMAINING, and the amountRemainingMin and amountRemainingMax filters, all use the same balance the amountRemaining field returns.
POST/graphql
orders(input: OrdersInput): OrderConnection!
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.statuses | [OrderStatus!] | Only orders in these statuses. INVALID is rejected. See Order statuses for the values. |
input.paymentFrequencies | [PaymentFrequency!] | Only orders repaid on these cadences. INVALID selects invalid or missing stored values. |
input.productName | String | Orders where any line item's product name contains this text (case-insensitive). |
input.orderIds | [ID!] | Only these orders, for a batch lookup. |
input.orderTotalMin | Float | orderTotal at least this, in USD. |
input.orderTotalMax | Float | orderTotal at most this, in USD. |
input.amountRemainingMin | Float | Balance still owed at least this, in USD. |
input.amountRemainingMax | Float | Balance still owed at most this, in USD. |
input.paymentsMadeMin | Int | At least this many payments collected. |
input.paymentsMadeMax | Int | At most this many payments collected. |
input.paymentsTotalMin | Int | Plans with at least this many scheduled payments. |
input.paymentsTotalMax | Int | Plans with at most this many scheduled payments. |
input.orderDateFrom | String | Order timestamp on or after this value. A date starts at midnight America/Chicago; a timestamp specifies an exact instant. A date-only value compares the contract date for older orders that have no real creation time, and the America/Chicago creation day for all other orders. |
input.orderDateTo | String | Order timestamp on or before this value. A date includes the whole America/Chicago day; a timestamp specifies an exact instant. A date-only value compares the contract date for older orders that have no real creation time, and the America/Chicago creation day for all other orders. |
input.sortBy | OrderSortField | Sort field. Defaults to ORDER_DATE. |
input.sortDesc | Boolean | Descending when true. Defaults to true (newest first). |
Returns
| Field | Type | Description |
|---|---|---|
totalCount | Int! | How many orders match your filter, across every page. |
pageInfo | PageInfo! | hasNextPage tells you whether to keep going; endCursor is what you pass as after. |
edges[].node | Order | One Order per edge, with its cursor beside it. The Order fields follow. |
Each Order node
| Field | Type | Description |
|---|---|---|
orderId | ID | The order id you see in the portal. Pass it to order and orderTransactions. |
status | OrderStatus! | Where the order stands. See Order statuses. |
lineItems | [OrderLineItem!]! | Products purchased in this order, with prices recorded at checkout. Fields below. |
customerId | ID | The customer on the order. Pass it to customer. |
orderTotal | Float! | The total your customer agreed to pay for this order at checkout, in USD. |
orderSubtotal | Float! | The price of the products in this order before any pay-over-time costs, in USD. |
amountDiscounted | Float! | The total discount agreed after checkout, in USD. |
amountFinanced | Float! | The amount the customer finances through Payva, in USD. The down payment is not part of it. |
downPayment | Float | Paid by your customer to Payva at checkout. It counts toward orderTotal and is included in amountPaid. |
amountPaid | Float! | The amount your customer has paid so far, in USD, matching the merchant portal. |
amountRemaining | Float! | Balance still owed after discounts and cleared payments, in USD. Never negative. Zero on closed orders. |
amountPerPeriod | Float! | The scheduled payment amount each period, in USD. |
paymentFrequency | PaymentFrequency! | How often the customer pays. INVALID indicates an invalid stored value. |
paymentsMade | Int! | The number of payments your customer has made, matching the merchant portal. |
paymentsTotal | Int | Payments in the whole plan. |
orderDate | String | Order creation timestamp in UTC; falls back to midnight UTC on the contract date when the creation time is unavailable. |
financialInstrument | FinancialInstrument! | What the order is, financially. Values below. |
originatingPlatform | String | The name of the platform the order was sold through. Payva-direct orders show Payva. |
hasClawback | Boolean! | True once a clawback has executed on this order. |
clawbackAmount | Float | Total clawed back, in USD. Null when none; 0 when fully reversed. |
payoutSummary | OrderPayoutSummary | Payouts on this order, to you or the originating platform. Null for declined orders, and when no payout figures exist for the order yet. |
paymentSchedule | [PaymentScheduleItem!]! | Every scheduled payment, in order. |
Example
query Orders($input: OrdersInput) {
orders(input: $input) {
totalCount
pageInfo { hasNextPage endCursor }
edges {
cursor
node {
orderId status customerId
lineItems { name quantity unitPrice amount }
orderTotal amountDiscounted amountPaid amountRemaining amountPerPeriod paymentFrequency
paymentsMade paymentsTotal orderDate
}
}
}
}{
"input": {
"first": 2,
"statuses": [
"ACTIVE",
"PAST_DUE"
],
"sortBy": "ORDER_DATE",
"sortDesc": true
}
}{
"data": {
"orders": {
"totalCount": 148,
"pageInfo": {
"hasNextPage": true,
"endCursor": "eyJzb3J0ZWRGaWVsZCI6Ik9SREVSX0RBVEUiLCJkaXJlY3Rpb24iOiJERVNDIiwidmFsdWUiOiIyMDI2LTAzLTA5IDAwOjAwOjAwIiwiaWQiOjkwMDAwMzR9"
},
"edges": [
{
"cursor": "eyJzb3J0ZWRGaWVsZCI6Ik9SREVSX0RBVEUiLCJkaXJlY3Rpb24iOiJERVNDIiwidmFsdWUiOiIyMDI2LTAzLTE0IDAwOjAwOjAwIiwiaWQiOjkwMDAwMzV9",
"node": {
"orderId": "100235",
"status": "ACTIVE",
"customerId": "9001",
"lineItems": [
{
"name": "Studio membership, 12 months",
"quantity": 1,
"unitPrice": 10000,
"amount": 10000
}
],
"orderTotal": 10000,
"amountDiscounted": 0,
"amountPaid": 4600,
"amountRemaining": 5400,
"amountPerPeriod": 900,
"paymentFrequency": "MONTHLY",
"paymentsMade": 4,
"paymentsTotal": 10,
"orderDate": "2026-03-14T15:20:00Z"
}
},
{
"cursor": "eyJzb3J0ZWRGaWVsZCI6Ik9SREVSX0RBVEUiLCJkaXJlY3Rpb24iOiJERVNDIiwidmFsdWUiOiIyMDI2LTAzLTA5IDAwOjAwOjAwIiwiaWQiOjkwMDAwMzR9",
"node": {
"orderId": "100234",
"status": "PAST_DUE",
"customerId": "9014",
"lineItems": [
{
"name": "Coaching program, 6 months",
"quantity": 1,
"unitPrice": 4200,
"amount": 4200
}
],
"orderTotal": 4500,
"amountDiscounted": 300,
"amountPaid": 1400,
"amountRemaining": 2800,
"amountPerPeriod": 700,
"paymentFrequency": "MONTHLY",
"paymentsMade": 2,
"paymentsTotal": 6,
"orderDate": "2026-03-09T18:05:00Z"
}
}
]
}
}
}orderQuery
Fetch one order by its orderId, with everything nested: balances, the payment schedule, the payout summary and the platform it was sold through. Null when the id isn’t found on your account.
activityFeed comes back null with a FORBIDDEN error, and the rest of the order still resolves. Contact Payva to switch it on.This is the page behind an order in your own system. Ask only for what you need: the schedule is resolved on demand, so a request for balances alone stays fast. For the order's transactions, use orderTransactions.
POST/graphql
order(orderId: ID!): Order
Arguments
| Name | Type | Description |
|---|---|---|
orderId | ID!required | The order id, as shown in the portal and returned by orders. |
Returns
| Field | Type | Description |
|---|---|---|
orderId | ID | The order id you asked for. |
status | OrderStatus! | Where the order stands. See Order statuses. |
lineItems | [OrderLineItem!]! | Products purchased in this order, with prices recorded at checkout. Fields under orders. |
customerId | ID | The customer on the order. Pass it to customer. |
orderTotal | Float! | The total your customer agreed to pay for this order at checkout, in USD. |
orderSubtotal | Float! | The price of the products in this order before any pay-over-time costs, in USD. |
amountDiscounted | Float! | The total discount agreed after checkout, in USD. |
amountFinanced | Float! | The amount the customer finances through Payva, in USD. The down payment is not part of it. |
downPayment | Float | Paid by your customer to Payva at checkout. It counts toward orderTotal and is included in amountPaid. |
amountPaid | Float! | The amount your customer has paid so far, in USD, matching the merchant portal. |
amountRemaining | Float! | Balance still owed after discounts and cleared payments, in USD. Never negative. Zero on closed orders. |
amountPerPeriod | Float! | The scheduled payment amount each period, in USD. |
paymentFrequency | PaymentFrequency! | How often the customer pays. Values under orders. |
paymentsMade | Int! | The number of payments your customer has made, matching the merchant portal. |
paymentsTotal | Int | Payments in the whole plan. |
orderDate | String | Order creation timestamp in UTC; falls back to midnight UTC on the contract date when the creation time is unavailable. |
financialInstrument | FinancialInstrument! | What the order is, financially. Values under orders. |
originatingPlatform | String | The name of the platform the order was sold through. Payva-direct orders show Payva. |
hasClawback | Boolean! | True once a clawback has executed on this order. |
clawbackAmount | Float | Total clawed back, in USD. Null when none; 0 when fully reversed. |
payoutSummary | OrderPayoutSummary | Payouts on this order, to you or the originating platform. Null for declined orders, and when no payout figures exist for the order yet. |
paymentSchedule | [PaymentScheduleItem!]! | Every scheduled payment, in order. |
Example
query Order($orderId: ID!) {
order(orderId: $orderId) {
orderId status orderTotal amountDiscounted amountFinanced downPayment amountPaid amountRemaining
hasClawback clawbackAmount
originatingPlatform
payoutSummary { payoutAmount payoutPercent payoutToDate }
paymentSchedule { paymentNumber dueDate amountDue }
}
}{
"orderId": "100235"
}{
"data": {
"order": {
"orderId": "100235",
"status": "ACTIVE",
"orderTotal": 10000,
"amountDiscounted": 0,
"amountFinanced": 9000,
"downPayment": 1000,
"amountPaid": 4600,
"amountRemaining": 5400,
"hasClawback": false,
"clawbackAmount": null,
"originatingPlatform": "Payva",
"payoutSummary": {
"payoutAmount": 8000,
"payoutPercent": 80,
"payoutToDate": 8000
},
"paymentSchedule": [
{
"paymentNumber": 1,
"dueDate": "2026-04-14",
"amountDue": 900
},
{
"paymentNumber": 2,
"dueDate": "2026-05-14",
"amountDue": 900
}
]
}
}
}Order statuses
Every value the order status field can take. These are the merchant-facing statuses; Payva's internal servicing states fold into them, so what you filter on is exactly what you see.
Every status falls into one of four bands:
| Band | Status |
|---|---|
| Healthy | ACTIVE |
| Healthy | ACTIVE_MODIFIED_PAYMENT |
| Healthy | PAID |
| Slipping | FAILED_PAYMENT |
| Slipping | PAST_DUE |
| Slipping | PAST_DUE_PENDING_PAYMENT |
| Ended badly | DEFAULTED |
| Ended badly | CHARGEBACK |
| Ended badly | CANCELED |
| Ended badly | REQUESTING_CANCELLATION |
| Declined | DECLINED |
Orders the merchant portal does not show (duplicate, abandoned, still in underwriting review, application in progress, approved but not yet funded) are never returned. INVALID means the stored status is not valid: orders are never returned with it, and it is rejected as a filter.
Example
query OrdersByStatus($input: OrdersInput) {
orders(input: $input) {
edges { node { orderId status } }
}
}{
"input": {
"statuses": [
"PAST_DUE",
"DEFAULTED"
],
"first": 3
}
}{
"data": {
"orders": {
"edges": [
{
"node": {
"orderId": "100234",
"status": "PAST_DUE"
}
},
{
"node": {
"orderId": "100198",
"status": "DEFAULTED"
}
}
]
}
}
}Types
OrderSortFieldEnum
| Value | Meaning |
|---|---|
ORDER_DATE | When the order was created (the default). |
ORDER_TOTAL | The orderTotal. |
AMOUNT_REMAINING | The balance still owed. |
STATUS | Groups orders by status. |
ORDER_ID | The order id. |
FinancialInstrumentEnum
The financialInstrument field.
| Value | Meaning |
|---|---|
FACTORED_INVOICE | The order is a factored invoice. |
PaymentFrequencyEnum
How often the customer pays: the paymentFrequency field and the paymentFrequencies filter. INVALID indicates an invalid stored value and selects invalid or missing values when filtering.
| Value | Meaning |
|---|---|
DAILY | Every day. |
WEEKLY | Every week. |
BIWEEKLY | Every two weeks. |
MONTHLY | Every month. |
INVALID | An invalid stored cadence. |
OrderLineItemObject
Each entry in lineItems.
| Name | Type | Description |
|---|---|---|
name | String | Product name recorded at purchase, including orders without a linked product. Null when no name was recorded. |
product | OrderLineItemProduct | The linked live product of this merchant. Null when no product is linked or it has been deleted. |
quantity | Int! | Units purchased. Always 1 today. |
unitPrice | Float! | Unit price at checkout after any payment-link price override, in USD. |
amount | Float! | Unit price multiplied by quantity, in USD. |
OrderLineItemProductObject
The product object on a line item.
| Name | Type | Description |
|---|---|---|
id | ID! | Immutable id of the product. |
name | String | Product name recorded at checkout. |
OrderPayoutSummaryObject
The payoutSummary object. All amounts in USD. On an order sold through another platform, the payout is sent to that platform.
| Name | Type | Description |
|---|---|---|
payoutAmount | Float | Upfront payout to you or the originating platform, in USD. Null unless the route is UPFRONT. |
payoutPercent | Int | The upfront payout percentage. Null unless the route is UPFRONT, or when the checkout amount is zero or missing. |
payoutToDate | Float | Total paid out to you or the originating platform so far, net of clawbacks. |
PaymentScheduleItemObject
Each entry in paymentSchedule, from payment 1 to the last.
| Name | Type | Description |
|---|---|---|
paymentNumber | Int! | Position in the plan, starting at 1. |
dueDate | String! | The scheduled due date, as YYYY-MM-DD. |
amountDue | Float! | The amount due that day, in USD. |
OrderStatusEnum
| Value | Meaning |
|---|---|
ACTIVE | A live plan being repaid on schedule. Unfunded applications are never ACTIVE. |
ACTIVE_MODIFIED_PAYMENT | Live on a modified payment arrangement. |
PAID | Fully repaid. |
FAILED_PAYMENT | A scheduled payment failed. |
PAST_DUE | A scheduled payment is past due. |
PAST_DUE_PENDING_PAYMENT | Past due, with a payment scheduled or payments paused. |
DEFAULTED | Defaulted after prolonged non-payment. |
CHARGEBACK | A payment was charged back. |
REQUESTING_CANCELLATION | A cancellation has been requested. |
CANCELED | Canceled before completion. |
DECLINED | The application was declined. |
INVALID | The stored status is not valid. Orders are never returned with it; historical status fields can use this fallback. |