Skip to content

Set Invoice Payment Method

This method sets a specific payment method for an existing invoice.

RPC: payment.v1.PubPaymentService/SetInvoicePaymentMethod


WARNING

Field invoice_id is mandatory

Request Example

shell
curl 'https://api.ibuy.exchange/payment.v1.PubPaymentService/SetInvoicePaymentMethod' \          --header 'Authorization: Bearer <token>' \          --header 'Content-Type: application/json' \          --data '{
    "payment_method_id": "pm_456",
    "invoice_id": "inv_123"
  }'
typescript
const paymentService = createClient(ibuy.paymentv1.PubPaymentService, transport);

const response = await paymentService.setInvoicePaymentMethod({
  paymentMethodId: "pm_456",
  invoiceId: "inv_123",
});

console.log("Invoice payment method set:", response);

Response Example

json
{}