Confirm an unverified payment
POST
/businesses/{bid}/payment-requests/{id}/confirmRequires the documents scope.
The owner found the payment in his terminal: an unverified link becomes paid and issues its receipt. Also retries the receipt of a paid link whose receipt did not issue (receiptError).
Path parameters
bidstringrequiredBusiness id, from
POST /businesses.idstringrequiredPayment request id.
Response
200: { "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.
statusstringreceiptobjectShowHide 3 child attributes
receipt.idstringreceipt.docTypeintegerreceipt.docNumberstringErrors: 401, 403, 404, 409, 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).