# Verify an ID with customer consent (/docs/api/v1/verification/verify-id-with-consent)

Verifies a Ghana Card or Voter ID through the mobile network (MTN) with the customer's consent by USSD. The customer approves sharing their details on their phone before the result is returned.

`GET https://rnv.hubtel.com/v2/merchantaccount/merchants/{accountNumber}/idcard/verify`

## Parameters

| Name | In | Required | Description |
|---|---|---|---|
| `accountNumber` | path | Yes | Your **collection account number** (POS sales), where customer payments land. Find it in your Hubtel merchant account under [Programmable keys → Account ID](/dashboard/account-ids). In the sandbox, use the collection account in Workbench. |
| `idtype` | query | Yes |  |
| `idnumber` | query | Yes | The customer's MTN number. Accepted formats: 233XXXXXXXXX and 0XXXXXXXXX |
| `network` | query | Yes |  |
| `consentType` | query | No | The preferred consent type. Options include: 1. sms 2. ussd |

## Response 200: Success.

```json
{
  "message": "Success",
  "responseCode": "0000",
  "data": {
    "name": "JOHN DONATUS MILLS",
    "dateOfBirth": "1984 June 23",
    "gender": "MALE",
    "nationalId": "GHA-000000000-0"
  }
}
```

Full schema: /openapi/v1/verification.json