Skip to content

Stripe: List all open reviews

Stripe reviews.getReviews: arguments, response, policy and SDK examples.

← Reviews operations · Get started

Operation stripe.getreviews

Provider route: GET /v1/reviews. Alter supplies the connection’s credentials and routing.

Install @alter-ai/sdk @alter-ai/stripe with npm, or alter-sdk-stripe with pip. Supply your connected customer’s grant ID and the arguments described below.

import { App } from "@alter-ai/sdk";
import { StripeIntegration } from "@alter-ai/stripe";
async function execute(input: Parameters<StripeIntegration["reviews"]["getReviews"]>[0]) {
const app = new App({ apiKey: process.env.ALTER_API_KEY! });
try {
const provider = new StripeIntegration(app, { grantId: process.env.PROVIDER_GRANT_ID! });
const call = await provider.reviews.getReviews(input);
const result = await call.wait();
return result.bodyJson();
} finally {
await app.close();
}
}
import os
from alter_sdk import App
from alter_sdk_stripe import StripeIntegration
async def execute(arguments):
async with App(api_key=os.environ["ALTER_API_KEY"]) as app:
provider = StripeIntegration(app, {"grant_id": os.environ["PROVIDER_GRANT_ID"]})
call = await provider.reviews.get_reviews(arguments)
result = await call.wait()
return result.body_json()
FieldTypePresenceDescription and constraints
$objectRootAdditional keys: not allowed
queryobjectOptionalAdditional keys: not allowed
query.createdJSONOptional
query.created (anyOf 1)objectAlternative
query.created (anyOf 1).gtintegerOptional
query.created (anyOf 1).gteintegerOptional
query.created (anyOf 1).ltintegerOptional
query.created (anyOf 1).lteintegerOptional
query.created (anyOf 2)integerAlternative
query.ending_beforestringOptionalMaximum length: 5000
query.expandarrayOptional
query.expand[]stringEach itemMaximum length: 5000
query.limitintegerOptional
query.starting_afterstringOptionalMaximum length: 5000

Response media type: application/json. The table describes the pinned successful response. Referenced models link to their complete fields.

FieldTypePresenceDescription and constraints
$objectRoot
dataarrayRequired within parent
data[]ModelEach itemExpand Approve a review — response body
has_morebooleanRequired within parentTrue if this list has another page of items after this one that can be fetched.
objectstringRequired within parentString representing the object’s type. Objects of the same type share the same value. Always has the value `list`.
Known values: list
urlstringRequired within parentThe URL where this list can be accessed.
Maximum length: 5000

Referenced models: Approve a review — response body

703 more schemas are linked from the tables above, on the schema pages.

Approve a review — response body
FieldTypePresenceDescription and constraints
$objectRootReviews can be used to supplement automated fraud detection with human expertise.

