Export subscriptions - Subscriptions - Mercado Pago Developers
Export subscriptions

GET

/preapproval/export
Downloads a CSV file with all the subscriptions that match the search request.
Request's parameters
collector_id

REQUIRED

number
Localization: pathID of the collector requesting the subscriptions.
preapproval_plan_id
string
Localization: pathSpecifies a Plan ID for filtering results from the export.
status
string
Localization: pathSpecifies a status for filtering results from the export. Can be null, one or more than one.
sort
string
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.
Response parameters
This request has no response.
Request
curl
curl -X GET \
      'https://api.mercadopago.com/preapproval/export' \
      -H 'Authorization: Bearer YOUR_ACCESS_TOKEN' 
Answer
json
{}
Errors
401bad_request
401Unauthorized access to resource
500bad_request
500Internal server error