- #2119 Add prevented to the dispute.status enum.
- It's supported in the 2025-08-27.basil of the API, but was mistakenly excluded from this SDK. That issue is now resolved.
- #2117 Add LastResponse to resources returned in List and Search APIs
Add aLastResponse
to each resource returned from either aList
orSearch
API call usingstripe.Client
. TheRawJSON
is the JSON corresponding to just that item. This is useful for accessing fields not exposed in the SDK.
for cust, err := range sc.V1Customers.List(context.TODO(), &stripe.CustomerListParams{}) {
if err != nil {
return err
}
customerJSON := cust.LastResponse.RawJSON
log.Printf("Customer JSON: %s", customerJSON) // {"id":"cus_123",...}
}