Feature Pack 7

Get user checkout profile

The following example shows how to get user checkout profile.

Request


GET /wcs/resources/store/10101/person/@self/checkoutProfile HTTPS/1.1
Host: testserver.mycompany.com
Content-Type: application/json

Response


HTTPS/1.1 200 OK
Content-Type: application/json

{
	"CheckoutProfile": [
		{
			"billing_addressId": "21401",
			"billing_addressLine": [
				"123 Main St",
				"Ste 1100",
				""
			],
			"billing_addressType": "ShippingAndBilling",
			"billing_bestCallingTime": "",
			"billing_city": "A City",
			"billing_country": "US",
			"billing_email1": "email@email.com",
			"billing_firstName": "John",
			"billing_lastName": "Smith",
			"billing_nickName": "Default_Billing",
			"billing_phone1": "8005551212",
			"billing_phone1Type": "",
			"billing_primary": "false",
			"billing_state": "CA",
			"billing_zipCode": "90210",
			"protocolData": [
				{
					"name": "expire_month",
					"value": "12"
				},
				{
					"name": "expire_year",
					"value": "2025"
				},
				{
					"name": "cc_brand",
					"value": "VISA"
				},
				{
					"name": "account",
					"value": "************1111"
				},
				{
					"name": "payMethodId",
					"value": "VISA"
				},
				{
					"name": "payment_method",
					"value": "VISA"
				}
			],
			"shipping_addressId": "21402",
			"shipping_addressLine": [
				"123 Main St",
				"Ste 1100",
				""
			],
			"shipping_addressType": "ShippingAndBilling",
			"shipping_bestCallingTime": "",
			"shipping_city": "A City",
			"shipping_country": "US",
			"shipping_email1": "email@email.com",
			"shipping_firstName": "John",
			"shipping_lastName": "Smith",
			"shipping_modeId": "10152",
			"shipping_nickName": "Default_Shipping",
			"shipping_phone1": "8005551212",
			"shipping_phone1Type": "",
			"shipping_primary": "false",
			"shipping_state": "CA",
			"shipping_zipCode": "90210"
		}
	],
	"resourceId": "https:\/\/testserver.mycompany.com\/wcs\/resources\/store\/10101\/person\/@self\/checkoutProfile",
	"resourceName": "person",
	"userId": "9004"
}