Payments

Sandbox only: open or move a dispute on a paid payment

The first call opens one synthetic chargeback (dispute.created); later calls move it (dispute.updated, or dispute.closed for won and lost). Responding to it with evidence is not simulated. The provider never sees this outcome; the real handlers apply it, so the real events follow. 404 resource_not_available outside the sandbox; 409 state_conflict when the object is past this step.

post/api/v1/test-helpers/payments/{id}/dispute

Request

  • Base URL
    https://merchant.zahlo.eu
  • Auth
    API key in header x-api-key

Path parameters

idstring required

The resource identifier returned by the merchant API.

Request body

status'needs_response' | 'under_review' | 'won' | 'lost' required

Response

Successful response

idstring required
paymentIdstring required

The payment's id, as GET /api/v1/payments/{id} takes it.

status'needs_response' | 'under_review' | 'won' | 'lost' | 'closed' required
reasonstring
evidenceDueAtstring date-time

Example response

{
  "amount": {
    "currency": "EUR"
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.