---
title: "Get orders by payment gateway reference IDs"
method: GET
path: "/v3/orders/pg-reference-ids"
tags: ["Orders"]
---

# Get orders by payment gateway reference IDs

`GET /v3/orders/pg-reference-ids`

Requires the `order:list` scope. Retrieve orders using multiple payment gateway reference IDs. Values are trimmed and deduplicated before lookup. Supply between 1 and 25 nonblank IDs.

## Query parameters

- `pg_reference_ids` string, required

## Response `200`

Orders found

- PGReferenceIDs
  - `PG_REFERENCE_ID` object
    - `id` string, uuid — Canonical UUIDv7 order primary key returned by the partitioned orders table.
    - `order_id` string

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden

## Changes

> 4 revisions in range; 1 could not be searched.

- **2026-07-26** `251b881b98eb` — 2 breaking, 1 info
  - for the `query` request parameter `pg_reference_ids`, the minLength was increased from `0` to `1`
  - added the pattern `.*\S.*` to the `query` request parameter `pg_reference_ids`
  - added the non-success response with the status `400`

[Change history](https://skmtc.dev/scalev/apis/nexus-commerce-api/changes/v3/orders/pg-reference-ids/get.md)

---

[API](https://skmtc.dev/scalev/apis/nexus-commerce-api.md) · [All operations](https://skmtc.dev/scalev/apis/nexus-commerce-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/scalev/nexus-commerce-api/revisions/730030bd6477/schema)
