Enrollment information
Learn how to access and manage Pix enrollment information.
Get enrollment details
This endpoint allows merchants to retrieve information about an existing Pix subscription.
Merchants can use this service to query relevant details such as frequency, start and end dates, status, and other important information at any time.
Example request
curl -X GET \
-H 'X-Date: {X-Date}' \
-H 'X-Login: {X-Login}' \
-H 'X-Trans-Key: {X-Trans-Key}' \
-H 'Content-Type: application/json' \
-H 'X-Version: 2.1' \
-H 'User-Agent: MerchantTest / 1.0 ' \
-H 'Authorization: V2-HMAC-SHA256, Signature: {Signature}' \
https://api.dlocal.com/enrollments/E-4-32e1218f-b6ec-3f21-13d5-50v12ere2ca4
{
"id": "E-4-32e1218f-b6ec-3f21-13d5-50v12ere2ca4",
"external_id": "31231jj224",
"currency": "BRL",
"country": "BR",
"type": "MERCHANT_SUBSCRIPTION",
"description": "Pix Automatico - Monthly subscription - Variable amount",
"payment_method_id": "XA",
"payment_method_flow": "DIRECT",
"payment_method_type": "TICKET",
"subscription":{
"start_date": "2024-12-01",
"end_date": "2025-12-01",
"frequency": "MONTHLY",
"amount":{
"type": "VARIABLE",
"min_value": "300"
}
},
"ticket": {
"type": "CUSTOM",
"number": "00020101021226850014br.gov.bcb.pix2563qrcodepix.bb.com.br/pix/v2/e268f040-7248-4677-ac42-0a510a1e038c52040000530398654045.005802BR5925DEMERGE BRASIL FACILITADO6009SAO PAULO62070503***630405CD",
"expiration_date": "2024-11-30T02:59:00.000+0000",
"id": "Ts4ME3E05fFl8PhkNhkcIt4hID",
"barcode": "iVBORw0KGgoAAAAgAAAJMAAACTCAIAAAAFh7xCAAAOHUlEQVR4XQXLkSBIDD/+f",
"company_name": "",
"provider_name": "apm-bb-pix",
"provider_logo": "https://static.dlocal.com/images/providers/pix.jpg",
"image_url": "https://pay.dlocal.com/gmf-apm/payments/E-4-32e1218f-b6ec-3f21-13d5-50v12ere2cD3",
"amount": 285,
"currency": "BRL"
},
"created_date": "2024-07-26T20:37:20.000+0000",
"status": "PENDING",
"status_detail": "The enrollment is pending.",
"status_code": "100",
"notification_url": "http://merchantsite.com/notifications"
}
{
"id": "E-4-32e1218f-b6ec-3f21-13d5-50v12ere2ca4",
"external_id": "31231jj224",
"currency": "BRL",
"country": "BR",
"type": "MERCHANT_SUBSCRIPTION",
"description": "Pix Automatico - Monthly subscription - Variable amount",
"payment_method_id": "XA",
"payment_method_flow": "DIRECT",
"payment_method_type": "TICKET",
"subscription":{
"start_date": "2024-12-01",
"end_date": "2025-12-01",
"frequency": "MONTHLY",
"amount":{
"type": "VARIABLE",
"min_value": "300"
}
},
"created_date": "2024-07-26T20:37:20.000+0000",
"status": "ACTIVE",
"status_detail": "The enrollment is active.",
"status_code": "200",
"notification_url": "http://merchantsite.com/notifications"
}
Updated 9 days ago