POST api/Provider/DirectCreate

Registers a new provider account.

Request Information

Parameters

NameDescriptionAdditional information
providerSignUp
The provider info

Define this parameter in the request body.

Request body formats

application/json, text/json

Sample:
{
  "company_name": "sample string 1",
  "domain": "sample string 2",
  "edition": 1,
  "email_address": "sample string 3",
  "full_name": "sample string 4",
  "phone_number": "sample string 5",
  "ls": "sample string 6",
  "ipaddress": "sample string 7",
  "reseller_username": "sample string 8",
  "reseller_id": 9
}

application/xml, text/xml

Sample:
<provider_sign_up xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Ticket.Api.Org">
  <company_name>sample string 1</company_name>
  <domain>sample string 2</domain>
  <edition>starter</edition>
  <email_address>sample string 3</email_address>
  <full_name>sample string 4</full_name>
  <ipaddress>sample string 7</ipaddress>
  <ls>sample string 6</ls>
  <phone_number>sample string 5</phone_number>
  <reseller_id>9</reseller_id>
  <reseller_username>sample string 8</reseller_username>
</provider_sign_up>

Response Information

Response body formats

application/json, text/json

Sample:
{
  "token": {
    "access_token": "sample string 1",
    "user_info": {
      "email_address": "sample string 1",
      "full_name": "sample string 2",
      "id": 3,
      "agent_id": 4
    }
  },
  "id": 1,
  "errors": [],
  "is_valid": true
}

application/xml, text/xml

Sample:
<provider_create_result xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Ticket.Api.Org">
  <errors xmlns="http://schemas.datacontract.org/2004/07/Ticket.Api" />
  <is_valid xmlns="http://schemas.datacontract.org/2004/07/Ticket.Api">true</is_valid>
  <id xmlns="http://schemas.datacontract.org/2004/07/Ticket.Api">1</id>
  <token xmlns:d2p1="http://schemas.datacontract.org/2004/07/Ticket.Api.Auth">
    <d2p1:access_token>sample string 1</d2p1:access_token>
    <d2p1:user_info>
      <agent_id>4</agent_id>
      <email_address>sample string 1</email_address>
      <full_name>sample string 2</full_name>
      <id>3</id>
    </d2p1:user_info>
  </token>
</provider_create_result>