Home
Documentation
Resources
Partners
Community

Partners

Discover our program for agencies or developers that offer integration services and sellers who want to hire them.

Community

Get the latest news, ask others for help and share your knowledge.

Get file data - Files and messages - Mercado Pago Developers

Intelligent search powered by OpenAI 

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-7434*********159-03141*********cee51edf8*********f94f589-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"
}