Delete line items
DELETE
/line-items
const url = 'https://portal.staging.arago-tech.com/line-items';const options = { method: 'DELETE', headers: {Authorization: '<Authorization>', 'Content-Type': 'application/json'}, body: '{"line_items":[{"id":"63e2d42a27ad5f2b345ca123"}]}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request DELETE \ --url https://portal.staging.arago-tech.com/line-items \ --header 'Authorization: <Authorization>' \ --header 'Content-Type: application/json' \ --data '{ "line_items": [ { "id": "63e2d42a27ad5f2b345ca123" } ] }'Deletes multiple line items
Authorizations
Section titled “Authorizations”Request Body
Section titled “Request Body”Request to delete line items by line item unique identifiers
Media typeapplication/json
DeleteLineItemsRequest
Request to delete line items by line item unique identifiers
object
line_items
required
Line Items
List of line items to delete
Array<object>
LineItemThe line item identifiers of the line item to delete
object
id
required
Line item ID
The unique identifier of the line item
string
Example
63e2d42a27ad5f2b345ca123Responses
Section titled “ Responses ”A successful response.
Media typeapplication/json
object
Examplegenerated
{}Bad request
Media typeapplication/json
object
Example
{ "error": { "code": "BAD_REQUEST", "details": [ { "code": "MAX_ITEMS", "field": "line_items", "message": "value must contain no more than 3000 item(s)", "params": { "max": "3000" } } ], "message": "Bad request" }}Unauthorized
Media typeapplication/json
object
Example
{ "error": { "code": "UNAUTHORIZED", "message": "Unauthorized" }}Internal server error
Media typeapplication/json
object
Example
{ "error": { "code": "INTERNAL_ERROR", "message": "Internal server error" }}default
Section titled “default”An unexpected error response.
Media typeapplication/json
object
code
integer format: int32
message
string
details
Array<object>
object
@type
string
key
additional properties
any
Examplegenerated
{ "code": 1, "message": "example", "details": [ { "@type": "example" } ]}