Services
GET /api/customer/apc-delivery-services
Returns a list of available APC delivery services for your account.
- URL:
https://parcelconnect.apc-pli.com/api/customer/apc-delivery-services - Auth: HTTP Basic — see Authentication.
Request
- cURL
- Node.js
- Python
curl -X GET -H "Authorization: Basic {{basic_token}}" \
"https://parcelconnect.apc-pli.com/api/customer/apc-delivery-services"
// Requires Node.js 18+ (built-in fetch).
const auth = Buffer
.from(`${process.env.APC_ACCOUNT_NUMBER}:${process.env.APC_PASSCODE}`)
.toString("base64");
const res = await fetch(
"https://parcelconnect.apc-pli.com/api/customer/apc-delivery-services",
{ headers: { Authorization: `Basic ${auth}` } }
);
const services = await res.json();
for (const svc of services) {
console.log(svc.code, svc.serviceName, svc.serviceDescription);
}
import os
import requests
resp = requests.get(
"https://parcelconnect.apc-pli.com/api/customer/apc-delivery-services",
auth=(os.environ["APC_ACCOUNT_NUMBER"], os.environ["APC_PASSCODE"]),
)
resp.raise_for_status()
for svc in resp.json():
print(svc["code"], svc["serviceName"], svc["serviceDescription"])
Response
[
{ "serviceName": "APC.PRIPDC", "code": 26, "serviceDescription": "APC Priority DDP w/ DC" },
{ "serviceName": "APC.PRIUDC", "code": 23, "serviceDescription": "APC Priority DDU w/ DC" },
{ "serviceName": "APC.PRIU", "code": 22, "serviceDescription": "APC Priority DDU" }
]
Response fields
| Field | Type | Description |
|---|---|---|
serviceName | string | Service identifier used in the Label serviceCode field (e.g., APC.PRIPDC). |
code | integer | Numeric service code used in the Rate service parameter. |
serviceDescription | string | Human-readable service description. |