French GAMMA2 EDI API for Wine Excise Documents (DAE / DSA)
by Viyug Infotech https://viyuginfotech.com$ย 510.60

GAMMA2 EDI VIA API FOR THE WINE & VINEYARD ERP
DAE and DSA sent to French customs from the delivery.
Submit the excise document and Odoo sends it to GAMMA2 through the customs EDI-via-API service. The ARC, rejections, reports of receipt and cancellations come back on their own and update the document. Requires the customs EDI-via-API agreement, an API account enabled for GAMMA2 and the certification of the connection.
FRA815 DAEMVVDSAARC backReplaysCertification
Free setup call with every purchase
After you buy, book a free 30-minute online call: we install the app with you and set it up for your company. Questions are answered within 24 hours, Monday to Saturday, at support@viyuginfotech.com or on WhatsApp (QR code at the end of this page).
Try it live
One demo winery runs the whole wine & vineyard family with a full season of data. No sign-up needed.
Opens directly as the cellar manager of the demo estate on Odoo 20 Enterprise: dashboard, parcels, harvest, cellar, bottling, lots and every add-on of the family. The GAMMA2 screens are there to look at; sending documents to customs needs your own customs API account.
Click Live Preview at the top of this page, or open:
wine-demo.viyuginfotech.com/try-demo
The demo is shared with other visitors, so please do not enter real data.
Before and after
For French wineries that ship under excise documents every day.
Before
- Every DAE typed again in the GAMMA2 portal
- ARC copied back by hand, receipts checked one by one
- A gateway outage means documents silently not sent
- Certification test cases followed on paper
After
- Submit in Odoo: the document goes to GAMMA2 with the right headers and token
- ARC, rejections and receipts update the document automatically
- Failed calls replayed on the customs schedule, with alerts when they give up
- Certification campaign with the official cases and the answers received
What you get
OAuth2 the way customs ask
Password grant with the API account, the 5-minute token reused until it expires and renewed after a 401. Client id and secret when customs provide them.
Outbound messages
FRA815 e-AD creation, MVVDSA DSA creation and cancellation, FRA810 cancellation, FRA813 change of destination and FRA900 status requests, validated against the official contract.
Call-backs from GAMMA2
FRA801 (ARC), FRA906 / FRA917 rejections, MVVDSACONF, FRA818 receipts, FRA819, FRA803, FRA807, FRA881 and more, protected by the inbound token and processed once.
Replays and alerts
Network errors, 5xx, 408 and 429 replayed on the customs tiers (1, 5, 15, 30 minutes, then hourly); an activity is raised when a message gives up or GAMMA2 stays silent.
Message journal
Every exchange with payload, headers, HTTP status and answer, linked to its excise document and kept in the connector log.
Certification workspace
Campaigns with the consignor cases of the official DAE and MVV/DSA test books, model documents, second steps and the expected versus received answers.
Setup wizard
Agreement, API account, call-back URL and inbound token, authentication test and go live, in the order customs require.
Synchronisation cron
Validated movements without a report of receipt are synchronised with FRA900 once a day.
Credentials kept safe
API password, client secret and inbound token visible to compliance officers only; the inbound token is compared in constant time.
Compared with typical alternatives
| Feature | This app | Typical alternatives |
|---|---|---|
| Sends DAE and DSA to GAMMA2 | From the excise document, one click | Typed in the portal |
| ARC and receipts back in Odoo | Automatic call-backs | Copied by hand |
| Outage handling | Replays on the customs schedule, alerts | Lost or duplicated |
| Official contract validation | Every outbound message | None |
| Certification support | Official test cases with results | Paper checklist |
| Guided onboarding | Five-step setup wizard | Technical project |
How it works
Submit the excise document of a delivery: Odoo builds the FRA815 or MVVDSA message and sends it with a fresh or cached token.
Taken in charge GAMMA2 answers HTTP 200; the document shows "Sent, awaiting GAMMA2".
Answer GAMMA2 calls your Odoo back with the ARC or the rejection reasons; the document is validated or rejected.
Receipt the report of receipt closes the movement; refusals raise an activity.
Follow up cancel, change the destination or synchronise from the document; every message stays in the journal.
Setup in 5 steps
The setup wizard walks you through them.
Agreement sign the EDI-via-API contract with customs (certification-edi).
API account created in Correspondant Entreprise and enabled for GAMMA2 on your excise numbers.
Call-back declare your HTTPS call-back URL and the inbound token generated by Odoo.
Test the authentication on the integration environment, then run the certification cases.
Go live once certified, switch to production with the production credentials.
User guide
A step-by-step PDF guide with real screenshots: one guide for the whole Wine & Vineyard family, with every menu, the setup and each screen in the order you use them.
What is inside
- The apps, what each does and the menus
- Backend theme and the app menu
- Core ERP: roles, settings, dashboard
- Vineyard, harvest and weighbridge
- Winemaking, fermentation and cellar
- Blending, lab quality and bottling
- Lot genealogy and recalls
- Declarations, excise documents, stamps
- Cost per lot and per bottle
- French customs files and GAMMA2
- Wine cost accounting
- Cooperative and grape purchases
- Vineyard leases
- Sparkling wine
- Sustainability
- Wine tourism and wine club
- Vineyard field app
Open it in your browser:
viyuginfotech.com/guide/viyug_wine_gamma2
Scan to open the guide
PDF with screenshots, opens on your phone
Workflow walkthrough
Fictional estate; the customs servers are replaced by a local test server for these screenshots.
Start the setup wizard
Step one recalls the agreement customs require and keeps its date on the connector.

