checkout_profile

This class provides RESTful services to get and update a checkout profile.

Handler Class:

com.ibm.commerce.rest.member.handler.PersonCheckoutProfileHandler

Method Summary

HTTP MethodPathDescription
GET/store/{storeId}/person/@self/checkoutProfileGets the Check Out Profile for the logged in user using the Member service. The shopper must log in before invoking this method.
PUT/store/{storeId}/person/@self/checkoutProfileUpdates the CheckOutProfile for the logged in user using the Member service. The shopper must log in before invoking this method.

Method Details

GET /store/{storeId}/person/@self/checkoutProfile

Gets the Check Out Profile for the logged in user using the Member service. The shopper must log in before invoking this method.

Handler Method:

getCheckoutProfile

Secure Call Mandatory:

true

Partial Authentication Allowed:

false

Parameters:
NameDescriptionParameter TypeData TypeRequiredAllow Multiple
storeIdThe store identifier.pathstringtrueN/A
HTTP Status Codes:
HTTP Status CodeDescription
200The requested completed successfully.
400Bad request. Some of the inputs provided to the request aren't valid.
401Not authenticated. The user session isn't valid.
403The user isn't authorized to perform the specified request.
404The specified resource couldn't be found.
500Internal server error. Additional details will be contained on the server logs.
Response Data Type:

person-checkoutProfile

PUT /store/{storeId}/person/@self/checkoutProfile

Updates the CheckOutProfile for the logged in user using the Member service. The shopper must log in before invoking this method.

Handler Method:

updateCheckoutProfile

Secure Call Mandatory:

true

Partial Authentication Allowed:

false

Parameters:
NameDescriptionParameter TypeData TypeRequiredAllow Multiple
storeIdThe store identifier.pathstringtrueN/A
bodyUpdate checkout profile body.bodyperson-checkoutProfilefalseN/A
HTTP Status Codes:
HTTP Status CodeDescription
200The requested completed successfully.
400Bad request. Some of the inputs provided to the request aren't valid.
401Not authenticated. The user session isn't valid.
403The user isn't authorized to perform the specified request.
404The specified resource couldn't be found.
500Internal server error. Additional details will be contained on the server logs.
Response Data Type:

com.ibm.commerce.rest.member.handler.PersonCheckoutProfileHandler$UserIdContainer


Example

Request:
PUT /wcs/resources/store/10001/person/@self/checkoutProfile?responseFormat=json
Body:
{
	"SameShippingAndBillingAddress": "on",
	"URL": "AjaxLogonForm",
	"account": "4111111111111111",
	"billing_addressLine": [
		"123 Main St",
		""
	],
	"billing_addressType": "Billing",
	"billing_city": "Toronto",
	"billing_country": "CA",
	"billing_email1": "john@example.com",
	"billing_firstName": "John",
	"billing_lastName": "Smith",
	"billing_nickName": "Default_Billing_10001",
	"billing_phone1": "",
	"billing_state": "ON",
	"billing_zipCode": "M1M1M1",
	"curr_date": "24",
	"curr_month": "11",
	"curr_year": "2014",
	"pay_account": "4111111111111111",
	"pay_cc_brand": "VISA",
	"pay_expire_month": "11",
	"pay_expire_year": "2014",
	"pay_payMethodId": "VISA",
	"pay_payment_method": "VISA",
	"shipping_addressLine": [
		"123 Main St",
		""
	],
	"shipping_addressType": "Shipping",
	"shipping_city": "Toronto",
	"shipping_country": "CA",
	"shipping_email1": "john@example.com",
	"shipping_firstName": "John",
	"shipping_lastName": "Smith",
	"shipping_modeId": "10054",
	"shipping_nickName": "Default_Shipping_10001",
	"shipping_phone1": "",
	"shipping_state": "ON",
	"shipping_zipCode": "M1M1M1"
}
HTTP Status Code:

200

Response:
{
	"userId": "11051"
}

Data Type Details

com.ibm.commerce.foundation.common.datatypes.DescriptionType

Properties:
NameData TypeRequired
valuestringfalse
languagestringfalse

com.ibm.commerce.foundation.common.datatypes.ExternalShipModeIdentifier

Properties:
NameData TypeRequired
carrierstringfalse
shipModeCodestringfalse
storeUniqueIDstringfalse

com.ibm.commerce.foundation.common.datatypes.OrganizationIdentifierType

Properties:
NameData TypeRequired
uniqueIDstringfalse
distinguishedNamestringfalse

com.ibm.commerce.foundation.common.datatypes.PaymentMethodType

com.ibm.commerce.foundation.common.datatypes.PaymentMethodType.description

Properties:
NameData TypeRequired
valuestringfalse
languagestringfalse

com.ibm.commerce.foundation.common.datatypes.PaymentMethodType.userData

Properties:
NameData TypeRequired
userDataFieldcom.ibm.commerce.foundation.common.datatypes.PaymentMethodType.userData.userDataField arrayfalse

