POST api/V3/RetailerCollection/UploadRetailerCollection
API can be used to upload Retailer Collection details.
Request Information
URI Parameters
None.
Body Parameters
Collection of RetailerPaymentCollection| Name | Description | Type | Additional information |
|---|---|---|---|
| TransactionERPId |
Transanction id of the external system for the collection |
string |
None. |
| OrderId |
Order against which payment is recieved |
integer |
None. |
| InvoiceNumber |
Invoice number against which payment was made |
string |
None. |
| CollectionAmount |
Amount which was collected |
decimal number |
None. |
| CollectedBy |
User who has collected payment |
string |
None. |
| CollectionDate |
Date on which collection was made (Format: "YYYY-MM-DD") |
date |
None. |
| ModeofPayment |
Whether payment was made using Cash, Cheque, Credit Note |
string |
None. |
| Image |
Link of image captured during collection |
string |
None. |
| PaymentDetails |
Additional details of payment (if any) |
string |
None. |
Request Formats
application/json, text/json
Sample:
[
{
"TransactionERPId": "sample string 1",
"OrderId": 2,
"InvoiceNumber": "sample string 3",
"CollectionAmount": 4.1,
"CollectedBy": "sample string 5",
"CollectionDate": "2025-10-19T23:44:28.020438+00:00",
"ModeofPayment": "sample string 7",
"Image": "sample string 8",
"PaymentDetails": "sample string 9"
},
{
"TransactionERPId": "sample string 1",
"OrderId": 2,
"InvoiceNumber": "sample string 3",
"CollectionAmount": 4.1,
"CollectedBy": "sample string 5",
"CollectionDate": "2025-10-19T23:44:28.020438+00:00",
"ModeofPayment": "sample string 7",
"Image": "sample string 8",
"PaymentDetails": "sample string 9"
}
]
application/xml, text/xml
Sample:
<ArrayOfRetailerPaymentCollection xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ExternalApis.Models.V3">
<RetailerPaymentCollection>
<CollectedBy>sample string 5</CollectedBy>
<CollectionAmount>4.1</CollectionAmount>
<CollectionDate>2025-10-19T23:44:28.020438+00:00</CollectionDate>
<Image>sample string 8</Image>
<InvoiceNumber>sample string 3</InvoiceNumber>
<ModeofPayment>sample string 7</ModeofPayment>
<OrderId>2</OrderId>
<PaymentDetails>sample string 9</PaymentDetails>
<TransactionERPId>sample string 1</TransactionERPId>
</RetailerPaymentCollection>
<RetailerPaymentCollection>
<CollectedBy>sample string 5</CollectedBy>
<CollectionAmount>4.1</CollectionAmount>
<CollectionDate>2025-10-19T23:44:28.020438+00:00</CollectionDate>
<Image>sample string 8</Image>
<InvoiceNumber>sample string 3</InvoiceNumber>
<ModeofPayment>sample string 7</ModeofPayment>
<OrderId>2</OrderId>
<PaymentDetails>sample string 9</PaymentDetails>
<TransactionERPId>sample string 1</TransactionERPId>
</RetailerPaymentCollection>
</ArrayOfRetailerPaymentCollection>
Response Information
Resource Description
ApiResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| Message |
Message Indicating the Overall Response Summary of the Requested API |
string |
None. |
| ResponseList |
List of Errors |
Collection of ApiResponseMessage |
None. |
| Response |
Enum Indicating the Response status |
ResponseStatus |
None. |
| ResponseStatusCount |
Summary containing Number of SuccessFull And Failed Tasks |
ResponseStatusCount |
None. |
Response Formats
application/json, text/json
Sample:
{
"Message": "sample string 1",
"ResponseList": [
{
"ERPId": "sample string 1",
"Message": "sample string 2",
"ResponseStatus": "Failure",
"GUID": "sample string 3"
},
{
"ERPId": "sample string 1",
"Message": "sample string 2",
"ResponseStatus": "Failure",
"GUID": "sample string 3"
}
],
"Response": "Failure",
"ResponseStatusCount": {
"Updated": 1,
"Failed": 2,
"Ignored": 3,
"Name": "sample string 1",
"Total": 6,
"StatusMessage": "sample string 1: Total-6, Updated-1, Failed-2, Ignored-3",
"ResponseStatus": "PartialSuccess"
}
}
application/xml, text/xml
Sample:
<ApiResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ExternalApis.Models.Common">
<Message>sample string 1</Message>
<Response>Failure</Response>
<ResponseList>
<ApiResponseMessage>
<ERPId>sample string 1</ERPId>
<GUID>sample string 3</GUID>
<Message>sample string 2</Message>
<ResponseStatus>Failure</ResponseStatus>
</ApiResponseMessage>
<ApiResponseMessage>
<ERPId>sample string 1</ERPId>
<GUID>sample string 3</GUID>
<Message>sample string 2</Message>
<ResponseStatus>Failure</ResponseStatus>
</ApiResponseMessage>
</ResponseList>
<ResponseStatusCount>
<Failed>2</Failed>
<Ignored>3</Ignored>
<Name>sample string 1</Name>
<Updated>1</Updated>
</ResponseStatusCount>
</ApiResponse>