API reference · tag transactions
Transactions
Status of an asynchronous gateway transaction by its transaction_id.
This page is generated from the contract (data/gateway-v1.json): each operation shows its verb,
path, parameters, body, responses, whether it carries an Idempotency-Key, and the equivalent method in all five SDKs.
For the end-to-end flow with complete examples, see the implementation guide.
Operations in tag transactions #
Contract description: Asynchronous transaction status lookup.
| Method | Path | Operation | Scope | Idem. |
|---|---|---|---|---|
| GET | /v1/gateway/transactions/{tx_id}/ | Transaction status | — | — |
Transaction status #
GET/v1/gateway/transactions/{tx_id}/
Parameters
| Name | In | Type | Description |
|---|---|---|---|
tx_id required | path | string | Gateway transaction id. E.g.: a1b2c3d4-0000-4a1b-9c2d-000000000001 |
Responses
| Code | Description | Body |
|---|---|---|
| 200 | Transaction record. | TransactionStatus
application/json |
Possible errors (400, 401, 403, 404, 409, 422, 429, 500) — application/problem+json
| 400 | Malformed request. | about:blank |
| 401 | Missing or invalid API key. | about:blank |
| 403 | The key is valid but lacks the required scope, or the source IP is not allow-listed. | about:blank |
| 404 | The requested resource does not exist. | about:blank |
| 409 | Idempotency conflict — same key, original still processing. | https://errors.compense.co/gateway/idempotency-conflict |
| 422 | Request body failed validation. | https://errors.compense.co/gateway/validation |
| 429 | Per-key rate limit or monthly quota exceeded; see Retry-After. | https://errors.compense.co/gateway/rate-limited |
| 500 | Unexpected gateway error; quote the trace_id to support. | about:blank |
See problem+json errors for the equivalent exception in each SDK.
Example
client.transactions.get()client.transactions.get()$client->transactions->get()await client.Transactions.GetAsync()client.Transactions.Get(ctx, …)curl "https://sandbox.dev.compense.co/gw/v1/gateway/transactions/a1b2c3d4-0000-4a1b-9c2d-000000000001/" \
-H "X-API-Key: $COMPENSE_API_KEY"Each SDK's methods come from its contract parity suite. The cURL runs against the sandbox; <field> values are placeholders.