Create a payment link
POST
/businesses/{bid}/payment-requestsRequires the documents scope.
A link the payer opens to pay by card on the business's own terminal. Give lines (or amount and description) for a payment that pays for nothing issued yet; to ask for what an invoice still owes, use POST /documents/{id}/payment-request. Once paid, the receipt is issued by itself and payment_request.paid is sent.
Path parameters
bidstringrequiredBusiness id, from
POST /businesses.Headers
Idempotency-KeystringYour own stable id for this call. A retry returns the same row with
deduped: true instead of creating a duplicate. Interchangeable with externalRef in the body.Body
amountintegerVAT included. With
documentId, defaults to what is still owed and may not exceed it. Integer agorot (₪1 = 100).descriptionstringWhat the payment is for. Required without
documentId or lines.linesarray of objectpartyobjectShowHide 5 child attributes
party.partyIdstringparty.namestringparty.phonestringparty.emailstringThe receipt is mailed here.
party.taxIdstringmaxInstallmentsintegerUp to the terminal's own maximum.
expiresAtstringexternalRefstringIdempotency, like the
Idempotency-Key header.Response
201: { "ok": true, … }
okbooleanrequiredpaymentRequestPaymentRequestrequiredA request for a payment and its public link. When the card company confirms the payment, BillOS issues the receipt itself: a קבלה (400) for an invoice it pays, a חשבונית מס/קבלה (320) for a proforma or for its own lines (a 400 for an עוסק פטור), and the invoice it paid is closed.
dedupedbooleanErrors: 400, 401, 403, 404, 429. Every failure answers { "error", "reason", "hint", "param", "doc_url", "retryable", "request_id" }: branch on reason, and read hint for what to change (https://docs.billos.co.il/errors.md).