Feature Pack 7

Add payment instruction

The following example shows how to add payment instruction.

Request


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

{
   "billing_address_id" : "11111",
   "expire_month" : "12",
   "piAmount" : "199.19",
   "payMethodId" : "VISA",
   "cc_brand" : "VISA",
   "expire_year" : "2021",
   "account" : "4111111111111111"
}

Response


HTTP/1.1 201 Created
Content-Type: application/json

{
	"orderId": "21501",
	"paymentInstruction": [
		{
			"piId": "15501"
		}
	]
}