SDK reference · Node SDK
prov.authorize.chargebacks.list
prov.authorize.chargebacks.list in Node SDK. Newest first.
Signature
prov.authorize.chargebacks.list(params?: ListChargebacksParams): Promise<ListResponse<Chargeback>>Parameters
paramsListChargebacksParams
Request fields
stateenumquery- Only chargebacks in this state. One of
received,not_eligible,unmatched,matched,staged,staged_text_only,submitted,merchant_submitted,failed,missed,dismissed. platformenumquery- Only this platform's. One of
stripe,shopify. outcomeenumquery- Only chargebacks closed with this outcome. One of
won,lost,accepted,closed. sincetimestampquery- Only chargebacks received at or after this time.
sortenumquery- The order of the list:
due,amount,created, with-in front for descending. Newest first when omitted. A chargeback with no due date sorts last. Anext_cursorcarries its order; pass it back with the samesort. One ofdue,-due,amount,-amount,created,-created. limitintegerquery- Page size, 1–100 (default 20). Outside the range → 400 parameter_invalid.
cursorstringquery- Opaque; pass a response's
next_cursorback to get the next page.
Returns
Promise<ListResponse<Chargeback>> A page of chargebacks.
HTTP operation
GET /v1/authorize/chargebacks: List chargebacks
Errors
Example
const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/chargebacks?state=staged`, {
headers: { Authorization: "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x" },
})).json();import os
import httpx
api = os.environ["PROVENANCE_API"]
data = httpx.get(f"{api}/v1/authorize/chargebacks?state=staged", headers={"Authorization": "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x"}).json()