AFIP credit note (Argentina) for returns
When a sale is cancelled or returned, issue the AFIP credit note linked to the original invoice and send it to the customer.
Everything is created inactive in a new folder of your account. Nothing runs until you activate it, and you can undo it for 24 hours.

What it does
Companion to the e-invoice template. Your shop or ERP calls the webhook with the amount to refund and the original invoice data (type, point of sale and number); the workflow issues the AFIP credit note linked to that voucher, builds the receipt with its QR code and emails it to the customer.
What you need: the same AFIP SDK credential and SMTP account used for invoicing.
How to use it: install the template, connect the credentials and call the webhook on every return.
How to set it up
- 1
Connect the afip credential
This template uses afip in: Emitir nota de crédito. Create or pick the credential and assign it in those nodes.
- 2
Connect the smtp credential
This template uses smtp in: Enviar al cliente. Create or pick the credential and assign it in those nodes.
- 3
Copy the webhook URL (Recibir devolución)
A new URL is generated on install. Paste it into the external system that must call this workflow.
- 4
Choose the credit note type
The note must match the original invoice:
8= Credit note B (for B invoices, type6),3= A (A invoices, type1). Adjust the Emitir nota de crédito node. - 5
Test in the testing environment
Send a
POSTwith{"total":1210,"doc_type":"99","doc_number":"0","associated_type":6,"point_of_sale":1,"associated_number":25,"email":"customer@example.com"}using an invoice number that exists in the testing environment. - 6
Activate the workflow
Workflows are installed inactive. Once everything is set, activate it.
Related templates
Other templates that use similar nodes or integrations.

AFIP e-invoice (Argentina) sent by email
Receive an order via webhook, issue the electronic invoice with AFIP, get the CAE and email the receipt with its QR code to the customer.

CFDI 4.0 invoice (Mexico) stamped and emailed
Receive an order, build and stamp the CFDI 4.0 through your PAC and email the printable version with its UUID to the customer.

SRI e-invoice (Ecuador) with RIDE by email
Issue the electronic invoice with the SRI, wait for authorization and email the RIDE with its access key to the customer.
Try it in under 5 minutes
Create the template in your account, connect your credentials and activate it when you are ready.
Use this template