Skip to Content
Docs
Disputes

Bulk defend disputes

POST/disputes/bulk_defend

Submits the same evidence (documents and an optional text) for several disputes in one request.

The request is validated as a whole before anything starts: every dispute must exist and be in status open or pre_arbitration, and every document must be a dispute evidence document in status active within the strictest limits of the disputes' processors. If any check fails, the request returns an error and no evidence is submitted for any dispute.

When the request is accepted, the evidence is submitted in the background and the endpoint returns 204 with no body. Each dispute moves to evidence_under_review once its evidence is processed; retrieve the disputes to follow their status.

Headers

AuthorizationstringRequired
HTTP Basic auth: your API key as the password, with an empty username. See Authentication.
idempotency-keystring

A unique key, such as a UUID, that makes a POST or DELETE request safe to retry. Pay.com keeps each key for 24 hours, separately for each workspace.

  • A retry with the same key, endpoint and body gets the first request's stored status and body, without running the request again.
  • If the first request is still being processed, a retry gets 409 idempotency_error (request_in_progress).
  • The same key on another endpoint, or with another body, gets 400 idempotency_error (invalid_parameters).
  • GET, PUT and PATCH requests ignore the key.

The response repeats the key in its Idempotency-Key header.

Parameters

disputesarray of stringsRequired

Unique identifiers for the disputes to defend.

documentsarray of stringsRequired

Unique identifiers for up to 10 uploaded documents, submitted as evidence for every dispute in disputes.

textstring

A text explanation submitted with the evidence for every dispute. An empty string is accepted.

Returns

Evidence submission started for all disputes.

Errors

400
Invalid request parameters, a dispute is not in status open or pre_arbitration, or a document is not an accepted evidence document within the processors' limits. No evidence is submitted.
401
The API key or access token is missing, unknown or no longer works (invalid_key, invalid_token, legacy_keys_ended, legacy_keys_off or permission_denied).
403
The request was refused: the API key may not make it (for example resource_not_allowed, key_disabled, network_not_allowed, pci_required or merchant_required), or this resource isn't enabled for your account (permission_denied). code says why.
404
A dispute or document was not found. No evidence is submitted.
409
Another request with the same idempotency-key is still being processed (request_in_progress). Wait, then retry with the same key.
500
Internal server error.
503
Service unavailable. Retry after the number of seconds in Retry-After, or after a few seconds when there's none.
Was this page helpful?