A payment link for an invoice
POST
/businesses/{bid}/documents/{id}/payment-requestRequires the documents scope.
For an issued tax invoice (305) or proforma (300) in shekels with something still owed. The amount defaults to what is owed. Paid, it issues a קבלה (400) that names the invoice, or for a proforma a חשבונית מס/קבלה (320) that names it (a 400 for an עוסק פטור), and the document is closed.
Path parameters
bidstringrequiredBusiness id, from
POST /businesses.idstringrequiredDocument id.
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 (optional)
amountintegerInteger agorot (₪1 = 100).
descriptionstringpartyobjectShowHide 2 child attributes
party.phonestringparty.emailstringmaxInstallmentsintegerexpiresAtstringexternalRefstringResponse
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).