Skip to main content

Get my current subscription

Description

Get my current subscription.

Example

curl -X 'GET' \
'http://localhost:8000/payments/my_subscription/' \
-H 'accept: application/json' \
-H 'Authorization: Bearer <token>'
Responses
200

Successful Response

Schema OPTIONAL
ok Ok OPTIONAL

Indicates if the request was successful or not.

data object
id Id OPTIONAL
user_id User Id
plan_id Plan Id
utc_end_at date-time
utc_credited_at date-time
name Name
description Description
stripe_price_id Stripe Price Id
tags string[]
monthly_price_usd_before_discount Monthly Price Usd Before Discount
monthly_price_usd_after_discount Monthly Price Usd After Discount
first_lang_usd_per_minute First Lang Usd Per Minute
additional_lang_usd_per_minute Additional Lang Usd Per Minute
allow_overage Allow Overage
monthly_minutes Monthly Minutes
max_rooms Max Rooms
max_out_languages Max Out Languages
utc_updated_at date-time
utc_created_at date-time
default

Default Response

Schema OPTIONAL
ok Ok OPTIONAL

Indicates if the request was successful or not.

errors object[]

List of errors

type uri

Possible values: 1 ≤ length ≤ 2083

A string containing a URI reference that identifies the problem type.

status Status

Possible values: 399 < value < 600

A number indicating the HTTP status code.

title Title

Possible values: 5 ≤ length

A string containing a short, human-readable summary of the problem type.

detail Detail

Possible values: 5 ≤ length

A string containing a human-readable explanation specific to this occurrence of the problem.

instance Instance

Possible values: 1 ≤ length

A string containing a URI reference that identifies the specific occurrence of the problem.

error_code Error Code

A Number that indicates the error type that occurred.