POST api/facil/changePartnerPrice

Request Information

URI Parameters

None.

Body Parameters

changePartnerPriceRequest
NameDescriptionTypeAdditional information
apikey

string

None.

resellerId

integer

None.

planLists

Collection of PlanList

None.

Request Formats

application/json, text/json

Sample:
{
  "apikey": "sample string 1",
  "resellerId": 2,
  "planLists": [
    {
      "planId": 1,
      "updatedPartenerPrice": 2.0
    },
    {
      "planId": 1,
      "updatedPartenerPrice": 2.0
    }
  ]
}

text/html

Sample:
{"apikey":"sample string 1","resellerId":2,"planLists":[{"planId":1,"updatedPartenerPrice":2.0},{"planId":1,"updatedPartenerPrice":2.0}]}

application/xml, text/xml

Sample:
<changePartnerPriceRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FoneClube.Business.Commons.Entities">
  <apikey>sample string 1</apikey>
  <planLists>
    <PlanList>
      <planId>1</planId>
      <updatedPartenerPrice>2</updatedPartenerPrice>
    </PlanList>
    <PlanList>
      <planId>1</planId>
      <updatedPartenerPrice>2</updatedPartenerPrice>
    </PlanList>
  </planLists>
  <resellerId>2</resellerId>
</changePartnerPriceRequest>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'changePartnerPriceRequest'.

Response Information

Resource Description

GenericResponse
NameDescriptionTypeAdditional information
Data

Object

None.

Info

string

None.

Error

string

None.

Status

boolean

None.

Response Formats

application/json, text/json

Sample:
{
  "Data": {},
  "Info": "sample string 2",
  "Error": "sample string 3",
  "Status": true
}

text/html

Sample:
{"Data":{},"Info":"sample string 2","Error":"sample string 3","Status":true}

application/xml, text/xml

Sample:
<GenericResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FoneClube.Business.Commons.Entities">
  <Data />
  <Error>sample string 3</Error>
  <Info>sample string 2</Info>
  <Status>true</Status>
</GenericResponse>