younifyd
Menu

Patch Invoice Id

Update a specific invoice

PATCH/invoice/{id}

Use it in a workflow

  1. Add a step and choose the NetSuite connector.
  2. Pick the Patch Invoice Id action (under NetSuite REST API).
  3. Fill in the fields below, then reference the result from later steps as {{patchInvoiceId.response.data}}.

Request

Path parameters

idstringrequired

The internal ID of the invoice

Request body

Enter the body as JSON in the step's Body field.

idstring

The internal ID of the invoice

tranDatestring (date)

The transaction date of the invoice

entityobject
idstring

The internal ID of the customer

refNamestring

The display name of the customer

itemsarray<object>

The list of items in the invoice

itemstring

The internal ID of the item

quantitynumber (double)

The quantity of the item

ratenumber (double)

The rate of the item

amountnumber (double)

The total amount for this item

totalnumber (double)

The total amount of the invoice

json
{
  "id": "string",
  "tranDate": "2025-01-01",
  "entity": {
    "id": "string",
    "refName": "string"
  },
  "items": [
    {
      "item": "string",
      "quantity": 0,
      "rate": 0,
      "amount": 0
    }
  ],
  "total": 0
}

Response

Returns 200 with an object. Read it in later steps with {{patchInvoiceId.response.data.<field>}}.

idstring

The internal ID of the invoice

tranDatestring (date)

The transaction date of the invoice

entityobject
idstring

The internal ID of the customer

refNamestring

The display name of the customer

itemsarray<object>

The list of items in the invoice

itemstring

The internal ID of the item

quantitynumber (double)

The quantity of the item

ratenumber (double)

The rate of the item

amountnumber (double)

The total amount for this item

totalnumber (double)

The total amount of the invoice

json
{
  "id": "string",
  "tranDate": "2025-01-01",
  "entity": {
    "id": "string",
    "refName": "string"
  },
  "items": [
    {
      "item": "string",
      "quantity": 0,
      "rate": 0,
      "amount": 0
    }
  ],
  "total": 0
}

Need more? See the NetSuite guide for connection setup and behaviour shared by every action.