API

BillingPrepaidPeriod

Operations

Every route this entity exposes. Each route links to its own reference on this page.

Method Route SDK operation Returns
GET /api/v1/organizations/{organization_id}/billing/prepaid_periods/{id} load Monthly payment and service period
GET /api/v1/organizations/{organization_id}/billing/prepaid_periods/{id}/payment_page load Current Stripe hosted invoice URL

Examples

One example per SDK, generated from the API model. The argument names are the parameters and fields of this entity, and the values are placeholders. The examples are not compiled or executed.

Golang

Construct client as shown in the Golang setup, then call the operations:

billing_prepaid_period, err := client.BillingPrepaidPeriod(nil).Load(map[string]any{"id": "example_id", "organization_id": "example"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(billing_prepaid_period)

Lua

Construct client as shown in the Lua setup, then call the operations:

local billing_prepaid_period, err = client:BillingPrepaidPeriod():load({ id = "example_id", organization_id = "example" })

PHP

Construct client as shown in the PHP setup, then call the operations:

$billing_prepaid_period = $client->BillingPrepaidPeriod()->load(["id" => "example_id", "organization_id" => "example"]);

Python

Construct client as shown in the Python setup, then call the operations:

billing_prepaid_period = client.BillingPrepaidPeriod().load({"id": "example_id", "organization_id": "example"})

Ruby

Construct client as shown in the Ruby setup, then call the operations:

billing_prepaid_period = client.BillingPrepaidPeriod.load({ "id" => "example_id", "organization_id" => "example" })

TypeScript

Construct client as shown in the TypeScript setup, then call the operations:

const billing_prepaid_period = await client.BillingPrepaidPeriod().load({ id: "example_id", organization_id: "example" })

Fields

Field Type Required Description
activated_at one,string,null Yes Activated At
created_at string Yes Created At
currency string Yes Currency
id string Yes Id
last_error one,string,null Yes Last Error
minutes integer Yes Minutes
net_amount_cents integer Yes Net Amount Cents
paid_at one,string,null Yes Paid At
paid_total_cents one,integer,null Yes Paid Total Cents
payment_action_url one,string,null Yes Payment Action Url
period_ended_at string Yes Period Ended At
period_started_at string Yes Period Started At
receipt_url one,string,null Yes Receipt Url
refunded_net_cents integer Yes Refunded Net Cents
state string Yes State

load

GET /api/v1/organizations/{organization_id}/billing/prepaid_periods/{id}

Operation ID: api_v1_organization_billing_prepaid_period.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
organization_id path string Yes
id path string Yes

Responses

200: Monthly payment and service period

application/json

The response is object and object.

401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway

GET /api/v1/organizations/{organization_id}/billing/prepaid_periods/{id}/payment_page

Operation ID: payment_page_api_v1_organization_billing_prepaid_period.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
organization_id path string Yes
id path string Yes

Responses

200: Current Stripe hosted invoice URL

application/json

Property Type Required Description
url string Yes
401: Unauthorized
403: Forbidden
404: Not found
409: The payment page is not ready
422: Unprocessable entity
502: The payment provider is unavailable