post https://app.pinwallet.in/api/token/create
Request Body Parameters
S.N | Name | Type | Description | Mandatory (M) , Optional (O) | Provided by Pinwallet (Y/N) |
---|---|---|---|---|---|
1. | userName | String | Partner Register Email Address | M | Y |
2. | password | String | Secrets Key Provided By Pinwallet for Authentication | M | Y |
{
"userName": "[email protected]",
"password":"0d0410626c0f25e298992c3e018de65b0b13e7ae9fer077dd291c282a224f5aa7d"
}
{
"responseCode": 200,
"success": true,
"message": "Token generated successfully.",
"data": {
"token": "eyJhbGciOiJIUzI1NiIserereInR5cCI6IkpXVCJ9.eyJzdWIiOiJuYW1pdDYwQGdtYWlsLmNvbSIsIm5hbWVpZCI6IjQiLCJlbWFpbCI6Im5hbWl0NjBAZ21haWwuY29tIiwianRpIjoiNmUzYmMzZjgtYjFiYS00YzExLTliOTAtZmI4Mzg3ZjdiMzVlIiwiZXhwIjoxNjc1NDE5MTIwLCJpc3MiOiJFenVsaXhiMmIiLCJhdWQiOiJFenVsaXhiMmIifQ.kEH5hEIVAutE09CEvq2Q62h3Yc8TVPAGwVip9aSgHig",
"partner": {
"id": 4,
"name": "test",
"email": "[email protected]",
"phone": "9999999999"
}
}
}
{
"responseCode": 401,
"success": false,
"message": "User not authorized.",
"data": null
}