m openmage

OpenMage LTS Developer Documentation

Memo Cancel

Edit this page on GitHub

Module: Order Credit Memo API

Resource: sales_order_creditmemo

Aliases: order_creditmemo
Method:

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.

Examples

Request Example SOAP V1
$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));
Create the Magento file system owner