⚙️Examples

Request:

curl --location --request POST 'https://api.alephcrm.com/v2/products?API_KEY=AAAAAAAA-XXX-XXX-XXX-XXXXXXXXXXXX&accountId=ZZZZ&priceListId=WW \
--header 'Content-Type: application/json' \
--data-raw '[
  {
    "Brand": "BUJ",
    "SKU": "CA1463-D",
    "Stock": {
      "Quantity": 15
    },
    "Price": {
      "PriceWithTaxes": 6000.60
    }
  },
  {
    "Brand": "BUJ",
    "SKU": "CA1463-DDDD",
    "Stock": {
      "Quantity": 30
    },
    "Price": {
      "PriceWithTaxes": 900
    }
  }
]'

Response

{
    "Quantities": {
        "Ok": 1,
        "Error": 1,
        "Warning": 0,
        "Info": 0,
        "Total": 2
    },
    "Items": [
        {
            "ItemNumber": 0,
            "ValidationLevel": {
                "Id": 0,
                "Name": "Error"
            },
            "KeyField": "SKU",
            "KeyValue": "CA1463-DDDD",
            "Messages": [
                {
                    "Level": {
                        "Id": 0,
                        "Name": "Error"
                    },
                    "Code": 6,
                    "Message": "No tiene asignado ningún producto con el marca-código ingresado",
                    "ValidatedValue": "CA1463-DDDD"
                }
            ]
        }
    ]
}

Last updated