post https://api.repsly.com/v3/import/pricelist
Endpoint is used to import items from your system into pricelists that already exist in Repsly.
Request definition
Required keys are marked with a red triangle 🔺
Name | Type | Description |
---|---|---|
PricelistName 🔺 | String | Pricelist name |
ProductCode 🔺 | String | Product code |
Price 🔺 | Double | Product price on pricelist |
Active | Boolean | If pricelist item is active or inactive |
DateAvailableFrom | Datetime | Date after which the product is available onthe pricelist. If null, the lower date limit isconsidered open |
DateAvailableTo | Datetime | Date until which the product is available onthe pricelist. If null the upper date limit isconsidered open |
ClientID | String | Unique client ID |
ManufactureID | String | Unique manufacture ID |
MinQuantity | Nullable <Integer> | The number of product items that can be put on the same purchase order cannot be lower than these limits (if left as null, that limit is not imposed) |
MaxQuantity | Nullable <Integer> | The number of product items that can be put on the same purchase order cannot be higher than these limits (if left as null, that limit is not imposed) |
Response definition
Name | Type | Description |
---|---|---|
Code | Integer | Error identifier (0 = no errors) |
Message | String (255) | Response affirmative or error message |
For a successful HTTP request (code 200), you will always receive a status response with Code equal to 0 (no error) and Message = “Pricelist import job started asynchronously under ID: {ImportJobID}”, where {ImportJobID} is the key you can use to check the current status of the import. To check the status of the import job you can use **Import job status** endpoint.
In case of a HTTP bad request (code 400), you will also receive a status response with Code not equal to 0 and an error message.