GET api/Catering/SendInvoice?cateringOrderId={cateringOrderId}&companyId={companyId}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| cateringOrderId | integer |
Required |
|
| companyId | integer |
Required |
Body Parameters
None.
Response Information
Resource Description
ReceiptView| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | string |
None. |
|
| Code | string |
None. |
|
| RefId | string |
None. |
|
| Tags | Collection of string |
None. |
|
| DiscountTotal | string |
None. |
|
| Reference | string |
None. |
|
| PreTaxAmount | decimal number |
None. |
|
| VatAmount | decimal number |
None. |
|
| NetAmount | decimal number |
None. |
|
| PaymentAmount | decimal number |
None. |
|
| OnlineViewLink | string |
None. |
|
| ResCode | string |
None. |
|
| ResDesc | string |
None. |
|
| IssuedDate | string |
None. |
|
| ContactId | string |
None. |
|
| Status | string |
None. |
|
| TaxStatus | integer |
None. |
|
| IsTaxInvoice | integer |
None. |
|
| PaidPayments | Collection of PaidPayment |
None. |
|
| Products | Collection of ProductView |
None. |
Response Formats
application/json, text/json
Sample:
{
"id": "sample string 1",
"code": "sample string 2",
"refId": "sample string 3",
"tags": [
"sample string 1",
"sample string 2"
],
"discountTotal": "sample string 4",
"reference": "sample string 5",
"preTaxAmount": 6.1,
"vatAmount": 7.1,
"netAmount": 8.1,
"paymentAmount": 9.1,
"onlineViewLink": "sample string 10",
"resCode": "sample string 11",
"resDesc": "sample string 12",
"issuedDate": "sample string 13",
"contactId": "sample string 14",
"status": "sample string 15",
"taxStatus": 16,
"isTaxInvoice": 17,
"paidPayments": [
{
"paymentDate": "sample string 1",
"paymentGroupId": 2,
"payments": [
{
"paymentMethodId": "sample string 1",
"amount": 2.1
},
{
"paymentMethodId": "sample string 1",
"amount": 2.1
}
]
},
{
"paymentDate": "sample string 1",
"paymentGroupId": 2,
"payments": [
{
"paymentMethodId": "sample string 1",
"amount": 2.1
},
{
"paymentMethodId": "sample string 1",
"amount": 2.1
}
]
}
],
"products": [
{
"id": "sample string 1",
"accountCode": "sample string 2",
"description": "sample string 3",
"quantity": 4,
"price": 5.1,
"discount": "sample string 6",
"isDescription": 7,
"vatType": 8
},
{
"id": "sample string 1",
"accountCode": "sample string 2",
"description": "sample string 3",
"quantity": 4,
"price": 5.1,
"discount": "sample string 6",
"isDescription": 7,
"vatType": 8
}
]
}
text/html
Sample:
{"id":"sample string 1","code":"sample string 2","refId":"sample string 3","tags":["sample string 1","sample string 2"],"discountTotal":"sample string 4","reference":"sample string 5","preTaxAmount":6.1,"vatAmount":7.1,"netAmount":8.1,"paymentAmount":9.1,"onlineViewLink":"sample string 10","resCode":"sample string 11","resDesc":"sample string 12","issuedDate":"sample string 13","contactId":"sample string 14","status":"sample string 15","taxStatus":16,"isTaxInvoice":17,"paidPayments":[{"paymentDate":"sample string 1","paymentGroupId":2,"payments":[{"paymentMethodId":"sample string 1","amount":2.1},{"paymentMethodId":"sample string 1","amount":2.1}]},{"paymentDate":"sample string 1","paymentGroupId":2,"payments":[{"paymentMethodId":"sample string 1","amount":2.1},{"paymentMethodId":"sample string 1","amount":2.1}]}],"products":[{"id":"sample string 1","accountCode":"sample string 2","description":"sample string 3","quantity":4,"price":5.1,"discount":"sample string 6","isDescription":7,"vatType":8},{"id":"sample string 1","accountCode":"sample string 2","description":"sample string 3","quantity":4,"price":5.1,"discount":"sample string 6","isDescription":7,"vatType":8}]}
application/xml, text/xml
Sample:
<ReceiptView xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EB.Service.Models.PeakApi">
<ContactId>sample string 14</ContactId>
<IsTaxInvoice>17</IsTaxInvoice>
<IssuedDate>sample string 13</IssuedDate>
<PaidPayments>
<PaidPayment>
<PaymentDate>sample string 1</PaymentDate>
<PaymentGroupId>2</PaymentGroupId>
<Payments>
<PeakPayment>
<Amount>2.1</Amount>
<PaymentMethodId>sample string 1</PaymentMethodId>
</PeakPayment>
<PeakPayment>
<Amount>2.1</Amount>
<PaymentMethodId>sample string 1</PaymentMethodId>
</PeakPayment>
</Payments>
</PaidPayment>
<PaidPayment>
<PaymentDate>sample string 1</PaymentDate>
<PaymentGroupId>2</PaymentGroupId>
<Payments>
<PeakPayment>
<Amount>2.1</Amount>
<PaymentMethodId>sample string 1</PaymentMethodId>
</PeakPayment>
<PeakPayment>
<Amount>2.1</Amount>
<PaymentMethodId>sample string 1</PaymentMethodId>
</PeakPayment>
</Payments>
</PaidPayment>
</PaidPayments>
<Products>
<ProductView>
<AccountCode>sample string 2</AccountCode>
<Description>sample string 3</Description>
<Discount>sample string 6</Discount>
<Id>sample string 1</Id>
<IsDescription>7</IsDescription>
<Price>5.1</Price>
<Quantity>4</Quantity>
<VatType>8</VatType>
</ProductView>
<ProductView>
<AccountCode>sample string 2</AccountCode>
<Description>sample string 3</Description>
<Discount>sample string 6</Discount>
<Id>sample string 1</Id>
<IsDescription>7</IsDescription>
<Price>5.1</Price>
<Quantity>4</Quantity>
<VatType>8</VatType>
</ProductView>
</Products>
<Status>sample string 15</Status>
<TaxStatus>16</TaxStatus>
<Code>sample string 2</Code>
<DiscountTotal>sample string 4</DiscountTotal>
<Id>sample string 1</Id>
<NetAmount>8.1</NetAmount>
<OnlineViewLink>sample string 10</OnlineViewLink>
<PaymentAmount>9.1</PaymentAmount>
<PreTaxAmount>6.1</PreTaxAmount>
<RefId>sample string 3</RefId>
<Reference>sample string 5</Reference>
<ResCode>sample string 11</ResCode>
<ResDesc>sample string 12</ResDesc>
<Tags xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:string>sample string 1</d2p1:string>
<d2p1:string>sample string 2</d2p1:string>
</Tags>
<VatAmount>7.1</VatAmount>
</ReceiptView>