Charges (read-only): the individual payment attempts behind PaymentIntents, with outcome, receipt, and fee details. Create payments with ::stripe::payment-intents. See https://docs.stripe.com/api/charges.
Functions
get-charge
fn (charge: Str): Map
fn (charge: Str, params: Map): Map
fn (charge: Str, params: Map, opts: Map): Map
GET /v1/charges/{charge} - Retrieve a charge by ID. Optional params such as {expand: ["balance_transaction"]} for fees and net amount.
list-charges
fn (): Map
fn (request: ListChargesRequest): Map
fn (request: ListChargesRequest, opts: Map): Map
GET /v1/charges - List charges, most recent first. Filter by customer, payment_intent, or created.
search-charges
fn (query: Str): Map
fn (query: Str, params: Map): Map
fn (query: Str, params: Map, opts: Map): Map
GET /v1/charges/search - Search charges with Stripe's search query language, e.g. amount>999 AND status:"succeeded". Pass next_page back as page in params to continue.
Types
ListChargesRequest
ListChargesRequest type {
customer: Str?,
payment_intent: Str?,
transfer_group: Str?,
created: Any?,
limit: Int?,
starting_after: Str?,
ending_before: Str?,
expand: Vec<Str>?
}