---
title: "How to Get Credit Memo Information Using SOAP API in Magento 2"
url: "https://magecomp.com/blog/get-credit-memo-information-using-soap-api-magento-2/"
date: "2022-01-31T15:56:22+00:00"
modified: "2025-02-17T07:03:31+00:00"
author:
  name: "Dhiren Vasoya"
  url: "https://magecomp.com/"
categories:
  - "How To"
  - "Magento 2"
word_count: 300
reading_time: "2 min read"
summary: "Hello Magento Friends,"
description: "Fetch credit memo details outside Magento platform using SOAP API. Use request response method in Magento 2. Learn more"
keywords: "How To, Magento 2"
language: "en"
schema_type: "Article"
related_posts:
  - title: "How to Convert CURL XML Response into an Array in Magento 2?"
    url: "https://magecomp.com/blog/convert-curl-xml-response-into-array-in-magento-2/"
  - title: "How to Implement Varnish Cache in Magento 2"
    url: "https://magecomp.com/blog/implement-varnish-cache-magento-2/"
  - title: "How to setup a Cron Job in cPanel for Magento?"
    url: "https://magecomp.com/blog/how-to-setup-a-cron-job-in-cpanel-for-magento/"
---

# How to Get Credit Memo Information Using SOAP API in Magento 2

_Published: January 31, 2022_  
_Author: Dhiren Vasoya_  

![How to Get Credit Memo Information Using SOAP API in Magento 2](https://magecomp.com/blog/wp-content/uploads/2022/01/How-to-Get-Credit-Memo-Information-Using-SOAP-API-in-Magento-2-1024x512.webp)

**Hello Magento Friends,**

I am back with another tutorial on Magento 2 SOAP API. Today it will be fetching credit memo information with the help of SOAP API. In case you missed the previous one, check it out here – [**How to Get Invoice Information Using SOAP API in Magento 2**](https://magecomp.com/blog/get-invoice-information-using-soap-application-program-interface-magento-2)

[![hyva theme development](https://magecomp.com/blog/wp-content/uploads/2025/02/hyva-theme-development-CTA-1.webp)](https://magecomp.com/services/hyva-theme-development/)

A credit memo is a document sent to customers in case of a product refund. Admin can [**create a credit memo**](https://magecomp.com/blog/create-credit-memo-in-magento-2/) at the time of product return and refund is initiated. Once the credit memo is created, it is issued to customers. Learn how to [**issue refunds using API in Magento 2**](https://magecomp.com/blog/issue-refund-credit-memo-using-application-program-interface-magento-2).
When you need a credit memo in external systems, you need to get credit memo information. This can be possible using the SOAP API in Magento 2.
## Steps to Get Credit Memo Information Using SOAP API in Magento 2:
**Step 1:** Create a **getcreditmemoinfo.php** file anywhere and add the following code
```
<?php

$request = new SoapClient("http://yourdomain/index.php/soap/?wsdl&services=integrationAdminTokenServiceV1", array("soap_version" => SOAP_1_2));
// changes your store url.

$token = $request->integrationAdminTokenServiceV1CreateAdminAccessToken(array("username"=>"admin", "password"=>"admin123"));

$request = new SoapClient(
    'http://yourdomain/index.php/soap/default?wsdl&services=salesCreditmemoRepositoryV1',
    array(
        'soap_version' => SOAP_1_2,
        'stream_context' => stream_context_create(array(
            'http'=> array('header' => 'Authorization: Bearer '.$token->result)
        ))
    )
);

 // changes your store url.
$response = $request->salesCreditmemoRepositoryV1Get(array('id' => 1));

echo "";
print_r($response);
echo "";

?>
```

## [![Hire Magento Programmer](https://magecomp.com/blog/wp-content/uploads/2025/02/Hire-Magento-Programmer-CTA-2.webp)](https://magecomp.com/services/hire-magento-programmer/)

## Conclusion:
After now if you require credit memo information to exterior sites, you can easily obtain it using the above SOAP API method. In case of any difficulty, share it with me through the comment box. Was the solution useful for you? If yes, then share it with others and hit those 5 stars.
[![Magento version upgrade](https://magecomp.com/blog/wp-content/uploads/2025/02/Magento-2-Version-Upgrade-CTA-2-2.webp)](https://magecomp.com/services/magento-upgrade-services/)

**Happy Coding!**


---

_View the original post at: [https://magecomp.com/blog/get-credit-memo-information-using-soap-api-magento-2/](https://magecomp.com/blog/get-credit-memo-information-using-soap-api-magento-2/)_  
_Served as markdown by [Third Audience](https://github.com/third-audience) v3.5.3_  
_Generated: 2026-09-13 23:04:05 UTC_  
