POST Orders/AddPayment

Voeg een betaling toe aan een order of factuur

Request Information

URI Parameters

None.

Body Parameters

Payment
NameDescriptionTypeAdditional information
OrderId

Ordernummer

integer

None.

InvoiceId

Factuurnummer

integer

None.

AmountIncl

Bedrag

decimal number

None.

Description

Beschrijving

string

Required

BookingId

Dagboeknummer

integer

Required

MatchingLedgerId

Grootboeknummer matching

integer

Required

DateTime

Datum en tijd van betaling

date

None.

LedgerCode

Grootboek code

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "OrderId": 1,
  "InvoiceId": 1,
  "AmountIncl": 1.0,
  "Description": "sample string 2",
  "BookingId": 3,
  "MatchingLedgerId": 4,
  "DateTime": "2020-09-26T01:18:32.9977369+02:00",
  "LedgerCode": 1
}

application/xml, text/xml

Sample:
<Payment xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Webware.Logic4.Classes.Models">
  <AmountIncl>1</AmountIncl>
  <BookingId>3</BookingId>
  <DateTime>2020-09-26T01:18:32.9977369+02:00</DateTime>
  <Description>sample string 2</Description>
  <InvoiceId>1</InvoiceId>
  <LedgerCode>1</LedgerCode>
  <MatchingLedgerId>4</MatchingLedgerId>
  <OrderId>1</OrderId>
</Payment>

Response Information

Resource Description

Logic4ResponseOfBoolean
NameDescriptionTypeAdditional information
Value

boolean

None.

ValidationMessages

Eventuele foutmeldingen

Collection of string

None.

Response Formats

application/json, text/json

Sample:
{
  "Value": true,
  "ValidationMessages": [
    "sample string 1",
    "sample string 2"
  ]
}

application/xml, text/xml

Sample:
<Logic4ResponseOfboolean xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Webware.Logic4.Classes.ResponseModels">
  <ValidationMessages xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </ValidationMessages>
  <Value>true</Value>
</Logic4ResponseOfboolean>