Retrieve accounts associated with a user

GET /user/accounts/

Fetches a list of accounts linked to the specified user, identified by a unique token.

Responses

  • 200 application/json

    A list of accounts retrieved for the user.

    Hide headers attributes Show headers attributes
    • X-RateLimit-Limit number

      The number of allowed requests in the current period.

    • X-RateLimit-Remaining number

      The number of remaining requests in the current period.

    • X-RateLimit-Retry-After string(datetime)

      The date of number of remaining requests will reset.

    Hide response attributes Show response attributes object
    • token string(uuid) Required

      Unique token identifying the account.

    • channel string Required

      Sales channel associated with this account (e.g., 'ebay', 'amazon').

      Values are ebay, amazon, walmart, kaufland, tiktok, temu, shein, shopify, bigcommerce, woocommerce, ecwid, salesforce, square, lightspeed, shopware, prestashop, or magento2.

    • title string Required

      User-defined title for the account, often used for easy identification.

    • identifier string Required

      Unique identifier associated with the account on the specified sales channel.

    • is_valid boolean Required

      Indicates whether the account's credentials are valid and active.

    • create_date string(date-time) Required

      The date and time when the account was created.

  • 404 application/json

    Not found

    Hide response attributes Show response attributes object
    • code string Required

      An error code that identifies the type of error that occurred.

    • message string Required

      A message that describes the error condition in a human-readable form.

    • data object | array Required

      Additional information that can help the caller understand or fix the issue.

  • 401 application/json

    Unauthorized

    Hide response attributes Show response attributes object
    • code string Required

      An error code that identifies the type of error that occurred.

    • message string Required

      A message that describes the error condition in a human-readable form.

    • data object | array Required

      Additional information that can help the caller understand or fix the issue.

  • 429 application/json

    Too many requests

    Hide headers attributes Show headers attributes
    • X-RateLimit-Limit number

      The number of allowed requests in the current period.

    • X-RateLimit-Remaining number

      The number of remaining requests in the current period.

    • X-RateLimit-Retry-After string(datetime)

      The date of number of remaining requests will reset.

    Hide response attributes Show response attributes object
    • code string Required

      An error code that identifies the type of error that occurred.

    • message string Required

      A message that describes the error condition in a human-readable form.

    • data object | array Required

      Additional information that can help the caller understand or fix the issue.

  • 500 application/json

    Internal server error

    Hide response attributes Show response attributes object
    • code string Required

      An error code that identifies the type of error that occurred.

    • message string Required

      A message that describes the error condition in a human-readable form.

    • data object | array Required

      Additional information that can help the caller understand or fix the issue.

GET /user/accounts/
curl \
 --request GET 'https://m2e.cloud/api/v1/api/user/accounts/' \
 --header "access-token: $API_KEY"
Response examples (200)
# Headers
X-RateLimit-Limit: 100
X-RateLimit-Remaining: 90
X-RateLimit-Retry-After: 2022-11-04T13:43:28Z

# Payload
[
  {
    "token": "a1b2c3d4-5678-90ab-cdef-1234567890ab",
    "channel": "ebay",
    "title": "My eBay Account",
    "identifier": "ebay-usr-12345",
    "is_valid": true,
    "create_date": "2020-12-30T15:30:50Z"
  }
]
Response examples (404)
[
  {
    "code": 404,
    "message": "Entity is not found."
  }
]
Response examples (401)
[
  {
    "code": 401,
    "message": "Unauthorized"
  }
]
Response examples (429)
[
  {
    "code": 429,
    "message": "Too many requests."
  }
]
Response examples (500)
[
  {
    "code": 500,
    "message": "Internal server error."
  }
]