en:api_start

This is an old revision of the document!


To work with the API, you need to add a user with a token to Ysell.

  Go to the user management section (Settings → Users)
  Add a new user (you need to fill in the API token field with a random value)
  Description of the scheme of interaction with the API: (Settings → Ysell API)

It is convenient to use Swagger UI for testing (Settings → Ysell API)

  Click the "Authorize" button
  Fill in the value in the form Bearer YourTokenFromYsell (Replace YourTokenFromYsell with your token that you registered in Ysell)
  Try to get a list of all suppliers (find the Manufacturer section and click on the GET / marketplace method, click on the Execute button)

By default, all API methods return 20 records.

Pay attention to response headers

x-pagination-current-page: 1 - the current page

x-pagination-page-count: 1 - total pages

x-pagination-per-page: 20 - records per page

x-pagination-total-count: 9 - total records

To specify the page number, specify the parameter page = PageNumber

  • en/api_start.1629212207.txt.gz
  • Last modified: 2021/08/17 16:56
  • by support