Export subscriptions/preapproval/exportDownloads a CSV file with all the subscriptions that match the search request.
GET
Products that use it:
Request's parameters
collector_idnumber
Localization: pathID of the collector requesting the subscriptions.REQUIRED
preapproval_plan_id
Localization: pathSpecifies a Plan ID for filtering results from the export.string
status
Localization: pathSpecifies a status for filtering results from the export. Can be null, one or more than one.string
sort
Localization: pathSpecifies the type of sorting selected to retrieve the subscriptions. You must indicate a field and a sort type with the following format field_name:sort_type.string
Response parameters
Request
curl
curl -X GET \
'https://api.mercadopago.com/preapproval/export' \
-H 'Authorization: Bearer YOUR_ACCESS_TOKEN'
Answer
json
{}
Errors
401bad_request
401
500bad_request
500Internal server error