If the proof payment is closed, response code 409 is returned and the document cannot be updated. Proof payment is closed if:
proof payment is/was linked to the invoice or
there is a manual lock of proof payment.
Security
shoptetAccessToken or shoptetPrivateApiToken
- Mock serverhttps://api.docs.shoptet.com/_mock/shoptet-api/openapi/api/proof-payments/{code}
- https://api.myshoptet.comhttps://api.myshoptet.com/api/proof-payments/{code}
- shoptetAccessToken
- shoptetPrivateApiToken
curl -i -X PATCH \
https://api.docs.shoptet.com/_mock/shoptet-api/openapi/api/proof-payments/P--2015000170-1 \
-H 'Content-Type: application/json' \
-H 'Shoptet-Access-Token: YOUR_API_KEY_HERE' \
-d '{
"data": {
"taxDate": "2017-04-04",
"issueDate": "2018-05-29T09:02:27",
"varSymbol": 2021000021,
"constSymbol": "0308",
"specSymbol": 201323134,
"invoiceBillingMethodId": 4,
"billBankAccount": "12345678/1234",
"billIban": "CZ650800000000123456789",
"billBic": "GIBACZPX",
"bankAccount": "12345678/1234",
"iban": "CZ650800000000123456789",
"bic": "GIBACZPX",
"isValid": true,
"documentRemark": "Payment for order 2015000001"
}
}'Response
{ "data": { "proofPayments": { … } }, "errors": [ { … } ], "metadata": { "requestId": "019c8c34-64f3-7328-af43-bf1e34fa39d7" } }