POST request/supplier/targetmarket/matrix

Request Information

URI Parameters

None.

Body Parameters

MatrixTargetPost
NameDescriptionTypeAdditional information
ContractTypes

Collection of ContractType

None.

Metertype

MeterType

None.

TargetSectors

Collection of TargetSector

None.

TariffTypes

Collection of TariffType

None.

Request Formats

application/json, text/json

Sample:
{
  "metertype": {
    "id": 1,
    "label": "sample string 2",
    "isChecked": true
  },
  "targetSectors": [
    {
      "id": 1,
      "label": "sample string 2",
      "isChecked": true
    },
    {
      "id": 1,
      "label": "sample string 2",
      "isChecked": true
    }
  ],
  "contractTypes": [
    {
      "id": 1,
      "label": "sample string 2",
      "isChecked": true
    },
    {
      "id": 1,
      "label": "sample string 2",
      "isChecked": true
    }
  ],
  "tariffTypes": null
}

text/html

Sample:
{"metertype":{"id":1,"label":"sample string 2","isChecked":true},"targetSectors":[{"id":1,"label":"sample string 2","isChecked":true},{"id":1,"label":"sample string 2","isChecked":true}],"contractTypes":[{"id":1,"label":"sample string 2","isChecked":true},{"id":1,"label":"sample string 2","isChecked":true}],"tariffTypes":null}

application/xml, text/xml

Sample:
<MatrixTargetPost xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CCSCommercialAPI.Models.Target_Market">
  <ContractTypes>
    <ContractType>
      <Id>1</Id>
      <IsChecked>true</IsChecked>
      <Label>sample string 2</Label>
    </ContractType>
    <ContractType>
      <Id>1</Id>
      <IsChecked>true</IsChecked>
      <Label>sample string 2</Label>
    </ContractType>
  </ContractTypes>
  <Metertype>
    <Id>1</Id>
    <IsChecked>true</IsChecked>
    <Label>sample string 2</Label>
  </Metertype>
  <TargetSectors xmlns:d2p1="http://schemas.datacontract.org/2004/07/CCSCommercialAPI.Models.SupplierDetails">
    <d2p1:TargetSector>
      <d2p1:Id>1</d2p1:Id>
      <d2p1:IsChecked>true</d2p1:IsChecked>
      <d2p1:Label>sample string 2</d2p1:Label>
    </d2p1:TargetSector>
    <d2p1:TargetSector>
      <d2p1:Id>1</d2p1:Id>
      <d2p1:IsChecked>true</d2p1:IsChecked>
      <d2p1:Label>sample string 2</d2p1:Label>
    </d2p1:TargetSector>
  </TargetSectors>
  <TariffTypes i:nil="true" />
</MatrixTargetPost>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

integer

Response Formats

application/json, text/json, text/html

Sample:
1

application/xml, text/xml

Sample:
<long xmlns="http://schemas.microsoft.com/2003/10/Serialization/">1</long>