# Search Orders by OrderID

This operation returns a list of orders that match the provided search criteria.

Endpoint: POST /api/v1/orders/search
Version: 1.0.0
Security: bearerAuth

## Security:

  - `bearerAuth` (unknown)
    http bearer

## Request fields (application/json):

  - `filters` (array)
    Searches for orders based on the provided filter criteria.
Use this request to retrieve one or more orders by orderId.

  - `filters.name` (string, required)
    Filter field name.
    Example: orderId

  - `filters.value` (array, required)
    List of values for the specified filter.
    Example: ["PBqTYEhO31JY"]

  - `page` (integer)
    Zero-based page index to fetch.
Example: `0` for the first page, `1` for the second, etc.

  - `size` (integer)
    Number of records per page. Choose a value that balances payload size and latency.

## Response 200:

  - `200` (unknown)
    Requested order has been retrived sucessfully.

## Response 200 fields (application/json):

  - `orders` (array)
    List of orders that match the query criteria.

  - `orders.orderInfo` (object)
    Order details and metadata.

  - `orders.orderInfo.orderId` (string)
    System-generated unique identifier for the order.
    Example: PBqTYEhO31JY

  - `orders.orderInfo.orderNumber` (string)
    Client provided order number.
    Example: ORD123456

  - `orders.orderInfo.status` (string)
    Current status of the order.
    Example: UNFULFILLED

  - `orders.orderInfo.orderCreateDate` (string)
    Date and time when the order was created.
    Example: 0001-01-01T00:00:00Z

  - `orders.orderInfo.sourceFlowType` (string)
    Channel through which the order was created.
    Example: API

  - `orders.orderInfo.createdBy` (string)
    Identifier of the user that created the order.
    Example: 0oa2hlagtvtaETd8x0h8

  - `orders.orderInfo.customerInfo` (object)
    End customer (buyer) profile for communication.

  - `orders.orderInfo.customerInfo.firstName` (string)
    First name of the customer.
    Example: John

  - `orders.orderInfo.customerInfo.lastName` (string)
    Last name of the customer.
    Example: Doe

  - `orders.orderInfo.customerInfo.email` (string)
    Buyer email
    Example: john.doe@example.com

  - `orders.orderInfo.customerInfo.customerId` (string)
    Your CRM/customer key.
    Example: CUST12345

  - `orders.orderInfo.orderMessage` (object)
    An optional message added to an order, such as a gift note or a short greeting.

  - `orders.orderInfo.orderMessage.type` (string)
    The type for the message.
    Enum: "ANNIVERSARY", "BIRTHDAY", "GIFT"

  - `orders.orderInfo.orderMessage.message` (string)
    The message text shown with the order.
Maximum length is 200 characters.
    Example: Happy Birthday! Enjoy your gift.

  - `orders.orderInfo.items` (array)
    List of items in the order. To create an order, minimum one item is required.

  - `orders.orderInfo.items.customsProductId` (string)
    Use this identifier to prefill customs item fields (HS tariff code, origin country, unit price, weight, quantity).
Generate custom product identifier using [Add Customs Product](/openapi/customproduct/customs-product/addcustomsproduct) API.
> Note: When creating an order, either provide customsProductId or individual values of an item within the item object.

  - `orders.orderInfo.items.regulatoryDetail` (object)
    "Regulatory information for EU De Minimis and CPSC compliance.
