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
- Mock serverhttps://api.docs.shoptet.com/_mock/shoptet-api/openapi/api/proof-payments/{code}/credit-note
- https://api.myshoptet.comhttps://api.myshoptet.com/api/proof-payments/{code}/credit-note
- shoptetAccessToken
- shoptetPrivateApiToken
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"
}
}'Response
{ "data": { "creditNote": { … } }, "errors": [ { … } ], "metadata": { "requestId": "019c8c34-64f3-7328-af43-bf1e34fa39d7" } }