Feature Pack 5Feature Pack 6Feature Pack 4

Get usable payment information for the cart

The following example shows how to get usable payment information for the cart.

Request


GET /wcs/resources/store/10101/cart/@self/usable_payment_info HTTP/1.1
Host: testserver.mycompany.com
Content-Type: application/json

Response


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

{
	"orderId": "21503",
	"resourceId": "https:\/\/testserver.mycompany.com\/wcs\/resources\/store\/10101\/cart\/@self\/usable_payment_info",
	"resourceName": "cart",
	"usablePaymentInformation": [
		{
			"description": "Discover Credit Card",
			"language": "-1",
			"paymentMethodName": "Discover",
			"paymentTermConditionId": "",
			"usableBillingAddress": [
				{
					"addressId": "20935",
					"nickName": "jsmith2"
				},
				{
					"addressId": "20922",
					"nickName": "Mary"
				},
				{
					"addressId": "20908",
					"nickName": "testBilling"
				}
			],
			"xumet_attrPageName": "StandardDiscover",
			"xumet_policyId": "10209"
		},
		{
			"description": "Cash on delivery",
			"language": "-1",
			"paymentMethodName": "COD",
			"paymentTermConditionId": "",
			"usableBillingAddress": [
				{
					"addressId": "20935",
					"nickName": "jsmith2"
				},
				{
					"addressId": "20922",
					"nickName": "Mary"
				},
				{
					"addressId": "20908",
					"nickName": "testBilling"
				}
			],
			"xumet_attrPageName": "StandardCOD",
			"xumet_policyId": "10207"
		},
		{
			"description": "Bill me later",
			"language": "-1",
			"paymentMethodName": "BillMeLater",
			"paymentTermConditionId": "",
			"usableBillingAddress": [
				{
					"addressId": "20935",
					"nickName": "jsmith2"
				},
				{
					"addressId": "20922",
					"nickName": "Mary"
				},
				{
					"addressId": "20908",
					"nickName": "testBilling"
				}
			],
			"xumet_attrPageName": "StandardBillMeLater",
			"xumet_policyId": "10206"
		},
		{
			"description": "Master Card Credit Card",
			"language": "-1",
			"paymentMethodName": "Master Card",
			"paymentTermConditionId": "",
			"usableBillingAddress": [
				{
					"addressId": "20935",
					"nickName": "jsmith2"
				},
				{
					"addressId": "20922",
					"nickName": "Mary"
				},
				{
					"addressId": "20908",
					"nickName": "testBilling"
				}
			],
			"xumet_attrPageName": "StandardMasterCard",
			"xumet_policyId": "10203"
		},
		{
			"description": "Pay later",
			"language": "-1",
			"paymentMethodName": "PayLater",
			"paymentTermConditionId": "",
			"usableBillingAddress": [
				{
					"addressId": "20935",
					"nickName": "jsmith2"
				},
				{
					"addressId": "20922",
					"nickName": "Mary"
				},
				{
					"addressId": "20908",
					"nickName": "testBilling"
				}
			],
			"xumet_attrPageName": "StandardPayLater",
			"xumet_policyId": "10208"
		},
		{
			"description": "VISA Credit Card",
			"language": "-1",
			"paymentMethodName": "VISA",
			"paymentTermConditionId": "",
			"usableBillingAddress": [
				{
					"addressId": "20935",
					"nickName": "jsmith2"
				},
				{
					"addressId": "20922",
					"nickName": "Mary"
				},
				{
					"addressId": "20908",
					"nickName": "testBilling"
				}
			],
			"xumet_attrPageName": "StandardVisa",
			"xumet_policyId": "10202"
		},
		{
			"description": "Check",
			"language": "-1",
			"paymentMethodName": "Check",
			"paymentTermConditionId": "",
			"usableBillingAddress": [
				{
					"addressId": "20935",
					"nickName": "jsmith2"
				},
				{
					"addressId": "20922",
					"nickName": "Mary"
				},
				{
					"addressId": "20908",
					"nickName": "testBilling"
				}
			],
			"xumet_attrPageName": "StandardCheck",
			"xumet_policyId": "10204"
		},
		{
			"description": "American Express Credit Card",
			"language": "-1",
			"paymentMethodName": "AMEX",
			"paymentTermConditionId": "",
			"usableBillingAddress": [
				{
					"addressId": "20935",
					"nickName": "jsmith2"
				},
				{
					"addressId": "20922",
					"nickName": "Mary"
				},
				{
					"addressId": "20908",
					"nickName": "testBilling"
				}
			],
			"xumet_attrPageName": "StandardAmex",
			"xumet_policyId": "10205"
		},
		{
			"description": "Simple Punchout",
			"language": "-1",
			"paymentMethodName": "SimplePunchout",
			"paymentTermConditionId": "",
			"usableBillingAddress": [
				{
					"addressId": "20935",
					"nickName": "jsmith2"
				},
				{
					"addressId": "20922",
					"nickName": "Mary"
				},
				{
					"addressId": "20908",
					"nickName": "testBilling"
				}
			],
			"xumet_attrPageName": "SimplePunchout",
			"xumet_policyId": "10210"
		}
	]
}