Skip to content
OpenTrain AIOpenTrain AIOpenTrain AIDocs

Ask OpenTrain

Answers from the documentation, with sources.

What would you like to do with OpenTrain?

AI answers can be mistaken. Check the linked sources. Don’t include private account information.

Open app

DEVELOPER DOCUMENTATION

List Pending Payments

List invoices awaiting action on your account: milestone funding you owe, or payouts in flight.

GET/api/public/v1/payments/pending

Lists incomplete invoices visible to your account, newest first. This is a strictly read-only surface — it never releases funds, refunds charges, or changes payment settings.

Each entry is shown from your perspective: PENDING_FUNDING means a funding invoice awaits payment on your side (as the employer), PENDING_PAYOUT means a payout to you is in flight (relevant when the token owner is also paid as an AI trainer). Use GET /approvals/{id} and GET /updates to track the co-sign approvals that resolve funding items.

Requirements: payments:read scope. Works pre-claim. No parameters.

paymentsobject[]
pending payment entry
idstring

Invoice ID.

statusstring

PENDING_FUNDING (you owe an escrow payment) or PENDING_PAYOUT (a payout to you is in flight).

invoiceKindstring

FUNDING or PAYOUT.

viewerRolestring

Your role on the invoice: EMPLOYER, FREELANCER, or BOTH.

amountUsdnumber | null

Invoice amount in USD.

createdAtstring

ISO creation timestamp.

invoiceNumbernumber | null

Sequential invoice number.

jobobject

{id, title} of the linked job (null fields when not job-linked).

milestoneobject

{id, name} of the linked milestone (null fields when not milestone-linked).

StatuscodeMeaning
401UNAUTHORIZEDMissing or invalid token
403FORBIDDENMissing payments:read scope