Enter the API account
Environment, token and API URLs, API account, password and sender SIRET. Secrets are stored on the connector only.

Declare the call-back
Copy the call-back URL and the inbound token, shown once, into Correspondant Entreprise.

Test the authentication
Odoo asks the authorisation server for a token with the saved account. Nothing is sent to GAMMA2.

Submit the excise document
The FRA815 message is sent and taken in charge; the document waits for GAMMA2.

Receive the ARC
GAMMA2 calls back with FRA801: the document is validated with its ARC, the report of receipt follows.

Follow every exchange
The message journal shows payloads, HTTP status, attempts and the next replay.

Run the certification
Load the official test cases, run them with the certifier and see expected versus received answers.

What you need
This app is built on the Viyug Infotech apps below. Odoo installs them together with this app, so you also get everything they do.
French Customs Localisation (Wine)
Technical name viyug_wine_l10n_fr
French customs files for the wine ERP: VENDANGES, STOCK, CIEL DRM and GAMMA2 drafts.
- VENDANGES harvest declaration in the official DTI+ JSON
- STOCK declaration XML at 31 July
- CIEL monthly excise return (DRM) and CRD capsule accounts
- GAMMA2 DAE and DSA drafts from deliveries
- Official product list import and an upload checklist with live status
- Filed files locked, hashed and kept with the receipt



Wine & Vineyard ERP
Technical name viyug_wine_erp ยท comes with French Customs Localisation (Wine)
Vineyard-to-bottle ERP: parcels, vineyard work, harvest, cellar, blending, bottling and lots.
- Parcels with variety, planting year, soil and designation
- Vineyard work orders, weather and maturity tracking
- Harvest reception at the weighbridge into tanks and lots
- Fermentation, vessels, blending and bottling
- Lot traceability and recalls that list every customer
- Cost per bottle by parcel, vintage and wine



Wine & Vineyard Backend Theme
Technical name viyug_wine_base ยท comes with Wine & Vineyard ERP
The shared look and design kit of the Viyug wine and vineyard apps.
- Wine-red accent and limestone palette
- Display headings with fonts shipped inside the module
- Vineyard home menu illustration with Enterprise
- Light and dark mode
- Shared design kit: dashboard tiles, KPI cards, status pills
- One switch in General Settings turns the theme off and on



