> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.tabs.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.tabs.com/_mcp/server.

# Get credit memo by ID

GET https://integrators.prod.api.tabsplatform.com/v3/credit-memos/{id}

Reference: https://docs.tabs.com/api-reference/credit-memos/getCreditMemoById

## Authentication

- `Authorization` header (required) — API Key authentication via header

## Request

### Path parameters

- `id` (string, required)

## Response

### 200

Credit memo retrieved successfully

- `payload` (CreditMemoDto, required) — Response payload, will be empty when success is false
- `success` (boolean, required) — Boolean with true=success, false=failure
- `message` (string, required) — Plain-text description of the result
- `error` (IntegratorsApiError, optional) — json element with any error messages or warnings

## Errors

### 404 Not Found Error

Credit memo not found

- `any`

### 500 Internal Server Error

Internal server error - Failed to get credit memo

- `any`

## Types

### CreditMemoDto

- `creditMemoId` (string, required) — Credit memo ID
- `creditMemoNumber` (string, required) — Credit memo number
- `creditMemoPrefix` (string, required) — Credit memo prefix
- `customerId` (string, required) — Customer ID
- `manufacturerId` (string, required) — Manufacturer ID
- `issueDate` (datetime, required) — Issue date
- `total` (double, required) — Total amount
- `status` (string, required) — Status
- `creditAmountRemaining` (double, required) — Credit still available to apply. Not derivable from total minus applied amounts, which ignores unapplied and voided applications.
- `customer` (CreditMemoCustomerDto, required) — Customer information
- `items` (list of CreditMemoLineItemDto, required) — Line items
- `applications` (list of CreditMemoApplicationDto, required) — Applications
- `externalIds` (list of CreditMemoExternalIdDto, required) — External IDs
- `createdAt` (datetime, required) — Created at
- `lastUpdatedAt` (datetime, required) — Last updated at
- `syncStatus` (string, required) — Sync status
- `memo` (string, optional) — Memo
- `reason` (string, optional) — Reason

### IntegratorsApiError

- `code` (double, required) — API response code
- `message` (string, required) — API response message
- `errorCode` (string, optional) — Machine-readable error code
- `details` (IntegratorsApiErrorDetails, optional) — Additional details about the error

### CreditMemoCustomerDto

- `id` (string, required) — Customer ID
- `name` (string, required) — Customer name
- `nameWithPrefix` (string, optional) — Customer name with prefix

### CreditMemoLineItemDto

- `id` (string, required) — Line item ID
- `name` (string, required) — Line item name
- `quantity` (double, required) — Quantity
- `amount` (double, required) — Amount
- `salesTaxAmount` (double, required) — Sales tax amount
- `contraRevenueScheduleId` (string, required) — Contra revenue schedule ID
- `note` (string, optional) — Line item note
- `item` (CreditMemoItemDto, optional) — Item details
- `erpClass` (CreditMemoErpClassDto, optional) — ERP Class details

### CreditMemoApplicationDto

- `id` (string, required) — Application ID
- `creditMemoId` (string, required) — Credit memo ID
- `invoiceId` (string, required) — Invoice ID
- `amountApplied` (double, required) — Amount applied
- `invoiceNumber` (string, required) — Invoice number
- `invoicePrefix` (string, required) — Invoice prefix
- `appliedAt` (datetime, required) — Applied at

### CreditMemoExternalIdDto

- `externalId` (string, required) — External ID
- `sourceType` (string, required) — Source type

### IntegratorsApiErrorDetails

Additional details about the error

### CreditMemoItemDto

- `id` (string, required) — Item ID
- `name` (string, required) — Item name
- `externalId` (string, optional) — External ID

### CreditMemoErpClassDto

- `id` (string, required) — ERP Class ID
- `name` (string, required) — ERP Class name

## Examples

**Response**

```json
{
  "payload": {
    "creditMemoId": "123e4567-e89b-12d3-a456-426614174000",
    "creditMemoNumber": "CM-001",
    "creditMemoPrefix": "CM",
    "customerId": "123e4567-e89b-12d3-a456-426614174000",
    "manufacturerId": "123e4567-e89b-12d3-a456-426614174000",
    "issueDate": "2023-01-01T00:00:00.000Z",
    "total": 100,
    "status": "OPEN",
    "creditAmountRemaining": 25,
    "customer": {
      "id": "123e4567-e89b-12d3-a456-426614174000",
      "name": "Acme Corp",
      "nameWithPrefix": "CUST-001 Acme Corp"
    },
    "items": [
      {
        "id": "123e4567-e89b-12d3-a456-426614174000",
        "name": "Product A",
        "quantity": 1,
        "amount": 100,
        "salesTaxAmount": 8.25,
        "contraRevenueScheduleId": "123e4567-e89b-12d3-a456-426614174000",
        "note": "Credit for defective product",
        "item": {
          "id": "123e4567-e89b-12d3-a456-426614174000",
          "name": "Product A",
          "externalId": "EXT-123"
        },
        "erpClass": {
          "id": "123e4567-e89b-12d3-a456-426614174000",
          "name": "Revenue"
        }
      }
    ],
    "applications": [
      {
        "id": "123e4567-e89b-12d3-a456-426614174000",
        "creditMemoId": "123e4567-e89b-12d3-a456-426614174000",
        "invoiceId": "123e4567-e89b-12d3-a456-426614174000",
        "amountApplied": 100,
        "invoiceNumber": "INV-001",
        "invoicePrefix": "INV",
        "appliedAt": "2023-01-01T00:00:00.000Z"
      }
    ],
    "externalIds": [
      {
        "externalId": "EXT-123",
        "sourceType": "NETSUITE"
      }
    ],
    "createdAt": "2023-01-01T00:00:00.000Z",
    "lastUpdatedAt": "2023-01-01T00:00:00.000Z",
    "syncStatus": "NOT_SYNCED",
    "memo": "Credit for defective product",
    "reason": "Product defect"
  },
  "success": true,
  "message": "string",
  "error": {
    "code": 1.1,
    "message": "string",
    "errorCode": "string",
    "details": {}
  }
}
```

**SDK Code**

```python
import requests

url = "https://integrators.prod.api.tabsplatform.com/v3/credit-memos/id"

headers = {"Authorization": "<apiKey>"}

response = requests.get(url, headers=headers)

print(response.json())
```

```javascript
const url = 'https://integrators.prod.api.tabsplatform.com/v3/credit-memos/id';
const options = {method: 'GET', headers: {Authorization: '<apiKey>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://integrators.prod.api.tabsplatform.com/v3/credit-memos/id"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("Authorization", "<apiKey>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://integrators.prod.api.tabsplatform.com/v3/credit-memos/id")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["Authorization"] = '<apiKey>'

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://integrators.prod.api.tabsplatform.com/v3/credit-memos/id")
  .header("Authorization", "<apiKey>")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://integrators.prod.api.tabsplatform.com/v3/credit-memos/id', [
  'headers' => [
    'Authorization' => '<apiKey>',
  ],
]);

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("https://integrators.prod.api.tabsplatform.com/v3/credit-memos/id");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "<apiKey>");
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = ["Authorization": "<apiKey>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://integrators.prod.api.tabsplatform.com/v3/credit-memos/id")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```