com.ibm.commerce.foundation.common.datatypes.PaymentMethodType.userData.userDataField

Properties:
NameData TypeRequired
valuestringfalse
keystringtrue

com.ibm.commerce.foundation.common.datatypes.PersonIdentifierType

Properties:
NameData TypeRequired
externalIdentifiercom.ibm.commerce.foundation.common.datatypes.PersonIdentifierType.externalIdentifierfalse
uniqueIDstringfalse
distinguishedNamestringfalse

com.ibm.commerce.foundation.common.datatypes.PersonIdentifierType.externalIdentifier

Properties:
NameData TypeRequired
identifierstringfalse

com.ibm.commerce.rest.member.handler.PersonCheckoutProfileHandler$UserIdContainer

User identification container.

Properties:
NameData TypeRequired
userIdstringtrue

java.util.Map$Entry

Properties:
NameData TypeRequired
valuestringfalse
keystringtrue

person-checkoutProfile

Properties:
NameData TypeRequired
CheckoutProfileperson-checkoutProfile.CheckoutProfile arrayfalse
userIdstringfalse

person-checkoutProfile.CheckoutProfile

Properties:
NameData TypeRequired
billing_organizationIdentifiercom.ibm.commerce.foundation.common.datatypes.OrganizationIdentifierTypefalse
shipping_mobilePhone1Countrystringtrue
billing_middleNamestringfalse
billing_lastNamestringfalse
shipping_countrystringfalse
shipping_externalIdentifiercom.ibm.commerce.foundation.common.datatypes.ExternalShipModeIdentifierfalse
paymentMethodcom.ibm.commerce.foundation.common.datatypes.PaymentMethodTypefalse
billing_mobilePhone1stringtrue
shipping_firstNamestringfalse
shipping_internalOfficeAddressstringfalse
billing_addressTypestringfalse
billing_shippingGeoCodestringfalse
shipping_phone1Typestringfalse
shipping_phone2Typestringfalse
billing_internalOfficeAddressstringfalse
billing_firstNamestringfalse
billing_attributesjava.util.Map$Entry arrayfalse
billing_languagestringfalse
shipping_bestCallingTimestringfalse
shipping_zipCodestringfalse
shipping_publishPhone1stringfalse
billing_phone1Typestringfalse
billing_personIdentifiercom.ibm.commerce.foundation.common.datatypes.PersonIdentifierTypefalse
shipping_publishPhone2stringfalse
billing_organizationNamestringfalse
billing_phone2Typestringfalse
shipping_fax1stringtrue
shipping_fax2stringtrue
shipping_businessTitlestringfalse
billing_phone2Publishstringfalse
billing_citystringfalse
shipping_lastNamestringfalse
billing_businessTitlestringfalse
shipping_phone1stringtrue
shipping_phone2stringtrue
shipping_mobilePhone1stringtrue
shipping_addressTypestringfalse
billing_primarystringfalse
shipping_shippingGeoCodestringfalse
billing_personTitlestringfalse
shipping_statestringfalse
billing_addressLinestring arrayfalse
shipping_email1stringtrue
billing_organizationUnitNamestringfalse
shipping_email2stringtrue
billing_phone1stringtrue
billing_phone1Publishstringfalse
billing_phone2stringtrue
shipping_languagestringfalse
shipping_attributejava.util.Map$Entry arrayfalse
billing_mobilePhone1Countrystringtrue
billing_statestringfalse
shipping_modeIdstringfalse
shipping_organizationNamestringfalse
shipping_personIdentifiercom.ibm.commerce.foundation.common.datatypes.PersonIdentifierTypefalse
billing_countrystringfalse
billing_nickNamestringtrue
billing_email1stringtrue
billing_email2stringtrue
shipping_citystringfalse
shipping_addressIdstringfalse
protocolDataperson-checkoutProfile.CheckoutProfile.protocolData arrayfalse
shipping_taxGeoCodestringfalse
userDataFieldperson-checkoutProfile.CheckoutProfile.userDataField arrayfalse
billing_bestCallingTimestringfalse
billing_zipCodestringfalse
billing_addressIdstringfalse
shipping_descriptioncom.ibm.commerce.foundation.common.datatypes.DescriptionTypefalse
shipping_organizationIdentifiercom.ibm.commerce.foundation.common.datatypes.OrganizationIdentifierTypefalse
shipping_primarystringfalse
shipping_middleNamestringfalse
shipping_personTitlestringfalse
shipping_organizationUnitNamestringfalse
shipping_addressLinestring arrayfalse
billing_taxGeoCodestringfalse
billing_fax1stringtrue
billing_fax2stringtrue
shipping_nickNamestringtrue

person-checkoutProfile.CheckoutProfile.protocolData

Properties:
NameData TypeRequired
valuestringfalse
namestringtrue

person-checkoutProfile.CheckoutProfile.userDataField

Properties:
NameData TypeRequired
valuestringfalse
keystringtrue