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

# Fetch Credit Note Details

GET https://heimdall.eka.io/apis/external/vendor/creditNote/{id}/getCreditNoteDetails#getApisExternalVendorCreditnoteIdGetcreditnotedetails2

### Get Credit Note Details

This endpoint retrieves detailed information about a specific credit note identified by its unique `id`. It provides comprehensive data related to the credit note, including associated vendor, invoice, and tax information.

#### Request

* **Method**: GET

* **Endpoint**: `{{host}}/apis/external/vendor/creditNote/:id/getCreditNoteDetails`

* **Path Parameter**:

  * `id` (required): The unique identifier of the credit note for which details are being requested.

#### Response

* **Status Code**: 200

* **Content-Type**: application/json

#### Example Response

```json
{
  "id": 0,
  "creditNoteId": "",
  "billNo": "",
  "date": 0,
  "createdAt": 0,
  "updatedAt": 0,
  "amount": 0,
  "currencyAmount": 0,
  "currency": "",
  "stage": "",
  "status": "",
  "service": "",
  "categoryId": 0,
  "owner": {
    "id": 0,
    "ownerType": "",
    "ownerId": "",
    "ownerName": ""
  },
  "invoice": {
    "id": 0,
    "invoiceId": "",
    "billNumber": "",
    "billNo": "",
    "amount": 0,
    "currencyAmount": 0,
    "owner": {
      "ownerType": "",
      "ownerId": "",
      "ownerName": ""
    },
    "status": "",
    "date": 0,
    "createdAt": 0,
    "invoice_type": ""
  },
  "vendor": {
    "id": 0,
    "registeredId": "",
    "name": "",
    "pan": "",
    "rcVendor": true,
    "address": {
      "id": "",
      "address": "",
      "city": "",
      "state": "",
      "country": "",
      "pincode": "",
      "gstin": "",
      "gstinValid": true,
      "businessAddress": true,
      "attrs": {},
      "forms": [],
      "locationId": "",
      "filterKey": "",
      "bankIds": []
    }
  },
  "officeData": {
    "id": 0,
    "name": "",
    "gstin": "",
    "registeredName": "",
    "address": "",
    "tags": {}
  },
  "shipToData": {
    "id": 0,
    "name": "",
    "gstin": "",
    "registeredName": "",
    "address": "",
    "tags": {}
  },
  "name": "",
  "poId": 0,
  "tag": "",
  "fraud": true,
  "duplicates": [],
  "taxInfo": {
    "render": "",
    "currency": "",
    "gst": 0,
    "vendorGstin": "",
    "igst": 0,
    "utgst": 0,
    "sgst": 0,
    "discount": 0,
    "discountAmount": 0,
    "cgst": 0,
    "taxId": 0,
    "tds": 0,
    "tdsSlab": 0,
    "cessAmount": 0,
    "baseAmount": 0,
    "grossAmount": 0,
    "roundOff": 0,
    "total": 0,
    "paidAmount": 0,
    "sameState": true
  },
  "config": {
    "files": [],
    "comments": [],
    "items": [],
    "penalty": 0,
    "tdsMasterId": 0,
    "tdsSection": "",
    "tdsDescription": "",
    "independentCreditNote": true,
    "financeActions": [],
    "costAllocationDone": true,
    "logs": [],
    "invoices": []
  },
  "data": [],
  "timelines": [],
  "attrs": {},
  "items": [],
  "integrationData": {
    "attrs": {},
    "postingTriggered": true,
    "paymentTriggered": true,
    "postingFailed": true,
    "paymentFailed": true,
    "postingSynced": true,
    "paymentSynced": true
  },
  "independentCreditNote": true
}

```

This response structure includes various nested objects and arrays, providing detailed information about the credit note, its associated vendor, invoice, and other relevant data.

This endpoint retrieves detailed information about a specific credit note identified by its unique ID. It provides comprehensive data regarding the credit note, including its associated invoice, vendor, and tax information.

#### Request Format

* **Method**: GET

* **Endpoint**: `{{host}}/apis/external/vendor/creditNote/:id/getCreditNoteDetails`

* **Path Parameter**:

  * `id`: The unique identifier of the credit note for which details are being requested.

