Skip to content

Deletion of credit note item

Request

Deletes credit note item. It's not possible to delete credit note item of another type then product or product-set.

Security
shoptetAccessToken or shoptetPrivateApiToken
Path
codestringrequired

credit note code (number)

Example:2018000012
idintegerrequired

credit note item id. Can be found in field data.creditNote.items.itemId in Credit note detail.

Example:198
Headers
Content-Typestringrequired
Default:"application/json"
curl -i -X DELETE \
  https://api.docs.shoptet.com/_mock/shoptet-api/openapi/api/credit-notes/2018000012/item/198 \
  -H 'Content-Type: application/json' \
  -H 'Shoptet-Access-Token: YOUR_API_KEY_HERE'

Responses

OK

Bodyapplication/json
dataobject or nullrequired
errorsArray of objects or null(Errors)required
metadataobject(Metadata)required
Response
{ "data": {}, "errors": [ {} ], "metadata": { "requestId": "019c8c34-64f3-7328-af43-bf1e34fa39d7" } }