--- layout: m1x_soap title: Memo Cancel ---
Allows you to cancel an existing credit memo.
Arguments:
| Type | Name | Description |
|---|---|---|
| string | sessionId | Session ID |
| string | creditmemoIncrementId | Credit memo increment ID |
Return:
| Type | Name | Description |
|---|---|---|
| string | result | Result of canceling the credit memo |
Faults:
| Fault Code | Fault Message |
|---|---|
| 100 | Requested credit memo does not exist. |
| 104 | Credit memo status not changed. |
$proxy = new SoapClient('http://magentohost/api/soap/?wsdl');
$sessionId = $proxy->login('apiUser', 'apiKey');
$creditmemoIncrementId = '100000637'; //increment id of existing credit memo
$isCreditMemoCanceled = $proxy->call($sessionId, 'order_creditmemo.cancel', array($creditmemoIncrementId));