Skip to content

Last catalog update date

The product catalog is totally dynamic and can suffer changes. To easily detect changes in the product catalog we have the method CatalogLastUpdatedDateTime, which will return the date on which the last change was made in the product catalog.

Important

To know if the catalog has been modified since it was last obtained, we have to compare the date that was obtained from the catalog the last time it was imported and the date obtained in this method.

If the date obtained is less than or equal to the one stored in the catalog that we have processed, we do not have to do anything.

If the date obtained is greater, that is, more current than the one we have stored, we have to import the catalog again for internal processing.

Access method

GET /activity/cataloglastupdateddatetime

Response structure

  • LastUpdatedDateTime (date): date of the last modification of the catalog. ISO 8601 format (yyyy-MM-ddThh:mm:ss.fffffff).
  • Success (boolean): value that indicates whether the call was processed correctly or not.
  • Timestamp (dateTime): time at which the request was processed. ISO 8601 format (yyyy-MM-ddThh:mm:ss.fffffff).
  • ErrorMessage (string): error message explaining why the request was not successful. If it was correct, it will return null.
  • ErrorCodes (string[]): list of codes that identify the errors that occurred in the call.
  • ErrorEntityBreakDown (list): list that contains objects with the name and ID in case of error.
    • Id (string): identifier
    • Name (string): related name of the identifier.

Response example

{
    "LastUpdatedDateTime": "2021-08-15T14:23:44",
    "Success": true,
    "Timestamp": "2022-01-01T10:30:00.0000000",
    "ErrorMessage": null
}