Skip to content

Proof payment update

Request

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
Path
codestringrequired
Example:P--2015000170-1
Headers
Content-Typestringrequired
Default:"application/json"
Bodyapplication/json
dataobject, non-emptyrequired
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"
    }
  }'

Responses

OK

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