Skip to main content

Authentication

To use the API, the merchant must have credentials associated with the merchant's configuration, both for testing and production environments, regarding accepted currencies, payment methods, and graphical interface. These credentials will be provided once the delivery process begins.

Authentication is done via a token returned by the login method using the credentials provided by Luka.

The URL is specified in Environments.

Request

POST {URL}/api/v1/servicio/login

Headers

Content-Type: application/json

Body

{
"Username": "merchant_user",
"Password": "merchant_password"
}

Response

The token is located in the response header as shown below:

HTTP/1.1 200 OK
Date: Mon, 27 Mar 2023 21:53:05 GMT
Content-Type: text/plain; charset=utf-8
Server: Kestrel
Content-Length: 0
token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c
id: 0dd5b4f6-31e7-4251-aa39-d4a6f8bf0509
api-supported-versions: 1.0