Chargeback Documents

postChargebackDocuments

POST
/chargebackDocuments

Create a chargebackDocument resource that represents a file related to a Chargeback.

Authorization

APIKEY<token>

In: header

Header Parameters

token?string

A single-use, limited authentication layer in addition to an API Key or Session Key to authorize sensitive operations. Auth Tokens add security by requiring one-time approval for specific actions.

request-token?string

A custom, one-time identifier for any API request (GET, PUT, POST, or DELETE). Blocks future requests with the same token for 48 hours, ensuring only the first request is processed. Valid values can contain 1-100 alphanumeric and special characters. See Request Tokens for more information.

Request Body

application/json

Create Chargeback Document Request

Create Chargeback Document Request

chargeback*string

The identifier of the Chargeback resource that this chargebackDocument relates to.

type?chargebackDocumentType

The type of the file that holds this chargebackDocument. The value is set when the file is properly integrated, otherwise will be null.

  • jpg - JPG file
  • jpeg - JPEG file
  • gif - GIF file
  • png - PNG file
  • pdf - PDF file
  • tiff - TIFF file
  • tif - TIF file

Value in

  • "jpg"
  • "jpeg"
  • "gif"
  • "png"
  • "pdf"
  • "tiff"
  • "tif"
ref?string

The reference of this chargeback document is stored as a text string and must be between 1 and 100 characters long, with the value being set when the file is properly integrated, otherwise it will be null.

description?string

The description of this chargebackDocument. This field is stored as a text string and must be between 1 and 100 characters long.

name?string

The name of this chargeback document holds the real file name used by the user, stored as a text string and must be between 1 and 100 characters long.

documentSource?chargebackDocumentsDocumentSource

The source of the document.

Value in

  • "merchant"
  • "issuer"
inactive?inactive

Whether this resource is marked as inactive.

  • 0 - Active
  • 1 - Inactive

Value in

  • 0
  • 1
frozen?frozen

Whether this resource is marked as frozen.

  • 0 - Not Frozen
  • 1 - Frozen

Value in

  • 0
  • 1

Response Body

application/json

application/json

curl -X POST "https://example.com/chargebackDocuments" \  -H "Content-Type: application/json" \  -d '{    "chargeback": "t1_chb_679918b34232ae6145ec03e",    "ref": "p1_chd_67b31fca23feed2b88d8a59.pdf",    "type": "pdf",    "name": "Test PDF  copy.pdf",    "description": "Test PDF  copy.pdf",    "inactive": 0,    "frozen": 0,    "documentSource": "merchant"  }'
{  "response": {    "data": [      {        "id": "p1_chd_67b31fca23feed2b88d8a59",        "created": "2025-02-17 06:38:50.1502",        "modified": "2025-02-17 06:38:50.1502",        "creator": "t1_log_5d49bbb9bd62b95c1378542",        "modifier": "t1_log_5d49bbb9bd62b95c1378542",        "chargeback": "t1_chb_679918b34232ae6145ec03e",        "ref": "p1_chd_67b31fca23feed2b88d8a59.pdf",        "type": "pdf",        "name": "Test PDF  copy.pdf",        "description": "Test PDF  copy.pdf",        "inactive": 0,        "frozen": 0,        "status": "created",        "documentSource": "merchant"      }    ],    "details": {      "requestId": 1,      "totals": [],      "page": {        "current": 1,        "last": 1,        "hasMore": false      }    },    "errors": []  }}