POST Other/GenerateGLSLabel

Generate GLS pdf label

Request Information

URI Parameters

None.

Body Parameters

GLSParcelLabelRequest
NameDescriptionTypeAdditional information
Package

GLSParcelLabelRequestChild1

None.

Sender

GLSParcelLabelRequestChild2

None.

Receiver

GLSParcelLabelRequestChild3

None.

Request Formats

application/json, text/json

Sample:
{
  "Package": {
    "Service": "sample string 1",
    "Weight": 2.1,
    "Date": "sample string 3",
    "Reference": "sample string 4",
    "Note": "sample string 5"
  },
  "Sender": {
    "Name": "sample string 1",
    "Name2": "sample string 2",
    "Address": "sample string 3",
    "PostCode": "sample string 4",
    "City": "sample string 5",
    "CountryCode": "sample string 6"
  },
  "Receiver": {
    "CompanyName": "sample string 1",
    "CO": "sample string 2",
    "Address": "sample string 3",
    "Address2": "sample string 4",
    "PostCode": "sample string 5",
    "City": "sample string 6",
    "CountryCode": "sample string 7",
    "ParcelShopID": "sample string 8",
    "CustomerMobileNumber": "sample string 9",
    "CustomerEmail": "sample string 10"
  }
}

text/html

Sample:
{"Package":{"Service":"sample string 1","Weight":2.1,"Date":"sample string 3","Reference":"sample string 4","Note":"sample string 5"},"Sender":{"Name":"sample string 1","Name2":"sample string 2","Address":"sample string 3","PostCode":"sample string 4","City":"sample string 5","CountryCode":"sample string 6"},"Receiver":{"CompanyName":"sample string 1","CO":"sample string 2","Address":"sample string 3","Address2":"sample string 4","PostCode":"sample string 5","City":"sample string 6","CountryCode":"sample string 7","ParcelShopID":"sample string 8","CustomerMobileNumber":"sample string 9","CustomerEmail":"sample string 10"}}

application/xml, text/xml

Sample:
<GLSParcelLabelRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/YogaStreamAPIv2">
  <Package>
    <Date>sample string 3</Date>
    <Note>sample string 5</Note>
    <Reference>sample string 4</Reference>
    <Service>sample string 1</Service>
    <Weight>2.1</Weight>
  </Package>
  <Receiver>
    <Address>sample string 3</Address>
    <Address2>sample string 4</Address2>
    <CO>sample string 2</CO>
    <City>sample string 6</City>
    <CompanyName>sample string 1</CompanyName>
    <CountryCode>sample string 7</CountryCode>
    <CustomerEmail>sample string 10</CustomerEmail>
    <CustomerMobileNumber>sample string 9</CustomerMobileNumber>
    <ParcelShopID>sample string 8</ParcelShopID>
    <PostCode>sample string 5</PostCode>
  </Receiver>
  <Sender>
    <Address>sample string 3</Address>
    <City>sample string 5</City>
    <CountryCode>sample string 6</CountryCode>
    <Name>sample string 1</Name>
    <Name2>sample string 2</Name2>
    <PostCode>sample string 4</PostCode>
  </Sender>
</GLSParcelLabelRequest>

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 'GLSParcelLabelRequest'.

Response Information

Resource Description

GLSParcelLabelResponse
NameDescriptionTypeAdditional information
Error

string

None.

PDFFile

string

None.

TrackTrace

string

None.

GLSResponse

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Error": "sample string 1",
  "PDFFile": "sample string 2",
  "TrackTrace": "sample string 3",
  "GLSResponse": "sample string 4"
}

text/html

Sample:
{"Error":"sample string 1","PDFFile":"sample string 2","TrackTrace":"sample string 3","GLSResponse":"sample string 4"}

application/xml, text/xml

Sample:
<GLSParcelLabelResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/YogaStreamAPIv2">
  <Error>sample string 1</Error>
  <GLSResponse>sample string 4</GLSResponse>
  <PDFFile>sample string 2</PDFFile>
  <TrackTrace>sample string 3</TrackTrace>
</GLSParcelLabelResponse>