Set Invoice Paid By User
This method marks the invoice as paid by the user.
RPC: payment.v1.PubPaymentService/SetInvoicePaidByUser
TIP
Field invoice_id must reference a valid unpaid invoice.
Request Example
shell
curl 'https://api.ibuy.exchange/payment.v1.PubPaymentService/SetInvoicePaidByUser' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"invoice_id": "inv_789"
}'typescript
const paymentService = createClient(ibuy.paymentv1.PubPaymentService, transport);
const response = await paymentService.setInvoicePaidByUser({
invoiceId: "inv_789",
});
console.log("Invoice marked as paid:", response);Response Example
json
{}