#### Response Structure

Upon a successful request, the server responds with a JSON object containing the following fields:

* **id**: Unique identifier for the credit note.

* **creditNoteId**: Identifier for the credit note.

* **billNo**: The bill number associated with the credit note.

* **date**: The date of the credit note.

* **createdAt**: Timestamp of when the credit note was created.

* **updatedAt**: Timestamp of the last update to the credit note.

* **amount**: Total amount of the credit note.

* **currencyAmount**: Amount in the specified currency.

* **currency**: Currency type for the transaction.

* **stage**: Current stage of the credit note.

* **status**: Status of the credit note.

* **service**: Service associated with the credit note.

* **categoryId**: Identifier for the category of the credit note.

* **owner**: Object containing details about the owner of the credit note.

* **invoice**: Object containing details about the associated invoice.

* **vendor**: Object containing details about the vendor related to the credit note.

* **officeData**: Information about the office associated with the credit note.

* **shipToData**: Information about the shipping address.

* **name**: Name associated with the credit note.

* **poId**: Purchase order ID related to the credit note.

* **tag**: Tags associated with the credit note.

* **fraud**: Boolean indicating if the credit note is marked for fraud.

* **duplicates**: List of duplicate entries related to the credit note.

* **taxInfo**: Object containing tax-related information.

* **config**: Configuration details including items and actions related to the credit note.

* **timelines**: Array of actions and events related to the credit note.

* **attrs**: Additional attributes related to the credit note.

* **items**: Array of items included in the credit note.

* **integrationData**: Data related to integration status and actions.

This detailed structure allows consumers of the API to understand the various aspects of the credit note and its associated entities, facilitating better integration and usage of the credit note data.

Reference: https://open-api-docs.dice.tech/dice-standardized-ap-is-v-2-copy/credit-note/fetch-credit-note-details

## Servers

