{
    "otep_version": "0.1",
    "profile": "parcel",
    "phases": [
        "pre_shipment",
        "preparing",
        "pickup",
        "inbound",
        "in_custody",
        "transit",
        "out_for_delivery",
        "delivered",
        "exception",
        "return"
    ],
    "source_types": [
        "self_delivery",
        "third_party_delivery",
        "carrier_label"
    ],
    "time_types": [
        "actual",
        "estimated",
        "scheduled"
    ],
    "incident_reasons": [
        "carrier_damaged_parcel",
        "carrier_sorting_error",
        "carrier_address_not_found",
        "carrier_parcel_lost",
        "carrier_not_enough_time",
        "carrier_vehicle_issue",
        "carrier_capacity_exceeded",
        "carrier_mechanical_delay",
        "retailer_cancelled",
        "retailer_incorrect_data",
        "retailer_not_ready",
        "retailer_incorrect_parcel",
        "retailer_incorrect_dimensions",
        "retailer_packaging_issue",
        "consignee_refused",
        "consignee_business_closed",
        "consignee_not_available",
        "consignee_not_home",
        "consignee_cancelled",
        "consignee_verification_failed",
        "consignee_incorrect_address",
        "consignee_access_restricted",
        "consignee_safe_place_unavailable",
        "customs_delay",
        "customs_documentation",
        "customs_duties_unpaid",
        "customs_prohibited",
        "customs_inspection",
        "weather_delay",
        "natural_disaster",
        "force_majeure",
        "parcel_being_researched",
        "security_issue",
        "regulatory_hold",
        "unknown"
    ],
    "status_codes": [
        {
            "code": "information_submitted",
            "phase": "pre_shipment",
            "terminal": false,
            "requires_pod": false,
            "external": {
                "epcis": [
                    "commissioning",
                    "active"
                ],
                "one_record": "BKD",
                "uncefact": "order_received"
            }
        },
        {
            "code": "booking_confirmed",
            "phase": "pre_shipment",
            "terminal": false,
            "requires_pod": false,
            "external": {
                "epcis": [
                    "commissioning",
                    "active"
                ],
                "one_record": "BKD",
                "uncefact": "booked"
            }
        },
        {
            "code": "awaiting_pickup",
            "phase": "pre_shipment",
            "terminal": false,
            "requires_pod": false,
            "external": {
                "epcis": [
                    "staging_outbound",
                    "in_progress"
                ],
                "one_record": "FOH",
                "uncefact": "ready_for_pickup"
            }
        },
        {
            "code": "out_for_pickup",
            "phase": "pickup",
            "terminal": false,
            "requires_pod": false,
            "external": {
                "epcis": [
                    "departing",
                    "in_progress"
                ],
                "one_record": "FOH",
                "uncefact": "pickup_en_route"
            }
        },
        {
            "code": "picked_up",
            "phase": "pickup",
            "terminal": false,
            "requires_pod": true,
            "external": {
                "epcis": [
                    "receiving",
                    "in_progress"
                ],
                "one_record": "RCS",
                "uncefact": "picked_up"
            }
        },
        {
            "code": "pickup_failed",
            "phase": "exception",
            "terminal": false,
            "requires_pod": false,
            "external": {
                "epcis": [
                    "receiving",
                    "in_progress"
                ],
                "one_record": "DIS",
                "uncefact": "pickup_failed"
            }
        },
        {
            "code": "pickup_rescheduled",
            "phase": "exception",
            "terminal": false,
            "requires_pod": false,
            "external": {
                "epcis": [
                    "staging_outbound",
                    "in_progress"
                ],
                "one_record": "FOH",
                "uncefact": "pickup_rescheduled"
            }
        },
        {
            "code": "received",
            "phase": "inbound",
            "terminal": false,
            "requires_pod": false,
            "external": {
                "epcis": [
                    "receiving",
                    "in_progress"
                ],
                "one_record": "RCF",
                "uncefact": "received_at_facility"
            }
        },
        {
            "code": "arrival_scan",
            "phase": "inbound",
            "terminal": false,
            "requires_pod": false,
            "external": {
                "epcis": [
                    "arriving",
                    "in_transit"
                ],
                "one_record": "ARR",
                "uncefact": "arrived_at_facility"
            }
        },
        {
            "code": "in_transit",
            "phase": "transit",
            "terminal": false,
            "requires_pod": false,
            "external": {
                "epcis": [
                    "departing",
                    "in_transit"
                ],
                "one_record": "DEP",
                "uncefact": "in_transit"
            }
        },
        {
            "code": "package_outbound",
            "phase": "transit",
            "terminal": false,
            "requires_pod": false,
            "external": {
                "epcis": [
                    "staging_outbound",
                    "in_transit"
                ],
                "one_record": "DEP",
                "uncefact": "departed"
            }
        },
        {
            "code": "removed_from_route",
            "phase": "exception",
            "terminal": false,
            "requires_pod": false,
            "external": {
                "epcis": [
                    "holding",
                    "in_progress"
                ],
                "one_record": "DIS",
                "uncefact": "in_transit"
            }
        },
        {
            "code": "route_cancelled",
            "phase": "exception",
            "terminal": false,
            "requires_pod": false,
            "external": {
                "epcis": [
                    "holding",
                    "in_progress"
                ],
                "one_record": "DIS",
                "uncefact": "in_transit"
            }
        },
        {
            "code": "out_for_delivery",
            "phase": "out_for_delivery",
            "terminal": false,
            "requires_pod": false,
            "external": {
                "epcis": [
                    "departing",
                    "in_transit"
                ],
                "one_record": "NFD",
                "uncefact": "out_for_delivery"
            }
        },
        {
            "code": "delivered",
            "phase": "delivered",
            "terminal": true,
            "requires_pod": true,
            "external": {
                "epcis": [
                    "receiving",
                    "received"
                ],
                "one_record": "DLV",
                "uncefact": "delivered"
            }
        },
        {
            "code": "delivery_failed",
            "phase": "exception",
            "terminal": false,
            "requires_pod": false,
            "external": {
                "epcis": [
                    "holding",
                    "in_progress"
                ],
                "one_record": "AWD",
                "uncefact": "delivery_failed"
            }
        },
        {
            "code": "delivery_rescheduled",
            "phase": "exception",
            "terminal": false,
            "requires_pod": false,
            "external": {
                "epcis": [
                    "holding",
                    "in_progress"
                ],
                "one_record": "AWD",
                "uncefact": "delivery_rescheduled"
            }
        },
        {
            "code": "return_to_sender",
            "phase": "return",
            "terminal": true,
            "requires_pod": false,
            "external": {
                "epcis": [
                    "shipping",
                    "returned"
                ],
                "one_record": "RTS",
                "uncefact": "returned"
            }
        },
        {
            "code": "rejected_by_recipient",
            "phase": "return",
            "terminal": true,
            "requires_pod": false,
            "external": {
                "epcis": [
                    "shipping",
                    "returned"
                ],
                "one_record": "RTS",
                "uncefact": "refused"
            }
        },
        {
            "code": "cancelled",
            "phase": "return",
            "terminal": true,
            "requires_pod": false,
            "external": {
                "epcis": [
                    "void_shipping",
                    "inactive"
                ],
                "one_record": "CNL",
                "uncefact": "cancelled"
            }
        }
    ]
}