Returns selling pricelists for the authenticated owner

GET/sms/portal/selling/pricelists

Returns a paginated list of the authenticated owner's active selling pricelists.

Privilege:

  • bulk-cust-pricelist-own.view

Auditlog Event: pricelist.share

Errors:

  • NOT_AUTHORIZED - Not authorized
  • PRICE_LIST_NOT_FOUND - No active selling pricelists found for the owner
  • INT_APP_ERROR - Unexpected internal error / missing instance context
Base URL
https://api-cpaas.sms.es/bulk/pricelists
Authentication

OAuth2 — send Authorization: Bearer <access_token>. Token URL: https://accounts-cpaas.sms.es/oauth2/access-token

Request

Query parameters

page_sizeinteger

Page size

Default: 10
page_numberinteger

Page number

Default: 1
pagingstring

Paging options in form of &paging=page_num,page_size e.g. paging=1,10

Request example

cURL · cURL
curl -L -X GET "https://api-cpaas.sms.es/bulk/pricelists/sms/portal/selling/pricelists" \
  -H "Accept: application/json" \
  -H "Authorization: Bearer <access_token>"

Responses

A list of owner selling pricelists

application/json
dataobject[]required
Show child attributes
currencyCodestring

ISO currency code

currencyIdinteger

Pricelist currency ID

idinteger

Selling pricelist ID

namestring

Pricelist name

metaobjectrequired
Show child attributes
paginationobjectrequired
Show child attributes
countintegerrequired

Number of records in this page

current_pageintegerrequired

Current page number (1-based)

linksobjectrequired
Show child attributes
firststring

URL of the first page

laststring

URL of the last page

nextstring

URL of the next page, if any

prevstring

URL of the previous page, if any

per_pageintegerrequired

Requested page size

totalintegerrequired

Total number of records matching the query

total_pagesintegerrequired

Total number of pages

Example response
{
  "data": [
    {
      "currencyCode": "string",
      "currencyId": 0,
      "id": 0,
      "name": "string"
    }
  ],
  "meta": {
    "pagination": {
      "count": 0,
      "current_page": 0,
      "links": {
        "first": "string",
        "last": "string",
        "next": "string",
        "prev": "string"
      },
      "per_page": 0,
      "total": 0,
      "total_pages": 0
    }
  }
}