---
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

---

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