Back to APIs
PaymentsBearer Token
Stripe
Accept payments, manage subscriptions, and send payouts globally. The most developer-friendly payments API available.
Base URL
https://api.stripe.com/v1paymentssubscriptionsinvoicingpayoutswebhooks
Endpoints
POST
/payment_intentsCreate a PaymentIntent to begin accepting payment.
const response = await fetch("https://api.stripe.com/v1/payment_intents", {
method: "POST",
headers: {
"Content-Type": "application/json",
"Authorization": "Bearer YOUR_ACCESS_TOKEN"
},
body: JSON.stringify({
"amount": 2000,
"currency": "usd"
})
});
const data = await response.json();
console.log(data);Response Preview
{
"id": "pi_3NmGsn2eZvKYlo2C1234",
"object": "payment_intent",
"amount": 2000,
"currency": "usd",
"status": "requires_payment_method",
"client_secret": "pi_secret_..."
}GET
/customersList all customers in your Stripe account.
const response = await fetch("https://api.stripe.com/v1/customers?limit=10", {
method: "GET",
headers: {
"Content-Type": "application/json",
"Authorization": "Bearer YOUR_ACCESS_TOKEN"
}
});
const data = await response.json();
console.log(data);Response Preview
{
"object": "list",
"data": [
{ "id": "cus_abc", "email": "jane@example.com", "name": "Jane Doe" }
],
"has_more": true
}