# prov.authorize.chargebacks.references

prov.authorize.chargebacks.references in Node SDK. Your own references for a customer-reason dispute (at most 10); a staged response is staged again with them.

## Signature

```ts
prov.authorize.chargebacks.references(id: string, references: ChargebackReference[]): Promise<Chargeback>
```

## Parameters

- `id` (string)
- `references` (ChargebackReference[])

## Returns

`Promise<Chargeback>`

## HTTP operation

[`POST /v1/authorize/chargebacks/{id}/references`](https://provenanceauth.com/docs/api/chargebacks.md#post-v1-authorize-chargebacks-id-references): Add your references to a chargeback

## Errors

- [`authentication_required`](https://provenanceauth.com/docs/platform/errors.md#authentication_required)
- [`chargeback_state_invalid`](https://provenanceauth.com/docs/platform/errors.md#chargeback_state_invalid)
- [`insufficient_scope`](https://provenanceauth.com/docs/platform/errors.md#insufficient_scope)
- [`invalid_json`](https://provenanceauth.com/docs/platform/errors.md#invalid_json)
- [`parameter_invalid`](https://provenanceauth.com/docs/platform/errors.md#parameter_invalid)
- [`plan_required`](https://provenanceauth.com/docs/platform/errors.md#plan_required)
- [`rate_limit_exceeded`](https://provenanceauth.com/docs/platform/errors.md#rate_limit_exceeded)
- [`resource_missing`](https://provenanceauth.com/docs/platform/errors.md#resource_missing)

## Example

**Node**

```ts
const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/chargebacks/chb_01M7ZC4K2R8T5W1Y3B6D9F0H2J/references`, {
  method: "POST",
  headers: { Authorization: "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x", "Content-Type": "application/json" },
  body: JSON.stringify({
    "references": [
      {
        "kind": "tracking",
        "value": "1Z999AA10123456784"
      }
    ]
  }),
})).json();
```

**Python**

```python
import os
import httpx

api = os.environ["PROVENANCE_API"]
data = httpx.post(f"{api}/v1/authorize/chargebacks/chb_01M7ZC4K2R8T5W1Y3B6D9F0H2J/references", headers={"Authorization": "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x"}, json={
    "references": [
        {
            "kind": "tracking",
            "value": "1Z999AA10123456784"
        }
    ]
}).json()
```
