Stripe API [06-30-2023]

Number of APIs: 379

Stripe API Qodex Collection

This is a Qodex collection covering the Stripe API. See https://stripe.com/docs/api for more details.

Prerequisites

Qodex

Stripe Account

Getting Started

To get started fork the collection from [Stripe's public workspace] within Qodex.

Fork collection

Enter a name for your fork and select the workspace where it will be created:

Fork form

You can also fork the environment template from the Stripe Developers Workspace:

Fork environment template

Set your API key

To run requests you'll need to supply your testmode secret API key and set it as an [environment variable] within your workspace.

To set any environment variable, create a new envionment within Qodex:

create a new environment

Add your secret key as a variable to the environment and save:

set API key

Set the environment to active:

save as active

Now within the collection set it to use the environment you just created:

set collection environment

If your environment is set up correctly, you should see your secret key value if you mouse over the secret_key variable in the Token field:

secret key mouseover

Be sure to save the collection after you've configured the set the key:

save key

Make a test call

You should be ready now to make a test call. An easy first call is to create a customer:

customer endpoints

Since no parameters are required to create a customer, you can just hit the Send button to run this request:

create customer send

If your environment is set up you'll get a customer object back as the response to the call:

create customer send

Add parameters to the call by clicking the body tab, where you'll see a list of available parameters. Select and populate the ones you want to use. Here's an example of adding an email parameter:

create customer with email

You'll see the email address in the reponse:

create customer with email

Passing Metadata In a Request

Right now metadata does not show up as a optional parameter on requests, but it can still be provided to calls that will accept it. Here's an example of adding 2 metadata fields to the customer create call:

set metadata on a request

Metadata key value pairs can be updated in a similar manner. To remove a metadata key during an update call, supply the metadata[key] parameter without setting a value. This will pass an empty string as part of the request:

clear metadata key

To remove all metadata pass the metadata parameter without a value set:

remove metadata key

Changelog

To keep track of major Stripe API updates and version, reference the API upgrades page in our documentation. For a detailed list of API changes, please refer to our API Changelog.

If you need to report a bug or request an update, feel free to open an issue on our GitHub repository.

  1. Payouts - Update a payout POST {{baseUrl}}/v1/payouts/:payout

  2. Payment Methods - Create a PaymentMethod POST {{baseUrl}}/v1/payment_methods

  3. Payouts - Cancel a payout POST {{baseUrl}}/v1/payouts/:payout/cancel

  4. Balance Transactions - List all balance transactions GET {{baseUrl}}/v1/balance_transactions

  5. Financial Connections Accounts - Refresh Account data POST {{baseUrl}}/v1/financial_connections/accounts/:account/refresh

  6. Financial Connections Sessions - Create a Session POST {{baseUrl}}/v1/financial_connections/sessions

  7. Financial Connections Sessions - Retrieve a Session GET {{baseUrl}}/v1/financial_connections/sessions/:session

  8. Quote Line Items - Retrieve a quote's line items GET {{baseUrl}}/v1/quotes/:quote/line_items

  9. Identity - Retrieve a VerificationReport GET {{baseUrl}}/v1/identity/verification_reports/:report

  10. Radar Reviews - Approve a review POST {{baseUrl}}/v1/reviews/:review/approve