POST v1/SystemSettings/PostOfficeList

Return System Post Office List

This is secure method and requires below attributes in header

Authorization: Midnight Authorize Token

Request Information

URI Parameters

None.

Body Parameters

Post Office Input Request

PostOfficeRequest
NameDescriptionTypeAdditional information
PostOfficeID

Post Office ID

integer

None.

Name

Post Office Name

string

None.

Active

Post Office Active Status

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "PostOfficeID": 1,
  "Name": "sample string 1",
  "Active": true
}

application/xml, text/xml

Sample:
<PostOfficeRequest xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <PostOfficeID>1</PostOfficeID>
  <Name>sample string 1</Name>
  <Active>true</Active>
</PostOfficeRequest>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'PostOfficeRequest'.

Response Information

Response Formats

application/json, text/json

Sample:
[
  {
    "PostOfficeID": 1,
    "Name": "sample string 1",
    "Active": true
  },
  {
    "PostOfficeID": 1,
    "Name": "sample string 1",
    "Active": true
  }
]

application/xml, text/xml

Sample:
<ArrayOfPostOfficeResponse xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <PostOfficeResponse>
    <PostOfficeID>1</PostOfficeID>
    <Name>sample string 1</Name>
    <Active>true</Active>
  </PostOfficeResponse>
  <PostOfficeResponse>
    <PostOfficeID>1</PostOfficeID>
    <Name>sample string 1</Name>
    <Active>true</Active>
  </PostOfficeResponse>
</ArrayOfPostOfficeResponse>