POST
/
v1
/
installations
/
{integrationConfigurationId}
/
billing
/
invoices
/
{invoiceId}
/
actions
import { Vercel } from "@vercel/sdk";

const vercel = new Vercel({
  bearerToken: "<YOUR_BEARER_TOKEN_HERE>",
});

async function run() {
  await vercel.marketplace.updateInvoice({
    integrationConfigurationId: "<id>",
    invoiceId: "<id>",
    requestBody: {
      action: "refund",
      reason: "<value>",
      total: "<value>",
    },
  });


}

run();
This response has no body data.

Authorizations

Authorization
string
header
required

Default authentication mechanism

Path Parameters

integrationConfigurationId
string
required
invoiceId
string
required

Body

application/json
action
enum<string>
required
Available options:
refund
reason
string
required

Refund reason.

total
string
required

The total amount to be refunded. Must be less than or equal to the total amount of the invoice.