⚙️Examples

Request (sending one product brand/SKU)

curl --location --request PUT 'https://api.alephcrm.com/v2/productlisting/update-status?API_KEY=AAAAAAAA-XXX-XXX-XXX-XXXXXXXXXXXX&accountId=ZZZZ \
--header 'Content-Type: application/json' \
--header 'Cookie: xxx' \
--data-raw '[
  {
    "Brand": "Bosch",
    "SKU": "MKNJ-122",
    "Status": 15
  }
]'

Response

{
    "Total": 3,
    "Results": [
        {
            "Status": "200",
            "Message": "Status changed successfully",
            "ProductListingStatus": {
                "ProductListingId": "MLB2928711",
                "ProductListingStatus": 15
            }
        },
        {
            "Status": "200",
            "Message": "Status changed successfully",
            "ProductListingStatus": {
                "ProductListingId": "MLB4428292",
                "ProductListingStatus": 15
            }
        },
        {
            "Status": "200",
            "Message": "Status changed successfully",
            "ProductListingStatus": {
                "ProductListingId": "MLB6458636",
                "ProductListingStatus": 15
            }
        }
}

Request (sending product listings IDs)

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

Response:

{
    "Total": 2,
    "Results": [
        {
            "Status": "404",
            "Message": "Product listing ID not found",
            "ProductListingStatus": {
                "ProductListingId": "MLC3271881",
                "ProductListingStatus": 35
            }
        },
        {
            "Status": "200",
            "Message": "Status changed successfully",
            "ProductListingStatus": {
                "ProductListingId": "MLC1029292",
                "ProductListingStatus": 15
            }
        }
    ]
}

Last updated