Ordersorders
HelpStatusOpen portal

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

NameTypeDescription
input.firstIntPage size, 1–100. Defaults to 25.
input.afterStringThe 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.productNameStringOrders where any line item's product name contains this text (case-insensitive).
input.orderIds[ID!]Only these orders, for a batch lookup.
input.orderTotalMinFloatorderTotal at least this, in USD.
input.orderTotalMaxFloatorderTotal at most this, in USD.
input.amountRemainingMinFloatBalance still owed at least this, in USD.
input.amountRemainingMaxFloatBalance still owed at most this, in USD.
input.paymentsMadeMinIntAt least this many payments collected.
input.paymentsMadeMaxIntAt most this many payments collected.
input.paymentsTotalMinIntPlans with at least this many scheduled payments.
input.paymentsTotalMaxIntPlans with at most this many scheduled payments.
input.orderDateFromStringOrder 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.orderDateToStringOrder 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.sortByOrderSortFieldSort field. Defaults to ORDER_DATE.
input.sortDescBooleanDescending when true. Defaults to true (newest first).

Returns

FieldTypeDescription
totalCountInt!How many orders match your filter, across every page.
pageInfoPageInfo!hasNextPage tells you whether to keep going; endCursor is what you pass as after.
edges[].nodeOrderOne Order per edge, with its cursor beside it. The Order fields follow.

Each Order node

FieldTypeDescription
orderIdIDThe order id you see in the portal. Pass it to order and orderTransactions.
statusOrderStatus!Where the order stands. See Order statuses.
lineItems[OrderLineItem!]!Products purchased in this order, with prices recorded at checkout. Fields below.
customerIdIDThe customer on the order. Pass it to customer.
orderTotalFloat!The total your customer agreed to pay for this order at checkout, in USD.
orderSubtotalFloat!The price of the products in this order before any pay-over-time costs, in USD.
amountDiscountedFloat!The total discount agreed after checkout, in USD.
amountFinancedFloat!The amount the customer finances through Payva, in USD. The down payment is not part of it.
downPaymentFloatPaid by your customer to Payva at checkout. It counts toward orderTotal and is included in amountPaid.
amountPaidFloat!The amount your customer has paid so far, in USD, matching the merchant portal.
amountRemainingFloat!Balance still owed after discounts and cleared payments, in USD. Never negative. Zero on closed orders.
amountPerPeriodFloat!The scheduled payment amount each period, in USD.
paymentFrequencyPaymentFrequency!How often the customer pays. INVALID indicates an invalid stored value.
paymentsMadeInt!The number of payments your customer has made, matching the merchant portal.
paymentsTotalIntPayments in the whole plan.
orderDateStringOrder creation timestamp in UTC; falls back to midnight UTC on the contract date when the creation time is unavailable.
financialInstrumentFinancialInstrument!What the order is, financially. Values below.
originatingPlatformStringThe name of the platform the order was sold through. Payva-direct orders show Payva.
hasClawbackBoolean!True once a clawback has executed on this order.
clawbackAmountFloatTotal clawed back, in USD. Null when none; 0 when fully reversed.
payoutSummaryOrderPayoutSummaryPayouts 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
      }
    }
  }
}
Variables
{
  "input": {
    "first": 2,
    "statuses": [
      "ACTIVE",
      "PAST_DUE"
    ],
    "sortBy": "ORDER_DATE",
    "sortDesc": true
  }
}
Response
{
  "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.

The activity feed is enabled per merchant. When it is off for your business, 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

NameTypeDescription
orderIdID!requiredThe order id, as shown in the portal and returned by orders.

Returns

FieldTypeDescription
orderIdIDThe order id you asked for.
statusOrderStatus!Where the order stands. See Order statuses.
lineItems[OrderLineItem!]!Products purchased in this order, with prices recorded at checkout. Fields under orders.
customerIdIDThe customer on the order. Pass it to customer.
orderTotalFloat!The total your customer agreed to pay for this order at checkout, in USD.
orderSubtotalFloat!The price of the products in this order before any pay-over-time costs, in USD.
amountDiscountedFloat!The total discount agreed after checkout, in USD.
amountFinancedFloat!The amount the customer finances through Payva, in USD. The down payment is not part of it.
downPaymentFloatPaid by your customer to Payva at checkout. It counts toward orderTotal and is included in amountPaid.
amountPaidFloat!The amount your customer has paid so far, in USD, matching the merchant portal.
amountRemainingFloat!Balance still owed after discounts and cleared payments, in USD. Never negative. Zero on closed orders.
amountPerPeriodFloat!The scheduled payment amount each period, in USD.
paymentFrequencyPaymentFrequency!How often the customer pays. Values under orders.
paymentsMadeInt!The number of payments your customer has made, matching the merchant portal.
paymentsTotalIntPayments in the whole plan.
orderDateStringOrder creation timestamp in UTC; falls back to midnight UTC on the contract date when the creation time is unavailable.
financialInstrumentFinancialInstrument!What the order is, financially. Values under orders.
originatingPlatformStringThe name of the platform the order was sold through. Payva-direct orders show Payva.
hasClawbackBoolean!True once a clawback has executed on this order.
clawbackAmountFloatTotal clawed back, in USD. Null when none; 0 when fully reversed.
payoutSummaryOrderPayoutSummaryPayouts 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 }
  }
}
Variables
{
  "orderId": "100235"
}
Response
{
  "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:

BandStatus
HealthyACTIVE
HealthyACTIVE_MODIFIED_PAYMENT
HealthyPAID
SlippingFAILED_PAYMENT
SlippingPAST_DUE
SlippingPAST_DUE_PENDING_PAYMENT
Ended badlyDEFAULTED
Ended badlyCHARGEBACK
Ended badlyCANCELED
Ended badlyREQUESTING_CANCELLATION
DeclinedDECLINED

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 } }
  }
}
Variables
{
  "input": {
    "statuses": [
      "PAST_DUE",
      "DEFAULTED"
    ],
    "first": 3
  }
}
Response
{
  "data": {
    "orders": {
      "edges": [
        {
          "node": {
            "orderId": "100234",
            "status": "PAST_DUE"
          }
        },
        {
          "node": {
            "orderId": "100198",
            "status": "DEFAULTED"
          }
        }
      ]
    }
  }
}

