Skip to main content

Submit Evidence

Submit supporting evidence for a chargeback dispute. At least one evidence item is required.

POSThttps://api.zenpayz.com/merchant/api/v1/chargebacks/:chargebackId/evidence
Bearer · API key

Request

Headers

HeaderDescription
Authorization
REQUIRED
Bearer {api_key}
X-Signature
REQUIRED
HMAC-SHA256 signature
X-Timestamp
REQUIRED
ISO 8601 timestamp
X-Secret-Salt
REQUIRED
Secret salt for HMAC validation
Content-Type
REQUIRED
application/json
X-Merchant-Id
REQUIRED
Merchant identifier
X-Request-Id
REQUIRED
Unique request identifier

Path Parameters

ParameterTypeDescription
chargebackId
REQUIRED
stringUnique chargeback identifier

Body Parameters

ParameterTypeDescription
evidence
REQUIRED
arrayArray of evidence items (minimum 1)
notes
OPTIONAL
stringAdditional notes to accompany the evidence submission

Response

Success (200 OK)

{
"success": true,
"data": {
"chargebackId": "cb_a1b2c3d4e5f6g7h8",
"status": "evidence_submitted",
"evidence": [
{
"type": "receipt",
"documentUrl": "https://files.zenpayz.com/evidence/receipt_001.pdf",
"fileName": "receipt_001.pdf",
"mimeType": "application/pdf",
"fileSize": 204800,
"description": "Original transaction receipt",
"submittedAt": "2024-01-18T14:22:00.000Z"
},
{
"type": "shipping_proof",
"documentUrl": "https://files.zenpayz.com/evidence/tracking_001.pdf",
"fileName": "tracking_001.pdf",
"mimeType": "application/pdf",
"fileSize": 153600,
"description": "Shipping confirmation with tracking number",
"submittedAt": "2024-01-18T14:22:00.000Z"
}
],
"notes": "Product was delivered and signed for on Jan 12.",
"updatedAt": "2024-01-18T14:22:00.000Z"
},
"message": "Evidence submitted successfully",
"error": null,
"meta": {
"request_id": "req_xxxxx",
"timestamp": "2024-01-18T14:22:00.000Z",
"processing_time_ms": 62,
"api_version": "v1",
"endpoint": "POST /chargebacks/:chargebackId/evidence",
"user_type": "merchant"
}
}

Error Responses

CodeHTTPMessage
VALIDATION_ERROR400Invalid request parameters or empty evidence array
UNAUTHORIZED401Invalid API key
CHARGEBACK_NOT_FOUND404Chargeback with the specified ID does not exist
INVALID_STATE409Chargeback is not in a state that accepts evidence
DEADLINE_EXPIRED410Evidence submission deadline has passed

Examples

curl -X POST https://api.zenpayz.com/merchant/api/v1/chargebacks/cb_a1b2c3d4e5f6g7h8/evidence \
-H "Authorization: Bearer zp_test_xxxxx" \
-H "X-Timestamp: 2024-01-18T14:22:00.000Z" \
-H "X-Signature: a1b2c3d4e5f6..." \
-H "X-Secret-Salt: your_secret_salt" \
-H "Content-Type: application/json" \
-H "X-Merchant-Id: merch_xxxxx" \
-H "X-Request-Id: req_xxxxx" \
-d '{
"evidence": [
{
"type": "receipt",
"documentUrl": "https://files.zenpayz.com/evidence/receipt_001.pdf",
"fileName": "receipt_001.pdf",
"mimeType": "application/pdf",
"fileSize": 204800,
"description": "Original transaction receipt"
},
{
"type": "shipping_proof",
"documentUrl": "https://files.zenpayz.com/evidence/tracking_001.pdf",
"fileName": "tracking_001.pdf",
"mimeType": "application/pdf",
"fileSize": 153600,
"description": "Shipping confirmation with tracking number"
}
],
"notes": "Product was delivered and signed for on Jan 12."
}'