# Last product changes Returns the list of products, which were changed (added/edited or deleted). Endpoint is intended to determine the changes after you have loaded the complete list of products and you need to know if any of these have been changed. Guaranteed history is 30 days, older data are deleted progressively. Each product in the log is mentioned only with its last change. For example, if the product was modified and then deleted, the log will show only information about its deletion. Can be filtered by changeType = edit/delete parameter. Creation is considered as action. So, when there is a new item created, it will be displayed like action. Endpoint supports Paging. Description of object attributes with information about changes: |Field | Causes product change | Notes. | |--------------------------------------|---------------------|---------------------------------------| |guid |Yes | | |type |Yes | | |visibility |Yes | | |creationTime |Yes | | |changeTime |Yes | | |shortDescription |Yes | | |description |Yes | | |metaDescription |Yes | | |name |Yes | | |internalNote |Yes | | |defaultCategory |Yes |Only category - product relation change| |defaultCategory.guid |No | | |defaultCategory.name |No | | |supplier |Yes |Only supplier - product relation change| |supplier.guid |No | | |supplier.name |No | | |brand |Yes |Only brand - product relation change | |brand.code |No | | |brand.name |No | | |categories |Yes |Only product - category relation | |categories.guid |No | | |categories.parentGuid |No | | |categories.name |No | | |url |Yes |Only for relative url. Domain change no| |flags |Yes | | |flags.code |No | | |flags.title |No | | |flags.dateFrom |Yes | | |flags.dateTo |Yes | | |variants |Yes | | |variants.code |Yes | | |variants.ean |Yes | | |variants.stock |no | | |variants.unit |yes | | |variants.weight |yes | | |variants.visible |yes | | |variants.minStockSupply |yes | | |variants.negativeStockAllowed |yes | | |variants.amountDecimalPlaces |yes | | |variants.price |yes | | |variants.includingVat |yes | | |variants.vatRate |yes | | |variants.currencyCode |yes | | |variants.actionPrice |yes | | |variants.commonPrice |yes | | |variants.manufacturerCode |yes | | |variants.pluCode |yes | | |variants.isbn |yes | | |variants.serialNo |yes | | |variants.mpn |yes | | |variants.availability |yes | | |variants.availabilityWhenSoldOut |yes | | |variants.image |yes | | |variants.parameters |yes | | |variants.name |yes | | |variants.measureUnit |yes | | |variants.measureUnit.measureAmount |yes | | |variants.measureUnit.measureUnitId |yes | | |variants.measureUnit.packagingAmount |yes | | |variants.measureUnit.packagingUnitId |yes | | |variants.measureUnit.measureUnitName |yes | | |variants.measureUnit.packagingUnitName|yes | | |variants.measureUnit.measurePrice |yes | | |variants.recyclingFee |yes | | |images |yes | | |images.name |yes | | |images.priority |yes | | |images.description |yes | | |images.changeTime |yes | | |images.seoName |yes | | |images.cdnName |yes | | |descriptiveParameters |yes | | |descriptiveParameters.name |yes | | |descriptiveParameters.value |yes | | |descriptiveParameters.description |yes | | |descriptiveParameters.priority |yes | | |surchargeParameters |no | | |surchargeParameters.code |no | | |surchargeParameters.name |no | | |surchargeParameters.displayName |no | | |surchargeParameters.description |no | | |surchargeParameters.priority |no | | |surchargeParameters.required |no | | |surchargeParameters.currency |no | | |surchargeParameters.includingVat |no | | |surchargeParameters.values |no | | |surchargeParameters.values.valueIndex |no | | |surchargeParameters.values.description|no | | |surchargeParameters.values.price |no | | |surchargeParameters.values.priority |no | | |surchargeParameters.values.visible |no | | |setItems |yes | | |setItems.guid |no | | |setItems.code |no | | |setItems.amount |no | | |filteringParameters |yes |Only relation | |filteringParameters.code |no | | |filteringParameters.name |no | | |filteringParameters.displayName |no | | |filteringParameters.description |no | | |filteringParameters.priority |yes | | |filteringParameters.googleMapping |no | | |filteringParameters.values |yes |Only relation | |filteringParameters.values.valueIndex |no | | |filteringParameters.values.name |no | | |filteringParameters.values.priority |no | | |filteringParameters.values.color |no | | |filteringParameters.values.image |no | | |warranty |yes |only relation | |warranty.inMonths |no | | |warranty.description |no | | Endpoint: GET /api/products/changes Version: 1.0.0 Security: shoptetAccessToken, shoptetPrivateApiToken ## Query parameters: - `from` (string, required) DateTime from which up to the present we are interested in the changes. + in the time zone Example: "2018-01-01T01:01:01+02:00" - `changeType` (string) Returning only edit or delete type changed records Example: "edit" ## Header parameters: - `Content-Type` (string, required) ## Response 200 fields (application/json): - `data` (object, required) - `data.changes` (array, required) - `data.changes.guid` (string, required) product identifier that can be used to query about the customer''s details. - `data.changes.changeTime` (string,null, required) date and time, when the event happened. ISO 8601 format (). - `data.changes.changeType` (string, required) type of event that happened with the entity. Possible values are following: , , . - `data.paginator` (object, required) - `data.paginator.totalCount` (integer, required) total number of available records - `data.paginator.page` (integer, required) current page - `data.paginator.pageCount` (integer, required) total available of pages - `data.paginator.itemsOnPage` (integer, required) number of currently returned records - `data.paginator.itemsPerPage` (integer, required) required number of records per page - `errors` (array,null, required) - `errors.errorCode` (string, required) Short text error identification - `errors.message` (string, required) Descriptive error message - `errors.instance` (string, required) Identification of the entity referenced