{
	"$schema": "http://json-schema.org/draft-03/schema#",
	"title": "Delivery location GET schema",
	"description": "A schema for fetching a specific delivery location.",
	"type": "object",
	"restdocs": "http://restdocs.e-conomic.com/#post-customers-customernumber-delivery-locations",
	"properties": {
		"address": {
			"type": "string",
			"maxLength": 255,
			"description": "Address for the delivery location including street and number."
		},
		"city": {
			"type": "string",
			"maxLength": 50,
			"description": "The delivery location city."
		},
		"country": {
			"type": "string",
			"maxLength": 50,
			"description": "The delivery location country."
		},
		"deliveryLocationNumber": {
			"type": "integer",
			"minimum": 1,
			"readOnly": true,
			"description": "The delivery location number is a unique numerical identifier. This identifier will be created for you."
		},
		"postalCode": {
			"type": "string",
			"maxLength": 15,
			"description": "The delivery location postcode."
		},
		"sortKey": {
			"type": "integer",
			"description": "The delivery location number displayed in the e-conomic web interface. If not supplied this key will be created for you.",
			"minimum": 1
		},
		"termsOfDelivery": {
			"type": "string",
			"maxLength": 100,
			"description": "Special delivery terms that apply to."
		},
		"barred": {
			"type": "boolean",
			"filterable": true,
			"sortable": false,
			"description": "Indicates if the delivery location is barred from usage. Default is false."
		},
		"customer": {
			"type": "object",
			"description": "The customer this delivery location belongs to.",
			"properties": {
				"customerNumber": {
					"type": "integer",
					"maximum": 999999999,
					"minimum": 1,
					"description": "The customer number is a positive unique numerical identifier with a maximum of 9 digits. This value will be picked up from the url."
				},
				"self": {
					"type": "string",
					"format": "uri",
					"description": "A unique reference to the customer resource."
				}
			}
		}
	}
}