authentication token

Service that allows you to obtain the authentication token of the API. Uses the clientId and clientSecret provided by the security team n1co. You will have at your disposal the keys in development environment so that you can perform all your tests without affecting transactions and data in production.

Request
Security:
BearerAuth
Request Body schema: application/json
clientId
required
string

unique customer identifier

clientSecret
required
string

Client secret key

Responses
200

authentication token

400

Bad request

post/api/v1/Token
Request samples
application/json
{
  • "clientId": "8ff8uu34-ffa5-457e-9d4b-04a6324d7353",
  • "clientSecret": "qoL5K~8pppwYT.92O5W4khPeutP5j6HcLZG42dpU"
}
Response samples
application/json
{
  • "tokenType": "Bearer",
  • "expiresIn": 3599,
  • "accessToken": "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6ImpTMVhvMU9XRGpfNTJ2YndHTmd2UU8yVnpNYyIsImtpZCI6ImpTMVhvMU9XRGpfNTJ2YndHTmd2UU8yVnpNYyJ9.eyJhdWQiOiJhcGk6Ly9iMmQ4YjI2NS01Y2Y2LTQ4NjgtYjY4Yi0zZjEwODAyNWFmMjUiLCJpc3MiOiJodHRwczovL3N0cy53aW5kb3dzLm5ldC8xODA4MmM0My1iOTJiLTQyMmEtOTQxYS1mYmY4YjdmYjU2NjcvIiwiaWF0IjoxNjUxNzEwMDY5LCJuYmYiOjE2NTE3MTAwNjksImV4cCI6MTY1MTcxMzk2OSwiYWlvIjoiRTJaZ1lQaXRPTlBvbGM3am45Y20rYTBRODhrOURnQT0iLCJhcHBpZCI6IjhmZjhmZjQxLWZmYTUtNDU3ZS05ZDRiLTA0YTA2MDFkNzM1MyIsImFwcGlkYWNyIjoiMSIsImlkcCI6Imh0dHBzOi8vc3RzLndpbmRvd3MubmV0LzE4MDgyYzQzLWI5MmItNDIyYS05NDFhLWZiZjhiN2ZiNTY2Ny8iLCJvaWQiOiIzYTlmOTdiNS03NzY4LTQ4ZmQtYWViOC03MGI2NTlkZTU1ZjEiLCJyaCI6IjAuQVVZQVF5d0lHQ3U1S2tLVUd2djR0X3RXWjJXeTJMTDJYR2hJdG9zX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