POST api/Transaction/PostAPInvoice
Request Information
URI Parameters
None.
Body Parameters
TransactionInfoViewModel| Name | Description | Type | Additional information |
|---|---|---|---|
| InvoiceNumber | string |
None. |
|
| Description | string |
None. |
|
| OrganizationCode | string |
None. |
|
| OSCurrencyCode | string |
None. |
|
| OSExGSTVATAmount | string |
None. |
|
| OSGSTVATAmount | string |
None. |
|
| OSTotal | string |
None. |
|
| TransactionDate | string |
None. |
|
| PostingJournals | Collection of PostingJournalViewModel |
None. |
Request Formats
application/json, text/json
Sample:
{
"InvoiceNumber": "sample string 1",
"Description": "sample string 2",
"OrganizationCode": "sample string 3",
"OSCurrencyCode": "sample string 4",
"OSExGSTVATAmount": "sample string 5",
"OSGSTVATAmount": "sample string 6",
"OSTotal": "sample string 7",
"TransactionDate": "sample string 8",
"PostingJournals": [
{
"JobNo": "sample string 1",
"OrganizationCode": "sample string 2",
"BranchCode": "sample string 3",
"BranchName": "sample string 4",
"DepartmentCode": "sample string 5",
"DepartmentName": "sample string 6",
"ChargeCode": "sample string 7",
"OSAmount": "sample string 8",
"OSCurrencyCode": "sample string 9",
"OSTotalAmount": "sample string 10",
"TransactionCategory": "sample string 11",
"TransactionType": "sample string 12",
"OSGSTVATAmount": "sample string 13"
},
{
"JobNo": "sample string 1",
"OrganizationCode": "sample string 2",
"BranchCode": "sample string 3",
"BranchName": "sample string 4",
"DepartmentCode": "sample string 5",
"DepartmentName": "sample string 6",
"ChargeCode": "sample string 7",
"OSAmount": "sample string 8",
"OSCurrencyCode": "sample string 9",
"OSTotalAmount": "sample string 10",
"TransactionCategory": "sample string 11",
"TransactionType": "sample string 12",
"OSGSTVATAmount": "sample string 13"
}
]
}
application/xml, text/xml
Sample:
<TransactionInfoViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CW1_API.Models.ViewModel">
<Description>sample string 2</Description>
<InvoiceNumber>sample string 1</InvoiceNumber>
<OSCurrencyCode>sample string 4</OSCurrencyCode>
<OSExGSTVATAmount>sample string 5</OSExGSTVATAmount>
<OSGSTVATAmount>sample string 6</OSGSTVATAmount>
<OSTotal>sample string 7</OSTotal>
<OrganizationCode>sample string 3</OrganizationCode>
<PostingJournals>
<PostingJournalViewModel>
<BranchCode>sample string 3</BranchCode>
<BranchName>sample string 4</BranchName>
<ChargeCode>sample string 7</ChargeCode>
<DepartmentCode>sample string 5</DepartmentCode>
<DepartmentName>sample string 6</DepartmentName>
<JobNo>sample string 1</JobNo>
<OSAmount>sample string 8</OSAmount>
<OSCurrencyCode>sample string 9</OSCurrencyCode>
<OSGSTVATAmount>sample string 13</OSGSTVATAmount>
<OSTotalAmount>sample string 10</OSTotalAmount>
<OrganizationCode>sample string 2</OrganizationCode>
<TransactionCategory>sample string 11</TransactionCategory>
<TransactionType>sample string 12</TransactionType>
</PostingJournalViewModel>
<PostingJournalViewModel>
<BranchCode>sample string 3</BranchCode>
<BranchName>sample string 4</BranchName>
<ChargeCode>sample string 7</ChargeCode>
<DepartmentCode>sample string 5</DepartmentCode>
<DepartmentName>sample string 6</DepartmentName>
<JobNo>sample string 1</JobNo>
<OSAmount>sample string 8</OSAmount>
<OSCurrencyCode>sample string 9</OSCurrencyCode>
<OSGSTVATAmount>sample string 13</OSGSTVATAmount>
<OSTotalAmount>sample string 10</OSTotalAmount>
<OrganizationCode>sample string 2</OrganizationCode>
<TransactionCategory>sample string 11</TransactionCategory>
<TransactionType>sample string 12</TransactionType>
</PostingJournalViewModel>
</PostingJournals>
<TransactionDate>sample string 8</TransactionDate>
</TransactionInfoViewModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
HttpResponseMessage| Name | Description | Type | Additional information |
|---|---|---|---|
| Version | Version |
None. |
|
| Content | HttpContent |
None. |
|
| StatusCode | HttpStatusCode |
None. |
|
| ReasonPhrase | string |
None. |
|
| Headers | Collection of Object |
None. |
|
| RequestMessage | HttpRequestMessage |
None. |
|
| IsSuccessStatusCode | boolean |
None. |