AI resources
Search chargebacks

This endpoint allows you to search for all chargeback cases associated with a payment_id, returned from a notification configured for the chargebacks topic. The requester must be the seller of the queried payment, and the response will include pagination and the full details of each case found, including the status of its supporting documentation. In case of success, the request will return a response with status 200.

GET

https://api.mercadopago.com/v1/chargebacks/search
Request parameters
Header
Authorization
string

REQUIRED

Access Token obtained through the developer panel. Must be sent in all requests.
X-Caller-Id
integer

REQUIRED

ID of the authenticated user (seller ID) and owner of the requested resource.
Query
payment_id
integer

REQUIRED

ID of the payment for which chargeback cases are to be searched, obtained from a notification configured for the chargebacks topic.
offset
integer
Number of results to skip for pagination. The minimum and default value is 0.
limit
integer
Number of results per page. The minimum value is 1 and the default value is 10.
Response parameters
paging
object
Pagination metadata.
results
array
List of chargeback cases found.
Errors

400Request error.

invalid_payment_id

The payment_id parameter is missing or invalid. Check the notification received for the chargebacks topic to obtain the correct ID.

403Access denied.

unauthorized_payment_access

The requester is not authorized to query the indicated payment. Only the seller account associated with the payment can perform this query.

500Generic error.

internal_error

A generic error occurred. Check the request and try again.

Request
curl -X GET \
    'https://api.mercadopago.com/v1/chargebacks/search?payment_id=987654321&limit=10'\
    -H 'Content-Type: application/json' \
       -H 'Authorization: Bearer APP_USR-4*********994754-12*********c73b4e1ac*********cef36b27c*********840' \
       -H 'X-Caller-Id: 123456789' \
    
Response
{
  "paging": {
    "offset": 0,
    "limit": 10,
    "total": 1
  },
  "results": [
    {
      "id": "123456789",
      "payments": [
        {}
      ],
      "currency": "MXN",
      "amount": "50.00",
      "reason": "unauthorized",
      "reason_id": "6",
      "coverage_applied": true,
      "coverage_eligible": true,
      "documentation_required": true,
      "documentation_status": "pending",
      "documentation": [
        {
          "type": "collector",
          "url": "https://storage.mlstatic.com/op/123/456789/comprobante.pdf",
          "description": "Comprobante de envío",
          "uuid": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
        }
      ],
      "date_documentation_deadline": "2024-02-15T23:59:59.000-03:00",
      "date_created": "2024-02-01T10:30:00.000-03:00",
      "date_last_updated": "2024-02-03T14:00:00.000-03:00",
      "live_mode": true
    }
  ]
}