Skip to content

Credit note from proof of payment

Request

Creating credit note from existing proof of payment.

It will create a credit note from the given proof of payment. It will automatically take all proof of payment items and add them to the credit note.

Security
shoptetAccessToken or shoptetPrivateApiToken
Path
codestringrequired

Proof of payment code

Example:P-2014000004-01
Headers
Content-Typestringrequired
Default:"application/json"
Bodyapplication/json
dataobjectrequired
curl -i -X POST \
  https://api.docs.shoptet.com/_mock/shoptet-api/openapi/api/proof-payments/P-2014000004-01/credit-note \
  -H 'Content-Type: application/json' \
  -H 'Shoptet-Access-Token: YOUR_API_KEY_HERE' \
  -d '{
    "data": {
      "creditNoteCode": "0000000099",
      "varSymbol": 2021000021,
      "dueDate": "2017-04-04",
      "taxDate": "2017-04-04",
      "constSymbol": "0308",
      "specSymbol": 201323134,
      "billingMethodId": 1,
      "orderCode": "201323134",
      "reasonRemark": "Order cancellation"
    }
  }'

Responses

Created

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