Delete an inventory line

Removes an inventory line entirely, whatever its quantity. If the line is published to the Marketplace, its listing is cancelled with it.

The line's customId, if it had one, becomes available for reuse on another line.

Requires the inventory:write scope.

Path Parameters
  • inventoryId
    Type: string
    min length:  
    1
    required

    The inventory line's identifier. Returned by GET /v1/inventory. Path parameter.

Body
application/json
Empty object
Responses
  • application/json
  • application/json
  • application/json
  • application/json
  • application/json
  • application/json
  • application/json
Request Example for delete/inventory/{inventoryId}
curl 'https://public-api.cardnexus.com/v1/inventory/{inventoryId}' \
  --request DELETE \
  --header 'Content-Type: application/json' \
  --header 'Authorization: Bearer YOUR_SECRET_TOKEN' \
  --data '{}'
{
  "deleted": true
}