---
title: "Validate a payment and generate its access codes (public/test)"
method: POST
path: "/i/test/accesscodes/{paymentId}"
tags: ["payments"]
---

# Validate a payment and generate its access codes (public/test)

`POST /i/test/accesscodes/{paymentId}`

## Path parameters

- `paymentId` integer, required

## Response `200`

OK

- object

## Other responses

- `400` — Bad Request
- `500` — Internal Server Error

---

[API](https://skmtc.dev/earnation/apis/earnation-api.md) · [All operations](https://skmtc.dev/earnation/apis/earnation-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/earnation/earnation-api/revisions/1219d1bf2177/schema)
