{
    "additionalProperties": true,
    "definitions": {},
    "description": "inventory_push_v1",
    "links": [
        {
            "description": "inventory_push_v1",
            "href": "/inventory_push_v1",
            "method": "post",
            "rel": "instances",
            "schema": {
                "allOf": [
                    {
                        "properties": {
                            "action": {
                                "description": "Action Name name",
                                "example": "catalog_get_config",
                                "type": "string"
                            },
                            "channel_info": {
                                "properties": {
                                    "id": {
                                        "description": "channel id",
                                        "example": 21,
                                        "type": "integer"
                                    }
                                },
                                "type": "object"
                            },
                            "client_id": {
                                "description": "RetailOPS client id",
                                "example": 497,
                                "type": "integer"
                            },
                            "integration_auth_token": {
                                "description": "Randomly generated authorization token, for authenticating genuine RetailOps- originated requests.",
                                "example": "2KuxqV9rsAtAM78i47CITMvtnflUapNmgGJAvWiHqgUrk1xkeDNWlM3EsrmJEtmV",
                                "type": "string"
                            },
                            "version": {
                                "description": "Action Version",
                                "example": 1,
                                "type": "integer"
                            }
                        },
                        "required": [
                            "action",
                            "version",
                            "client_id",
                            "channel_info"
                        ],
                        "type": "object"
                    },
                    {
                        "properties": {
                            "inventory_updates": {
                                "description": "List of inventory item updates",
                                "items": {
                                    "properties": {
                                        "quantity_available": {
                                            "description": "quantity available",
                                            "example": 24,
                                            "type": "integer"
                                        },
                                        "quantity_detail": {
                                            "description": "Detailed breakdown of inventory quantities contributing to the top-line numbers",
                                            "items": {
                                                "properties": {
                                                    "available_quantity": {
                                                        "description": "Quantity which is presently available for sale",
                                                        "type": "integer"
                                                    },
                                                    "estimated_availability_date": {
                                                        "description": "estimated availability date for one unit",
                                                        "type": "string"
                                                    },
                                                    "facility_name": {
                                                        "description": "RetailOps Facility Name",
                                                        "type": "string"
                                                    },
                                                    "po": {
                                                        "description": "PO number corresponding to inflight quantity considered to be available",
                                                        "type": "string"
                                                    },
                                                    "po_destination": {
                                                        "description": "PO destinatination",
                                                        "type": "string"
                                                    },
                                                    "quantity_type": {
                                                        "description": "Type of quantity for this item",
                                                        "enum": [
                                                            "internal",
                                                            "external",
                                                            "inflight"
                                                        ],
                                                        "type": "string"
                                                    },
                                                    "total_quantity": {
                                                        "description": "Total quantity, irrespective of sellability or availability",
                                                        "type": "integer"
                                                    },
                                                    "vendor_name": {
                                                        "description": "Vendor Name",
                                                        "type": "string"
                                                    }
                                                },
                                                "type": "object"
                                            },
                                            "type": "array"
                                        },
                                        "sku": {
                                            "description": "sku number",
                                            "example": "S12345",
                                            "type": "string"
                                        }
                                    },
                                    "type": "object"
                                },
                                "type": "array"
                            }
                        },
                        "type": "object"
                    }
                ]
            },
            "targetSchema": {
                "properties": {
                    "events": {
                        "items": {
                            "description": "event returned in action response",
                            "properties": {
                                "associations": {
                                    "description": "",
                                    "items": {
                                        "properties": {
                                            "identifier": {
                                                "description": "identify value corresponding to the type",
                                                "example": "S1234",
                                                "type": "string"
                                            },
                                            "identifier_type": {
                                                "description": "Type of identifier being provided",
                                                "enum": [
                                                    "order_id",
                                                    "order_refnum",
                                                    "orderitem_id",
                                                    "orderitem_refnum",
                                                    "shipment_id",
                                                    "shipmentitem_id",
                                                    "product_id",
                                                    "sku_number"
                                                ],
                                                "example": "sku_number",
                                                "type": "string"
                                            }
                                        },
                                        "type": "object"
                                    },
                                    "type": [
                                        "array",
                                        "null"
                                    ]
                                },
                                "code": {
                                    "description": "error/warning code",
                                    "example": "ERR1234",
                                    "type": "string"
                                },
                                "diagnostic_data": {
                                    "description": "",
                                    "type": "string"
                                },
                                "event_type": {
                                    "description": "event type",
                                    "enum": [
                                        "error",
                                        "warning",
                                        "info"
                                    ],
                                    "example": "error",
                                    "type": "string"
                                },
                                "message": {
                                    "description": "descriptive error/warning message",
                                    "example": "Example error message",
                                    "type": "string"
                                }
                            },
                            "type": "object"
                        },
                        "type": [
                            "array",
                            "null"
                        ]
                    }
                },
                "type": "object"
            },
            "title": "/inventory_push_v1"
        }
    ],
    "properties": {},
    "stability": "draft",
    "title": "/inventory_push_v1",
    "type": "object"
}