v1
latestOpenAPI 3.1.02026-07-241080412.6 KBLogin
Use /auths endpoint to log in the user. Customer authorization is based on <glossary:JWT>, which contains customerId, publisherId and expiration date.
There are two ways of login, by offerId (if a customer has already chosen an offer) or by publisherId (in case a customer will choose an offer after authorization).
post/auths
Request body
Response
200
Example response
{
"responseData": {
"jwt": "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJjdXN0b21lcklkIjoxNTQzNzc1NDEsIm9mZmVySWQiOiJTNTY3OTIxNzY2X05MIn0.PcIDWi00v_w2p332p5dYg7Gjjsp7LgpibzzUWQ3WB8-BW1xEihYU4IYc4AFs9SoZmQRxCJ1BzCuJOsMIJV5NFx7JhBIJiuZ5h6wkYJxQ_hzNXjt57Oz143Q9c3Yr4edIiTiWK2SsEJMGvWUWxwk38jM6SIyeGhedjvQw71esfat5YnZCGRsiSaelwtNcEBxmXl3TZOcM0TpPWMfHEoVWwY6C3ll0xNeNn-iXSIJ00V_qbmN59132vxQptezfLgAC7oOCR9wNgvOX7Q4SYE0L2aNnCKLcS-45TzpMU8KHxyUW_tQsO0Rq4Kh67spk_zMG8C56Xq26_9t105GCMkBIKg",
"refreshToken": "0aec4f290ec232f20dd27186976419e0a0f3c334966aafe1d952b447d1ceffaa",
"customerToken": "MZYbftC_e378Vm9dualp1RaQU8XgJFnrSxaFuBZmDdQZ8FyU",
"customerId": 123456789
}
}