POST api/FieldService/CreateUpdateAccount?labID={labID}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
labID

string

Required

Body Parameters

FSBillingAccount
NameDescriptionTypeAdditional information
accountNum

string

None.

deliveryName

string

None.

contactDetails

FSContactDetails

None.

tier

string

None.

terms

string

None.

currency

string

None.

taxReferenceCode

string

None.

minPrice

string

None.

salesTaxGroup

string

None.

onStop

string

None.

language

string

None.

complianceControlled

string

None.

commerciallySensitive

string

None.

classification

string

None.

postalAddresses

Collection of FSFinanceAddress

None.

allAddresses

Collection of FSFinanceAddress

None.

Request Formats

application/json, text/json

Sample:
{
  "accountNum": "sample string 1",
  "deliveryName": "sample string 2",
  "contactDetails": {
    "emailAddress": "sample string 1",
    "phone": "sample string 2",
    "mobileNo": "sample string 3",
    "fax": "sample string 4"
  },
  "tier": "sample string 3",
  "terms": "sample string 4",
  "currency": "sample string 5",
  "taxReferenceCode": "sample string 6",
  "minPrice": "sample string 7",
  "salesTaxGroup": "sample string 8",
  "onStop": "sample string 9",
  "language": "sample string 10",
  "complianceControlled": "sample string 11",
  "commerciallySensitive": "sample string 12",
  "classification": "sample string 13",
  "postalAddresses": [
    {
      "locationId": "sample string 1",
      "description": "sample string 2",
      "primary": "sample string 3",
      "purpose": "sample string 4",
      "expiry": "sample string 5",
      "street": "sample string 6",
      "city": "sample string 7",
      "state": "sample string 8",
      "country": "sample string 9",
      "zipcode": "sample string 10",
      "countryRegionShortName": "sample string 11"
    },
    {
      "locationId": "sample string 1",
      "description": "sample string 2",
      "primary": "sample string 3",
      "purpose": "sample string 4",
      "expiry": "sample string 5",
      "street": "sample string 6",
      "city": "sample string 7",
      "state": "sample string 8",
      "country": "sample string 9",
      "zipcode": "sample string 10",
      "countryRegionShortName": "sample string 11"
    }
  ],
  "allAddresses": [
    {
      "locationId": "sample string 1",
      "description": "sample string 2",
      "primary": "sample string 3",
      "purpose": "sample string 4",
      "expiry": "sample string 5",
      "street": "sample string 6",
      "city": "sample string 7",
      "state": "sample string 8",
      "country": "sample string 9",
      "zipcode": "sample string 10",
      "countryRegionShortName": "sample string 11"
    },
    {
      "locationId": "sample string 1",
      "description": "sample string 2",
      "primary": "sample string 3",
      "purpose": "sample string 4",
      "expiry": "sample string 5",
      "street": "sample string 6",
      "city": "sample string 7",
      "state": "sample string 8",
      "country": "sample string 9",
      "zipcode": "sample string 10",
      "countryRegionShortName": "sample string 11"
    }
  ]
}

application/xml, text/xml

Sample:
<FSBillingAccount xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Element_Stack_Emissions_API.Models">
  <accountNum>sample string 1</accountNum>
  <allAddresses>
    <FSFinanceAddress>
      <city>sample string 7</city>
      <country>sample string 9</country>
      <countryRegionShortName>sample string 11</countryRegionShortName>
      <description>sample string 2</description>
      <expiry>sample string 5</expiry>
      <locationId>sample string 1</locationId>
      <primary>sample string 3</primary>
      <purpose>sample string 4</purpose>
      <state>sample string 8</state>
      <street>sample string 6</street>
      <zipcode>sample string 10</zipcode>
    </FSFinanceAddress>
    <FSFinanceAddress>
      <city>sample string 7</city>
      <country>sample string 9</country>
      <countryRegionShortName>sample string 11</countryRegionShortName>
      <description>sample string 2</description>
      <expiry>sample string 5</expiry>
      <locationId>sample string 1</locationId>
      <primary>sample string 3</primary>
      <purpose>sample string 4</purpose>
      <state>sample string 8</state>
      <street>sample string 6</street>
      <zipcode>sample string 10</zipcode>
    </FSFinanceAddress>
  </allAddresses>
  <classification>sample string 13</classification>
  <commerciallySensitive>sample string 12</commerciallySensitive>
  <complianceControlled>sample string 11</complianceControlled>
  <contactDetails>
    <emailAddress>sample string 1</emailAddress>
    <fax>sample string 4</fax>
    <mobileNo>sample string 3</mobileNo>
    <phone>sample string 2</phone>
  </contactDetails>
  <currency>sample string 5</currency>
  <deliveryName>sample string 2</deliveryName>
  <language>sample string 10</language>
  <minPrice>sample string 7</minPrice>
  <onStop>sample string 9</onStop>
  <postalAddresses>
    <FSFinanceAddress>
      <city>sample string 7</city>
      <country>sample string 9</country>
      <countryRegionShortName>sample string 11</countryRegionShortName>
      <description>sample string 2</description>
      <expiry>sample string 5</expiry>
      <locationId>sample string 1</locationId>
      <primary>sample string 3</primary>
      <purpose>sample string 4</purpose>
      <state>sample string 8</state>
      <street>sample string 6</street>
      <zipcode>sample string 10</zipcode>
    </FSFinanceAddress>
    <FSFinanceAddress>
      <city>sample string 7</city>
      <country>sample string 9</country>
      <countryRegionShortName>sample string 11</countryRegionShortName>
      <description>sample string 2</description>
      <expiry>sample string 5</expiry>
      <locationId>sample string 1</locationId>
      <primary>sample string 3</primary>
      <purpose>sample string 4</purpose>
      <state>sample string 8</state>
      <street>sample string 6</street>
      <zipcode>sample string 10</zipcode>
    </FSFinanceAddress>
  </postalAddresses>
  <salesTaxGroup>sample string 8</salesTaxGroup>
  <taxReferenceCode>sample string 6</taxReferenceCode>
  <terms>sample string 4</terms>
  <tier>sample string 3</tier>
</FSBillingAccount>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.