Businesses
Sync businesses and retrieve their onboarding status.
Set a payout account
Sets the bank account that receives this vendor's advances. Removes the bank account step from the vendor's onboarding.
- Replaces any existing payout account. Resending identical details has no effect.
labelis updated only when sent. Omitting it keeps the existing value.- Once set, the vendor cannot change the account. Changes must be made through this endpoint.
- Only the routing number's check digit is validated. Account ownership is not verified.
path Parameters
externalIdYour identifier for the business.
Your identifier for the business.
Set a payout account › Request Body
accountNumber^\d{4,17}$ · requiredroutingNumberNine-digit ABA routing number.
labelAccount nickname shown to Lunch operations. Defaults to the last four digits.
Set a payout account › Responses
Payout account saved.
externalIdmaskRetrieve a business
Returns a business's onboarding status and remittance details. An advance requires every onboarding field to be true.
| Field | true when |
|---|---|
compliance | Compliance is cleared. |
contract | The agreement is signed. |
bank | A payout account is on file. |
collectionAccount | The collection account is ready to receive payments. |
compliance, contract and bank can be completed in any order. taxIdOnFile indicates whether a tax ID is on file. The number is not returned.
path Parameters
externalIdYour identifier for the business.
Your identifier for the business.
Retrieve a business › Responses
The business.
externalIdnametaxIdOnFilecomplianceRouteHow compliance was cleared. null if not cleared. PARTNER_SUPPLIED: tax ID provided by you and not confirmed by the vendor. Values may be added. Existing values will not be removed or changed. Handle unknown values.
Account the business's payors pay into. null until the collection account is open.
Create or update a business
Creates or updates a business under your identifier, typically a vendor. Idempotent: repeat requests update the business with the values sent.
- Sending a valid
taxIdclears the compliance requirement. The vendor is not asked to confirm it. If it is incorrect, Lunch will request a correction. It is not cleared if the number is malformed, the business already has a different one, or another business holds it;onboarding.complianceonGET /v1/organizations/{externalId}confirms. taxIdis also used to match businesses served by multiple platforms. Without it, no match is attempted.
path Parameters
externalIdYour identifier for the business.
Your identifier for the business.
Create or update a business › Request Body
legalNametaxIdTax identification number. Punctuation optional. Omit if unknown.
Used to prefill onboarding and address invitations. Omitted fields are not cleared.
Create or update a business › Responses
The business.
externalIdcreatedtrue if a new business was created. When false, reason indicates whether the identifier was already linked or the tax ID matched an existing business.
reasonExplanation of the result. Include in support requests.
Result of the tax ID you sent. Returned only when you send taxId for a business already linked to your account.

