1Fetch Client API

<back to all web services

PicUpCreateShipmentRequest

The following routes are available for this service:
POST/picup/createshipment
PicUpCreateShipmentRequest Parameters:
NameParameterData TypeRequiredDescription
ApiKeybodystringNo
CourierRequestbodyCourierRequestNo
CourierRequest Parameters:
NameParameterData TypeRequiredDescription
BucketDetailsformBucketDetailsNo
ShipmentsformShipment[]No
BucketDetails Parameters:
NameParameterData TypeRequiredDescription
DeliveryDateformDateTimeOffsetNo
Shipment Parameters:
NameParameterData TypeRequiredDescription
WaybillNumberformstringNo
BusinessReferenceformstringNo
ServiceTypeformstringNo
SenderformSenderNo
ReceiverformReceiverNo
Sender Parameters:
NameParameterData TypeRequiredDescription
AddressformAddressNo
ContactformContactNo
Address Parameters:
NameParameterData TypeRequiredDescription
AddressLine1formstringNo
AddressLine2formstringNo
AddressLine3formstringNo
AddressLine4formstringNo
CityformstringNo
FormattedAddressformstringNo
LatitudeformdoubleNo
LongitudeformdoubleNo
PostalCodeformstringNo
SuburbformstringNo
UnitformstringNo
BuildingformstringNo
Contact Parameters:
NameParameterData TypeRequiredDescription
CustomerNameformstringNo
CustomerPhoneformstringNo
EmailAddressformstringNo
SpecialInstructionsformstringNo
Receiver Parameters:
NameParameterData TypeRequiredDescription
ParcelsformParcel[]No
AddressformAddressNo
ContactformContactNo
Parcel Parameters:
NameParameterData TypeRequiredDescription
ParcelWaybillformstringNo
ParcelReferenceformstringNo
TrackingNumberformstringNo
LengthMmformlongNo
WidthMmformlongNo
HeightMmformlongNo
WeightKgformlongNo
PicUpCreateShipmentResponse Parameters:
NameParameterData TypeRequiredDescription
IsSuccessformboolNo
CourierReferenceformstringNo
ErrorformstringNo
WaypointsformList<WaypointQuoteInformation>NoList of order information for pricing etc between each waypoint
WaypointValidationsformList<WaypointValidationInformation>NoList with validation information for each waypoint
WaybillformstringNoThe 1Fetch Waybill reference for the shipment
WaypointQuoteInformation Parameters:
NameParameterData TypeRequiredDescription
DistanceformdoubleNoDistance between waypoints as a number
DistanceValueformstringNoString formatted distance
WaypointValidformboolNo
MessageformstringNo
ErrorDetailsformList<string>No
PriceformdecimalNoCaculated price between waypoints excluding vat
PriceValueformstringNoPrice excluding vat formatted as a string rand value
PriceWithVATformdecimalNoThe price between waypoints including vat
PriceValueWithVATformstringNoThe price including vat formatted as a rand value string
LinkedWaypoint Parameters:
NameParameterData TypeRequiredDescription
FromWaypointNumberformintNo
ToWaypointNumberformintNo
FromLatitudeformdoubleNo
FromLongitudeformdoubleNo
ToLatitudeformdoubleNo
ToLongitudeformdoubleNo
WaypointValidationInformation Parameters:
NameParameterData TypeRequiredDescription
WaypointNumberformintNo
IsValidformboolNo
ErrorMessagesformList<string>No

To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other

HTTP + OTHER

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /picup/createshipment HTTP/1.1 
Host: api.1fetch.co.za 
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length

{"ApiKey":"String","courier_request":{"bucket_details":{"delivery_date":"0001-01-01T00:00:00.0000000+00:00"},"shipments":[{"waybill_number":"String","business_reference":"String","service_type":"String","sender":{"address":{"address_line_1":"String","address_line_2":"String","address_line_3":"String","address_line_4":"String","city":"String","formatted_address":"String","latitude":0,"longitude":0,"postal_code":"String","suburb":"String","unit":"String","building":"String"},"contact":{"customer_name":"String","customer_phone":"String","email_address":"String","special_instructions":"String"}},"receiver":{"parcels":[{"parcel_waybill":"String","parcel_reference":"String","tracking_number":"String","length_mm":0,"width_mm":0,"height_mm":0,"weight_kg":0}],"address":{"address_line_1":"String","address_line_2":"String","address_line_3":"String","address_line_4":"String","city":"String","formatted_address":"String","latitude":0,"longitude":0,"postal_code":"String","suburb":"String","unit":"String","building":"String"},"contact":{"customer_name":"String","customer_phone":"String","email_address":"String","special_instructions":"String"}}}]}}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

{"is_success":false,"courier_reference":"String","error":"String","Waypoints":[{}],"WaypointValidations":[{}],"Waybill":"String"}