A user can specify whatever API version they need (e.g. 2022-11-15
). There is a field in the component’s metadata where an API version can be set. If the field is blank, version 2020-08-27
is used by default.
Name | Mandatory | Description | Values |
---|---|---|---|
API_RETRIES_COUNT |
false | Set how many time system try to make request to API on errors (3 by default) | any integer above 0 |
API_RETRY_DELAY |
false | Delay between retry attempts in milliseconds (10000 by default) | any integer above 0 |
API_REQUEST_TIMEOUT |
false | HTTP requests timeout in milliseconds (15000 by default) | any integer above 0 |
Component credentials configuration fields:
To verify credentials request GET https://api.stripe.com/v1/charges
with your Secret Key is used. So if you are restricted to make this API call - simply skip credentials verification.
This component has no trigger functions. This means it will not be accessible to select as a first component during the integration flow design.
Executes custom request.
false
.https://api.stripe.com
.GET
, POST
, PUT
, PATCH
, DELETE
.As of the component version 1.1.0 an input body can be set as a plain JSON object. While version 1.0.0 expected an input body to be built as a application/x-www-form-urlencoded
data only. Version 1.1.0 allows both options.
As an example we’ll be using the Payment Links endpoint.
Body:
{
"method": "POST",
"url": "v1/payment_links",
"data": {
"line_items[][quantity]": 3,
"line_items[][price]": "price_1MJXtjGB4S5N5BY8ymGY6TWC"
}
}
In version 1.1.0 both options will work. Either as we showed for 1.0.0 or a plain JSON:
Body:
{
"method": "POST",
"url": "v1/payment_links",
"data": {
"line_items": [
{
"quantity": 3,
"price": "price_1MJXtjGB4S5N5BY8ymGY6TWC"
},
{
"quantity": 10,
"price": "price_1MJh6eGB4S5N5BY8kJ1Q6exh"
}
]
}
}
Lookup a set of objects by defined criteria. The action is built on top of the Search
endpoint provided by the Stripe API.
To lookup objects you need to construct a query according to the Stripe requirements. You can learn more about the Stripe Search mechanism and Search Query Language in particular following the links provided.
This language is very straightforward and powerful.
Note: Use single quotes ''
instead of ""
if you need to use it on the platform.
Let us provide a few examples:
name:'Joe' AND -phone:'000'
- Look for all the objects of a given type having name ‘Joe’ and NOT having phone ‘000’.amount>100 OR status:'succeeded'
- Look for all the objects of a given type having amount greater than 100 or status succeeded
.Charges
.Customers
.Invoices
.PaymentIntents
.Prices
.Products
.Subscriptions
.Emit all
, Emit page
or Emit individually
.For Emit All
and Emit Page
mode: An object, with key results
that has an array as its value.
For Emit Individually
mode: Each object that fills the entire message.
Click here to learn more about the elastic.io iPaaS