logoSellhub
Invoices
background
Sellhub Docs
Sellhub Docs
Replace Invoice Items
PATCH
/invoices/{id}/items

Authorization

Authorization<token>

In: header

Request Body

application/jsonRequired
bodyRequiredarray<object>

Path Parameters

idRequiredstring

Invoice ID

curl -X PATCH "https://dash.sellhub.cx/api/sellhub/invoices/<string>/items" \
  -H "Authorization: <token>" \
  -H "Content-Type: application/json" \
  -d '[
    {
      "variantId": "6ae91a31-5a6d-4ef2-baa2-4baeefda01d9",
      "quantity": 2
    }
  ]'

Items replaced successfully

{
  "success": true,
  "message": "Invoice items replaced successfully."
}