Home
Documentation
Resources
Certifications
Community
Get file data - Files and messages - Mercado Pago Developers
Which documentation are you looking for?

Do not know how to start integrating? 

Check the first steps
Get file data

GET

https://api.mercadopago.com/post-purchase/v1/claims/{claim_id}/attachments/{fileName}
This endpoint allows searching, through a valid token, for image files attached to the message associated with the complaint.
Request's parameters
PATH
claim_id
number

REQUIRED

Claim ID. Unique identifier used to reference a specific claim in the system, essential for tracking and managing these claims.
attach_id
string

REQUIRED

Identifier of the attached file.
Response parameters
filename
string
Current name (hashed - used for retrieving the attachment) of the image file attached to the message associated with the claim.
original_filename
string
Original name of the image file attached to the message associated with the claim.
size
number
Size (in bytes) of the image file attached to the message associated with the claim.
date_created
string
Date when the image file was attached to the message associated with the complaint.
Request
curl -X GET \
    'https://api.mercadopago.com/post-purchase/v1/claims/{claim_id}/attachments/{fileName}'\
    -H 'Content-Type: application/json' \
       -H 'Authorization: Bearer TEST-3322*********190-03031*********46528954c*********0339910-1*********' \
    
Sample answer
{
  "filename": "767b79a6-88c8-4fa4-8d95-2cb78fcd897f.jpeg",
  "original_filename": "WWhatsApp-Image-2020-09-22.jpeg",
  "size": 1880609,
  "date_created": "2020-07-22T20:43:15.000-04:00",
  "type": "image/jpeg"
}