---
title: Query, cancel and refund orders
description: Look up orders by id or merchant reference, cancel unpaid orders, and refund only to the original paying address with four-eyes approval.
url: https://gaapay.com/docs/api-query
updated: 2026-12-04
language: en
---

| Endpoint | Notes |
| --- | --- |
| GET /api/v1/orders/:id | Look up by GaaPay order id, including every attempt and quote snapshot. |
| GET /api/v1/orders?merchant_order_ref=… | Look up by your own order number. Use it as the fallback when a webhook goes missing. |
| POST /api/v1/orders/:id/cancel | Only orders with no funds received can be cancelled. |
| POST /api/v1/orders/:id/refund | Refunds go back to the original paying address only; any other address is rejected. Above the threshold a second approver is required. |
| GET /api/v1/ping | Signature self-check and environment confirmation. |
| GET /api/v1/config | Current effective configuration with provenance (which layer set each value). |
