---
title: "Get ATM code status for a payment"
method: GET
path: "/atm/code/{paymentId}"
---

# Get ATM code status for a payment

`GET /atm/code/{paymentId}`

## Request

- Base URL: `https://api.open-finance.ai/v2`
- URL: `https://api.open-finance.ai/v2/atm/code/{paymentId}`
- Auth: OAuth 2
  - Client credentials
  - Token URL: `https://api.open-finance.ai/oauth/token` scopes: `read:payments`

Retrieves the ATM code status and code (if generated) for a specific payment

## Path parameters

- `paymentId` string, required

## Response `200`

ATM code status and code (if generated)

- object
  - `status` 'DONE' | 'PENDING': Status of the ATM code (PENDING, DONE)
  - `atmCode` string: The ATM code (if generated)
  - `paymentId` string: ID of the payment

## Other responses

- `400`: Invalid payment ID
- `404`: Payment not found
- `500`: Internal server error

---

[API](https://skmtc.dev/open-finance/apis/data.md) - [All operations](https://skmtc.dev/open-finance/apis/data/llms.txt) - [OpenAPI document](https://skmtc.dev/open-finance/apis/data/revisions/c18eafb2a770?raw)
