Feature Pack 5Feature Pack 6Feature Pack 4

Update payment instruction

The following example shows how to update payment instruction.

Request


PUT /wcs/resources/store/10101/cart/@self/payment_instruction HTTP/1.1
Host: wcstestserver.raleigh.ibm.com
Content-Type: application/json

{
   "piId" : "12345",
   "expire_month" : "6",
   "piAmount" : "199.99",
   "payMethodId" : "VISA",
   "cc_brand" : "VISA",
   "expire_year" : "2021",
   "account" : "4111111111111111"
}

Response


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

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