⚙️Examples

Request:

curl --location --request PUT 'https://api.alephcrm.com/v2/productlisting/discounts?API_KEY=AAAAAAAA-XXX-XXX-XXX-XXXXXXXXXXXX&accountId=ZZZZ \
--header 'Content-Type: application/json' \
--header 'Cookie: xxx' \
--data-raw '[
  {
    "Brand": "Bosch",
    "SKU": "MKNJ-122",
    "DiscountPercent": 30.00,
    "StartDate": "2021-09-01T20:23:33.638Z",
    "FinishDate":"2021-09-03T20:17:33.638Z"
  }
]'

Response

{
	"Quantities": {
		"Ok": 1,
		"Error": 0,
		"Warning": 0,
		"Info": 0,
		"Total": 1
	},
	"Items": [
		{
			"ItemNumber": 1,
			"KeyField": "SKU",
			"keyValue": "MKNJ-122",
			"Messages": [
				{
					"Code": 3579,
					"Message": "16183 - MLA1135267969 - Se edito correctamente la publicación. "
				}
			]
		},
		{
			"ItemNumber": 0,
			"KeyField": "MLA1135267969",
			"keyValue": "MLA1135310952 - MLA1135304949 - MLA1135255180 - MLA1135261797 - MLA1135238575 - MLA1135310953 - MLA1135279552 - MLA1135238576 - MLA1135268031 - MLA1135286057 - MLA1135248962",
			"Messages": [
				{
					"Code": 3581,
					"Message": "Warning: MLA1135267969 is related to the following product listings: MLA1135310952-MLA1135304949-MLA1135255180-MLA1135261797-MLA1135238575-MLA1135310953-MLA1135279552-MLA1135238576-MLA1135268031-MLA1135286057-MLA1135248962 and will be updated together"
				}
			]
		}
	]
}

Request (sending product listings IDs)

curl --location --request PUT 'https://api.alephcrm.com/v2/productlisting?API_KEY=AAAAAAAA-XXX-XXX-XXX-XXXXXXXXXXXX&accountId=ZZZZ \
--header 'Content-Type: application/json' \
--header 'Cookie: xxx' \
--data-raw '[
  {
    "ExternalPublications": {
	"MLC3271881",
	"MLC1029292",
	"MLC4139387",
    },
    "Price": {
       "Price": 2300.90        
    }
  }
]'

Last updated