Public
Documentation Settings

API - Sitio-NB-API-rest-V3

AUTHORIZATIONBearer Token
Token

{{TOKEN}}

Login

AUTHORIZATIONBearer Token
This folder is using Bearer Token from collectionAPI - Sitio-NB-API-rest-V3

POSTLog in

https://api.nb.com.ar/v1/auth/login

Recurso para iniciar sesión en la web.

el parametro 'mode': debe ir siempre con el valor 'api'

AUTHORIZATIONBearer Token
This request is using Bearer Token from collectionAPI - Sitio-NB-API-rest-V3
Bodyformdata
user

hsimpson

password

123456

mode

api

Example Request
curl
curl --location 'https://api.nb.com.ar/v1/auth/login' \
--form 'user="hsimpson"' \
--form 'password="123456"' \
--form 'mode="api"'
Example Response
No response body
This request doesn't return any response body
No response headers
This request doesn't return any response headers

GETUser

https://api.nb.com.ar/v1/auth/user

Devuelve los datos del usuario anteriormente logeado.

Return:

json
{
    "user": {
        "id": 00001,
        "name": "Homero",
        "email": "h.simpson@nb.com.ar",
        "shoppingCartId": "04639522",
        "codeFP": 00000,
        "showName": "HomeroSimpson",
        "blackUser": 0,
        "internalAgent": 0,
        "defaultCurrency": true,
        "defaultIvas": true,
        "defaultStock": false
    }
}
AUTHORIZATIONBearer Token
Token

{{TOKEN}}

Example Request
curl
curl --location 'https://api.nb.com.ar/v1/auth/user'
Example Response
No response body
This request doesn't return any response body
No response headers
This request doesn't return any response headers