---
title: "Status of a payment started from this workspace"
method: GET
path: "/api/v1/workspaces/{workspaceId}/billing/payments/{paymentId}"
tags: ["Billing"]
---

# Status of a payment started from this workspace

`GET /api/v1/workspaces/{workspaceId}/billing/payments/{paymentId}`

## Request

- Base URL: `https://otprun.com`
- URL: `https://otprun.com/api/v1/workspaces/{workspaceId}/billing/payments/{paymentId}`
- Auth: HTTP bearer

## Path parameters

- `workspaceId` integer, required
- `paymentId` string, required

## Response `200`

OK

- PaymentBody
  - `amount` integer, required: Amount to pay, in minor units
  - `created_at` string, date-time, required
  - `currency` 'USD' | 'KZT', required
  - `discount_amount` integer, required
  - `expires_at` string, date-time, required
  - `id` string, required
  - `interval` 'month' | 'year', required
  - `list_amount` integer, required: Price before the discount, in minor units
  - `method` 'paddle' | 'crypto' | 'kaspi', required
  - `paid_at` string, date-time, nullable, required
  - `pay_url` string, required: Page of the payment provider; empty for the card form, which opens on this page
  - `plan` 'starter' | 'growth' | 'scale', required
  - `promo_code` string, required
  - `status` 'pending' | 'paid' | 'expired' | 'canceled', required

## Other responses

- `404`: Not Found
- `422`: Unprocessable Entity
- `500`: Internal Server Error

---

[API](https://skmtc.dev/otprun/apis/otp-run-api.md) · [All operations](https://skmtc.dev/otprun/apis/otp-run-api/llms.txt) · [OpenAPI document](https://skmtc.dev/otprun/apis/otp-run-api/revisions/43d40d5f4050?raw)
