POST v1/company/shipmentTemplate/save

WEB - Adds or updates a shipment template

Request Information

URI Parameters

None.

Body Parameters

CompanyShipmentTemplateSaveRequestModel
NameDescriptionTypeAdditional information
template_info

ShipmentTemplate

Required

user_company_id

Company UID of the active user

string

Required

Data type: Text

user_id

User ID (GUID)

string

Required

Data type: Text

user_signature

MD5 hash signature for the active user to validate the request

string

Required

Data type: Text

Request Format

application/json, text/json

Sample:
{
  "template_info": {
    "shipment_template_id": 1,
    "shipment_template_description": "sample string 3",
    "shipment_shape_type_id": 1,
    "shipment_shape_type_type_id": 1,
    "shipment_type_id": 1,
    "shipment_vehicle_type_id": 1,
    "shipment_pallet_count": 1,
    "shipment_vehicle_trailer_type_id": 1,
    "shipment_vehicle_base_slab_id": 1,
    "shipment_vehicle_capacity_type_id": 1,
    "shipment_payment_type_id": 1,
    "shipment_departure_date": "2018-07-18T11:23:03.6955085+03:00",
    "shipment_departure_address_id": 1,
    "shipment_departure_contact_name": "sample string 4",
    "shipment_departure_contact_phone_number": "sample string 5",
    "shipment_destination_address_id": 1,
    "shipment_distance": 1,
    "shipment_proposal_cost": 1,
    "shipment_cubic_meter": "sample string 6",
    "shipment_weight": "sample string 7",
    "shipment_length": "sample string 8",
    "shipment_remark": "sample string 9",
    "shipment_date_time": "2018-07-18T11:23:03.6955085+03:00",
    "modification_time": "2018-07-18T11:23:03.6955085+03:00",
    "shipment_temperature": 11,
    "shipment_has_adr": true,
    "shipment_destinations": [
      {
        "id": 1,
        "shipment_template_id": 2,
        "shipment_arrival_date": "2018-07-18T11:23:03.6955085+03:00",
        "shipment_arrival_address_id": 3,
        "shipment_arrival_contact_name": "sample string 4",
        "shipment_arrival_contact_phone_number": "sample string 5"
      },
      {
        "id": 1,
        "shipment_template_id": 2,
        "shipment_arrival_date": "2018-07-18T11:23:03.6955085+03:00",
        "shipment_arrival_address_id": 3,
        "shipment_arrival_contact_name": "sample string 4",
        "shipment_arrival_contact_phone_number": "sample string 5"
      }
    ]
  },
  "user_company_id": "sample string 1",
  "user_id": "sample string 2",
  "user_signature": "sample string 3"
}

Response Information

Resource Description

WEB - Adds or updates a shipment template

BaseMetaResultModelOfShipmentTemplate
NameDescriptionTypeAdditional information
response

ShipmentTemplate

None.

meta

Basic meta information for the operation result

MetaModel

None.

Response Format

application/json, text/json

Sample:
{
  "response": {
    "shipment_template_id": 1,
    "shipment_template_description": "sample string 3",
    "shipment_shape_type_id": 1,
    "shipment_shape_type_type_id": 1,
    "shipment_type_id": 1,
    "shipment_vehicle_type_id": 1,
    "shipment_pallet_count": 1,
    "shipment_vehicle_trailer_type_id": 1,
    "shipment_vehicle_base_slab_id": 1,
    "shipment_vehicle_capacity_type_id": 1,
    "shipment_payment_type_id": 1,
    "shipment_departure_date": "2018-07-18T11:23:03.6955085+03:00",
    "shipment_departure_address_id": 1,
    "shipment_departure_contact_name": "sample string 4",
    "shipment_departure_contact_phone_number": "sample string 5",
    "shipment_destination_address_id": 1,
    "shipment_distance": 1,
    "shipment_proposal_cost": 1,
    "shipment_cubic_meter": "sample string 6",
    "shipment_weight": "sample string 7",
    "shipment_length": "sample string 8",
    "shipment_remark": "sample string 9",
    "shipment_date_time": "2018-07-18T11:23:03.6955085+03:00",
    "modification_time": "2018-07-18T11:23:03.6955085+03:00",
    "shipment_temperature": 11,
    "shipment_has_adr": true,
    "shipment_destinations": [
      {
        "id": 1,
        "shipment_template_id": 2,
        "shipment_arrival_date": "2018-07-18T11:23:03.6955085+03:00",
        "shipment_arrival_address_id": 3,
        "shipment_arrival_contact_name": "sample string 4",
        "shipment_arrival_contact_phone_number": "sample string 5"
      },
      {
        "id": 1,
        "shipment_template_id": 2,
        "shipment_arrival_date": "2018-07-18T11:23:03.6955085+03:00",
        "shipment_arrival_address_id": 3,
        "shipment_arrival_contact_name": "sample string 4",
        "shipment_arrival_contact_phone_number": "sample string 5"
      }
    ]
  },
  "meta": {
    "status_code": 1,
    "status_message": "sample string 2"
  }
}