PUT api/pricing/pricing_for_provider/{provider_id}

Updates the pricings for the specified service provider

Request Information

Parameters

NameDescriptionAdditional information
provider_id

Define this parameter in the request URI.

providerPricings

Define this parameter in the request body.

Request body formats

application/json, text/json

Sample:
{
  "solo_pricing_id": 1,
  "basic_pricing_id": 2,
  "team_pricing_id": 3,
  "pro_pricing_id": 4,
  "enterprise_pricing_id": 5,
  "plus_pricing_id": 6,
  "freedom_pricing_id": 7
}

application/xml, text/xml

Sample:
<provider_pricings xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Ticket.Api.Billing">
  <basic_pricing_id>2</basic_pricing_id>
  <enterprise_pricing_id>5</enterprise_pricing_id>
  <freedom_pricing_id>7</freedom_pricing_id>
  <plus_pricing_id>6</plus_pricing_id>
  <pro_pricing_id>4</pro_pricing_id>
  <solo_pricing_id>1</solo_pricing_id>
  <team_pricing_id>3</team_pricing_id>
</provider_pricings>

Response Information

Response body formats

application/json, text/json

Sample:
{
  "createdId": 1,
  "errors": [],
  "is_valid": true
}

application/xml, text/xml

Sample:
<provider_update_pricing_result xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Ticket.Api.Billing">
  <errors xmlns="http://schemas.datacontract.org/2004/07/Ticket.Api" />
  <is_valid xmlns="http://schemas.datacontract.org/2004/07/Ticket.Api">true</is_valid>
  <createdId>1</createdId>
</provider_update_pricing_result>