{
    "additionalProperties": true,
    "definitions": {},
    "description": "order_shipment_submit_v1",
    "links": [
        {
            "description": "order_shipment_submit_v1",
            "href": "/order_shipment_submit_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": {
                            "channel_order_refnum": {
                                "description": "channel reference number for order",
                                "type": "string"
                            },
                            "retailops_order_id": {
                                "description": "RetailOps Order ID",
                                "type": "integer"
                            },
                            "shipment": {
                                "description": "shipment object",
                                "properties": {
                                    "packages": {
                                        "items": {
                                            "description": "a package included in shipment",
                                            "properties": {
                                                "carrier_class_name": {
                                                    "description": "Ship Carrier's Class Name",
                                                    "example": "Ground",
                                                    "type": "string"
                                                },
                                                "carrier_name": {
                                                    "description": "Ship Carrier Name",
                                                    "example": "UPS",
                                                    "type": "string"
                                                },
                                                "channel_ship_code": {
                                                    "description": "Code which has been configured for this channel to represent the above carrier/class. EG: 'UPS Ground' -> 'UPSGRND' or 'U,GRD'",
                                                    "type": "string"
                                                },
                                                "date_shipped": {
                                                    "description": "Date the package was shipped",
                                                    "example": "2016-04-08T21:13:11Z",
                                                    "type": "string"
                                                },
                                                "package_items": {
                                                    "items": {
                                                        "properties": {
                                                            "channel_item_refnum": {
                                                                "description": "Channel reference number for this item",
                                                                "type": "string"
                                                            },
                                                            "quantity": {
                                                                "description": "Quantity of the referenced items which was included in this package",
                                                                "type": "integer"
                                                            },
                                                            "retailops_order_item_id": {
                                                                "description": "RetailOps Order Item ID",
                                                                "type": "integer"
                                                            },
                                                            "retailops_shipment_item_id": {
                                                                "description": "RetailOps Shipment Item ID",
                                                                "type": "integer"
                                                            },
                                                            "sku": {
                                                                "description": "SKU Number of the item",
                                                                "type": "string"
                                                            }
                                                        },
                                                        "type": "object"
                                                    },
                                                    "type": "array"
                                                },
                                                "retailops_package_id": {
                                                    "description": "RetailOps Package ID",
                                                    "type": "integer"
                                                },
                                                "tracking_number": {
                                                    "description": "Tracking number",
                                                    "example": "ZX29827782929",
                                                    "type": "string"
                                                },
                                                "weight_kg": {
                                                    "description": "Weight in Kilograms",
                                                    "type": "number"
                                                }
                                            },
                                            "type": "object"
                                        },
                                        "type": "array"
                                    },
                                    "retailops_shipment_id": {
                                        "description": "RetailOps Shipment ID",
                                        "type": "integer"
                                    }
                                },
                                "type": "object"
                            }
                        },
                        "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": "/order_shipment_submit_v1"
        }
    ],
    "properties": {},
    "stability": "draft",
    "title": "/order_shipment_submit_v1",
    "type": "object"
}