POST api/getservicestatus

This method returns Carrier Service Statuses

Request Information


URI Parameters

None.

Body Parameters

GetServiceStatusRequest
NameDescriptionTypeAdditional information
apikey

Unique Value assigned by an administrator during account setup.

string

None.

username

Username Assigned by an administrator during account setup

string

None.

password

Password Assigned by an administrator during account setup

string

None.

ctoken

Optional Client Token

string

None.

Request Formats

application/xml

Sample:
<GetServiceStatusRequest>
  <apikey>8881BA2F-5FE2-4CF1-D99E-5963J9192806</apikey>
  <ctoken>6e84d0ce-70bd-4d2e-b20d-52d110090f2c</ctoken>
  <password>dpassword</password>
  <username>demoapi</username>
</GetServiceStatusRequest>

application/json, text/json

Sample:
{
  "apikey": "8881BA2F-5FE2-4CF1-D99E-5963J9192806",
  "username": "demoapi",
  "password": "dpassword",
  "ctoken": "6e84d0ce-70bd-4d2e-b20d-52d110090f2c"
}

application/x-www-form-urlencoded

Sample:
apikey=8881BA2F-5FE2-4CF1-D99E-5963J9192806&ctoken=6e84d0ce-70bd-4d2e-b20d-52d110090f2c&password=dpassword&username=demoapi

text/xml

Sample:
<GetServiceStatusRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ExternalRestService.Models">
  <apikey>sample string 1</apikey>
  <ctoken>sample string 4</ctoken>
  <password>sample string 3</password>
  <username>sample string 2</username>
</GetServiceStatusRequest>

Response Information


Resource Description

response

GetServiceStatusResponse
NameDescriptionTypeAdditional information
carriers

Array of Carrier Service Statuses

Collection of CarrierStatusDTO

None.

ack

A flag indicating success or failure of the web service response back to the client. Default is success.

AcknowledgeType

None.

exceptions

Message back to client. Mostly used when a web service failure occurs.

Collection of ResponseExceptionDto

None.

ctoken

Optional Client Token

string

None.

Response Formats

application/xml

Sample:
<GetServiceStatusResponse>
  <ack>1</ack>
  <ctoken>6e84d0ce-70bd-4d2e-b20d-52d110090f2c</ctoken>
  <exceptions />
  <carriers />
</GetServiceStatusResponse>

application/json, text/json

Sample:
{
  "carriers": null,
  "ack": 1,
  "exceptions": null,
  "ctoken": "6e84d0ce-70bd-4d2e-b20d-52d110090f2c"
}

text/xml

Sample:
<GetServiceStatusResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ExternalRestService.Models">
  <ack>0</ack>
  <ctoken>sample string 1</ctoken>
  <exceptions>
    <ResponseExceptionDto>
      <errorcode>sample string 1</errorcode>
      <msg>sample string 2</msg>
      <suggestion>sample string 4</suggestion>
      <validationcodes>sample string 3</validationcodes>
      <validationdetails i:nil="true" />
    </ResponseExceptionDto>
    <ResponseExceptionDto>
      <errorcode>sample string 1</errorcode>
      <msg>sample string 2</msg>
      <suggestion>sample string 4</suggestion>
      <validationcodes>sample string 3</validationcodes>
      <validationdetails i:nil="true" />
    </ResponseExceptionDto>
  </exceptions>
  <carriers>
    <CarrierStatusDTO>
      <carriercode>sample string 1</carriercode>
      <carriername>sample string 2</carriername>
      <from>2024-04-18T22:46:50.6322457+00:00</from>
      <ianatz>sample string 7</ianatz>
      <message>sample string 6</message>
      <scac>sample string 3</scac>
      <scacs xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:string>sample string 1</d4p1:string>
        <d4p1:string>sample string 2</d4p1:string>
      </scacs>
      <stscode>sample string 4</stscode>
      <stsdescrip>sample string 5</stsdescrip>
      <to>2024-04-18T22:46:50.6322457+00:00</to>
    </CarrierStatusDTO>
    <CarrierStatusDTO>
      <carriercode>sample string 1</carriercode>
      <carriername>sample string 2</carriername>
      <from>2024-04-18T22:46:50.6322457+00:00</from>
      <ianatz>sample string 7</ianatz>
      <message>sample string 6</message>
      <scac>sample string 3</scac>
      <scacs xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:string>sample string 1</d4p1:string>
        <d4p1:string>sample string 2</d4p1:string>
      </scacs>
      <stscode>sample string 4</stscode>
      <stsdescrip>sample string 5</stsdescrip>
      <to>2024-04-18T22:46:50.6322457+00:00</to>
    </CarrierStatusDTO>
  </carriers>
</GetServiceStatusResponse>