s1 API Host

<back to all web services

CreatePreorderEnrollmentAdminRequest

The following routes are available for this service:
POST, OPTIONS/api/admin/preorders/{preorderId}/enrollmentsPlace a preorder orderUser has to be authenticated to place the order.
Parameters:
NameParameterData TypeRequiredDescription
preorderIdpathstringNo

To override the Content-type in your clients HTTP Accept Header, append the .jsv suffix or ?format=jsv

HTTP + JSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /jsv/reply/CreatePreorderEnrollmentAdminRequest HTTP/1.1 
Host: api2.ghs-automotive.nl 
Content-Type: text/jsv
Content-Length: length

{
	debtorId: String,
	debtorName: String,
	companyId: String,
	warehouseId: String,
	preorderId: String,
	personnelId: String,
	shippingDate: 0001-01-01,
	comment: String,
	contactPerson: String,
	contactEmail: String,
	isDebit: False,
	isDeferredPayment: False
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	preorderEnrollment: 
	{
		id: String,
		preorderId: 0,
		personnelId: String,
		comment: String,
		contactPerson: String,
		contactEmail: String,
		isDebit: False,
		isDeferredPayment: False,
		isCreatedByPersonnel: False,
		shippingDate: 0001-01-01,
		createDate: 0001-01-01,
		user: 
		{
			userId: String,
			displayName: String,
			email: String,
			preferredStyle: Ghs,
			address: 
			{
				id: String,
				name: String,
				address: String,
				zipCode: String,
				city: String,
				countryCode: String,
				countryCodeIso2: String,
				telephoneNumber: String
			},
			userSettings: 
			{
				sendPlacedOrderReceipt: False,
				saveGaik: False,
				reconfirmGaik: False,
				lastApplicant: String,
				lastAdditionalIdType: String,
				lastAdditionalId: String,
				lastIdType: String,
				lastId: String
			},
			customerGroup: String,
			logo: String,
			hasMijnGrossierAccounts: False,
			linkedWarehouse: 
			{
				id: String,
				region: String,
				address: 
				{
					id: String,
					name: String,
					address: String,
					zipCode: String,
					city: String,
					countryCode: String,
					countryCodeIso2: String,
					telephoneNumber: String
				},
				warehouseEmail: String,
				shouldEmailExternalOrders: False
			},
			technicalDataProvider: String,
			pickupWarehouse: 
			{
				id: String,
				region: String,
				address: 
				{
					id: String,
					name: String,
					address: String,
					zipCode: String,
					city: String,
					countryCode: String,
					countryCodeIso2: String,
					telephoneNumber: String
				},
				warehouseEmail: String,
				shouldEmailExternalOrders: False
			},
			hasReleventPickupWarehouse: False,
			linkedCompany: 
			{
				linkedCompanyId: String,
				linkedCompanyName: String,
				companyPreferredStyle: Ghs,
				contactEmail: String,
				supportEmail: String,
				bmfEmail: String,
				serverEmail: String,
				dieselInjectorEmail: String,
				externalOrderEmail: String,
				supportTeamPage: String,
				mapUrl: String,
				b2BUrl: String
			},
			district: String,
			certificate: 
			{
				id: String,
				name: String,
				endDate: String,
				isValid: False
			},
			tireCounts: 
			{
				currentYear: 
				{
					purchased: 0,
					returned: 0,
					delta: 0
				},
				lastYear: 
				{
					purchased: 0,
					returned: 0,
					delta: 0
				}
			}
		}
	},
	responseStatus: 
	{
		errorCode: String,
		message: String,
		stackTrace: String,
		errors: 
		[
			{
				errorCode: String,
				fieldName: String,
				message: String
			}
		]
	}
}