SDK reference · Node SDK
prov.authorize.chargebacks.respond
prov.authorize.chargebacks.respond in Node SDK. Merge and submit the response staged on Stripe now (one submission only; 409 unless one is staged).
Signature
prov.authorize.chargebacks.respond(id: string): Promise<Chargeback>Parameters
idstringRequired
Request fields
idstringpathRequired- The chargeback's ID (
chb_).
Returns
Promise<Chargeback> The chargeback.
HTTP operation
POST /v1/authorize/chargebacks/{id}/respond: Send a chargeback response now
Errors
- authentication_required
- chargeback_state_invalid
- insufficient_scope
- plan_required
- rate_limit_exceeded
- resource_missing
Example
const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/chargebacks/chb_01M7ZC4K2R8T5W1Y3B6D9F0H2J/respond`, {
method: "POST",
headers: { Authorization: "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x" },
})).json();import os
import httpx
api = os.environ["PROVENANCE_API"]
data = httpx.post(f"{api}/v1/authorize/chargebacks/chb_01M7ZC4K2R8T5W1Y3B6D9F0H2J/respond", headers={"Authorization": "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x"}).json()