Create a customer credit memo
Issues a credit memo against an account through the canonical credit-memo writer
(issueCreditMemo; same code path as the internal UI). Posts the per-source_type GL
entry (manual/goodwill credits: DR Sales Returns & Allowances / CR Customer Credits
liability), increments the account’s spendable credit_balance, assigns a sequential
credit_memo_number, and tracks the open balance for future application.
Idempotency: when source_type + source_id are supplied, re-issuing the same triple
returns the EXISTING memo with HTTP 200 instead of creating a duplicate. Manual credits
without a source_id always create a new memo. If expires_at is omitted the entity’s
default credit-expiry policy applies (null = never expires).
Authorizations
API key issued per entity via Settings > Developers > API Keys.
Each key carries scopes (e.g. orders:read, products:write).
Bearer token format: Authorization: Bearer ark_live_ent_Test keys use ark_test_ent_. Both are issued per entity
via Settings > Developers > API Keys.
Body
x >= 0.01Registered credit source type (default: manual). Unregistered values are rejected 422.
Optional source-document UUID; forms the idempotency triple with source_type. Non-UUID values are rejected.
ISO date-time in the future
Free-text note stored on the credit memo.
Arbitrary object; serialized into the memo notes. Takes precedence over memo.
Response
Existing memo returned (idempotent replay of the same source_type + source_id)
A customer credit memo representing a future payment obligation by Arcus to an account. Tracks open_balance for partial application across multiple orders. GL: DR AR Clearing / CR AR on creation; DR AR / CR Cash on application.
The customer account this credit belongs to.
Original credit amount issued.
Remaining unapplied balance.
open, partially_applied, fully_applied, voided Clearing account used for this credit.
The GL entry that created this credit.

