Improved responses in preparation for new bulk calls

In order to maintain conformity, we've changed the success responses for the three calls attached to this announcement. The change concerns the Status response in the Body: It will now reflect the text in the HTTP Status header.

The reason for this is the introduction of the Accepted status, indicating a partially accepted request.

This response indicates the entire payload will be processed:
{
    "Status": "OK",
    "Errors": []
}
This response indicates only part of the payload will be processed, returning the errors:
{
  "Status": "Accepted",
  "Errors": [
    {
      "SKU": "product-abc",
      "Error": "Error explanation"
    }
  ]
}
This response indicates no part of the payload will be processed, returning the errors:
{
  "Status": "BadRequest",
  "Errors": [
    {
      "SKU": "product-abc",
      "Error": "Error explanation"
    }
  ]
}

The Accepted status should not appear for any current call.

Changelog

  • improved: CreateProduct
  • improved: UpdateProduct
  • improved: SyncOnlineSale
  • added: