POST api/pricing/default_pricings

Sets default pricings for plans

Request Information

Parameters

NameDescriptionAdditional information
defaultPricingsInfo

Define this parameter in the request body.

Request body formats

application/json, text/json

Sample:
{
  "pricings": {
    "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
  },
  "move_providers_to_new_pricing_db": true
}

application/xml, text/xml

Sample:
<set_default_pricing_info xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Ticket.Api.Billing">
  <move_providers_to_new_pricing_db>true</move_providers_to_new_pricing_db>
  <pricings>
    <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>
  </pricings>
</set_default_pricing_info>

Response Information

Response body formats

application/json, text/json

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

application/xml, text/xml

Sample:
<set_default_pricings_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>
</set_default_pricings_result>