View an Order

HTTP Request

GET /v1/orders/{orderId}?clientId={clientId}

Summary

This operation retrieves an order.

Request URLs

Sandbox: https://shipping-api-sandbox.pitneybowes.com/shippingservices/fulfillment/v1/orders/{orderId}?clientId={clientId}
Production: https://shipping-api.pitneybowes.com/shippingservices/fulfillment/v1/orders/{orderId}?clientId={clientId}

Path Parameter

Name

Description

orderId


Required. The order ID assigned by Pitney Bowes.

Query Parameters

Name

Description

clientId

Required. The client ID assigned by Pitney Bowes.

brand

The manufacturer’s brand name for the item.

Request Headers

Name


Description

Authorization

Required. OAuth token generated using the Generate an OAuth Token API.

X-PB-TransactionId

Required. A unique identifier for the request, up to 25 characters. The following characters are allowed: letters, numbers, hyphens (-), and underscores (_).

Important: Ensure this is a unique ID.

Response Elements

Name

Data Type

Description

clientId

String

The client ID assigned by Pitney Bowes.

clientOrderId

String

The order ID assigned by the client, up to 50 characters.

orderId

String

The order ID assigned by Pitney Bowes.

customerOrderId

String

The customer-specific order number. Typically this is the order number from the website or ERP system, up to 50 characters.

brand

String

The manufacturer’s brand name for the item, up to 50 characters.

references

Array[Object]

Additional reference information for the order. Each object in the array is a name-value pair that defines a reference field and value.

references.name

String

The name of the reference field, up to 50 characters.

references.values

String

The value, up to 255 characters

salesChannel

Object

Reserved for future use.

inputShippingDetails

Shipping Details Object

The requested shipping-service details for the order.

actualShippingDetails

Shipping Details Object

The actual shipping-service details set during processing of the order.

orderType

String

The type of order. Possible values:

  • eCom (default)

  • Retail

createDate

String

The date and time the order was created in the client system, specified in the ISO 8601 format: YYYY-MM-DDThh:mm:ssZ

updateDate

String

The date and time the order was updated in the client system, specified in the ISO 8601 format: YYYY-MM-DDThh:mm:ssZ

pbCreateDate

String

The date and time the order was created in the Pitney Bowes system, returned in the ISO 8601 format: YYYY-MM-DDThh:mm:ssZ

pbUpdateDate

String

The date and time the order was updated in the Pitney Bowes system, returned in the ISO 8601 format: YYYY-MM-DDThh:mm:ssZ

fromNode

String

The warehouse facility ID.

shipOnDate

String

The date and time by which the order is promised to be shipped, specified in the ISO 8601 format: YYYY-MM-DDThh:mm:ssZ

fulfillmentReleaseDate

String

The date and time the order is to be released for fulfillment, specified in the ISO 8601 format: YYYY-MM-DDThh:mm:ssZ

promisedDeliveryDate

String

The date and time the order is promised to be delivered, specified in the ISO 8601 format: YYYY-MM-DDThh:mm:ssZ

orderHandling

String

Possible value:

  • X: Normal (default)

  • R: Rush order (Reserved for future use)

  • E: Emergency order (Reserved for future use)

orderLines

Array[Order Lines Object]

The items included in the order.

orderCharges

Order Charges Object

Cost details.

toAddress

Address Object

The order’s destination address.

billingAddress

Address Object

The order’s billing address.

isGift

Boolean

If true, the order is a gift.

giftMessageText

String

The gift message to be printed on the pack slip and included in the shipment, up to 1,024 characters.

valueAddedServices

Array[Object]

Reserved for future use.

paymentDetails

Array[Object]

Reserved for future use.

customsInfo

Object

Customs information for an international order.

customsInfo.customsDeclaredValue

Number

The value that is declared in customs.

customsInfo.importerCustomsReference

String

A reference number used by the importer, such as a VAT number, PO number, or insured number, up to 100 characters.

customsInfo.importerCustomsReferenceType

String

The type of reference number, up to 50 characters.

status

String

Status of the order. Possible values are:

  • BACKORDER

  • CANCELED

  • HOLD

  • INPROGRESS

  • ONHOLD

  • RECEIVED

  • RETURNED

  • SHIPPED

