YoboPay
  1. Charges
YoboPay
  • 接入说明
  • Introduction
  • Webhook接入
  • Webhook Introduction
  • Test Card
  • Embedded Checkout
  • Checkout
    • Create Session
      POST
    • Expire Session
      POST
    • Retrieve Session
      GET
  • PaymentIntents
    • Retrieve PaymentIntent
      GET
    • List all paymentIntent
      GET
  • Charges
    • List all charges
      GET
  • Customers
    • Create Customer
      POST
    • Update Customer
      POST
    • Retrieve Customer
      GET
  • Events
    • The Event object
    • Types of Events
    • Data Object
      • PaymentIntent
      • Charge
  • Refunds
    • Create Refund
      POST
    • List all refunds
      GET
  1. Charges

List all charges

GET
/v1/charges
Returns a list of charges you’ve previously created. The charges are returned in sorted order, with the most recent charges appearing first.

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Query Params
paymentIntentId
string 
optional
The identifier of the PaymentIntent
chargeId
string 
optional
Unique identifier for the charge.
customerId
string 
optional
Only return charges for the customer specified by this customer ID.
Example:
cus_Ifj3da1JB2
limit
integer 
optional
A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
Example:
10
createdGt
integer 
optional
Only return charges that were created during the given date interval.Minimum value to filter by (exclusive)
Example:
1744358762580
createdGte
integer 
optional
Minimum creation time to filter by (inclusive)
Example:
1744358762580
createdLt
integer 
optional
Maximum creation time to filter by (exclusive)
Example:
1744358762580
createdLte
integer 
optional
Maximum creation time to filter by (inclusive)
Example:
1744358762580

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET '/v1/charges?paymentIntentId&chargeId&customerId=cus_Ifj3da1JB2&limit=10&createdGt=1744358762580&createdGte=1744358762580&createdLt=1744358762580&createdLte=1744358762580'

Responses

🟢200成功
application/json
Body
code
string 
required
msg
string 
required
data
object 
required
hasMore
boolean 
required
items
array[object (Charge) {11}] 
required
Example
{
    "code": "string",
    "msg": "string",
    "data": {
        "hasMore": true,
        "items": [
            {
                "chargeId": "string",
                "paymentIntentId": "string",
                "clientReferenceId": "string",
                "amount": 0,
                "currency": "string",
                "paymentMethodId": "string",
                "paymentMethodDetails": {
                    "type": "card",
                    "card": {
                        "email": "string",
                        "name": "string",
                        "country": "string",
                        "brand": "string",
                        "expYear": 0,
                        "expMonth": 0,
                        "front6": "string",
                        "last4": "string"
                    }
                },
                "failureCode": "string",
                "failureMessage": "string",
                "status": "succeeded",
                "created": 0
            }
        ]
    }
}
Modified at 2025-06-26 04:32:09
Previous
List all paymentIntent
Next
Create Customer
Built with