Types

OrderSortFieldEnum

ValueMeaning
ORDER_DATEWhen the order was created (the default).
ORDER_TOTALThe orderTotal.
AMOUNT_REMAININGThe balance still owed.
STATUSGroups orders by status.
ORDER_IDThe order id.

FinancialInstrumentEnum

The financialInstrument field.

ValueMeaning
FACTORED_INVOICEThe 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.

ValueMeaning
DAILYEvery day.
WEEKLYEvery week.
BIWEEKLYEvery two weeks.
MONTHLYEvery month.
INVALIDAn invalid stored cadence.

OrderLineItemObject

Each entry in lineItems.

NameTypeDescription
nameStringProduct name recorded at purchase, including orders without a linked product. Null when no name was recorded.
productOrderLineItemProductThe linked live product of this merchant. Null when no product is linked or it has been deleted.
quantityInt!Units purchased. Always 1 today.
unitPriceFloat!Unit price at checkout after any payment-link price override, in USD.
amountFloat!Unit price multiplied by quantity, in USD.

OrderLineItemProductObject

The product object on a line item.

NameTypeDescription
idID!Immutable id of the product.
nameStringProduct 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.

NameTypeDescription
payoutAmountFloatUpfront payout to you or the originating platform, in USD. Null unless the route is UPFRONT.
payoutPercentIntThe upfront payout percentage. Null unless the route is UPFRONT, or when the checkout amount is zero or missing.
payoutToDateFloatTotal paid out to you or the originating platform so far, net of clawbacks.

PaymentScheduleItemObject

Each entry in paymentSchedule, from payment 1 to the last.

NameTypeDescription
paymentNumberInt!Position in the plan, starting at 1.
dueDateString!The scheduled due date, as YYYY-MM-DD.
amountDueFloat!The amount due that day, in USD.

OrderStatusEnum

ValueMeaning
ACTIVEA live plan being repaid on schedule. Unfunded applications are never ACTIVE.
ACTIVE_MODIFIED_PAYMENTLive on a modified payment arrangement.
PAIDFully repaid.
FAILED_PAYMENTA scheduled payment failed.
PAST_DUEA scheduled payment is past due.
PAST_DUE_PENDING_PAYMENTPast due, with a payment scheduled or payments paused.
DEFAULTEDDefaulted after prolonged non-payment.
CHARGEBACKA payment was charged back.
REQUESTING_CANCELLATIONA cancellation has been requested.
CANCELEDCanceled before completion.
DECLINEDThe application was declined.
INVALIDThe stored status is not valid. Orders are never returned with it; historical status fields can use this fallback.