SDK Info
GET https://sp.mspayhub.com/cpoc/sp/{environment}/info/{customerId}/{sdkId}
X-Api-Key: {your-api-key}
Request
Name | Type | In | Required | Description |
---|---|---|---|---|
environment | String | path | Yes | The environment (dev / stage / api for prod) |
customerId | String | path | Yes | The unique customerId assigned by MineSec. |
sdkId | String | path | Yes | The unique SDK ID that payment server receives from MPoC application |
Response
Name | Type | Description |
---|---|---|
msg | String | Status message of the response. |
code | Int | Status code of the response. |
body | Object | Body containing detailed info if API success. |
body.publickey | String | KEK public PEM. |
body.devicestatus | String | Status of the device. |
body.id | String | SDK ID. |
body.state | String | Validation state of the device. |
body.version | String | Version information. |
body.terminal_id | String | Terminal identifier (if present). |
body.timestamp | String | Timestamp of the response. |
{
"msg": "success",
"code": 0,
"body": {
"publickey": "-----BEGIN PUBLIC KEY-----\n...\n-----END PUBLIC KEY-----",
"devicestatus": "HEALTH",
"id": "sdkId",
"state": "VALID",
"version": "1.10.105.12.20",
"terminal_id": "",
"timestamp": "1721213512423"
}
}