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

workspaceIdinteger required
paymentIdstring required

Response

OK

amountinteger required

Amount to pay, in minor units

created_atstring date-time required
currency'USD' | 'KZT' required
discount_amountinteger required
expires_atstring date-time required
idstring required
interval'month' | 'year' required
list_amountinteger required

Price before the discount, in minor units

method'paddle' | 'crypto' | 'kaspi' required
paid_atstring date-time nullable required
pay_urlstring required

Page of the payment provider; empty for the card form, which opens on this page

plan'starter' | 'growth' | 'scale' required
promo_codestring required
status'pending' | 'paid' | 'expired' | 'canceled' required

Changes

No recorded changes to this operation across all 1 revision of this API.