POST api/SmartTrade/AddSmartTrade
Request Information
URI Parameters
None.
Body Parameters
AddSmartTradeName | Description | Type | Additional information |
---|---|---|---|
Businessid | integer |
None. |
|
Customerid | integer |
None. |
|
LogingUserid | integer |
None. |
|
Agentid | integer |
None. |
|
Ismerchantonduty | integer |
None. |
|
Isdanopromoter | integer |
None. |
|
Isrelishpromoter | integer |
None. |
|
Iscolgatepromoter | integer |
None. |
|
Location | string |
None. |
|
Latitude | string |
None. |
|
Longitude | string |
None. |
|
Brandid | integer |
None. |
|
Skuavailability | Collection of Skuavailability |
None. |
Request Formats
application/json, text/json
Sample:
{ "Businessid": 1, "Customerid": 2, "LogingUserid": 3, "Agentid": 4, "Ismerchantonduty": 5, "Isdanopromoter": 6, "Isrelishpromoter": 7, "Iscolgatepromoter": 8, "Location": "sample string 9", "Latitude": "sample string 10", "Longitude": "sample string 11", "Brandid": 12, "Skuavailability": [ { "SKUID": 1, "Status": 2, "BrandID": 3 }, { "SKUID": 1, "Status": 2, "BrandID": 3 } ] }
application/xml, text/xml
Sample:
<AddSmartTrade xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BOPWAAPI.Model"> <Agentid>4</Agentid> <Brandid>12</Brandid> <Businessid>1</Businessid> <Customerid>2</Customerid> <Iscolgatepromoter>8</Iscolgatepromoter> <Isdanopromoter>6</Isdanopromoter> <Ismerchantonduty>5</Ismerchantonduty> <Isrelishpromoter>7</Isrelishpromoter> <Latitude>sample string 10</Latitude> <Location>sample string 9</Location> <LogingUserid>3</LogingUserid> <Longitude>sample string 11</Longitude> <Skuavailability> <Skuavailability> <BrandID>3</BrandID> <SKUID>1</SKUID> <Status>2</Status> </Skuavailability> <Skuavailability> <BrandID>3</BrandID> <SKUID>1</SKUID> <Status>2</Status> </Skuavailability> </Skuavailability> </AddSmartTrade>
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:41:20", "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>