POST api/PickupAndDelivery/Save

Request Information

URI Parameters

None.

Body Parameters

SavePickupAndDeliveryInputModel
NameDescriptionTypeAdditional information
PickupAndDelivery_ID

globally unique identifier

None.

Type_ID

integer

None.

PickupAndDelivery_NO

string

None.

Status_ID

integer

None.

Reference_NO

string

None.

Carrier_ID

integer

None.

Direction_ID

integer

None.

TransportationMode_ID

integer

None.

Booking_NO

string

None.

BookingDestination

string

None.

Invoice_NO

string

None.

PO_NO

string

None.

Shipment_ID

globally unique identifier

None.

LocationTypes

Collection of PickupAndDeliveryLocationTypeInputModel

None.

CustomFieldsWithValues

Collection of CustomFieldOutputModel

None.

Request Formats

application/json, text/json

Sample:
{
  "PickupAndDelivery_ID": "d5088457-08b9-4180-ae89-6f3ad80e5b14",
  "Type_ID": 2,
  "PickupAndDelivery_NO": "sample string 3",
  "Status_ID": 1,
  "Reference_NO": "sample string 4",
  "Carrier_ID": 1,
  "Direction_ID": 1,
  "TransportationMode_ID": 1,
  "Booking_NO": "sample string 5",
  "BookingDestination": "sample string 6",
  "Invoice_NO": "sample string 7",
  "PO_NO": "sample string 8",
  "Shipment_ID": "f2271ecd-f742-4831-88c0-f2f1b649af6b",
  "LocationTypes": [
    {
      "Location_ID": 1,
      "Company_ID": 1,
      "LocationType_ID": 1,
      "Site_ID": 1,
      "POC_ID": 1,
      "Tenant_ID": 2,
      "Branch_ID": 3
    },
    {
      "Location_ID": 1,
      "Company_ID": 1,
      "LocationType_ID": 1,
      "Site_ID": 1,
      "POC_ID": 1,
      "Tenant_ID": 2,
      "Branch_ID": 3
    }
  ],
  "CustomFieldsWithValues": [
    {
      "FormFieldId": 1,
      "FormFieldName": "sample string 2",
      "FormFieldDisplayName": "sample string 3",
      "FormFieldTypeId": 4,
      "FormFieldAttributeId": 1,
      "FormFieldAttributeValue": "sample string 5"
    },
    {
      "FormFieldId": 1,
      "FormFieldName": "sample string 2",
      "FormFieldDisplayName": "sample string 3",
      "FormFieldTypeId": 4,
      "FormFieldAttributeId": 1,
      "FormFieldAttributeValue": "sample string 5"
    }
  ]
}

application/xml, text/xml

Sample:
<SavePickupAndDeliveryInputModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cyzerg.Model.WMS.InputOutputModels">
  <BookingDestination>sample string 6</BookingDestination>
  <Booking_NO>sample string 5</Booking_NO>
  <Carrier_ID>1</Carrier_ID>
  <CustomFieldsWithValues>
    <CustomFieldOutputModel>
      <FormFieldAttributeId>1</FormFieldAttributeId>
      <FormFieldAttributeValue>sample string 5</FormFieldAttributeValue>
      <FormFieldDisplayName>sample string 3</FormFieldDisplayName>
      <FormFieldId>1</FormFieldId>
      <FormFieldName>sample string 2</FormFieldName>
      <FormFieldTypeId>4</FormFieldTypeId>
    </CustomFieldOutputModel>
    <CustomFieldOutputModel>
      <FormFieldAttributeId>1</FormFieldAttributeId>
      <FormFieldAttributeValue>sample string 5</FormFieldAttributeValue>
      <FormFieldDisplayName>sample string 3</FormFieldDisplayName>
      <FormFieldId>1</FormFieldId>
      <FormFieldName>sample string 2</FormFieldName>
      <FormFieldTypeId>4</FormFieldTypeId>
    </CustomFieldOutputModel>
  </CustomFieldsWithValues>
  <Direction_ID>1</Direction_ID>
  <Invoice_NO>sample string 7</Invoice_NO>
  <LocationTypes>
    <PickupAndDeliveryLocationTypeInputModel>
      <Branch_ID>3</Branch_ID>
      <Company_ID>1</Company_ID>
      <LocationType_ID>1</LocationType_ID>
      <Location_ID>1</Location_ID>
      <POC_ID>1</POC_ID>
      <Site_ID>1</Site_ID>
      <Tenant_ID>2</Tenant_ID>
    </PickupAndDeliveryLocationTypeInputModel>
    <PickupAndDeliveryLocationTypeInputModel>
      <Branch_ID>3</Branch_ID>
      <Company_ID>1</Company_ID>
      <LocationType_ID>1</LocationType_ID>
      <Location_ID>1</Location_ID>
      <POC_ID>1</POC_ID>
      <Site_ID>1</Site_ID>
      <Tenant_ID>2</Tenant_ID>
    </PickupAndDeliveryLocationTypeInputModel>
  </LocationTypes>
  <PO_NO>sample string 8</PO_NO>
  <PickupAndDelivery_ID>d5088457-08b9-4180-ae89-6f3ad80e5b14</PickupAndDelivery_ID>
  <PickupAndDelivery_NO>sample string 3</PickupAndDelivery_NO>
  <Reference_NO>sample string 4</Reference_NO>
  <Shipment_ID>f2271ecd-f742-4831-88c0-f2f1b649af6b</Shipment_ID>
  <Status_ID>1</Status_ID>
  <TransportationMode_ID>1</TransportationMode_ID>
  <Type_ID>2</Type_ID>
</SavePickupAndDeliveryInputModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

text/html

Sample:
{"PickupAndDelivery_ID":"d5088457-08b9-4180-ae89-6f3ad80e5b14","Type_ID":2,"PickupAndDelivery_NO":"sample string 3","Status_ID":1,"Reference_NO":"sample string 4","Carrier_ID":1,"Direction_ID":1,"TransportationMode_ID":1,"Booking_NO":"sample string 5","BookingDestination":"sample string 6","Invoice_NO":"sample string 7","PO_NO":"sample string 8","Shipment_ID":"f2271ecd-f742-4831-88c0-f2f1b649af6b","LocationTypes":[{"Location_ID":1,"Company_ID":1,"LocationType_ID":1,"Site_ID":1,"POC_ID":1,"Tenant_ID":2,"Branch_ID":3},{"Location_ID":1,"Company_ID":1,"LocationType_ID":1,"Site_ID":1,"POC_ID":1,"Tenant_ID":2,"Branch_ID":3}],"CustomFieldsWithValues":[{"FormFieldId":1,"FormFieldName":"sample string 2","FormFieldDisplayName":"sample string 3","FormFieldTypeId":4,"FormFieldAttributeId":1,"FormFieldAttributeValue":"sample string 5"},{"FormFieldId":1,"FormFieldName":"sample string 2","FormFieldDisplayName":"sample string 3","FormFieldTypeId":4,"FormFieldAttributeId":1,"FormFieldAttributeValue":"sample string 5"}]}

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml, text/html

Sample:

Sample not available.