17. Price List

Interface

It allows you:

  • to get list of defined Price Lists

  • to create a new Price List

Columns that can be used as filters:

  • Organization

  • Name

  • Active

  • Type

Actions can be done:

  • list

  • create

API Methods:

List:

URL: https://api.socratecloud.com/webapi/rest/price_list/list/{version}?startRow={0}&endRow={100}&accessToken={access_token}

Method: GET

Available filter parameters:

  • Organization

  • Name

  • Active

  • Type

Return: JSON object with next format:

{

"data": [

{

"Organization": "*",

"Created": "2007-08-22 08:30:20+0300",

"CreatedBy": "System",

"Updated": "2014-04-29 09:19:57+0300",

"UpdatedBy": "SuperUser",

"Active": true,

"Name": "EUR Sales Standard",

"Currency": "EUR",

"Type": "Sale"

}

],

"totalRows": 1

}

Create:

URL: https://api.socratecloud.com/webapi/rest/price_list/create/{version}?startRow={0}&endRow={100}&accessToken={access_token}

Method: POST

Return: price list name for success or error message (start with "ERROR: ")

Data format:

{

"Organization": "*",

"Active": true,

"Name": "RON Sales Standard",

"Currency": "RON",

"Type": "Sale"

}