Using the Pickup API, applications can schedule pickups, manage previously scheduled pickups, or cancel previously scheduled pickups.
Pickup Rate
Using the POST operation of the pickuptype endpoint within the Pickup API, users can request rates for UPS on-demand package pickup. The endpoint allows users to specify pickup details like address, date/time, and other options, and returns pricing information for booking that pickup.
path Parameters
header Parameters
Request Body schema: application/json
Generate sample code for popular API requests by selecting an example below. To view a full sample request and response, first click "Authorize" and enter your application credentials, then populate the required parameters above and click "Try it out".
successful operation
Invalid Request
Unauthorized Request
Blocked Merchant
Rate Limit Exceeded
- Payload
- curl
- Node.js
- JavaScript
- PHP
- Python
- C#
- Java
{- "PickupRateRequest": {
- "PickupAddress": {
- "AddressLine": "315 Saddle Bridge Drive",
- "City": "Allendale",
- "StateProvince": "NJ",
- "PostalCode": "07401",
- "CountryCode": "US",
- "ResidentialIndicator": "Y"
}, - "AlternateAddressIndicator": "N",
- "ServiceDateOption": "02",
- "PickupDateInfo": {
- "CloseTime": "2000",
- "ReadyTime": "900",
- "PickupDate": "20160405"
}
}
}
- 200
- 400
- 401
- 403
- 429
{- "PickupRateResponse": {
- "Response": {
- "ResponseStatus": {
- "Code": "s",
- "Description": "string"
}, - "Alert": [
- {
- "Code": "string",
- "Description": "string"
}
], - "TransactionReference": {
- "CustomerContext": "string"
}
}, - "RateResult": {
- "Disclaimer": {
- "Code": "st",
- "Description": "string"
}, - "RateType": "st",
- "CurrencyCode": "str",
- "ChargeDetail": [
- {
- "ChargeCode": "s",
- "ChargeDescription": "string",
- "ChargeAmount": "stringst",
- "IncentedAmount": "stringst",
- "TaxAmount": "stringst"
}
], - "TaxCharges": [
- {
- "Type": "str",
- "MonetaryValue": "stringst"
}
], - "TotalTax": "stringst",
- "GrandTotalOfAllCharge": "stringst",
- "GrandTotalOfAllIncentedCharge": "string",
- "PreTaxTotalCharge": "stringst",
- "PreTaxTotalIncentedCharge": "string"
}, - "WeekendServiceTerritoryIndicator": "s",
- "WeekendServiceTerritory": {
- "SatWST": "s",
- "SunWST": "s"
}
}
}
Pickup Pending Status
Using the GET operation of the pickuptype endpoint within the Pickup API, users can retrieve the status of shipments sent via UPS pickup service. The endpoint uses the account number as a required parameter and returns a status of received/dispatched/completed/incomplete/updated ETA, or cancelled.
path Parameters
successful operation
Invalid Request
Unauthorized Request
Blocked Merchant
Rate Limit Exceeded
- curl
- Node.js
- JavaScript
- PHP
- Python
- C#
- Java
- 200
- 400
- 401
- 403
- 429
{- "PickupPendingStatusResponse": {
- "Response": {
- "ResponseStatus": {
- "Code": "s",
- "Description": "string"
}, - "Alert": [
- {
- "Code": "string",
- "Description": "string"
}
], - "TransactionReference": {
- "CustomerContext": "string"
}
}, - "PendingStatus": [
- {
- "PickupType": "st",
- "ServiceDate": "stringst",
- "PRN": "stringstrin",
- "GWNStatusCode": "st",
- "OnCallStatusCode": "str",
- "PickupStatusMessage": "string",
- "BillingCode": "st",
- "ContactName": "string",
- "ReferenceNumber": "string"
}
]
}
}
Pickup Cancel
Using the CancelBy endpoint of the Pickup API, users can request cancellation of a UPS on-demand package pickup. When the PRN (pickup request number), transaction ID, and the transaction source are supplied as required parameters, the endpoint returns confirmation that the pickup has been cancelled.
path Parameters
header Parameters
successful operation
Invalid Request
Unauthorized Request
Blocked Merchant
Rate Limit Exceeded
- curl
- Node.js
- JavaScript
- PHP
- Python
- C#
- Java
- 200
- 400
- 401
- 403
- 429
{- "PickupCancelResponse": {
- "Response": {
- "ResponseStatus": {
- "Code": "s",
- "Description": "string"
}, - "Alert": [
- {
- "Code": "string",
- "Description": "string"
}
], - "TransactionReference": {
- "CustomerContext": "string"
}
}, - "PickupType": "st",
- "GWNStatus": {
- "Code": "str",
- "Description": "string"
}
}
}
Pickup Creation
Using the Pickup API, applications can schedule pickups, manage previously scheduled pickups, or cancel previously scheduled pickups.
header Parameters
Request Body schema: application/json
Generate sample code for popular API requests by selecting an example below. To view a full sample request and response, first click "Authorize" and enter your application credentials, then populate the required parameters above and click "Try it out".
required | object (PickupCreationRequest) <= 1 This request is for scheduling an on-call pickup | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
successful operation
Invalid Request
Unauthorized Request
Blocked Merchant
Rate Limit Exceeded
- Payload
- curl
- Node.js
- JavaScript
- PHP
- Python
- C#
- Java
{- "PickupCreationRequest": {
- "RatePickupIndicator": "N",
- "Shipper": {
- "Account": {
- "AccountNumber": "ShipperNumber",
- "AccountCountryCode": "US"
}
}, - "PickupDateInfo": {
- "CloseTime": "1400",
- "ReadyTime": "0500",
- "PickupDate": "20221214"
}, - "PickupAddress": {
- "CompanyName": "Pickup Proxy",
- "ContactName": "Pickup Manager",
- "AddressLine": "123 Main Street",
- "Room": "R01",
- "Floor": "2",
- "City": "Allendale",
- "StateProvince": "NJ",
- "Urbanization": "",
- "PostalCode": "07401",
- "CountryCode": "US",
- "ResidentialIndicator": "Y",
- "PickupPoint": "Lobby",
- "Phone": {
- "Number": "5555555555",
- "Extension": "911"
}
}, - "AlternateAddressIndicator": "Y",
- "PickupPiece": [
- {
- "ServiceCode": "001",
- "Quantity": "27",
- "DestinationCountryCode": "US",
- "ContainerCode": "01"
}, - {
- "ServiceCode": "012",
- "Quantity": "4",
- "DestinationCountryCode": "US",
- "ContainerCode": "01"
}
], - "TotalWeight": {
- "Weight": "5.5",
- "UnitOfMeasurement": "LBS"
}, - "OverweightIndicator": "N",
- "PaymentMethod": "01",
- "SpecialInstruction": "Test ",
- "ReferenceNumber": "CreatePickupRef"
}
}
- 200
- 400
- 401
- 403
- 429
{- "PickupCreationResponse": {
- "Response": {
- "ResponseStatus": {
- "Code": "s",
- "Description": "string"
}, - "Alert": [
- {
- "Code": "string",
- "Description": "string"
}
], - "TransactionReference": {
- "CustomerContext": "string"
}
}, - "PRN": "stringstrin",
- "WeekendServiceTerritory": {
- "SatWST": "s",
- "SunWST": "s"
}, - "WeekendServiceTerritoryIndicator": "s",
- "RateStatus": {
- "Code": "st",
- "Description": "string"
}, - "RateResult": {
- "Disclaimer": {
- "Code": "st",
- "Description": "string"
}, - "RateType": "st",
- "CurrencyCode": "str",
- "ChargeDetail": [
- {
- "ChargeCode": "s",
- "ChargeDescription": "string",
- "ChargeAmount": "stringst",
- "IncentedAmount": "stringst",
- "TaxAmount": "stringst"
}
], - "TaxCharges": [
- {
- "Type": "str",
- "MonetaryValue": "stringst"
}
], - "TotalTax": "stringst",
- "GrandTotalOfAllCharge": "stringst",
- "GrandTotalOfAllIncentedCharge": "string",
- "PreTaxTotalCharge": "stringst",
- "PreTaxTotalIncentedCharge": "string"
}
}
}
Pickup Get Political Division1 List
The countrycode endpoint of the Pickup API helps retrieve a list of political divisions (states) in a specified country or territory.
path Parameters
successful operation
Invalid Request
Unauthorized Request
Blocked Merchant
Rate Limit Exceeded
- curl
- Node.js
- JavaScript
- PHP
- Python
- C#
- Java
- 200
- 400
- 401
- 403
- 429
{- "PickupGetPoliticalDivision1ListResponse": {
- "Response": {
- "ResponseStatus": {
- "Code": "s",
- "Description": "string"
}, - "Alert": [
- {
- "Code": "string",
- "Description": "string"
}
], - "TransactionReference": {
- "CustomerContext": "string"
}
}, - "PoliticalDivision1": [
- "string"
]
}
}
Pickup Get Service Center Facilities
The servicecenterlocations endpoint of the Pickup API helps retrieve service center information in a specified area - including location address, phone number, SLIC (Standard Location Identification Code), and hours of operation for pick-up and drop-off requests
header Parameters
Request Body schema: application/json
Generate sample code for popular API requests by selecting an example below. To view a full sample request and response, first click "Authorize" and enter your application credentials, then populate the required parameters above and click "Try it out".
required | object (PickupGetServiceCenterFacilitiesRequest) <= 1 This request is to retrieve UPS Facility location information including location address, phone number, SLIC, and hours of operation for pick-up and drop-off requests | ||||||||||||||||||||||||||||||||||||||||||
|
successful operation
Invalid Request
Unauthorized Request
Blocked Merchant
Rate Limit Exceeded
- Payload
- curl
- Node.js
- JavaScript
- PHP
- Python
- C#
- Java
{- "PickupGetServiceCenterFacilitiesRequest": {
- "PickupPiece": {
- "ServiceCode": "096",
- "ContainerCode": "03"
}, - "DestinationAddress": {
- "City": "Allendale",
- "StateProvince": "NJ",
- "PostalCode": "07401",
- "CountryCode": "US"
}, - "ProximitySearchIndicator": "",
- "Locale": "en_HK"
}
}
- 200
- 400
- 401
- 403
- 429
{- "PickupGetServiceCenterFacilitiesResponse": {
- "Response": {
- "ResponseStatus": {
- "Code": "s",
- "Description": "string"
}, - "Alert": [
- {
- "Code": "string",
- "Description": "string"
}
], - "TransactionReference": {
- "CustomerContext": "string"
}
}, - "ServiceCenterLocation": {
- "DropOffFacilities": [
- {
- "Name": "string",
- "Address": {
- "AddressLine": [
- "string"
], - "City": "string",
- "StateProvince": "string",
- "PostalCode": "stringst",
- "CountryCode": "str",
- "ResidentialIndicator": "s"
}, - "SLIC": "strin",
- "Type": "str",
- "Timezone": "string",
- "Phone": "stringstri",
- "Fax": "stringstri",
- "FacilityTime": {
- "DayOfWeek": [
- {
- "Day": null,
- "EarliestDropOfforPickup": null,
- "LatestDropOfforPickup": null,
- "OpenHours": null,
- "CloseHours": null,
- "PrepTime": null,
- "LastDrop": null
}
]
}, - "OriginOrDestination": "string",
- "LocalizedInstruction": [
- {
- "Locale": "strin",
- "Last50ftInstruction": "string"
}
], - "Distance": {
- "Value": "string",
- "UnitOfMeasurement": "st"
}
}
], - "PickupFacilities": {
- "Name": "string",
- "Address": {
- "AddressLine": "string",
- "City": "string",
- "StateProvince": "string",
- "PostalCode": "string",
- "CountryCode": "st",
- "ResidentialIndicator": "s"
}, - "SLIC": "strin",
- "Type": "str",
- "Timezone": "string",
- "Phone": "stringstri",
- "Fax": "stringstri",
- "FacilityTime": {
- "DayOfWeek": [
- {
- "Day": "stringstri",
- "EarliestDropOfforPickup": "stringstri",
- "LatestDropOfforPickup": "stringstri",
- "OpenHours": "stringstringstringst",
- "CloseHours": "stringstringstringst",
- "PrepTime": "stringstringstringst",
- "LastDrop": "stringstringstringst"
}
]
}, - "AirportCode": "str",
- "SortCode": "st"
}
}
}
}
Pickup CancelDeprecated
Using the CancelBy endpoint of the Pickup API, users can request cancellation of a UPS on-demand package pickup. When the PRN (pickup request number), transaction ID, and the transaction source are supplied as required parameters, the endpoint returns confirmation that the pickup has been cancelled.
path Parameters
header Parameters
successful operation
Invalid Request
Unauthorized Request
Blocked Merchant
Rate Limit Exceeded
- curl
- Node.js
- JavaScript
- PHP
- Python
- C#
- Java
- 200
- 400
- 401
- 403
- 429
{- "PickupCancelResponse": {
- "Response": {
- "ResponseStatus": {
- "Code": "s",
- "Description": "string"
}, - "Alert": [
- {
- "Code": "string",
- "Description": "string"
}
], - "TransactionReference": {
- "CustomerContext": "string"
}
}, - "PickupType": "st",
- "GWNStatus": {
- "Code": "str",
- "Description": "string"
}
}
}
Pickup CreationDeprecated
Using the Pickup API, applications can schedule pickups, manage previously scheduled pickups, or cancel previously scheduled pickups.
path Parameters
header Parameters
Request Body schema: application/json
Generate sample code for popular API requests by selecting an example below. To view a full sample request and response, first click "Authorize" and enter your application credentials, then populate the required parameters above and click "Try it out".
required | object (PickupCreationRequest) <= 1 This request is for scheduling an on-call pickup | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
successful operation
Invalid Request
Unauthorized Request
Blocked Merchant
Rate Limit Exceeded
- Payload
- curl
- Node.js
- JavaScript
- PHP
- Python
- C#
- Java
{- "PickupCreationRequest": {
- "RatePickupIndicator": "N",
- "Shipper": {
- "Account": {
- "AccountNumber": "ShipperNumber",
- "AccountCountryCode": "US"
}
}, - "PickupDateInfo": {
- "CloseTime": "1400",
- "ReadyTime": "0500",
- "PickupDate": "20221214"
}, - "PickupAddress": {
- "CompanyName": "Pickup Proxy",
- "ContactName": "Pickup Manager",
- "AddressLine": "123 Main Street",
- "Room": "R01",
- "Floor": "2",
- "City": "Allendale",
- "StateProvince": "NJ",
- "Urbanization": "",
- "PostalCode": "07401",
- "CountryCode": "US",
- "ResidentialIndicator": "Y",
- "PickupPoint": "Lobby",
- "Phone": {
- "Number": "5555555555",
- "Extension": "911"
}
}, - "AlternateAddressIndicator": "Y",
- "PickupPiece": [
- {
- "ServiceCode": "001",
- "Quantity": "27",
- "DestinationCountryCode": "US",
- "ContainerCode": "01"
}, - {
- "ServiceCode": "012",
- "Quantity": "4",
- "DestinationCountryCode": "US",
- "ContainerCode": "01"
}
], - "TotalWeight": {
- "Weight": "5.5",
- "UnitOfMeasurement": "LBS"
}, - "OverweightIndicator": "N",
- "PaymentMethod": "01",
- "SpecialInstruction": "Test ",
- "ReferenceNumber": "CreatePickupRef"
}
}
- 200
- 400
- 401
- 403
- 429
{- "PickupCreationResponse": {
- "Response": {
- "ResponseStatus": {
- "Code": "s",
- "Description": "string"
}, - "Alert": [
- {
- "Code": "string",
- "Description": "string"
}
], - "TransactionReference": {
- "CustomerContext": "string"
}
}, - "PRN": "stringstrin",
- "WeekendServiceTerritory": {
- "SatWST": "s",
- "SunWST": "s"
}, - "WeekendServiceTerritoryIndicator": "s",
- "RateStatus": {
- "Code": "st",
- "Description": "string"
}, - "RateResult": {
- "Disclaimer": {
- "Code": "st",
- "Description": "string"
}, - "RateType": "st",
- "CurrencyCode": "str",
- "ChargeDetail": [
- {
- "ChargeCode": "s",
- "ChargeDescription": "string",
- "ChargeAmount": "stringst",
- "IncentedAmount": "stringst",
- "TaxAmount": "stringst"
}
], - "TaxCharges": [
- {
- "Type": "str",
- "MonetaryValue": "stringst"
}
], - "TotalTax": "stringst",
- "GrandTotalOfAllCharge": "stringst",
- "GrandTotalOfAllIncentedCharge": "string",
- "PreTaxTotalCharge": "stringst",
- "PreTaxTotalIncentedCharge": "string"
}
}
}