POST api/gpostParcel

Register parcel in georgian post database.

Request Information

Parameters

NameDescriptionAdditional information
requestParams
No documentation available.

Define this parameter in the request body.

Request body formats

application/json, text/json

Sample:
{
  "ParcelTypeId": 1,
  "ReceiverCityId": 2,
  "ReceiverAddressNote": "sample string 3",
  "ZIP": "sample string 4",
  "IsExpress": true,
  "deliveryMethod": 6,
  "Weight": 7.1,
  "X": 1.1,
  "Y": 1.1,
  "Z": 1.1,
  "Quantity": 8,
  "Insurance": {
    "IsInsured": true,
    "InsuranceAmount": 2.1,
    "InsuranceCurrencyID": 3.0
  },
  "ReceiverPerson": {
    "PersonTypeId": 1.0,
    "FirstName": "sample string 2",
    "LastName": "sample string 3",
    "OrganizationName": "sample string 4",
    "Phone": "sample string 5",
    "Email": "sample string 6"
  },
  "PaymentMethod": 9.0,
  "isHand2Hand": true,
  "declarationItems": [
    {
      "declarationItemID": 1.0,
      "comment": "sample string 2",
      "currencyId": 3.0,
      "itemCount": 4.0,
      "itemPrice": 5.0,
      "itemWeigth": 6.0
    },
    {
      "declarationItemID": 1.0,
      "comment": "sample string 2",
      "currencyId": 3.0,
      "itemCount": 4.0,
      "itemPrice": 5.0,
      "itemWeigth": 6.0
    },
    {
      "declarationItemID": 1.0,
      "comment": "sample string 2",
      "currencyId": 3.0,
      "itemCount": 4.0,
      "itemPrice": 5.0,
      "itemWeigth": 6.0
    }
  ],
  "needExportDeclaration": true,
  "COD": {
    "AMOUNT": 1.0,
    "CURRENCY_ID": 2.0
  },
  "corporateUserID": 12.0
}

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

Response Information

No documentation available.

Response body formats

application/json, text/json

Sample:
{
  "InternalCode": "sample string 1",
  "Status": {
    "Code": "sample string 1",
    "descriptionEn": "sample string 2",
    "Description": "sample string 3",
    "descriptionRu": "sample string 4",
    "message": "sample string 5"
  }
}