- `https://heimdall.eka.io` (https://heimdall.eka.io, default)
- `https://heimdall.eka.ioapis` (https://heimdall.eka.ioapis)

## Request

### Path parameters

- `id` (string, required) — Dice id, uniquely identifying a Credit Note stored in DB

### Headers

- `DICE-APP-ID` (string, optional)
- `X-CLIENT-ID` (string, optional)
- `X-CLIENT-SECRET` (string, optional)

## Response

### 200

OK

- `id` (integer, required)
- `creditNoteId` (string, required)
- `billNo` (string, required)
- `date` (integer, required)
- `createdAt` (integer, required)
- `updatedAt` (integer, required)
- `amount` (integer, required)
- `currencyAmount` (integer, required)
- `currency` (string, required)
- `stage` (string, required)
- `status` (string, required)
- `service` (string, required)
- `categoryId` (integer, required)
- `owner` (object, required)
  - `id` (integer, required)
  - `ownerType` (string, required)
  - `ownerId` (string, required)
  - `ownerName` (string, required)
- `invoice` (object, required)
  - `id` (integer, required)
  - `invoiceId` (string, required)
  - `billNo` (string, required)
  - `amount` (integer, required)
  - `currencyAmount` (integer, required)
  - `owner` (object, required)
    - `ownerType` (string, required)
    - `ownerId` (string, required)
    - `ownerName` (string, required)
  - `status` (string, required)
  - `date` (integer, required)
  - `createdAt` (integer, required)
- `vendor` (object, required)
  - `id` (integer, required)
  - `registeredId` (string, required)
  - `name` (string, required)
  - `pan` (string, required)
  - `rcVendor` (boolean, required)
  - `address` (object, required)
    - `id` (string, required)
    - `address` (string, required)
    - `city` (string, required)
    - `state` (string, required)
    - `country` (string, required)
    - `pincode` (string, required)
    - `gstin` (string, required)
    - `gstinValid` (boolean, required)
    - `businessAddress` (boolean, required)
    - `attrs` (object, required)
    - `locationId` (string, required)
    - `filterKey` (string, required)
    - `bankIds` (list of any, required)
- `officeData` (object, required)
  - `id` (integer, required)
  - `name` (string, required)
  - `address` (string, required)
- `shipToData` (object, required)
  - `id` (integer, required)
  - `name` (string, required)
  - `address` (string, required)
- `name` (string, required)
- `poId` (integer, required)
- `tag` (string, required)
- `fraud` (boolean, required)
- `duplicates` (list of any, required)
- `taxInfo` (object, required)
  - `render` (string, required)
  - `currency` (string, required)
  - `gst` (integer, required)
  - `vendorGstin` (string, required)
  - `igst` (integer, required)
  - `utgst` (integer, required)
  - `sgst` (integer, required)
  - `discount` (integer, required)
  - `discountAmount` (integer, required)
  - `cgst` (integer, required)
  - `taxId` (integer, required)
  - `tds` (integer, required)
  - `tdsSlab` (integer, required)
  - `cessAmount` (integer, required)
  - `baseAmount` (integer, required)
  - `grossAmount` (integer, required)
  - `roundOff` (integer, required)
  - `total` (integer, required)
  - `paidAmount` (integer, required)
  - `sameState` (boolean, required)
- `config` (object, required)
  - `files` (list of any, required)
  - `comments` (list of any, required)
  - `items` (list of object, required)
    - `id` (string, required)
    - `referenceId` (integer, required)
    - `productId` (integer, required)
    - `price` (integer, required)
    - `qtty` (integer, required)
    - `taxSlab` (integer, required)
    - `tax` (integer, required)
    - `base` (integer, required)
    - `unit` (string, required)
    - `tds` (boolean, required)
    - `isTds` (boolean, required)
    - `glCode` (string, required)
    - `notes` (string, required)
    - `discount` (integer, required)
    - `service` (string, required)
    - `currency` (string, required)
    - `cessAmount` (integer, required)
    - `cessPercent` (integer, required)
    - `amount` (integer, required)
    - `grossBase` (integer, required)
    - `grnQty` (integer, required)
    - `grnNos` (list of any, required)
    - `debitQty` (integer, required)
    - `gstNonCreditable` (boolean, required)
    - `data` (list of any, required)
    - `attrs` (object, required)
    - `costAllocations` (list of any, required)
    - `grnQtyMapping` (object, required)
    - `comments` (list of any, required)
  - `penalty` (integer, required)
- `data` (list of any, required)
- `timelines` (list of object, required)
  - `id` (string, required)
  - `email` (string, required)
  - `type` (string, required)
  - `name` (string, required)
  - `time` (integer, required)
  - `actionTime` (integer, required)
  - `data` (list of any, required)
- `items` (list of object, required)
  - `id` (string, required)
  - `referenceId` (integer, required)
  - `productId` (integer, required)
  - `price` (integer, required)
  - `qtty` (integer, required)
  - `taxSlab` (integer, required)
  - `tax` (integer, required)
  - `base` (integer, required)
  - `unit` (string, required)
  - `tds` (boolean, required)
  - `isTds` (boolean, required)
  - `glCode` (string, required)
  - `notes` (string, required)
  - `discount` (integer, required)
  - `service` (string, required)
  - `currency` (string, required)
  - `cessAmount` (integer, required)
  - `cessPercent` (integer, required)
  - `amount` (integer, required)
  - `grossBase` (integer, required)
  - `grnQty` (integer, required)
  - `grnNos` (list of any, required)
  - `debitQty` (integer, required)
  - `gstNonCreditable` (boolean, required)
  - `data` (list of any, required)
  - `attrs` (object, required)
  - `costAllocations` (list of any, required)
  - `grnQtyMapping` (object, required)
  - `comments` (list of any, required)

## Examples

**Response**

```json
{
  "id": 13,
  "creditNoteId": "CN-INDIAN-000000009",
  "billNo": "VI-INDIAN-000000086",
  "date": 1606156200000,
  "createdAt": 1687776327169,
  "updatedAt": 1687776327209,
  "amount": 111,
  "currencyAmount": 111,
  "currency": "INR",
  "stage": "start",
  "status": "APPROVAL",
  "service": "Testing Vehicle",
  "categoryId": 0,
  "owner": {
    "id": 118,
    "ownerType": "ADMIN",
    "ownerId": "118",
    "ownerName": "Admin"
  },
  "invoice": {
    "id": 2818,
    "invoiceId": "VI-INDIAN-000000086",
    "billNo": "",
    "amount": 111,
    "currencyAmount": 111,
    "owner": {
      "ownerType": "EMPLOYEE",
      "ownerId": "0001",
      "ownerName": "karan kumar"
    },
    "status": "CREDIT_NOTE_HOLD",
    "date": 1606156200000,
    "createdAt": 1606221591603
  },
  "vendor": {
    "id": 3262,
    "registeredId": "117580",
    "name": "Bengal Telecom",
    "pan": "AAEFB4789K",
    "rcVendor": false,
    "address": {
      "id": "bc2c1166-b294-4c4a-abf7-3e4293a5f524",
      "address": "\"1A, VANSITTART ROW    OPP-KOLKATA TELEPHONE EXCHANGE West Bengal \"",
      "city": "Kolkata",
      "state": "Default",
      "country": "India",
      "pincode": "700001",
      "gstin": "18AAERB4584K2ZX",
      "gstinValid": false,
      "businessAddress": false,
      "attrs": {},
      "locationId": "",
      "filterKey": "",
      "bankIds": []
    }
  },
  "officeData": {
    "id": 1345,
    "name": "HI_KARAN",
    "address": "Delhi"
  },
  "shipToData": {
    "id": 1345,
    "name": "HI_KARAN",
    "address": "Delhi"
  },
  "name": "Bengal Telecom",
  "poId": 0,
  "tag": "24-11-2020-3262-vi-indian-000000086",
  "fraud": false,
  "duplicates": [],
  "taxInfo": {
    "render": "INDIA",
    "currency": "INR",
    "gst": 0,
    "vendorGstin": "18AAERB4584K2ZX",
    "igst": 0,
    "utgst": 0,
    "sgst": 0,
    "discount": 0,
    "discountAmount": 0,
    "cgst": 0,
    "taxId": 0,
    "tds": 0,
    "tdsSlab": 0,
    "cessAmount": 0,
    "baseAmount": 0,
    "grossAmount": 111,
    "roundOff": 0,
    "total": 111,
    "paidAmount": 111,
    "sameState": false
  },
  "config": {
    "files": [],
    "comments": [],
    "items": [
      {
        "id": "4320a2c2-2f15-4f4b-8358-dd38ff227343",
        "referenceId": 0,
        "productId": 0,
        "price": 111,
        "qtty": 1,
        "taxSlab": 0,
        "tax": 0,
        "base": 0,
        "unit": "pc",
        "tds": true,
        "isTds": true,
        "glCode": "",
        "notes": "",
        "discount": 0,
        "service": "Testing Vehicle",
        "currency": "INR",
        "cessAmount": 0,
        "cessPercent": 0,
        "amount": 111,
        "grossBase": 0,
        "grnQty": 0,
        "grnNos": [],
        "debitQty": 0,
        "gstNonCreditable": false,
        "data": [],
        "attrs": {},
        "costAllocations": [],
        "grnQtyMapping": {},
        "comments": []
      }
    ],
    "penalty": 0
  },
  "data": [],
  "timelines": [
    {
      "id": "e8c03426-0355-42ba-981e-e2199df2f9ea",
      "email": "App Started",
      "type": "start",
      "name": "Submitted by Admin",
      "time": 1687776327169,
      "actionTime": 1687776327169,
      "data": []
    }
  ],
  "items": [
    {
      "id": "4320a2c2-2f15-4f4b-8358-dd38ff227343",
      "referenceId": 0,
      "productId": 0,
      "price": 111,
      "qtty": 1,
      "taxSlab": 0,
      "tax": 0,
      "base": 0,
      "unit": "pc",
      "tds": true,
      "isTds": true,
      "glCode": "",
      "notes": "",
      "discount": 0,
      "service": "Testing Vehicle",
      "currency": "INR",
      "cessAmount": 0,
      "cessPercent": 0,
      "amount": 111,
      "grossBase": 0,
      "grnQty": 0,
      "grnNos": [],
      "debitQty": 0,
      "gstNonCreditable": false,
      "data": [],
      "attrs": {},
      "costAllocations": [],
      "grnQtyMapping": {},
      "comments": []
    }
  ]
}
```

**SDK Code**

```python Credit Note_Fetch Credit Note Details_example
import requests

url = "https://heimdall.eka.io/apis/external/vendor/creditNote/13/getCreditNoteDetails#getApisExternalVendorCreditnoteIdGetcreditnotedetails2"

headers = {
    "DICE-APP-ID": "{{Company Code}}",
    "X-CLIENT-ID": "{{API Client ID}}",
    "X-CLIENT-SECRET": "{{API Client Secret}}"
}

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

print(response.json())
```

```javascript Credit Note_Fetch Credit Note Details_example
const url = 'https://heimdall.eka.io/apis/external/vendor/creditNote/13/getCreditNoteDetails#getApisExternalVendorCreditnoteIdGetcreditnotedetails2';
const options = {
  method: 'GET',
  headers: {
    'DICE-APP-ID': '{{Company Code}}',
    'X-CLIENT-ID': '{{API Client ID}}',
    'X-CLIENT-SECRET': '{{API Client Secret}}'
  }
};

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

```go Credit Note_Fetch Credit Note Details_example
package main

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

func main() {

	url := "https://heimdall.eka.io/apis/external/vendor/creditNote/13/getCreditNoteDetails#getApisExternalVendorCreditnoteIdGetcreditnotedetails2"

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

	req.Header.Add("DICE-APP-ID", "{{Company Code}}")
	req.Header.Add("X-CLIENT-ID", "{{API Client ID}}")
	req.Header.Add("X-CLIENT-SECRET", "{{API Client Secret}}")

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

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

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

}
```

```ruby Credit Note_Fetch Credit Note Details_example
require 'uri'
require 'net/http'

url = URI("https://heimdall.eka.io/apis/external/vendor/creditNote/13/getCreditNoteDetails#getApisExternalVendorCreditnoteIdGetcreditnotedetails2")

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

request = Net::HTTP::Get.new(url)
request["DICE-APP-ID"] = '{{Company Code}}'
request["X-CLIENT-ID"] = '{{API Client ID}}'
request["X-CLIENT-SECRET"] = '{{API Client Secret}}'

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

```java Credit Note_Fetch Credit Note Details_example
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://heimdall.eka.io/apis/external/vendor/creditNote/13/getCreditNoteDetails#getApisExternalVendorCreditnoteIdGetcreditnotedetails2")
  .header("DICE-APP-ID", "{{Company Code}}")
  .header("X-CLIENT-ID", "{{API Client ID}}")
  .header("X-CLIENT-SECRET", "{{API Client Secret}}")
  .asString();
```

```php Credit Note_Fetch Credit Note Details_example
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://heimdall.eka.io/apis/external/vendor/creditNote/13/getCreditNoteDetails#getApisExternalVendorCreditnoteIdGetcreditnotedetails2', [
  'headers' => [
    'DICE-APP-ID' => '{{Company Code}}',
    'X-CLIENT-ID' => '{{API Client ID}}',
    'X-CLIENT-SECRET' => '{{API Client Secret}}',
  ],
]);

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

```csharp Credit Note_Fetch Credit Note Details_example
using RestSharp;

var client = new RestClient("https://heimdall.eka.io/apis/external/vendor/creditNote/13/getCreditNoteDetails#getApisExternalVendorCreditnoteIdGetcreditnotedetails2");
var request = new RestRequest(Method.GET);
request.AddHeader("DICE-APP-ID", "{{Company Code}}");
request.AddHeader("X-CLIENT-ID", "{{API Client ID}}");
request.AddHeader("X-CLIENT-SECRET", "{{API Client Secret}}");
IRestResponse response = client.Execute(request);
```

```swift Credit Note_Fetch Credit Note Details_example
import Foundation

let headers = [
  "DICE-APP-ID": "{{Company Code}}",
  "X-CLIENT-ID": "{{API Client ID}}",
  "X-CLIENT-SECRET": "{{API Client Secret}}"
]

let request = NSMutableURLRequest(url: NSURL(string: "https://heimdall.eka.io/apis/external/vendor/creditNote/13/getCreditNoteDetails#getApisExternalVendorCreditnoteIdGetcreditnotedetails2")! 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()
```