{
"$schema" : "http://json-schema.org/draft-04/schema#",
"required" : [ "purchaseOrder" ],
"additionalProperties" : false,
"properties" : {
"purchaseOrder" : {
"type" : "object",
"additionalProperties" : false,
"properties" : {
"typeCode" : {
"allOf" : [ {
"$ref" : "#/definitions/token"
}, {
"description" : "identifier of the Purchase Order"
} ]
},
"purchaseOrderHeader" : {
"type" : "object",
"additionalProperties" : false,
"properties" : {
"id" : {
"type" : "array",
"items" : {
"$ref" : "#/definitions/normalizedString"
}
},
"lastModificationDateTime" : {
"oneOf" : [ {
"type" : "null"
}, {
"allOf" : [ {
"$ref" : "#/definitions/dateTime"
}, {
"description" : "date time when the order was last updated"
} ]
} ]
},
"description" : {
"type" : "array",
"items" : {
"oneOf" : [ {
"type" : "null"
}, {
"allOf" : [ {
"$ref" : "#/definitions/string"
}, {
"description" : "description of the order"
} ]
} ]
}
},
"note" : {
"type" : "array",
"items" : {
"oneOf" : [ {
"type" : "null"
}, {
"allOf" : [ {
"$ref" : "#/definitions/string"
}, {
"description" : "Note from the customer to customer service"
} ]
} ]
}
},
"status" : {
"type" : "array",
"items" : {
"type" : "object",
"additionalProperties" : false,
"properties" : {
"code" : {
"$ref" : "#/definitions/normalizedString"
}
}
}
},
"customerParty" : {
"type" : "object",
"additionalProperties" : false,
"properties" : {
"id" : {
"type" : "array",
"items" : {
"$ref" : "#/definitions/normalizedString"
}
},
"taxId" : {
"type" : "array",
"items" : {
"$ref" : "#/definitions/normalizedString"
}
},
"dunsid" : {
"$ref" : "#/definitions/normalizedString"
},
"cageid" : {
"$ref" : "#/definitions/normalizedString"
},
"dodaacid" : {
"$ref" : "#/definitions/normalizedString"
},
"accountId" : {
"type" : "array",
"items" : {
"oneOf" : [ {
"type" : "null"
}, {
"allOf" : [ {
"$ref" : "#/definitions/normalizedString"
}, {
"description" : "supplier's account identifier for the customer"
} ]
} ]
}
},
"name" : {
"type" : "array",
"items" : {
"oneOf" : [ {
"type" : "null"
}, {
"allOf" : [ {
"$ref" : "#/definitions/string"
}, {
"description" : "Customer name"
} ]
} ]
}
}
}
},
"supplierParty" : {
"type" : "object",
"additionalProperties" : false,
"properties" : {
"id" : {
"type" : "array",
"items" : {
"$ref" : "#/definitions/normalizedString"
}
},
"taxId" : {
"type" : "array",
"items" : {
"$ref" : "#/definitions/normalizedString"
}
},
"dunsid" : {
"$ref" : "#/definitions/normalizedString"
},
"cageid" : {
"$ref" : "#/definitions/normalizedString"
},
"dodaacid" : {
"$ref" : "#/definitions/normalizedString"
},
"accountId" : {
"type" : "array",
"items" : {
"$ref" : "#/definitions/normalizedString"
}
},
"name" : {
"type" : "array",
"items" : {
"$ref" : "#/definitions/string"
}
}
}
},
"shipToParty" : {
"type" : "object",
"additionalProperties" : false,
"properties" : {
"id" : {
"type" : "array",
"items" : {
"$ref" : "#/definitions/normalizedString"
}
},
"name" : {
"type" : "array",
"items" : {
"$ref" : "#/definitions/string"
}
},
"location" : {
"type" : "array",
"items" : {
"type" : "object",
"additionalProperties" : false,
"properties" : {
"id" : {
"type" : "array",
"items" : {
"$ref" : "#/definitions/normalizedString"
}
},
"coordinate" : {
"type" : "array",
"items" : {
"type" : "object",
"additionalProperties" : false,
"properties" : {
"verticalMeasure" : {
"$ref" : "#/definitions/decimal"
},
"latitudeMeasure" : {
"$ref" : "#/definitions/decimal"
},
"longitudeMeasure" : {
"$ref" : "#/definitions/decimal"
}
}
}
},
"physicalAddress" : {
"type" : "array",
"items" : {
"type" : "object",
"additionalProperties" : false,
"properties" : {
"addressLine" : {
"type" : "array",
"items" : {
"$ref" : "#/definitions/string"
}
},
"buildingNumber" : {
"$ref" : "#/definitions/string"
},
"buildingName" : {
"$ref" : "#/definitions/string"
},
"cityName" : {
"$ref" : "#/definitions/string"
},
"countrySubDivisionCode" : {
"type" : "array",
"items" : {
"$ref" : "#/definitions/token"
}
},
"countryCode" : {
"$ref" : "#/definitions/token"
},
"postalCode" : {
"$ref" : "#/definitions/normalizedString"
}
}
}
},
"glnid" : {
"$ref" : "#/definitions/normalizedString"
}
}
}
},
"contact" : {
"type" : "array",
"items" : {
"type" : "object",
"additionalProperties" : false,
"properties" : {
"typeCode" : {
"$ref" : "#/definitions/token"
},
"personName" : {
"type" : "array",
"items" : {
"type" : "object",
"additionalProperties" : false,
"properties" : {
"formattedName" : {
"$ref" : "#/definitions/string"
}
}
}
}
}
}
}
}
},
"contractReference" : {
"type" : "object",
"additionalProperties" : false,
"properties" : {
"id" : {
"type" : "array",
"items" : {
"$ref" : "#/definitions/normalizedString"
}
}
}
},
"totalAmount" : {
"oneOf" : [ {
"type" : "null"
}, {
"$ref" : "#/definitions/decimal"
} ]
},
"billToParty" : {
"type" : "object",
"additionalProperties" : false,
"properties" : {
"id" : {
"type" : "array",
"items" : {
"$ref" : "#/definitions/normalizedString"
}
},
"accountId" : {
"type" : "array",
"items" : {
"$ref" : "#/definitions/normalizedString"
}
},
"name" : {
"type" : "array",
"items" : {
"$ref" : "#/definitions/string"
}
}
}
},
"transportationTerm" : {
"type" : "array",
"items" : {
"type" : "object",
"additionalProperties" : false,
"properties" : {
"id" : {
"type" : "array",
"items" : {
"$ref" : "#/definitions/normalizedString"
}
},
"freightTermCode" : {
"$ref" : "#/definitions/token"
},
"description" : {
"type" : "array",
"items" : {
"$ref" : "#/definitions/string"
}
},
"note" : {
"type" : "array",
"items" : {
"$ref" : "#/definitions/string"
}
}
}
}
},
"tax" : {
"type" : "array",
"items" : {
"type" : "object",
"additionalProperties" : false,
"properties" : {
"typeCode" : {
"$ref" : "#/definitions/token"
},
"amount" : {
"$ref" : "#/definitions/decimal"
}
}
}
},
"requestedShipDateTime" : {
"$ref" : "#/definitions/dateTime"
},
"orderDateTime" : {
"$ref" : "#/definitions/dateTime"
}
}
},
"purchaseOrderLine" : {
"type" : "array",
"items" : {
"type" : "object",
"additionalProperties" : false,
"properties" : {
"actionCode" : {
"$ref" : "#/definitions/token"
},
"lineNumberId" : {
"$ref" : "#/definitions/normalizedString"
},
"item" : {
"type" : "object",
"additionalProperties" : false,
"properties" : {
"id" : {
"type" : "array",
"items" : {
"$ref" : "#/definitions/normalizedString"
}
},
"customerItemIdentification" : {
"type" : "object",
"additionalProperties" : false,
"properties" : {
"id" : {
"type" : "array",
"items" : {
"$ref" : "#/definitions/normalizedString"
}
}
}
},
"manufacturerItemIdentification" : {
"type" : "object",
"additionalProperties" : false,
"properties" : {
"typeCode" : {
"$ref" : "#/definitions/token"
},
"id" : {
"type" : "array",
"items" : {
"$ref" : "#/definitions/normalizedString"
}
}
}
},
"supplierItemIdentification" : {
"type" : "object",
"additionalProperties" : false,
"properties" : {
"typeCode" : {
"$ref" : "#/definitions/token"
},
"id" : {
"type" : "array",
"items" : {
"$ref" : "#/definitions/normalizedString"
}
}
}
},
"upcid" : {
"$ref" : "#/definitions/normalizedString"
},
"gtinid" : {
"$ref" : "#/definitions/normalizedString"
},
"description" : {
"type" : "array",
"items" : {
"$ref" : "#/definitions/string"
}
},
"countryOfOriginCode" : {
"$ref" : "#/definitions/token"
},
"manufacturingParty" : {
"type" : "object",
"additionalProperties" : false,
"properties" : {
"id" : {
"type" : "array",
"items" : {
"$ref" : "#/definitions/normalizedString"
}
}
}
}
}
},
"quantity" : {
"type" : "array",
"items" : {
"$ref" : "#/definitions/decimal"
}
},
"unitPrice" : {
"type" : "object",
"additionalProperties" : false,
"properties" : { }
},
"extendedAmount" : {
"$ref" : "#/definitions/decimal"
},
"totalAmount" : {
"$ref" : "#/definitions/decimal"
},
"tax" : {
"type" : "array",
"items" : {
"type" : "object",
"additionalProperties" : false,
"properties" : { }
}
},
"specialPriceAuthorizationCode" : {
"$ref" : "#/definitions/normalizedString"
},
"taxExemptCodes" : {
"type" : "object",
"required" : [ "code" ],
"additionalProperties" : false,
"properties" : {
"code" : {
"type" : "array",
"minItems" : 1,
"items" : {
"$ref" : "#/definitions/normalizedString"
}
}
}
},
"taxExemptIndicator" : {
"$ref" : "#/definitions/xbt_BooleanType"
}
}
}
}
}
}
},
"definitions" : {
"token" : {
"type" : "string"
},
"normalizedString" : {
"type" : "string"
},
"dateTime" : {
"type" : "string",
"format" : "date-time"
},
"string" : {
"type" : "string"
},
"decimal" : {
"type" : "number"
},
"xbt_BooleanType" : {
"type" : "boolean"
}
}
} |