naftiko: 1.0.0-alpha2 info: label: Stripe Charges API — Charges description: 'Stripe Charges API — Charges. 14 operations. Lead operation: Charges. Self-contained Naftiko capability covering one Stripe business surface.' tags: - Stripe - Charges created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: STRIPE_API_KEY: STRIPE_API_KEY capability: consumes: - type: http namespace: charges-charges baseUri: https://api.stripe.com description: Stripe Charges API — Charges business capability. Self-contained, no shared references. resources: - name: v1-charges path: /v1/charges operations: - name: getcharges method: GET description:
Returns a list of charges you’ve previously created. The charges are returned in sorted order, with the most recent charges appearing first.
outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: created in: query type: string - name: customer in: query type: string description: Only return charges for the customer specified by this customer ID. - name: ending_before in: query type: string description: A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 ob - name: expand in: query type: array description: Specifies which fields in the response should be expanded. - name: limit in: query type: integer description: A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10. - name: payment_intent in: query type: string description: Only return charges that were created by the PaymentIntent specified by this PaymentIntent ID. - name: starting_after in: query type: string description: A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 o - name: transfer_group in: query type: string description: Only return charges for this transfer group. - name: body in: body type: object description: Request body (JSON). required: false - name: postcharges method: POST description:Use the Payment Intents API to initiate a new payment instead outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: false - name: v1-charges-search path: /v1/charges/search operations: - name: getchargessearch method: GET description:
Search for charges you’ve previously created using Stripe’s Search Query Language. outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: expand in: query type: array description: Specifies which fields in the response should be expanded. - name: limit in: query type: integer description: A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10. - name: page in: query type: string description: A cursor for pagination across multiple pages of results. Don't include this parameter on the first call. Use the next_page value returned in a previous respons - name: query in: query type: string description: The search query string. See [search query language](https://stripe.com/docs/search#search-query-language) and the list of supported [query fields for charges]( required: true - name: body in: body type: object description: Request body (JSON). required: false - name: v1-charges-charge path: /v1/charges/{charge} operations: - name: getchargescharge method: GET description:
Retrieves the details of a charge that has previously been created. Supply the unique charge ID that was returned from your previous request, and Stripe will return the corresponding charge information. The same information is returned w outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: charge in: path type: string required: true - name: expand in: query type: array description: Specifies which fields in the response should be expanded. - name: body in: body type: object description: Request body (JSON). required: false - name: postchargescharge method: POST description:
Updates the specified charge by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: charge in: path type: string required: true - name: body in: body type: object description: Request body (JSON). required: false - name: v1-charges-charge-capture path: /v1/charges/{charge}/capture operations: - name: postchargeschargecapture method: POST description:Capture the payment of an existing, uncaptured charge that was created with the capture
option set to false.
Retrieve a dispute for a specified charge.
outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: charge in: path type: string required: true - name: expand in: query type: array description: Specifies which fields in the response should be expanded. - name: body in: body type: object description: Request body (JSON). required: false - name: postchargeschargedispute method: POST description: '' outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: charge in: path type: string required: true - name: body in: body type: object description: Request body (JSON). required: false - name: v1-charges-charge-dispute-close path: /v1/charges/{charge}/dispute/close operations: - name: postchargeschargedisputeclose method: POST description: '' outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: charge in: path type: string required: true - name: body in: body type: object description: Request body (JSON). required: false - name: v1-charges-charge-refund path: /v1/charges/{charge}/refund operations: - name: postchargeschargerefund method: POST description:When you create a new refund, you must specify either a Charge or a PaymentIntent object.
outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: charge in: path type: string description: The identifier of the charge to refund. required: true - name: body in: body type: object description: Request body (JSON). required: false - name: v1-charges-charge-refunds path: /v1/charges/{charge}/refunds operations: - name: getchargeschargerefunds method: GET description:You can see a list of the refunds belonging to a specific charge. Note that the 10 most recent refunds
are always available by default on the charge object. If you need more than those 10, you can use this API method
and the When you create a new refund, you must specify a Charge or a PaymentIntent object on which to create
it. Retrieves the details of an existing refund. Update a specified refund. Returns a list of charges you’ve previously created. The charges are returned in sorted order, with
the most recent charges appearing first. Use the Payment Intents API to initiate a new payment instead
call: charges-charges.postcharges
with:
body: rest.body
outputParameters:
- type: object
mapping: $.
- path: /v1/v1/charges/search
name: v1-charges-search
description: REST surface for v1-charges-search.
operations:
- method: GET
name: getchargessearch
description: Search for charges you’ve previously created using Stripe’s Search
Query Language.
call: charges-charges.getchargessearch
with:
expand: rest.expand
limit: rest.limit
page: rest.page
query: rest.query
body: rest.body
outputParameters:
- type: object
mapping: $.
- path: /v1/v1/charges/{charge}
name: v1-charges-charge
description: REST surface for v1-charges-charge.
operations:
- method: GET
name: getchargescharge
description: Retrieves the details of a charge that has previously been created. Supply the unique charge ID that
was returned from your previous request, and Stripe will return the corresponding charge information. The same information
is returned w
call: charges-charges.getchargescharge
with:
charge: rest.charge
expand: rest.expand
body: rest.body
outputParameters:
- type: object
mapping: $.
- method: POST
name: postchargescharge
description: Updates the specified charge by setting the values of the parameters passed. Any parameters not provided
will be left unchanged. Capture the payment of an existing, uncaptured charge that was created with the Retrieve a dispute for a specified charge. When you create a new refund, you must specify either a Charge or a PaymentIntent object. You can see a list of the refunds belonging to a specific charge. Note that the 10 most recent refunds
are always available by default on the charge object. If you need more than those 10, you can use this API method
and the When you create a new refund, you must specify a Charge or a PaymentIntent object on which to create
it. Retrieves the details of an existing refund. Update a specified refund. Returns a list of charges you’ve previously created. The charges are returned in sorted order, with
the most recent charges appearing first. Use the Payment Intents API to initiate a new payment instead
hints:
readOnly: false
destructive: false
idempotent: false
call: charges-charges.postcharges
with:
body: tools.body
outputParameters:
- type: object
mapping: $.
- name: p-search-charges-you-ve-previously-created
description: Search for charges you’ve previously created using Stripe’s Search
Query Language.
hints:
readOnly: true
destructive: false
idempotent: true
call: charges-charges.getchargessearch
with:
expand: tools.expand
limit: tools.limit
page: tools.page
query: tools.query
body: tools.body
outputParameters:
- type: object
mapping: $.
- name: p-retrieves-details-charge-that-has
description: Retrieves the details of a charge that has previously been created. Supply the unique charge ID that
was returned from your previous request, and Stripe will return the corresponding charge information. The same information
is returned w
hints:
readOnly: true
destructive: false
idempotent: true
call: charges-charges.getchargescharge
with:
charge: tools.charge
expand: tools.expand
body: tools.body
outputParameters:
- type: object
mapping: $.
- name: p-updates-specified-charge-setting-values
description: Updates the specified charge by setting the values of the parameters passed. Any parameters not provided
will be left unchanged. Capture the payment of an existing, uncaptured charge that was created with the Retrieve a dispute for a specified charge. When you create a new refund, you must specify either a Charge or a PaymentIntent object. You can see a list of the refunds belonging to a specific charge. Note that the 10 most recent refunds
are always available by default on the charge object. If you need more than those 10, you can use this API method
and the When you create a new refund, you must specify a Charge or a PaymentIntent object on which to create
it. Retrieves the details of an existing refund. Update a specified refund.limit<
outputRawFormat: json
outputParameters:
- name: result
type: object
value: $.
inputParameters:
- name: charge
in: path
type: string
required: true
- name: ending_before
in: query
type: string
description: A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list.
For instance, if you make a list request and receive 100 ob
- name: expand
in: query
type: array
description: Specifies which fields in the response should be expanded.
- name: limit
in: query
type: integer
description: A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default
is 10.
- name: starting_after
in: query
type: string
description: A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list.
For instance, if you make a list request and receive 100 o
- name: body
in: body
type: object
description: Request body (JSON).
required: false
- name: postchargeschargerefunds
method: POST
description: capture
option set to false.limit<
call: charges-charges.getchargeschargerefunds
with:
charge: rest.charge
ending_before: rest.ending_before
expand: rest.expand
limit: rest.limit
starting_after: rest.starting_after
body: rest.body
outputParameters:
- type: object
mapping: $.
- method: POST
name: postchargeschargerefunds
description: capture
option set to false.limit<
hints:
readOnly: true
destructive: false
idempotent: true
call: charges-charges.getchargeschargerefunds
with:
charge: tools.charge
ending_before: tools.ending_before
expand: tools.expand
limit: tools.limit
starting_after: tools.starting_after
body: tools.body
outputParameters:
- type: object
mapping: $.
- name: p-when-you-create-new-refund-2
description: