floogos
    All templates
    New

    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.

    Workflow diagram: AFIP credit note (Argentina) for returns

    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. 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. 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. 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. 4

      Choose the credit note type

      The note must match the original invoice: 8 = Credit note B (for B invoices, type 6), 3 = A (A invoices, type 1). Adjust the Emitir nota de crédito node.

    5. 5

      Test in the testing environment

      Send a POST with {"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. 6

      Activate the workflow

      Workflows are installed inactive. Once everything is set, activate it.

    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