POST api/ERPDataUpdate/AddLedger
Request Information
URI Parameters
None.
Body Parameters
LedgerName | Description | Type | Additional information |
---|---|---|---|
BusinessCode | string |
None. |
|
BusinessType | string |
None. |
|
CustomerCode | string |
None. |
|
TransactionDetails | string |
None. |
|
TransactionDate | date |
None. |
|
TransactionCode | string |
None. |
|
TransactionNumber | integer |
None. |
|
Narration | string |
None. |
|
DebitCredit | string |
None. |
|
Amount | decimal number |
None. |
|
Reference | string |
None. |
|
IsInvalid | boolean |
None. |
Request Formats
application/json, text/json
Sample:
{ "BusinessCode": "sample string 1", "BusinessType": "sample string 2", "CustomerCode": "sample string 3", "TransactionDetails": "sample string 4", "TransactionDate": "2025-04-04T03:43:00.4748213+00:00", "TransactionCode": "sample string 5", "TransactionNumber": 6, "Narration": "sample string 7", "DebitCredit": "sample string 8", "Amount": 9.0, "Reference": "sample string 10", "IsInvalid": false }
application/xml, text/xml
Sample:
<Ledger xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BOPWAAPI.Model.Orion"> <Amount>9</Amount> <BusinessCode>sample string 1</BusinessCode> <BusinessType>sample string 2</BusinessType> <CustomerCode>sample string 3</CustomerCode> <DebitCredit>sample string 8</DebitCredit> <Narration>sample string 7</Narration> <Reference>sample string 10</Reference> <TransactionCode>sample string 5</TransactionCode> <TransactionDate>2025-04-04T03:43:00.4748213+00:00</TransactionDate> <TransactionDetails>sample string 4</TransactionDetails> <TransactionNumber>6</TransactionNumber> </Ledger>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
VCAPIResponseName | Description | Type | Additional information |
---|---|---|---|
Version | string |
None. |
|
dateTime | string |
None. |
|
StatusCode | integer |
None. |
|
ErrorMessage | string |
None. |
|
Result | Object |
None. |
Response Formats
application/json, text/json
Sample:
{ "Version": "1.0.0", "dateTime": "2025/04/04 03:43:00", "StatusCode": 1, "ErrorMessage": "sample string 2", "Result": {} }
application/xml, text/xml
Sample:
<VCAPIResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BOPWAAPI.Model"> <ErrorMessage>sample string 2</ErrorMessage> <Result /> <StatusCode>1</StatusCode> </VCAPIResponse>