isOnHold

Boolean

If true, the order is on hold.

holdReason

Array[String]

Reason codes for the hold.

internalNotes

String

Any notes associated with the order for internal reference, up to 255 characters.

dropShipInfo

Object

The billing address.

dropShipInfo.companyName

String

Name of the company, up to 50 characters.

dropShipInfo.address

String

Street address or P.O. Box, up to 100 characters.

dropShipInfo.city

String

The city or town.

dropShipInfo.state

String

The state or province.

dropShipInfo.postalCode

String

The postal code or ZIP code.

Sample Request

curl -X GET ".../v1/orders/ORA0000554970344591364US?clientId=1234" \
-H "Authorization: Bearer <oauth_token>" \
-H "X-PB-TransactionId: <unique_identifier>"

Sample Response

{
    "clientId": "1234",
    "clientOrderId": "NEW-ORD-0005",
    "orderId": "ORA0000554970344591364US",
    "customerOrderId": "CUSTOM-ORD-5",
    "references": [],
    "inputShippingDetails": {
        "carrier": "PITNEY BOWES",
        "serviceId": "NGSPS",
        "serviceName": "Newgistics Parcel Select",
        "trackingNumber": "95605332216"
    },
    "actualShippingDetails": {
        "carrier": "NGS",
        "serviceId": "NGSPS",
        "serviceName": "Newgistics Parcel Select"
    },
    "orderType": "eCom",
    "createDate": "2022-01-06T07:03:09-07:00",
    "updateDate": "2022-01-06T07:03:09-07:00",
    "pbCreateDate": "2022-01-06T07:03:09-07:00",
    "pbUpdateDate": "2022-01-06T07:03:09-07:00",
    "fromNode": "160",
    "shipOnDate": "2022-01-08T07:03:09-07:00",
    "fulfillmentReleaseDate": "2022-01-08T07:03:09-07:00",
    "promisedDeliveryDate": "2022-01-08T07:03:09-07:00",
    "orderHandling": "X",
    "orderLines": [ {
        "lineId": 1,
        "sku": "1642787722",
        "originCountryCode": "US",
        "originStateProvince": "CT",
        "unitPrice": 10.0000,
        "hSTariffCode": "HSCode",
        "hSTariffCodeCountry": "IND",
        "orderedQuantity": 1,
        "lineTotal": 50.0000,
        "inventoryType": "NEW"
    } ],
    "orderCharges": {
        "orderCurrency": "USD",
        "shippingAmount": 14.0000,
        "totalItemAmount": 74.0000,
        "totalDutyAmount": 5.0000,
        "dutyDetails": [ {
            "name": "SUPPLIER_FEE2",
            "fee": 0.0000
        } ],
        "totalTaxAmount": 5.0000,
        "taxDetails": [ {
            "name": "SUPPLIER_FEE2",
            "fee": 0.0000
        } ],
        "totalDiscountAmount": 5.0000,
        "discountDetails": [ {
            "name": "SUPPLIER_FEE2",
            "fee": 0.0000
        } ],
        "otherChargeDetails": [ {
            "name": "SUPPLIER_FEE2",
            "fee": 0.0000
        } ],
        "totalOrderAmount": 94.0000
    },
    "toAddress": {
        "name": "Smith",
        "company": "ABC Co",
        "phone": "111-111-1111",
        "email": "smith@example.com",
        "addressLines": [
            "Street NW10"
        ],
        "cityTown": "Auburn",
        "stateProvince": "AL",
        "postalCode": "36830",
        "countryCode": "US"
    },
    "billingAddress": {
        "name": "Smith",
        "company": "ABC Co",
        "phone": "111-111-1111",
        "email": "smith@example.com",
        "addressLines": [
            "Street NW10"
        ],
        "cityTown": "Auburn",
        "stateProvince": "AL",
        "postalCode": "36830",
        "countryCode": "US"
    },
    "isGift": false,
    "status": "RECEIVED",
    "isOnHold": false
}

Error Codes

For lists of error codes returned by the Fulfillment APIs, please see 80-Prefix Error Codes (Fulfillment APIs).