PricelistLine Resources

API version 1.0
Wednesday, 28 of January 2015

Introduction

The purpose of this section is to describe the Repcamp's pricelistline Resources. Each resource is described through a list fields definition guide and their uses in the Resources request / response actions

 

GET pricelistlines

Receive a collection of pricelistline Objects.

 

Resource URL

http://api.repcamp.com/v1/pricelistlines

 

Resource Information

Rate Limited? Yes
Requests per rate limit window: unlimited/user
Authentication: Requires API auth
Response Formats: json
 
HTTP Methods: GET
Resource family: pricelistlines
Response Object: pricelistline
API Version: v1.1

 

Parameters

Parameter Required? Description
skip No Number of objects to be get by the request. Required for a paginated request
https://api.repcamp.com/v1/pricelistlines?skip=200&take=20
take No Number of objects to be get by the request. Required for a paginated request
https://api.repcamp.com/v1/pricelistlines?skip=200&take=20

Response

Status 200  - Content body: Array of customers

Status: 401 - Unauthorized

Status: 500 - Error

 

POST pricelistlines

Add a pricelistline Object .

 

Resource URL

http://api.repcamp.com/v1/pricelistlines

 

Resource Information

Rate Limited? Yes
Requests per rate limit window: unlimited/user
Authentication: Requires API auth
Response Formats: json
 
HTTP Methods: POST
Resource family: pricelistlines
Post Object: pricelistlines
API Version: v1.1

Response

Status 200  Content body: JSON Object that contains the guid of the object inserted: {_id:219918292198919}

Status: 401 - Unauthorized

Status: 500 - Error

 

POST pricelistlines/bulk

Add a list of pricelistlines

 

Resource URL

http://api.repcamp.com/v1/pricelistlines/bulk

 

Resource Information

Rate Limited? Yes
Requests per rate limit window: unlimited/user
Authentication: Requires API auth
Response Formats: json
 
HTTP Methods: POST
Resource family: pricelistlines
Post Object: pricelistline array
API Version: v1.1

Response

Status 200  Content body: JSON Object
 

{Total:Elements sended
inserts: Number of inserts
updates: Number of updates
errors: Number of errors
items_error: array that contains the codes of the error objects. }

 

{
"item_type": "Pricelistline",
"total": 2,
"inserts": 2,
"updates": 0,
"errors": 0,
"items_error": [ ]
}

 

Status: 401 - Unauthorized

Status: 500 - Error

 

PUT pricelistlines/:code

Update a pricelistline by code

 

Resource URL

http://api.repcamp.com/v1/pricelistlines/:code

 

Resource Information

Rate Limited? Yes
Requests per rate limit window: unlimited/user
Authentication: Requires API auth
Response Formats: json
 
HTTP Methods: GET
Resource family: pricelistlines
Post Object: pricelistline
API Version: v1.1

 

Parameters

Parameter Required? Description
code Yes pricelistline Code
https://api.repcamp.com/v1/pricelistlines/CUS2200
 

Response

Status 200  Content body: JSON Object that contains the guid of the object updated: {_id:219918292198919}

Status: 401 - Unauthorized

Status: 500 - Error

 

DELETE pricelistlines/:code

Delete a pricelistline by code

 

Resource URL

http://api.repcamp.com/v1/pricelistlines/:code

 

Resource Information

Rate Limited? Yes
Requests per rate limit window: unlimited/user
Authentication: Requires API auth
Response Formats: json
 
HTTP Methods: DELETE
Resource family: pricelistlines
API Version: v1.1

Parameters

Parameter Required? Description
code Yes pricelistline Code
https://api.repcamp.com/v1/pricelistlines/CUS2200
 

Response

Status 200  Content body: JSON Object that contains the guid of the object deleted: {_id:219918292198919}

Status: 401 - Unauthorized

Status: 500 - Error