Applicable fields depend on the selected exemptionIndicator value and the regulatory program being used."
For more details on compliance refer to:
- [EU De Minimis](https://docs.sendpro360.pitneycloud.com/docs/compliance/eu-de-minimis)
- [CPSC](https://docs.sendpro360.pitneycloud.com/docs/compliance/cpsc)

  - `orders.orderInfo.items.regulatoryDetail.exemptionIndicator` (string)
    Indicates the applicable regulatory filing type.
**Supported Values**
1. EU De Minimis

- exempted
- nonexempted

1. CPSC eFiling

- registered
- disclaimA
- disclaimB
    Example: exempted

  - `orders.orderInfo.items.regulatoryDetail.standardManufacturerProductId` (string)
    Standard manufacturer product identifier used for EU De Minimis compliance.
    Example: StdProdId

  - `orders.orderInfo.items.regulatoryDetail.nonStandardManufacturerProductId` (string)
    Non-standard manufacturer product identifier used for EU De Minimis compliance.
    Example: nonStdProdId

  - `orders.orderInfo.items.regulatoryDetail.registryProductId` (string)
    Product identifier assigned through the CPSC Product Registry. Required when `exemptionIndicator` is set to `registered`.
    Example: RegProdId007

  - `orders.orderInfo.items.regulatoryDetail.productVersion` (string)
    Product version identifier assigned through the CPSC Product Registry. Required when `exemptionIndicator` is set to `registered`.
    Example: ProdVer007

  - `orders.orderInfo.items.regulatoryDetail.intendedUseCode` (string)
    Intended use classification code for CPSC disclaimer filings. Required when `exemptionIndicator` is set to `disclaimA` or `disclaimB`.
**Supported Values**
| Field | Value | Description |
|  --- | --- | --- |
| disclaimB | 130.006 | Consumer product intended for people aged 13 years or older |
| disclaimA | 081.XXX | For Human Medical Use as a Medical Device |
| disclaimA | 090.XXX | For Military Use as a Non-Food Product |
| disclaimA | 100.XXX | For Personal Use as a Non-Food Product |
| disclaimA | 130.XXX | For Consumer Use (other than standard adult goods) |
| disclaimA | 155.XXX | For Commercial Assembly as a Non-Food Product |
| disclaimA | 970.XXX | For Export |
| disclaimA | 980.000 | Other Use |
    Example: 100.XXX

  - `orders.orderInfo.items.regulatoryDetail.intendedUseDescription` (string)
    Description associated with the intended use code. Recommended when intendedUseCode is 980.000.
    Example: Internal product

  - `orders.orderInfo.items.regulatoryDetail.certifierId` (string)
    Certifier identifier assigned through the CPSC Product Registry. Required when `exemptionIndicator` is set to `registered`.
    Example: CertID007

  - `orders.orderInfo.items.itemId` (string, required)
    This is the unique identifier for the commodity (for example: sku).
    Example: item1234

  - `orders.orderInfo.items.itemIdType` (string)
    Type of identifier provided in itemId.
    Enum: "SKU", "PART_NUMBER", "GTIN", "UPC", "EAN", "MPN"

  - `orders.orderInfo.items.url` (string)
    Commodity URL on merchant site.
    Example: https://example.com/products/wireless-mouse

  - `orders.orderInfo.items.description` (string)
    Detailed description of the commodity.
    Example: Wireless mouse with USB receiver

  - `orders.orderInfo.items.hSTariffCode` (string)
    Destination country's tariff-classification number for the commodity (HS tariff code). Max length: 14.
    Example: 847160

  - `orders.orderInfo.items.hSTariffCodeCountry` (string)
    ISO 3166-1 alpha-2 country code supplying the HS code. Required if hSTariffCode is used.
    Example: US

  - `orders.orderInfo.items.originCountryCode` (string)
    ISO 3166-1 alpha-2 country code where the order is originated.
    Example: US

  - `orders.orderInfo.items.originStateProvince` (string)
    ISO 3166-1 alpha-2 state code of the country where the order is originated.

  - `orders.orderInfo.items.quantity` (integer)
    Total number of items of this commodity.
    Example: 2

  - `orders.orderInfo.items.unitPrice` (number)
    Price of one item of this commodity. Currency is declared under customsInfo.
    Example: 25

  - `orders.orderInfo.items.weight` (number)
    Required. The parcel's weight.
    Example: 12.5

  - `orders.orderInfo.items.weightUnit` (string)
    Weight and unit of measure of one item of the commodity.
    Enum: "OZ", "GM"

  - `orders.orderInfo.charges` (object)
    Financials and tender type information for the order.

  - `orders.orderInfo.charges.currency` (string)
    Currency used for payment (ISO 4217 format).
    Example: USD

  - `orders.orderInfo.charges.billingStatus` (string)
    Current billing status of the order (e.g., PAID, PENDING)
    Example: Paid

  - `orders.orderInfo.charges.gmv` (number)
    Gross merchandise value of all items before discounts, tax, and shipping.
    Example: 100

  - `orders.orderInfo.charges.subTotal` (number)
    Subtotal amount of the order before shipping and taxes.
    Example: 90

  - `orders.orderInfo.charges.totalPaid` (number)
    Total amount paid for the order.
    Example: 100

  - `orders.orderInfo.charges.paymentType` (string)
    Type of payment used for the order (e.g., credit_card, COD).
    Example: Credit Card

  - `orders.orderShippingInfo` (object)

  - `orders.orderShippingInfo.shippingReference` (object)
    Contains additional reference fields that can be passed with the request.

  - `orders.orderShippingInfo.shippingReference.reference1` (string)
    Primary reference field, printed on the coversheet under the label `Shipper Ref`.
    Example: reference1

  - `orders.orderShippingInfo.shippingReference.reference2` (string)
    Secondary reference field.
    Example: reference2

  - `orders.orderShippingInfo.shippingReference.reference3` (string)
    Tertiary reference field.
    Example: reference3

  - `orders.orderShippingInfo.shippingReference.reference4` (string)
    Additional reference field.
    Example: reference4

  - `orders.orderShippingInfo.shippingReference.shipperReference` (string)
    Reference provided by the shipper.
    Example: Shipper123

  - `orders.orderShippingInfo.shippingReference.transportationReference` (string)
    Reference related to transportation.
    Example: TransRef2025

  - `orders.orderShippingInfo.shippingReference.shippingNotes` (string)
    Optional notes from the shipper.
    Example: Handle with care

  - `orders.orderShippingInfo.shippingPreferences` (object)
    Shipping-related preferences for an order.

  - `orders.orderShippingInfo.shippingPreferences.carrier` (string)
    Carrier selected for shipping the order.
    Example: UPS

  - `orders.orderShippingInfo.shippingPreferences.parcelId` (string)
    Identifier of the parcel used for shipment for the order.
    Example: PKG-001

  - `orders.orderShippingInfo.shippingPreferences.parcelType` (string)
    Type of parcel used for shipping.
    Example: PKG

  - `orders.orderShippingInfo.shippingPreferences.service` (string)
    Shipping service selected for the order.
    Example: 2DA

  - `orders.orderShippingInfo.shippingPreferences.parcel` (object)
    The details of the Parcel.

  - `orders.orderShippingInfo.shippingPreferences.parcel.length` (number)
    Length is always the greatest of the three dimensions. The other two dimensions are used in the calculation of the girth.
    Example: 2

  - `orders.orderShippingInfo.shippingPreferences.parcel.width` (number)
    There is no strict rule as to which element is the width or the height, but the width is the second greatest dimension of a parcel by convention.
    Example: 1

  - `orders.orderShippingInfo.shippingPreferences.parcel.height` (number)
    By convention, the height is the smallest dimension of the parcel.
    Example: 1

  - `orders.orderShippingInfo.shippingPreferences.parcel.dimUnit` (string)
    DimUnit is a standard for measuring the physical quantities of specified dimension parameters. The valid values are: Inch and Centimeter.
    Enum: "IN", "CM"

  - `orders.orderShippingInfo.shippingPreferences.parcel.weightUnit` (string, required)
    WeightUnit is a standard for measuring the physical quantities of specified weight.
    Enum: "OZ", "GM"

  - `orders.orderShippingInfo.shippingPreferences.parcel.weight` (number)
    Weight measures the heaviness of an object (how heavy an object is) .
    Example: 2

  - `orders.orderShippingInfo.shippingPreferences.specialServices` (array)
    It provides a carrier based special or extra service, which also varies as per selected service and parcel type.

  - `orders.orderShippingInfo.shippingPreferences.specialServices.inputParameters` (array)
    > - The parameters to set for the special service, such as an insurance value or a receipt-number format. This is required if the special service requires input parameters. If a special service does not require input parameters, you can either leave out the array or pass an empty array.

  - `orders.orderShippingInfo.shippingPreferences.specialServices.inputParameters.name` (string, required)
    The name of the parameter i.e. key.
    Example: INPUT_VALUE

  - `orders.orderShippingInfo.shippingPreferences.specialServices.inputParameters.value` (string, required)
    > - Parameter value is as per the carrier specifications. It provides blank value, when presence of parameter is sufficient, and no value is associated.
    Example: 100

  - `orders.orderShippingInfo.shippingPreferences.specialServices.specialserviceId` (string)
    A unique identifier associate to the special service, which is to be applied.
    Example: Ins

  - `orders.orderShippingInfo.shippingPreferences.customs` (object)

  - `orders.orderShippingInfo.shippingPreferences.customs.customsInfo` (object)
    Contains customs declaration and regulatory details.

  - `orders.orderShippingInfo.shippingPreferences.customs.customsInfo.certificateNumber` (string)
    Certificate number associated with the shipment, if applicable.
    Example: 98788877

  - `orders.orderShippingInfo.shippingPreferences.customs.customsInfo.comments` (string)
    Additional comments related to the customs declaration.
    Example: string

  - `orders.orderShippingInfo.shippingPreferences.customs.customsInfo.currencyCode` (string)
    Currency code used for customs values, in ISO 4217 format.
    Example: USD

  - `orders.orderShippingInfo.shippingPreferences.customs.customsInfo.customsDeclaredValue` (number)
    Total declared value of the shipment for customs purposes.
    Example: 0

  - `orders.orderShippingInfo.shippingPreferences.customs.customsInfo.EELPFC` (string)
    Electronic Export Information (EEI) or Proof of Filing Citation (PFC).
    Example: NOEEI 30.36

  - `orders.orderShippingInfo.shippingPreferences.customs.customsInfo.fromCustomsReference` (string)
    Customs reference number provided by the shipper.
    Example: 11111

  - `orders.orderShippingInfo.shippingPreferences.customs.customsInfo.importerCustomsReference` (string)
    Customs reference number provided by the importer.
    Example: 987654

  - `orders.orderShippingInfo.shippingPreferences.customs.customsInfo.consigneeType` (string)
    Optional consignee type for international shipments only. Indicates whether the shipment is being delivered to a business or consumer.
    Enum: "BUSINESS", "CONSUMER"

  - `orders.orderShippingInfo.shippingPreferences.customs.customsInfo.shipperType` (string)
    Optional shipper type for international shipments only. Indicates whether the shipment is shipped from a business or consumer.
    Enum: "BUSINESS", "CONSUMER"

  - `orders.orderShippingInfo.shippingPreferences.customs.customsInfo.insuredAmount` (number)
    Insured value of the shipment.
    Example: 0

  - `orders.orderShippingInfo.shippingPreferences.customs.customsInfo.invoiceNumber` (string)
    Commercial invoice number associated with the shipment.
    Example: 001189223

  - `orders.orderShippingInfo.shippingPreferences.customs.customsInfo.licenseNumber` (string)
    Export or import license number, if applicable.
    Example: 456ABC123

  - `orders.orderShippingInfo.shippingPreferences.customs.customsInfo.reasonForExport` (string)
    Reason for exporting the shipment.
    Example: GIFT

  - `orders.orderShippingInfo.shippingPreferences.shipmentProvider` (object)

  - `orders.orderShippingInfo.shippingPreferences.shipmentProvider.shipViaCode` (string)
    Code that identifies the shipping method or carrier routing to be used for the shipment.
    Example: shipViaCode123

  - `orders.orderShippingInfo.shippingPreferences.carrierPayments` (array)
    Defines how carrier charges are billed to a third party. Use this field to specify
account and charge type details for transportation and/or duties and taxes. This
field is optional and currently supported for FedEx, UPS, DHL Express and Purolator.
- If no
`party`
 (who will pay for TRANSPORTATION_CHARGES or duties and taxes) is explicitly specified during shipment creation, the charges will automatically default to the sender (shipper). To direct charges to a different party, the appropriate bill-to details must be provided in the request.
    Example: [{"accountNumber":"602684342","countryCode":"US","postalCode":"30305","party":"BILL_RECEIVER","typeOfCharge":"ALL_CHARGES"}]

  - `orders.orderShippingInfo.shippingPreferences.carrierPayments.accountNumber` (string)
    The FedEx account number of the party to be billed.
    Example: 602684342

  - `orders.orderShippingInfo.shippingPreferences.carrierPayments.countryCode` (string)
    Two-letter ISO country code of the party to be billed.
    Example: US

  - `orders.orderShippingInfo.shippingPreferences.carrierPayments.postalCode` (string)
    Postal code of the party to be billed.
    Example: 30305

  - `orders.orderShippingInfo.shippingPreferences.carrierPayments.party` (string)
    Billing party for the shipment charges.
    Enum: "BILL_RECEIVER", "BILL_SENDER", "BILL_THIRD_PARTY", "BILL_RECEIVER_CONTRACT"

  - `orders.orderShippingInfo.shippingPreferences.carrierPayments.typeOfCharge` (string)
    The type of charge billed to the specified party. Possible values:
- TRANSPORTATION_CHARGES: Transportation-related charges only. When billing transportation charges to the sender (BILL_SENDER), the accountNumber must match the account used to initiate the shipment.
- DUTIES_AND_TAXES: Duties and taxes only
- ALL_CHARGES: All Shipment Charges (Transportatio and Duties and Taxes)Required when using BILL_RECEIVER_CONTRACT (FedEx COLLECT); includes all charges
    Enum: "TRANSPORTATION_CHARGES", "DUTIES_AND_TAXES", "ALL_CHARGES"

  - `orders.orderShippingInfo.shippingPreferences.carrierPayments.accountNumber` (string)
    The UPS account number of the party to be billed.
    Example: 1Z999AA10123456784

  - `orders.orderShippingInfo.shippingPreferences.carrierPayments.party` (string)
    Party to be billed.
    Enum: "BILL_RECEIVER", "BILL_SENDER", "BILL_THIRD_PARTY"

  - `orders.orderShippingInfo.shippingPreferences.carrierPayments.typeOfCharge` (string)
    The type of charge billed to the specified party. UPS requires split charges. ALL_CHARGES is not supported.
    Enum: "TRANSPORTATION_CHARGES", "DUTIES_AND_TAXES"

  - `orders.orderShippingInfo.shippingPreferences.carrierPayments.accountNumber` (string)
    The DHL Express account number of the party to be billed.
    Example: DHL123456

  - `orders.orderShippingInfo.shippingPreferences.carrierPayments.party` (string)
    Billing party for DHL Express. Account number is required for all scenarios.
    Enum: "BILL_RECEIVER", "BILL_SENDER", "BILL_THIRD_PARTY", "BILL_RECEIVER_CONTRACT"

  - `orders.orderShippingInfo.shippingPreferences.carrierPayments.typeOfCharge` (string)
    The type of charge billed to the specified party.
    Enum: "TRANSPORTATION_CHARGES", "DUTIES_AND_TAXES", "ALL_CHARGES"

  - `orders.orderShippingInfo.shippingPreferences.shipmentOptions` (object)
    Additional shipment options.

  - `orders.orderShippingInfo.shippingPreferences.shipmentOptions.packageDescription` (string)
    Description of the contents of the shipment.
    Example: testpackageDescription

  - `pageInfo` (object)

  - `pageInfo.total` (integer)
    Example: 28

  - `pageInfo.pages` (integer)
    Example: 3

  - `pageInfo.page` (integer)
    Example: 1

## Response 400:

  - `400` (unknown)
    Invalid request

## Response 400 fields (application/json):

  - `errorCode` (string)
    Error code(s) that appear due to HTTP  400- Invalid or Bad Request, e.g., validation-error.
    Example: INVALID_REQUEST

  - `errorDescription` (string)
    The HTTP 400 Bad Request response status code indicates that the server cannot process the request due to something that is perceived to be a client error (e.g., malformed request syntax, invalid request message framing, or deceptive request routing).
    Example: Error decoding request body

  - `additionalCode` (string)
    A unique identifier for the error, for example ILP10010, or ILP10030.
    Example: 0100054

  - `additionalInfo` (string)
    This is an additional information about the error. This error 'Invalid Request' might appear due to invalid data, or if the information is missing.
    Example: Invalid or missing required fields in the request payload

## Response 401:

  - `401` (unknown)
    The request could not be authorized

## Response 401 fields (application/json):

  - `errorCode` (string, required)
    Error code representing the unauthorized access error.
    Example: unauthorized_error

  - `message` (string, required)
    This is HTTP 401 Unauthorized response status code, which indicates that the client request has not been completed because it lacks valid authentication credentials for the requested resource.
    Example: Unauthorized access. Valid authentication credentials are required.

  - `additionalInfo` (string)
    Additional information about the unauthorized error.
    Example: Client request lacks valid authentication credentials.

## Response 500:

  - `500` (unknown)
    The request could not be completed due to an internal error

## Response 500 fields (application/json):

  - `errorCode` (string, required)
    Error code representing the internal server error.
    Example: internal_server_error

  - `message` (string, required)
    This is HTTP 500 Internal Server Error response status code, which indicates that the server encountered an unexpected condition that prevented it from fulfilling the request.
    Example: A system error occurred. Please try again later.

  - `additionalInfo` (string)
    Additional information about the server error.
    Example: Unexpected condition occurred on the server while processing the request.

