{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "title": "ItemWriteRequest",
  "type": "object",
  "properties": {
    "order_item": {
      "type": "integer",
      "description": "The ID of an order item that you wish to create a receipt for. This will be the id property found in the PO or Order Items responses for this item."
    },
    "pass_quantity": {
      "type": "string",
      "format": "decimal",
      "pattern": "^-?\\d{0,10}(?:\\.\\d{0,5})?$"
    },
    "fail_quantity": {
      "type": "string",
      "format": "decimal",
      "pattern": "^-?\\d{0,10}(?:\\.\\d{0,5})?$"
    }
  },
  "required": [
    "fail_quantity",
    "order_item",
    "pass_quantity"
  ]
}