Request Information

Method returns default payment for given document. Returned model is suitable for new payment creation.

Example URL:
v2.0/ReceivedDocumentPayments/Default/{documentId}
NameDescriptionTypeAdditional information
documentId

Document Id

integer

Required

documentId

Document Id

integer

Required

None.

Response Information

ReceivedDocumentPaymentApiModelInsert
NameDescriptionTypeAdditional information
DateOfPayment

Date of payment

date

None.

DateOfVatApplication

Date of vat application

date

Used in Sk legislation.

InvoiceId

Document Id

integer

Required

PaymentAmount

Payment ammount

decimal number

None.

PaymentOptionId

Payment option id

integer

None.

Sample:
{
  "DateOfPayment": "2021-05-11T11:14:39.2655806+00:00",
  "DateOfVatApplication": "2021-05-11T11:14:39.2655806+00:00",
  "Exported": "sample string 3",
  "InvoiceId": 4,
  "PaymentAmount": 5.0,
  "PaymentOptionId": 6
}
Sample:
<ReceivedDocumentPaymentApiModelInsert xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Doklad.Api.ApiModels">
  <DateOfPayment>2021-05-11T11:14:39.2655806+00:00</DateOfPayment>
  <DateOfVatApplication>2021-05-11T11:14:39.2655806+00:00</DateOfVatApplication>
  <Exported>sample string 3</Exported>
  <InvoiceId>4</InvoiceId>
  <PaymentAmount>5</PaymentAmount>
  <PaymentOptionId>6</PaymentOptionId>
</ReceivedDocumentPaymentApiModelInsert>