Skip to main content
PATCH
/
v1
/
invoices
/
{id}
/
lines
/
{lineId}
Update a line item
curl --request PATCH \
  --url https://revstack.dev/v1/invoices/{id}/lines/{lineId} \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "periodStart": "2023-11-07T05:31:56Z",
  "periodEnd": "2023-11-07T05:31:56Z",
  "amount": 123,
  "quantity": 2
}
'
null

Path Parameters

id
string
required
Example:

"inv_abc123"

lineId
string
required
Example:

"li_abc123"

Body

application/json
name
string
periodStart
string<date-time>
periodEnd
string<date-time>
amount
integer
quantity
integer
Required range: x >= 1

Response

200 - application/json

Line item updated

The response is of type unknown.