Informace o requestu

Vygeneruje defaultní úhradu k zadanému dokladu. Vhodné pro vytvoření nové úhrady.

Příklad URL:
v2.0/ReceivedDocumentPayments/Default/{documentId}
JménoPopisTypDoplňující informace
documentId

Id dokladu k úhradě

integer

Required

documentId

Id dokladu k úhradě

integer

Required

Žádné.

Informace o response

ReceivedDocumentPaymentApiModelInsert
JménoPopisTypDoplňující informace
DateOfPayment

Datum úhrady

date

Žádné.

DateOfVatApplication

Datum uplatnění dph

date

Používá se v Sk legislativě.

InvoiceId

Id dokladu

integer

Required

PaymentAmount

Uhrazeno množství

decimal number

Žádné.

PaymentOptionId

Id spůsobu úhrady

integer

Žádné.

Ukážka:
{
  "DateOfPayment": "2024-04-26T03:18:45.7419176+00:00",
  "DateOfVatApplication": "2024-04-26T03:18:45.7419176+00:00",
  "Exported": "sample string 3",
  "InvoiceId": 4,
  "PaymentAmount": 5.0,
  "PaymentOptionId": 6
}
Ukážka:
<ReceivedDocumentPaymentApiModelInsert xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Doklad.Api.ApiModels">
  <DateOfPayment>2024-04-26T03:18:45.7419176+00:00</DateOfPayment>
  <DateOfVatApplication>2024-04-26T03:18:45.7419176+00:00</DateOfVatApplication>
  <Exported>sample string 3</Exported>
  <InvoiceId>4</InvoiceId>
  <PaymentAmount>5</PaymentAmount>
  <PaymentOptionId>6</PaymentOptionId>
</ReceivedDocumentPaymentApiModelInsert>