GET v1​/ sell​/shop​/user_details

Endpoint to get details about current user and his shop.

Instant gratification

Do it yourself from console!

Assuming that you have a valid token previously exported into BEARER env variable

Discover... who you are! ^__^.
curl -i -H "Authorization: Bearer $BEARER" \
https://api.blomming.com/v1/sell/shop/user_details

Request

Example Request

{
  "locale": "es"
}

Request Parameters

  • locale

    The locale used in the results.

    • Required: no
    • Type: string
    • Example: "es"

Response

Example Response

{
  "id": "njvitto",
  "url": "http://localhost:3000/v1/shops/njvitto",
  "currency_id": {
  },
  "can_change_login": true,
  "currency_code": "EUR",
  "name": "Antica Locanda",
  "image": "https://s3.amazonaws.com/cdn-staging.blomming.com/images/no_avatar_original.gif",
  "login": "njvitto",
  "email": "[email protected]",
  "location": "Zocca, Modena, Italy"
}

Response Parameters

  • id

    The user id.

    • Required: yes
    • Type: integer
    • Example: "njvitto"
  • url

    the url of the shop of the user.

    • Required: yes
    • Type: string
    • Format: url
    • Example: "http://localhost:3000/v1/shops/njvitto"
  • currency_id

    the id of the currency.

    • Required: yes
    • Type: fixnum
    • Example: 14
  • can_change_login

    the possibility for the seller to change the login or not.

    • Required: yes
    • Type: boolean
    • Example: true
  • currency_code

    The currency code of the seller, that is the one the prices on the Order are expressed in.

    • Required: yes
    • Type: string
    • Example: "EUR"
  • name

    the name of the shop.

    • Required: yes
    • Type: string
    • Example: "Antica Locanda"
  • image

    the avatar of the user.

    • Required: yes
    • Type: string
    • Format: url
    • Example: "https://s3.amazonaws.com/cdn-staging.blomming.com/images/no_avatar_original.gif"
  • login

    the username of the current user.

    • Required: yes
    • Type: string
    • Example: "njvitto"
  • email

    the email of the current user.

  • location

    The location declared by the user (that is, where the shops actually stands).

    • Required: yes
    • Type: string
    • Example: "Zocca, Modena, Italy"

Response Codes

Successful Response Codes