Retrieve Credit Memo
curl --request GET \
--url https://api.meetcampfire.com/coa/api/v1/credit-memo/{id}import requests
url = "https://api.meetcampfire.com/coa/api/v1/credit-memo/{id}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.meetcampfire.com/coa/api/v1/credit-memo/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.meetcampfire.com/coa/api/v1/credit-memo/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.meetcampfire.com/coa/api/v1/credit-memo/{id}"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.meetcampfire.com/coa/api/v1/credit-memo/{id}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.meetcampfire.com/coa/api/v1/credit-memo/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"id": 4258,
"lines": [
{
"id": 5449,
"account_number": "4107",
"account_name": "4107 - Subscription fees",
"product_name": "Annual Subscription",
"department_name": "Engineering",
"tags": [
{
"id": 7736,
"parent_name": null,
"parent": null,
"name": "Other",
"created_at": "2025-06-18T21:09:34+0000",
"last_modified_at": "2025-06-18T21:09:34+0000",
"group": null
}
],
"description": "Credit for overpayment on annual subscription",
"amount": 1000.23,
"created_at": "2025-07-25T21:04:38+0000",
"last_modified_at": "2025-07-25T21:04:38+0000",
"product": 3679,
"account": 169208,
"department": 35
}
],
"payments": [
{
"id": 2205,
"payment_journal_entry": 7495832,
"payment_journal_entry_order": "JE-0007823",
"payment_transaction": 19485762,
"amount": 500,
"payment_date": "2025-07-15",
"created_at": "2025-07-15T14:30:22+0000",
"last_modified_at": "2025-07-15T14:30:22+0000",
"voided_date": null,
"voided_journal_entry": null,
"invoice": {
"id": 47892,
"invoice_number": "INV-0000512"
}
}
],
"total_amount": 1000.23,
"amount_used": 500,
"amount_remaining": 500.23,
"entity_name": "Top Level",
"entity_currency": "USD",
"client_name": "Client A",
"contract_name": "Annual Service Agreement 2025",
"credit_account_name": "5230 - Cloud Credits",
"attachments": [
{
"id": 15643,
"name": "credit_memo_supporting_docs.pdf",
"file_size": 245760,
"content_type": "application/pdf",
"created_at": "2025-07-01T10:15:33+0000",
"last_modified_at": "2025-07-01T10:15:33+0000"
}
],
"credit_memo_number": "CM-0000008",
"voided_date": null,
"voided_journal_entry_order": null,
"ref_number": "REF-2025-0087",
"credit_memo_date": "2025-07-01",
"applied_date": "2025-07-15",
"message_on_credit_memo": "Credit memo for annual subscription overpayment. Thank you for your business.",
"application_status": "partially_used",
"currency": "USD",
"exchange_rate": 1,
"exchange_rate_book": 1,
"created_at": "2025-07-25T21:04:38+0000",
"last_modified_at": "2025-07-15T14:30:22+0000",
"customer": 2,
"entity": 54,
"client": 33973,
"credit_account": 41905,
"journal_entry": 7491953,
"contract": 1892,
"voided_journal_entry": null
}Accounts Receivable
Retrieve Credit Memo
Retrieves a single accounting credit memo with complete details including line items, payments, and accounting relationships.
This endpoint provides comprehensive credit memo information with:
- Complete credit memo metadata (dates, amounts, status, currency, terms)
- All associated line items with product details, account information, and departmental allocations
- Payment application history with journal entry references and transaction details
- Client and entity information with relationship details
- Contract associations for revenue recognition and reporting
- File attachments and supporting documentation
- Journal entry references for accounting audit trails and compliance
GET
/
coa
/
api
/
v1
/
credit-memo
/
{id}
Retrieve Credit Memo
curl --request GET \
--url https://api.meetcampfire.com/coa/api/v1/credit-memo/{id}import requests
url = "https://api.meetcampfire.com/coa/api/v1/credit-memo/{id}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.meetcampfire.com/coa/api/v1/credit-memo/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.meetcampfire.com/coa/api/v1/credit-memo/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.meetcampfire.com/coa/api/v1/credit-memo/{id}"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.meetcampfire.com/coa/api/v1/credit-memo/{id}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.meetcampfire.com/coa/api/v1/credit-memo/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"id": 4258,
"lines": [
{
"id": 5449,
"account_number": "4107",
"account_name": "4107 - Subscription fees",
"product_name": "Annual Subscription",
"department_name": "Engineering",
"tags": [
{
"id": 7736,
"parent_name": null,
"parent": null,
"name": "Other",
"created_at": "2025-06-18T21:09:34+0000",
"last_modified_at": "2025-06-18T21:09:34+0000",
"group": null
}
],
"description": "Credit for overpayment on annual subscription",
"amount": 1000.23,
"created_at": "2025-07-25T21:04:38+0000",
"last_modified_at": "2025-07-25T21:04:38+0000",
"product": 3679,
"account": 169208,
"department": 35
}
],
"payments": [
{
"id": 2205,
"payment_journal_entry": 7495832,
"payment_journal_entry_order": "JE-0007823",
"payment_transaction": 19485762,
"amount": 500,
"payment_date": "2025-07-15",
"created_at": "2025-07-15T14:30:22+0000",
"last_modified_at": "2025-07-15T14:30:22+0000",
"voided_date": null,
"voided_journal_entry": null,
"invoice": {
"id": 47892,
"invoice_number": "INV-0000512"
}
}
],
"total_amount": 1000.23,
"amount_used": 500,
"amount_remaining": 500.23,
"entity_name": "Top Level",
"entity_currency": "USD",
"client_name": "Client A",
"contract_name": "Annual Service Agreement 2025",
"credit_account_name": "5230 - Cloud Credits",
"attachments": [
{
"id": 15643,
"name": "credit_memo_supporting_docs.pdf",
"file_size": 245760,
"content_type": "application/pdf",
"created_at": "2025-07-01T10:15:33+0000",
"last_modified_at": "2025-07-01T10:15:33+0000"
}
],
"credit_memo_number": "CM-0000008",
"voided_date": null,
"voided_journal_entry_order": null,
"ref_number": "REF-2025-0087",
"credit_memo_date": "2025-07-01",
"applied_date": "2025-07-15",
"message_on_credit_memo": "Credit memo for annual subscription overpayment. Thank you for your business.",
"application_status": "partially_used",
"currency": "USD",
"exchange_rate": 1,
"exchange_rate_book": 1,
"created_at": "2025-07-25T21:04:38+0000",
"last_modified_at": "2025-07-15T14:30:22+0000",
"customer": 2,
"entity": 54,
"client": 33973,
"credit_account": 41905,
"journal_entry": 7491953,
"contract": 1892,
"voided_journal_entry": null
}Path Parameters
Response
200 - application/json
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Calculate amount remaining from database fields
Combines account number and name in the format "number - name"
Show child attributes
Show child attributes
Revenue contract to link this credit memo to at creation.
credit_memo- Credit Memooverpayment- Overpayment
Available options:
credit_memo, overpayment Maximum string length:
120open- Openpartially_used- Partially Usedused- Usedvoided- Voided
Available options:
open, partially_used, used, voided Maximum string length:
3Required range:
-100000000000000 < x < 100000000000000Required range:
-100000000000000 < x < 100000000000000ID of the negation transaction in Anrok for this credit memo
Maximum string length:
255Maximum string length:
250Maximum string length:
250Sum of all line item amounts
Required range:
-1000000000000000000 < x < 1000000000000000000Sum of all non-voided payment amounts
Required range:
-1000000000000000000 < x < 1000000000000000000Required range:
-2147483648 <= x <= 2147483647