POST api/AddressBook/AddBulkBusinessTarget

Request Information

URI Parameters

None.

Body Parameters

AddBulkBusinessTarget
NameDescriptionTypeAdditional information
BusinessID

integer

None.

businesssTargets

Collection of BusinesssTarget

None.

Request Formats

application/json, text/json

Sample:
{
  "BusinessID": 1,
  "businesssTargets": [
    {
      "User_Code": "sample string 1",
      "Brand": "sample string 2",
      "SKU_code": "sample string 3",
      "Target_Volume": 4,
      "Target_Value": 5
    },
    {
      "User_Code": "sample string 1",
      "Brand": "sample string 2",
      "SKU_code": "sample string 3",
      "Target_Volume": 4,
      "Target_Value": 5
    }
  ]
}

application/xml, text/xml

Sample:
<AddBulkBusinessTarget xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BOPWAAPI.Model">
  <BusinessID>1</BusinessID>
  <businesssTargets>
    <BusinesssTarget>
      <Brand>sample string 2</Brand>
      <SKU_code>sample string 3</SKU_code>
      <Target_Value>5</Target_Value>
      <Target_Volume>4</Target_Volume>
      <User_Code>sample string 1</User_Code>
    </BusinesssTarget>
    <BusinesssTarget>
      <Brand>sample string 2</Brand>
      <SKU_code>sample string 3</SKU_code>
      <Target_Value>5</Target_Value>
      <Target_Volume>4</Target_Volume>
      <User_Code>sample string 1</User_Code>
    </BusinesssTarget>
  </businesssTargets>
</AddBulkBusinessTarget>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

VCAPIResponse
NameDescriptionTypeAdditional 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": "2020/10/22 05:19:21",
  "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>