FAQ
Do I need an agreement with customs?
Yes. GAMMA2 EDI via API needs the customs EDI-via-API contract, an API account enabled for GAMMA2 and the certification of the connection on the test environment. Without them, keep using the GAMMA2 portal: the French Customs Localisation app builds the DTI+ draft file of each document.
Can I try it before the agreement?
You can install it, run the setup wizard and prepare the certification campaign. Real exchanges, even on the customs test environment, need the credentials customs give with the agreement.
What does my server need?
An HTTPS address reachable from the Internet for the call-backs, with this database selected without a session (single database or dbfilter). Optional: the Python package jsonschema to validate every outbound message.
Which messages are not covered?
The consignee side (issuing reports of receipt), explanations on delay or shortages, splitting and MVV documents. Use the GAMMA2 portal for those.
What happens when GAMMA2 is down?
The message stays queued and is replayed on the customs schedule; after the last attempt it is marked in error and an activity is created on the document.
Release notes
Initial release
- OAuth2 password grant with token reuse and the official GUN headers
- FRA815, MVVDSA, FRA810, FRA813 and FRA900, validated against the v4.3.0 contract
- Call-back endpoint with inbound token and idempotent processing
- Replays on the official tiers, synchronisation cron, setup wizard and certification workspace
Extensions
The wine and vineyard family by Viyug Infotech.
Wine & Vineyard Backend Theme
The family look, vineyard home menu, dark mode and design kit.
viyug_wine_baseWine & Vineyard ERP
Parcels, vineyard work, harvest and weighbridge, cellar, blending, bottling, lots, recalls and costing.
viyug_wine_erpFrench Customs Localisation
VENDANGES, STOCK and CIEL files, GAMMA2 DTI+ drafts, French codes and checklist.
viyug_wine_l10n_frGAMMA2 EDI API
DAE and DSA sent to French customs, ARC and receipts back automatically.
You are hereWine Accounting
Bottles valued at production cost, bulk wine in progress, vendor bill cost allocation.
viyug_wine_accountWine Cooperative
Members, grape deliveries, quality-based payment grids and settlements.
viyug_wine_cooperativeVineyard Leases
Cash-rent and share-crop leases, indexed rent, owner bills and notice dates.
viyug_wine_leasingVineyard Sustainability
Water and energy meters, by-products, treatment indicators and audits.
viyug_wine_sustainabilityNeed a hand?
Questions about the customs agreement, the API account or the certification? Write to us and Viyug Infotech will get back to you.
Email support: support@viyuginfotech.com
Website: viyuginfotech.com
Scan with your phone to open the live demo, chat on WhatsApp or write us an email:

Live demo
wine-demo.viyuginfotech.com
/try-demo

+91 83207 42187

Send us an email
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
Discuss (mail)
• Employees (hr) • Inventory (stock) • Maintenance (maintenance) • Invoicing (account) |
| Community Apps Dependencies | Show |
| Lines of code | 17192 |
| Technical Name |
viyug_wine_gamma2 |
| License | OPL-1 |
| Website | https://viyuginfotech.com |
Odoo Proprietary License v1.0 This software and associated files (the "Software") may only be used (executed, modified, executed after modifications) if you have purchased a valid license from the authors, typically via Odoo Apps, or if you have received a written agreement from the authors of the Software (see the COPYRIGHT file). You may develop Odoo modules that use the Software as a library (typically by depending on it, importing it and using its resources), but without copying any source code or material from the Software. You may distribute those modules under the license of your choice, provided that this license is compatible with the terms of the Odoo Proprietary License (For example: LGPL, MIT, or proprietary licenses similar to this one). It is forbidden to publish, distribute, sublicense, or sell copies of the Software or modified copies of the Software. The above copyright notice and this permission notice must be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Please log in to comment on this module