> For the complete documentation index, see [llms.txt](https://apidocs.onekeypayments.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://apidocs.onekeypayments.com/api-reference/deposits-api/automatic-pix/get-enrollment-status.md).

# Get enrollment status

## Get Enrollment Status

> Obtain the information of a certain enrollment, together with all the deposits tied to it.

```json
{"openapi":"3.0.3","info":{"title":"OneKey Payments API","version":"v1"},"servers":[{"url":"https://api-stg.onekeypayments.com/v1","description":"Staging Server"}],"paths":{"/enrollments/{id}":{"get":{"tags":["Enrollments"],"summary":"Get Enrollment Status","description":"Obtain the information of a certain enrollment, together with all the deposits tied to it.","operationId":"getEnrollmentById","parameters":[{"name":"id","in":"path","description":"Enrollment ID. It is obtained when creating the enrollment.","required":true,"schema":{"type":"integer"}},{"name":"X-Date","in":"header","description":"ISO8601 Datetime with Timezone: yyyy-MM-dd'T'HH:mm:ssZ","required":true,"schema":{"type":"string","format":"date-time"}},{"name":"X-Login","in":"header","description":"Merchant X-Login API Key","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"Authentication signature hash","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful retrieval of enrollment information.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Enrollment"}}}}}}}},"components":{"schemas":{"Enrollment":{"type":"object","properties":{"enrollment_id":{"type":"integer","description":"The unique identifier for the enrollment."},"amount":{"type":"number","format":"double","description":"The amount to be charged."},"country":{"type":"string","description":"Country code (ISO 3166-1 alpha-2)."},"currency":{"type":"string","description":"Currency code (ISO 4217)."},"invoice_id":{"type":"string","description":"Your internal invoice identifier."},"amount_type":{"type":"string","description":"Type of amount."},"status":{"type":"string","description":"The current status of the enrollment."},"frequency":{"type":"string","description":"How often the charge occurs."},"start_date":{"type":"string","format":"date","description":"The date the enrollment begins."},"payer":{"$ref":"#/components/schemas/Payer"},"deposits":{"type":"array","items":{"type":"integer","description":"A unique deposit ID."}}}},"Payer":{"type":"object","description":"Object containing information about the payer.","properties":{"id":{"type":"string","description":"The payer's unique identifier."},"email":{"type":"string","format":"email","description":"The payer's email address."},"first_name":{"type":"string"},"last_name":{"type":"string"},"phone":{"type":"string","description":"The payer's phone number in E.164 format."},"full_name":{"type":"string"}}}}}}
```
