> For the complete documentation index, see [llms.txt](https://wikiedoc.guru-soft.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://wikiedoc.guru-soft.com/fr/integrations-et-services/rest/exemples/note-de-credit.md).

# Note de crédit

{% tabs %}
{% tab title="Request" %}

```json
{
    "context": {
        "request-id": "REQ-20260520-NC-000054",
        "timestamp": "2026-05-20T10:15:00.000Z",
        "request-version": "1.0",
        "country": "fr",
        "sender-id": "100000009",
        "integration": {
            "id": "ERP-20260520-NC-000054",
            "name": "ERP Integration",
            "version": "1.0.0"
        }
    },
    "action": {
        "type": "issue-document",
        "class": "credit-note",
        "content-type": "json",
        "content": {
            "payload": {
                "document": {
                    "series": "NC2026",
                    "identifier": "1000265",
                    "date": "2026-05-20",
                    "date-due": "2026-05-20",
                    "date-taxes": "2026-05-20",
                    "currency": "EUR",
                    "language": "fr",
                    "additional-info": [
                        {
                            "key": "source-system",
                            "value": "ERP"
                        },
                        {
                            "key": "credit-note-reason",
                            "value": "Avoir partiel pour annulation du service support premium facturé en mai 2026."
                        }
                    ]
                },
                "issuer": {
                    "identifiers": [
                        {
                            "type": "vat",
                            "value": "FR12345678901"
                        },
                        {
                            "type": "siren",
                            "value": "100000009"
                        }
                    ],
                    "name": "Acme SAS",
                    "trade-name": "Acme France",
                    "e-addresses": [
                        {
                            "type": "routing-address",
                            "value": "100000009"
                        }
                    ],
                    "address": {
                        "street": "10 Rue de Rivoli",
                        "street-additional": "Bâtiment A",
                        "city": "Paris",
                        "postal-code": "75001",
                        "region": "Île-de-France",
                        "country": "FR"
                    },
                    "contacts": [
                        {
                            "type": "billing",
                            "name": "Service Facturation",
                            "email": "billing@acme.example",
                            "phone": "+33101020304"
                        }
                    ]
                },
                "receiver": {
                    "identifiers": [
                        {
                            "type": "vat",
                            "value": "FR98765432109"
                        },
                        {
                            "type": "siren",
                            "value": "987654321"
                        },
                        {
                            "type": "siret",
                            "value": "98765432100045"
                        }
                    ],
                    "name": "Globex France SARL",
                    "trade-name": "Globex",
                    "e-addresses": [
                        {
                            "type": "routing-address",
                            "value": "987654321"
                        }
                    ],
                    "address": {
                        "street": "25 Avenue des Champs-Élysées",
                        "street-additional": "Étage 4",
                        "city": "Paris",
                        "postal-code": "75008",
                        "region": "Île-de-France",
                        "country": "FR"
                    },
                    "contacts": [
                        {
                            "type": "accounts-payable",
                            "name": "Comptabilité Fournisseurs",
                            "email": "accounts.payable@globex.example",
                            "phone": "+33105060708"
                        }
                    ]
                },
                "references": [
                    {
                        "type": "original-invoice",
                        "identifier": "FA2026-00012354",
                        "date": "2026-05-05"
                    }
                ],
                "logistics": [
                    {
                        "type": "delivery",
                        "date": "2026-05-06",
                        "address": {
                            "street": "25 Avenue des Champs-Élysées",
                            "city": "Paris",
                            "postal-code": "75008",
                            "region": "Île-de-France",
                            "country": "FR"
                        }
                    }
                ],
                "agreements": [
                    {
                        "type": "payment",
                        "terms": [
                            {
                                "type": "due-period",
                                "description": "Règlement ou imputation de l'avoir au plus tard le 20 mai 2026.",
                                "date-due": "2026-05-20"
                            }
                        ]
                    }
                ],
                "notes": [
                    {
                        "tag": "fixed-recovery-fee",
                        "content": "Indemnité forfaitaire de 40 EUR pour frais de recouvrement due en cas de retard de paiement."
                    },
                    {
                        "tag": "late-payment-penalty",
                        "content": "Tout retard de paiement entraîne l'application des pénalités prévues dans les conditions de paiement du vendeur."
                    },
                    {
                        "tag": "no-early-payment-discount",
                        "content": "Aucun escompte n'est accordé pour paiement anticipé."
                    },
                    {
                        "tag": "credit-note-reason",
                        "content": "Avoir émis suite à l'annulation du service support premium facturé sur la facture FA2026-00012354."
                    }
                ],
                "lines": [
                    {
                        "number": "1",
                        "identifier": "SUPPORT-PREMIUM",
                        "description": "Avoir partiel - Annulation du service support premium de mai 2026",
                        "quantity": 1,
                        "unit": "MON",
                        "unit-price": 400.0,
                        "net-amount": 400.0,
                        "additional-dates": [
                            {
                                "type": "service-period-start",
                                "value": "2026-05-01",
                                "tag": "service-period"
                            },
                            {
                                "type": "service-period-end",
                                "value": "2026-05-31",
                                "tag": "service-period"
                            }
                        ],
                        "additional-identifiers": [
                            {
                                "type": "buyer-sku",
                                "value": "GBX-SUP-002"
                            }
                        ],
                        "taxes": [
                            {
                                "type": "vat",
                                "subtype": "standard",
                                "percent": 10.0,
                                "amount": 40.0
                            }
                        ],
                        "additional-info": [
                            {
                                "key": "credit-reason",
                                "value": "Cancellation of premium support service billed on original invoice."
                            },
                            {
                                "key": "original-invoice-line",
                                "value": "2"
                            }
                        ]
                    }
                ],
                "totals": {
                    "final-amount": 440.0,
                    "currency": "EUR",
                    "subtotals": [
                        {
                            "type": "lines-net-amount",
                            "class": "net",
                            "amount": 400.0,
                            "sign": "positive",
                            "before-taxes": true
                        },
                        {
                            "type": "tax",
                            "class": "vat",
                            "amount": 40.0,
                            "sign": "positive",
                            "before-taxes": false,
                            "subtotals": [
                                {
                                    "type": "tax",
                                    "class": "vat",
                                    "subtype": "standard",
                                    "percent": 10.0,
                                    "taxable-amount": 400.0,
                                    "amount": 40.0,
                                    "sign": "positive",
                                    "before-taxes": false
                                }
                            ]
                        }
                    ]
                }
            }
        }
    }
}
```

{% endtab %}

{% tab title="Response" %}

```json
{
    "context": {
        "request-id": "REQ-20260506-000001",
        "timestamp": "2026-05-06T15:38:56.889+00:00",
        "request-version": "1.0",
        "country": "fr",
        "sender-id": "100000009",
        "integration": {
            "id": "ERP-20260506-000001",
            "name": "ERP Integration",
            "version": "1.0.0"
        }
    },
    "result": {
        "status": {
            "code": 2,
            "name": "Authorized",
            "message": "Authorized",
            "content-into": "document"
        },
        "content": {
            "document": {
                "tracking-id": "4-20260506-00012513",
                "document-type": "invoice",
                "identifier": "00012513",
                "status": []
            }
        }
    }
}
```

{% endtab %}
{% endtabs %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://wikiedoc.guru-soft.com/fr/integrations-et-services/rest/exemples/note-de-credit.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
