Delete a product
This endpoint needs your API key
Send it as a bearer token in the Authorization header. A request without one is answered with 401. See Authentication for where to find your key and how to keep it secret.
Request
curl -X DELETE "https://api.leapa.co/v2/products/prd_84c2e7f019" \
-H "Authorization: Bearer $LEAPA_API_KEY" \
-H "Accept: application/json"Response
OK
{
"id": "obj_5f21c8a40b",
"object": "string",
"deleted": false
}Path parameters
Values that go into the URL itself.
product_idstringrequiredExample:prd_84c2e7f019
Response
application/json
idstringProduct ID
objectstringThe object name
deletedbooleanFlag indicating that the product has been deleted.
Status codes
200OK400Bad request401Unauthorized402Payment required403Forbidden404Not found428Precondition required500Server error