Skip to main content

Stripe.Method

Makes a call to the Stripe API.

Syntax

Stripe.Method(
method as text,
additionalParameters as record,
ColumnNames as list
) as table

Remarks

Makes a call to the Stripe API at https://api.stripe.com/v1/method, with record additionalParameters passed as additional parameters and list ColumnNames of expected column names. Stripe Version 2015-10-16 is used.

Examples

Example #1

Returns a table with events created after November 1, 2015

Stripe.Method("events", [#"created[gte]"=1446374329], {"id", "livemode", "created", "type", "data", "object", "pending_webhooks", "request", "api_version"})

Result:

A table with the specified events for the current Stripe account

Example #2

Returns a table with all SKUs

Stripe.Method("skus", [], {"id", "created", "updated", "object", "livemode", "product", "image", "active", "price", "currency", "inventory", "attributes", "metadata", "package_dimensions"})

Result:

A table with all SKUs for the current Stripe account