Interactive Demo

Hover over endpoints to explore. Move your mouse to activate the monocle lens.

Stripe Payments API

Click endpoints to expand parameters

GET /v1/charges/:id
id string

The identifier of the charge to retrieve.

POST /v1/charges
amount integer

Amount intended to be collected by this payment. A positive integer representing how much to charge in the smallest currency unit.

currency string

Three-letter ISO currency code. Must be a supported currency.

customer string

The ID of an existing customer that will be associated with the charge.

metadata object

Set of key-value pairs attached to the object.

order_id string

Your internal order ID.

description string

An arbitrary string attached to the charge.

POST /v1/refunds
charge string

The identifier of the charge to refund.

amount integer

A positive integer in the smallest currency unit representing how much to refund.

reason string

Reason for the refund. Allowed values: duplicate, fraudulent, requested_by_customer.

GET /v1/customers/:id
id string

The identifier of the customer to retrieve.

Ready to illuminate your API docs?

Start Your Free Trial