Skip to main content

create-credit-note

This skill should be used when the task asks to "create a credit note", "issue a credit memo", "erstellen Sie eine Gutschrift", "créer un avoir", "opprett ein kreditnota", "criar uma nota de crédito", "crear una nota de crédito", "emita una nota de crédito", "émettre un avoir", or involves cancelling/nullifying an existing invoice by creating a credit note.

Informações da origem

Repositório
JardarIversen/ainm-2026
Última atividade na origem
21 de março de 2026 às 11:30
Idioma detectado do SKILL.md
inglês
Estrelas
18
Forks
14

Opções de instalação

Por padrão, está selecionado o prompt que primeiro revisa a origem. Você pode mudar para um comando direto ou baixar uma cópia local.

Revise os arquivos de origem

Leia o SKILL.md e os arquivos complementares exibidos pelo SkillsMP antes de decidir se vai instalar.

Exibindo SKILL.md

SKILL.md
Instruções da origem · Visualização somente leitura
name
create_credit_note
tier
2
task
T14
description
This skill should be used when the task asks to "create a credit note", "issue a credit memo", "erstellen Sie eine Gutschrift", "créer un avoir", "opprett ein kreditnota", "criar uma nota de crédito", "crear una nota de crédito", "emita una nota de crédito", "émettre un avoir", or involves cancelling/nullifying an existing invoice by creating a credit note.
# Create Credit Note Exactly 2 API calls. Find the invoice directly (no customer lookup needed), then create the credit note. ## Call 1: Find Invoice Search ALL invoices directly — `customerId` is NOT required. On a fresh sandbox there are very few invoices. Match by amount from the prompt. ``` GET /invoice?invoiceDateFrom=2020-01-01&invoiceDateTo=2030-12-31&fields=id,invoiceNumber,amount,amountExcludingVat,isCredited&count=50 ``` Find the invoice where `isCredited` is false and the amount matches the prompt. The prompt amount is usually excl. VAT — match against `amountExcludingVat`. ## Call 2: Create AND Send Credit Note Include `sendToCustomer=true` and `sendType=EMAIL` to create and send in one call: ``` PUT /invoice/<invoice_id>/:createCreditNote?date=2026-03-20&sendToCustomer=true&sendType=EMAIL ``` **Total: 2 calls, 0 errors.** ## Gotchas - No customer lookup needed — search invoices directly by amount - Always include `sendToCustomer=true&sendType=EMAIL` — scoring may check that the credit note was sent - `date` query parameter is required - No bank account setup needed for credit notes
Ver no GitHub