The AddStoreCreditActor allows an agent to add store credit to a profile. The profile must be active before the agent can issue a credit. Refer to Selecting a Customer to Work On. This actor is located at /atg/commerce/custsvc/profile/AddStoreCreditActor and uses the addStoreCredit actor-chain with the following parameters:
Parameter | Description |
|---|---|
| The amount of the credit. |
| Any comments regarding the credit. |
Store Credit Example
curl -L -v -b agent_cookies.txt -H "Content-Type: application/json" -d
"{ \"amount\" : \"10\", \"comments\" : \"Loyalty Customer – Added $10 credit\" }"
"http://localhost:8180/rest/model/atg/commerce/custsvc/profile/
AddStoreCreditActor/addStoreCredit"