Learn more about [Radar](/radar) and reviewing payments
[here](https://docs.stripe.com/radar/reviews).
billing_zipJSONOptional
billing_zip (anyOf 1)stringAlternativeThe ZIP or postal code of the card used, if applicable.
Maximum length: 5000
billing_zip (anyOf 2)nullAlternative
chargeJSONOptional
charge (anyOf 1)JSONAlternativeThe charge associated with this review.
charge (anyOf 1) (anyOf 1)stringAlternativeMaximum length: 5000
charge (anyOf 1) (anyOf 2)ModelAlternativeExpand Create a charge — response body
charge (anyOf 2)nullAlternative
closed_reasonJSONOptional
closed_reason (anyOf 1)stringAlternativeThe reason the review was closed, or null if it has not yet been closed. One of `approved`, `refunded`, `refunded_as_fraud`, `disputed`, `redacted`, `canceled`, `payment_never_settled`, or `acknowledged`.
Known values: acknowledged, approved, canceled, disputed, payment_never_settled, redacted, refunded, refunded_as_fraud
closed_reason (anyOf 2)nullAlternative
createdJSONRequired within parent
created (anyOf 1)integerAlternativeTime at which the object was created. Measured in seconds since the Unix epoch.
Format: unix-time
created (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
idstringRequired within parentUnique identifier for the object.
Maximum length: 5000
ip_addressJSONOptional
ip_address (anyOf 1)stringAlternativeThe IP address where the payment originated.
Maximum length: 5000
ip_address (anyOf 2)nullAlternative
ip_address_locationJSONOptional
ip_address_location (anyOf 1)JSONAlternativeInformation related to the location of the payment. Note that this information is an approximation and attempts to locate the nearest population center - it should not be used to determine a specific address.
ip_address_location (anyOf 1) (anyOf 1)ModelAlternativeExpand Approve a review — response body — ip address location value city, country, latitude, longitude, region
ip_address_location (anyOf 2)nullAlternative
livemodebooleanRequired within parentIf the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
objectstringRequired within parentString representing the object's type. Objects of the same type share the same value.
Known values: review
openbooleanRequired within parentIf `true`, the review needs action.
opened_reasonstringRequired within parentThe reason the review was opened. One of `rule` or `manual`.
Known values: manual, rule
payment_intentJSONOptionalThe PaymentIntent ID associated with this review, if one exists.
payment_intent (anyOf 1)stringAlternativeMaximum length: 5000
payment_intent (anyOf 2)ModelAlternativeExpand Cancel a Payment Intent — response body
reasonstringRequired within parentThe reason the review is currently open or closed. One of `rule`, `manual`, `approved`, `refunded`, `refunded_as_fraud`, `disputed`, `redacted`, `canceled`, `payment_never_settled`, or `acknowledged`.
Maximum length: 5000
sessionJSONOptional
session (anyOf 1)JSONAlternativeInformation related to the browsing session of the user who initiated the payment.
session (anyOf 1) (anyOf 1)ModelAlternativeExpand Approve a review — response body — session value browser, device, platform, version
session (anyOf 2)nullAlternative

Referenced models: Create a charge — response body, Cancel a Payment Intent — response body, Approve a review — response body — ip address location value city, country, latitude, longitude, region, Approve a review — response body — session value browser, device, platform, version

Approve a review — response body — ip address location value city, country, latitude, longitude, region
FieldTypePresenceDescription and constraints
$objectRoot
cityJSONOptional
city (anyOf 1)stringAlternativeThe city where the payment originated.
Maximum length: 5000
city (anyOf 2)nullAlternative
countryJSONOptional
country (anyOf 1)stringAlternativeTwo-letter ISO code representing the country where the payment originated.
Maximum length: 5000
country (anyOf 2)nullAlternative
latitudeJSONOptional
latitude (anyOf 1)JSONAlternative
latitude (anyOf 1) (anyOf 1)numberAlternativeThe geographic latitude where the payment originated.
latitude (anyOf 1) (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
latitude (anyOf 2)nullAlternative
longitudeJSONOptional
longitude (anyOf 1)JSONAlternative
longitude (anyOf 1) (anyOf 1)numberAlternativeThe geographic longitude where the payment originated.
longitude (anyOf 1) (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
longitude (anyOf 2)nullAlternative
regionJSONOptional
region (anyOf 1)stringAlternativeThe state/county/province/region where the payment originated.
Maximum length: 5000
region (anyOf 2)nullAlternative
Approve a review — response body — session value browser, device, platform, version
FieldTypePresenceDescription and constraints
$objectRoot
browserJSONOptional
browser (anyOf 1)stringAlternativeThe browser used in this browser session (e.g., `Chrome`).
Maximum length: 5000
browser (anyOf 2)nullAlternative
deviceJSONOptional
device (anyOf 1)stringAlternativeInformation about the device used for the browser session (e.g., `Samsung SM-G930T`).
Maximum length: 5000
device (anyOf 2)nullAlternative
platformJSONOptional
platform (anyOf 1)stringAlternativeThe platform for the browser session (e.g., `Macintosh`).
Maximum length: 5000
platform (anyOf 2)nullAlternative
versionJSONOptional
version (anyOf 1)stringAlternativeThe version for the browser session (e.g., `61.0.3163.100`).
Maximum length: 5000
version (anyOf 2)nullAlternative
PostApplicationFeesIdRefund — response body — application / object: application
FieldTypePresenceDescription and constraints
$objectRoot
idstringRequired within parentUnique identifier for the object.
Maximum length: 5000
nameJSONOptional
name (anyOf 1)stringAlternativeThe name of the application.
Maximum length: 5000
name (anyOf 2)nullAlternative
objectstringRequired within parentString representing the object's type. Objects of the same type share the same value.
Known values: application
Create a charge — response body — billing details
FieldTypePresenceDescription and constraints
$objectRoot
addressJSONOptional
address (anyOf 1)JSONAlternativeBilling address.
address (anyOf 1) (anyOf 1)ModelAlternativeExpand Create a Location — response body — address
address (anyOf 2)nullAlternative
emailJSONOptional
email (anyOf 1)stringAlternativeEmail address.
Maximum length: 5000
email (anyOf 2)nullAlternative
nameJSONOptional
name (anyOf 1)stringAlternativeFull name.
Maximum length: 5000
name (anyOf 2)nullAlternative
phoneJSONOptional
phone (anyOf 1)stringAlternativeBilling phone number (including extension).
Maximum length: 5000
phone (anyOf 2)nullAlternative
tax_idJSONOptional
tax_id (anyOf 1)stringAlternativeTaxpayer identification number. Used only for transactions between LATAM buyers and non-LATAM sellers.
Maximum length: 5000
tax_id (anyOf 2)nullAlternative

Referenced models: Create a Location — response body — address

Create a charge — response body — fraud details Information on fraud assessments for the charge stripe report, user report
FieldTypePresenceDescription and constraints
$objectRoot
stripe_reportstringOptionalAssessments from Stripe. If set, the value is `fraudulent`.
Maximum length: 5000
user_reportstringOptionalAssessments reported by you. If set, possible values of are `safe` and `fraudulent`.
Maximum length: 5000

SDK function policy ID: stripe.getreviews. Catalog operation: GetReviews. Rules can name either ID; function rules distinguish managed calls and conservatively cover raw calls sharing the route. Existing grant permissions and policy rules apply. wait() returns an immediate result or waits for a required approval; it never approves the request itself. Persist the approval ID to resume after a restart.

Provider errors retain their response; JSON decoding raises ProviderAPIError for provider failures. ManagedOperationError identifies contract/input/retention errors. See error handling and provider-specific behavior. Sensitive input may be refused before approval storage. A decoding error never resubmits a write.

Pinned headers: {"Stripe-Version": "2026-09-30.endive"}

Official provider source

Report an issue with this page

Necessary

Required for sign-in, security, authorization, and remembering your choices.

Always active

Analytics

Helps us understand which product and documentation features are useful.

Performance diagnostics

Uses performance tracing and privacy-masked session replay to diagnose problems.

You can change these choices at any time from Cookie settings.