Linking proof payments to invoice. Proof payments must be related to the order, must be in same currency as the order, must be valid and cannot be linked to another invoice.
This endpoint has several sections, which are only sent when requested in the include parameter (see Section on demand).
| Value | Section |
|---|---|
surchargeParameters | Item surcharge parameters |
Security
shoptetAccessToken or shoptetPrivateApiToken
- Mock serverhttps://api.docs.shoptet.com/_mock/shoptet-api/openapi/api/invoices/{code}/link-proof-payment
- https://api.myshoptet.comhttps://api.myshoptet.com/api/invoices/{code}/link-proof-payment
- shoptetAccessToken
- shoptetPrivateApiToken
curl -i -X PATCH \
'https://api.docs.shoptet.com/_mock/shoptet-api/openapi/api/invoices/2018000053/link-proof-payment?include=surchargeParameters' \
-H 'Content-Type: application/json' \
-H 'Shoptet-Access-Token: YOUR_API_KEY_HERE' \
-d '{
"data": {
"proofPaymentCodes": [
"O-2018000053-01"
]
}
}'Response
{ "data": { "invoice": { … } }, "errors": [ { … } ], "metadata": { "requestId": "019c8c34-64f3-7328-af43-bf1e34fa39d7" } }