Skip to content

Deletes a line item

Request

DELETE {{baseURL}}/pay-int-api/line-items/{{lineItemId}}

This endpoint deletes a specified line item from the merchant's catalog.

Once deleted, the item is permanently removed and can no longer be referenced when creating or updating invoices.

If the line item is already linked to existing invoices, those records are not affected by the deletion. Only its availability for future use in the catalog is removed.

The following is an example request.

DELETE {{baseURL}}/pay-int-api/line-items/{{lineItemId}} HTTP/1.1
Authorization: Bearer {{merchantApiToken}}
x-api-version: 1.0

See Also:
To list line items, see GET /pay-int-api/line-items.
To create a line item, see POST /pay-int-api/line-items.
To retrieve line item unit types, see GET /pay-int-api/line-items/unit-types.
To update a line item, see PUT /pay-int-api/line-items/{lineItemId}.

Security
Bearer
Path
lineItemIdstring, (uuid)required

Specifies the line item identifier to delete.

Example:2b3bf7ae-1d2e-4f3a-4b5c-6d7e8f9a0b36
Headers
x-api-versionstring

Specifies the API version to use for the request.

Example: 1.0

Example:1.0
curl -i -X DELETE \
  https://developer.flute.com/_mock/api-reference/pay-int-api/line-items/2b3bf7ae-1d2e-4f3a-4b5c-6d7e8f9a0b36 \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'x-api-version: 1.0'

Responses

OK. The line item was deleted successfully.

Response
No content