POST api/ServiceGroups_V1

Get All Service Groups that we need if you want to filter rates by a group/s of services

Request Information

URI Parameters

None.

Body Parameters

Webservice Key provided by 2ship support

string

Request Formats

application/json, text/json

Sample:
"sample string 1"

application/xml, text/xml

Sample:
<string xmlns="http://schemas.microsoft.com/2003/10/Serialization/">sample string 1</string>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'System.Web.Http.ModelBinding.JQueryMvcFormUrlEncodedFormatter' to write type 'System.String'.

Response Information

Resource Description

Collection of WS_Repository.Models.Requests.Rate.ServiceGroup
NameDescriptionTypeAdditional information
Id

The id of Service Group

integer

None.

Name

The Name of the Service Group

string

None.

GroupCutOffDayIsSpecified

it means that GroupCutOffDay is specified.

boolean

None.

GroupCutOffDay

Service Group Cut Off days

integer

None.

GroupCutOffTime

Service Group Cut Off time (24 h format HH:mm:ss, ex: 16:30:00)

string

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "Id": 1,
    "Name": "sample string 2",
    "GroupCutOffDayIsSpecified": true,
    "GroupCutOffDay": 4,
    "GroupCutOffTime": "sample string 5"
  },
  {
    "Id": 1,
    "Name": "sample string 2",
    "GroupCutOffDayIsSpecified": true,
    "GroupCutOffDay": 4,
    "GroupCutOffTime": "sample string 5"
  }
]

application/xml, text/xml

Sample:
<ArrayOfServiceGroup xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WS_Repository.Models.Requests.Rate">
  <ServiceGroup>
    <GroupCutOffDay>4</GroupCutOffDay>
    <GroupCutOffDayIsSpecified>true</GroupCutOffDayIsSpecified>
    <GroupCutOffTime>sample string 5</GroupCutOffTime>
    <Id>1</Id>
    <Name>sample string 2</Name>
  </ServiceGroup>
  <ServiceGroup>
    <GroupCutOffDay>4</GroupCutOffDay>
    <GroupCutOffDayIsSpecified>true</GroupCutOffDayIsSpecified>
    <GroupCutOffTime>sample string 5</GroupCutOffTime>
    <Id>1</Id>
    <Name>sample string 2</Name>
  </ServiceGroup>
</ArrayOfServiceGroup>