Get User

Get A User

GET
/user
/user

The Authorization access token

Authorization

Authorization
Required
Bearer <token>

In: header

curl -X GET "https://api.t4b.top/user" \
  -H "Authorization: Bearer <token>"

Ok

{
  "data": {
    "user": {
      "id": 1,
      "name": "merchant",
      "role": "MERCHANT",
      "createdAt": "2021-01-01T00:00:00.000Z",
      "supplierId": 1,
      "backupSupplierIds": [
        0
      ],
      "profitRate": "0.1",
      "subscriptionLevel": 1
    }
  },
  "statusCode": 200
}