Skip to main content

Stripe.Contents

Makes a call to the Stripe API, with the option to limit number of API calls made.

Syntax

Stripe.Contents(
method as text,
optional query as record,
optional pageLimit as number
) as table

Remarks

Makes a call to the Stripe API at https://api.stripe.com/v1/method, with optional record query passed as additional parameters and optional pageLimit as a limit on the number of API requests. Most recent data is returned first. If pageLimit is not specified, all data is returned. Stripe Version 2015-10-16 is used.

Examples

Example #1

Returns all charges data

Stripe.Contents("charges")

Result:

A table with all charges data for the current Stripe account

Example #2

Returns one page of charges data

Stripe.Contents("charges", [], 1)

Result:

A table with the most recent charges data for the current Stripe account