GET api/{database}/Payable/{invoiceId}/{bankId}/{state}
Gets the specified Payable.
Request Information
Parameters
| Name | Description | Additional information |
|---|---|---|
| invoiceId | The invoiceId. |
Define this parameter in the request URI. |
| bankId | The bankId. |
Define this parameter in the request URI. |
| state | The state. Accepted values are: Value Description 0 None 1 Proposed 2 Underway 4 Settled 8 Reversed 16 NotProcessed |
Define this parameter in the request URI. |
Response Information
Response body formats
application/json, text/json
Sample:
{
"messages": [],
"amount": 1.0,
"bankAccountNumber": "sample string 2",
"bankId": "sample string 3",
"batchId": 4,
"batchSubNumber": 5,
"bic": "sample string 6",
"canChange": true,
"cannotChangeReason": "sample string 8",
"invoiceId": "sample string 9",
"paymentDate": "sample string 10",
"reference": "sample string 11",
"shouldWriteOff": true,
"state": 0,
"supplierId": "sample string 13"
}
application/xml, text/xml
Sample:
<Payable xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/UNIT4.Multivers.API.BL.Purchase.Edit"> <Amount>1</Amount> <BankAccountNumber>sample string 2</BankAccountNumber> <BankId>sample string 3</BankId> <BatchId>4</BatchId> <BatchSubNumber>5</BatchSubNumber> <Bic>sample string 6</Bic> <CanChange>true</CanChange> <CannotChangeReason>sample string 8</CannotChangeReason> <InvoiceId>sample string 9</InvoiceId> <Messages xmlns:d2p1="http://schemas.datacontract.org/2004/07/UNIT4.Multivers.API.Web.WebApi.Core.Models" /> <PaymentDate>sample string 10</PaymentDate> <Reference>sample string 11</Reference> <ShouldWriteOff>true</ShouldWriteOff> <State>None</State> <SupplierId>sample string 13</SupplierId> </Payable>