Lunch
Guides

Getting Started

The Lunch Partner API lets your platform offer government vendors early payment on their invoices. Lunch advances funds to the vendor. The city pays the invoice on its normal schedule, Lunch recovers the advance and fees from that payment, and the remainder goes to the vendor.

The API accepts JSON request bodies (CSV for invoice imports), returns JSON, and uses standard HTTP verbs and status codes. Requests authenticate with a bearer token. All API keys are live. See Authentication.

Key Terms

TermDescription
PayeeThe organization owed the money, typically the vendor.
PayorThe organization that owes the money, typically a city or agency.
Face valueThe invoice's full amount.
AdvanceThe amount Lunch pays the payee up front.
FeesThe cost of the advance. Deducted from the payor's payment, not the advance.
OrganizationA payee or payor. Error codes use "business," for example business_not_found.

Core Calls

ActionCall
Sync an organizationPUT /v1/organizations/{externalId}
Sync an invoicePUT /v1/invoices/{externalId}
Quote an advancePOST /v1/quotes
Request an advancePOST /v1/advances

Vendors must complete onboarding before receiving an advance.

Conventions

ConventionDetail
IdentifiersYour own externalId. No Lunch identifiers to store. See External IDs.
IdempotencyWrites keyed on your identifier are safe to retry. See Idempotent Requests.
AmountsInteger cents. 100000 is $1,000.00.
Invoice datesISO date-times.
Errors{ error, code }. See Errors.

What's Next

Last modified on