---
title: "Update a creditmemo"
method: PATCH
path: "/accounting/{connection_id}/creditmemo/{id}"
tags: ["accounting", "creditmemo"]
---

# Update a creditmemo

`PATCH /accounting/{connection_id}/creditmemo/{id}`

## Path parameters

- `connection_id` string, required
- `id` string, required

## Query parameters

- `fields` string[]
- `raw` string

## Request body

- AccountingCreditmemo
  - `id` string
  - `created_at` string, date-time
  - `updated_at` string, date-time
  - `due_at` string, date-time
  - `paid_at` string, date-time
  - `refunded_at` string, date-time
  - `cancelled_at` string, date-time
  - `posted_at` string, date-time
  - `total_amount` number
  - `paid_amount` number
  - `refund_amount` number
  - `tax_amount` number
  - `discount_amount` number
  - `balance_amount` number
  - `creditmemo_number` string
  - `contact_id` string
  - `invoice_id` string
  - `currency` string
  - `notes` string
  - `refund_reason` string
  - `lineitems` AccountingLineitem[]
    - `id` string
    - `created_at` string, date-time
    - `updated_at` string, date-time
    - `refunded_at` string, date-time
    - `total_amount` number
    - `refund_amount` number
    - `discount_amount` number
    - `tax_amount` number
    - `item_id` string
    - `unit_amount` number
    - `unit_quantity` number
    - `item_sku` string
    - `item_name` string
    - `item_description` string
    - `notes` string
    - `taxrate_id` string
    - `account_id` string
    - `category_ids` string[]
    - `locations` AccountingReference[]
      - `id` string
      - `name` string
    - `item_variants` AccountingReference[]
      - `id` string
      - `name` string
    - `fees` AccountingFee[]
      - `type` 'TAX' | 'DISCOUNT' | 'PROMOTION' | 'SHIPPING' | 'GIFT_WRAP' | 'COD' | 'SURCHARGE' | 'OTHER', required
      - `original_type` string
      - `amount` number, required
      - `currency` string
    - `contact_id` string
  - `status` 'DRAFT' | 'VOIDED' | 'AUTHORIZED' | 'PAID' | 'PARTIALLY_PAID' | 'PARTIALLY_REFUNDED' | 'REFUNDED' | 'SUBMITTED' | 'DELETED' | 'OVERDUE'
  - `url` string
  - `payment_collection_method` 'send_invoice' | 'charge_automatically'
  - `attachments` AccountingAttachment[]
    - `id` string
    - `download_url` string
    - `name` string
    - `mime_type` string
  - `send` boolean
  - `organization_id` string
  - `apply_amount` number
  - `applications` AccountingCreditApplication[] — What this credit memo was applied to (invoices/bills). Writable inline on create/update.
    - `object_type` 'INVOICE' | 'BILL'
    - `object_id` string
    - `amount` number
    - `applied_at` string, date-time
  - `raw` object

## Response `200`

Successful

- AccountingCreditmemo
  - `id` string
  - `created_at` string, date-time
  - `updated_at` string, date-time
  - `due_at` string, date-time
  - `paid_at` string, date-time
  - `refunded_at` string, date-time
  - `cancelled_at` string, date-time
  - `posted_at` string, date-time
  - `total_amount` number
  - `paid_amount` number
  - `refund_amount` number
  - `tax_amount` number
  - `discount_amount` number
  - `balance_amount` number
  - `creditmemo_number` string
  - `contact_id` string
  - `invoice_id` string
  - `currency` string
  - `notes` string
  - `refund_reason` string
  - `lineitems` AccountingLineitem[]
    - `id` string
    - `created_at` string, date-time
    - `updated_at` string, date-time
    - `refunded_at` string, date-time
    - `total_amount` number
    - `refund_amount` number
    - `discount_amount` number
    - `tax_amount` number
    - `item_id` string
    - `unit_amount` number
    - `unit_quantity` number
    - `item_sku` string
    - `item_name` string
    - `item_description` string
    - `notes` string
    - `taxrate_id` string
    - `account_id` string
    - `category_ids` string[]
    - `locations` AccountingReference[]
      - `id` string
      - `name` string
    - `item_variants` AccountingReference[]
      - `id` string
      - `name` string
    - `fees` AccountingFee[]
      - `type` 'TAX' | 'DISCOUNT' | 'PROMOTION' | 'SHIPPING' | 'GIFT_WRAP' | 'COD' | 'SURCHARGE' | 'OTHER', required
      - `original_type` string
      - `amount` number, required
      - `currency` string
    - `contact_id` string
  - `status` 'DRAFT' | 'VOIDED' | 'AUTHORIZED' | 'PAID' | 'PARTIALLY_PAID' | 'PARTIALLY_REFUNDED' | 'REFUNDED' | 'SUBMITTED' | 'DELETED' | 'OVERDUE'
  - `url` string
  - `payment_collection_method` 'send_invoice' | 'charge_automatically'
  - `attachments` AccountingAttachment[]
    - `id` string
    - `download_url` string
    - `name` string
    - `mime_type` string
  - `send` boolean
  - `organization_id` string
  - `apply_amount` number
  - `applications` AccountingCreditApplication[] — What this credit memo was applied to (invoices/bills). Writable inline on create/update.
    - `object_type` 'INVOICE' | 'BILL'
    - `object_id` string
    - `amount` number
    - `applied_at` string, date-time
  - `raw` object

---

[API](https://skmtc.net/unified/apis/unified-to-api.md) · [All operations](https://skmtc.net/unified/apis/unified-to-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/unified/unified-to-api/versions/1f72720916e4/schema)
