POST api/Business/UpdateDetails?businessId={businessId}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
businessId

integer

Required

Body Parameters

RegisterBindingModel
NameDescriptionTypeAdditional information
BusinessDetails

RegisterBusinessDetails

None.

ManagerDetails

RegisterManagerDetails

None.

Request Formats

application/json, text/json

Sample:
{
  "BusinessDetails": {
    "BusinessName": "sample string 1",
    "Id": "sample string 2",
    "Address": "sample string 3",
    "City": "sample string 4",
    "State": "sample string 5",
    "ZipCode": "sample string 6",
    "WebSite": "sample string 7",
    "Country": "sample string 8"
  },
  "ManagerDetails": {
    "NameAdmin": "sample string 1",
    "PhoneAdmin": "sample string 2",
    "EmailAdmin": "sample string 3"
  }
}

application/xml, text/xml

Sample:
<RegisterBindingModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SpinToWin.Models.BindingModel">
  <BusinessDetails>
    <Address>sample string 3</Address>
    <BusinessName>sample string 1</BusinessName>
    <City>sample string 4</City>
    <Country>sample string 8</Country>
    <Id>sample string 2</Id>
    <State>sample string 5</State>
    <WebSite>sample string 7</WebSite>
    <ZipCode>sample string 6</ZipCode>
  </BusinessDetails>
  <ManagerDetails>
    <EmailAdmin>sample string 3</EmailAdmin>
    <NameAdmin>sample string 1</NameAdmin>
    <PhoneAdmin>sample string 2</PhoneAdmin>
  </ManagerDetails>
</RegisterBindingModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

BusinessViewModel
NameDescriptionTypeAdditional information
Id

integer

None.

Name

string

None.

FederalTaxID

string

None.

Address

string

None.

City

string

None.

State

string

None.

WebSite

string

None.

ZipCode

string

None.

Country

string

None.

NumSpinns

integer

None.

NumRedeem

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "Name": "sample string 2",
  "FederalTaxID": "sample string 3",
  "Address": "sample string 4",
  "City": "sample string 5",
  "State": "sample string 6",
  "WebSite": "sample string 7",
  "ZipCode": "sample string 8",
  "Country": "sample string 9",
  "NumSpinns": 10,
  "NumRedeem": 11
}

application/xml, text/xml

Sample:
<BusinessViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SpinToWin.Models.ViewModel">
  <Address>sample string 4</Address>
  <City>sample string 5</City>
  <Country>sample string 9</Country>
  <FederalTaxID>sample string 3</FederalTaxID>
  <Id>1</Id>
  <Name>sample string 2</Name>
  <NumRedeem>11</NumRedeem>
  <NumSpinns>10</NumSpinns>
  <State>sample string 6</State>
  <WebSite>sample string 7</WebSite>
  <ZipCode>sample string 8</ZipCode>
</BusinessViewModel>