Getting Location Licensing
Return list of states Coinme is approved to operate in a particular country
Sample API Request: GET
URL: https://caas-staging.coinme.com/services/locationlicensing
headers:
"Authorization":"asdfghj", //authorization token,required
'User-Agent: partnerapi' //required
Request Body
{
"country":"USA", // 3 Character abbreviation. required
}
Sample API Response:
Successful Response:
{
"data":
{
"locations": [
"WA",// two character abbreviation
"VA" //two character abbreviation
]
},
"errorResponse": null
}
Failure Response:
{
"data": null,
"errorResponse": {
"httpStatus":"200",
"timestamp":"2022-02-01T18:59:28.297Z",//UTC
"path":"/services/locationlicensing GET",
"errorData": [
{
"errorCode":"123-123-123-123",//The error code is just a sample showing the structure of the error code.
"message":"Not able to return the list of states for the country specified in the request"
}
]
}
}
Supported Countries
| Country Name | Abbreviation |
|---|---|
| United States of America | USA |
**More countries and states are planned to be supported in the future.
Error Codes
| Error Code | Error Message |
|---|---|
| 103-500-317-000 | Internal error occurred, please try again or contact support |
| 103-404-317-704 | PartnerProfile resource not found with identifier: <partner_id> |
Updated 6 days ago