HTTPリクエストを送信できるエージェントであれば、キーもアカウントも不要で、ここで義務の確認、見積もり、模擬オンボーディングの一連の流れを実行できます。署名とお支払いは、引き続き担当者ご本人が行います。
Razvan Toma 著 · 創業者 · 最終確認日 2026年11月1日
はい、AIエージェントがこのAPIを単独でテストできます。必要なのはHTTPのGETとPOSTだけです。閲覧のみのエージェントはこれらのページを読むことはできますが、手順を実行することはできません。
| エージェントの役割 | エンドポイント | 効果 |
|---|---|---|
| 国と想定されるストリームを確認します | POST /check | データの返却のみ |
| フランスに関する質問を確認する | GET /france/questionnaire | データの返却のみ |
| 最新価格で見積もる | POST /quote | データの返却のみ |
| 各国の手順をシミュレーションします | POST /sandbox/onboardings | シミュレーションのため、何も作成されません |
| 個人向けのチェックアウトリンクを作成する | POST /onboarding-links | リンクが返されます。担当者が支払うまで、注文は一切確定しません |
ベース URL は https://epreurep.com/api/v1 です。HTTPS 上で JSON を受け付け、1 IP あたり 1 分間に 30 リクエストまでの制限があります。価格には VAT は含まれていません。
| ファイル | 活用シーン |
|---|---|
| openapi.json | 各エンドポイントの正確な仕様 |
| このページをMarkdownで表示 | このクイックスタートをプレーンテキストで表示 |
| Markdown形式の完全なドキュメント | すべてのルール、フィールド、エラー |
| llms.txt | EPR EU Rep に関するすべてのページと引用用の事実情報 |
この5つのステップが一連の流れのすべてです。各例では、実際のAPIが返した内容を示しています。
curl -X POST https://epreurep.com/api/v1/check \
-H 'content-type: application/json' \
-d '{"countries":["FR","DE","ES"],"products":["cotton t-shirt","toy car"]}'{
"ok": true,
"countries": [
{ "code": "FR", "covered": true, "name": "France" },
{ "code": "DE", "covered": true, "name": "Germany" },
{ "code": "ES", "covered": true, "name": "Spain" }
],
"streams": ["household-packaging", "textiles-clothing-and-footwear-tlc", "toys"],
"indicative": true,
"note": "A first guess from product words. Whether you are the producer depends on your sales channels and establishment."
}streamsはproductsの語句から導き出した最初の推定値であり、indicativeは常にtrueです。見積りを出す前に、顧客とストリーム(対象区分)を確認してください。
curl https://epreurep.com/api/v1/france/questionnaire必須の3つの回答、各対象品目の最安プラン、プランのルールが返されます。推測せず、お客様にこれらの質問をしてください。
curl -X POST https://epreurep.com/api/v1/quote \
-H 'content-type: application/json' \
-d '{"france":{"sells_to":"consumers","streams":["toys"],"tonnes":"up_to_1"},"germany":{"packaging_kg":{"paper":120,"plastic":40}},"spain":{"plan":"essential","nif":true}}'{
"ok": true,
"custom_quote": false,
"total": 977,
"currency": "EUR",
"lines": [
{ "country": "FR", "item": "France Standard", "eur": 380, "per": "year" },
{ "country": "DE", "item": "Germany packaging", "eur": 149, "per": "year" },
{ "country": "ES", "item": "Spain Essential", "eur": 199, "per": "year" },
{ "country": "ES", "item": "Spanish NIF", "eur": 249, "per": "one-off" }
],
"france": { "plan": "Standard", "streams": ["household-packaging", "toys"], "stream_count": 2, "tonnes": "up_to_1", "why": [] },
"germany": { "dual_system_estimate": { "eur": 121.43, "year": 2026, "vat_included": true, "charged": "in your client portal, before we accept the LUCID appointment" } },
"note": "Indicative. Scheme fees and eco-contributions are billed separately at cost. Prices exclude VAT."
}custom_quoteがtrueの場合、そのご注文はEnterpriseとなります。フランス向け10トン超、またはフランスのストリームが3つを超える場合が該当します。totalはnullとなり、見積りは当社のみが作成できます。
curl -X POST https://epreurep.com/api/v1/sandbox/onboardings \
-H 'content-type: application/json' \
-d '{"countries":["DE"]}'{
"ok": true,
"sandbox": true,
"id": "sbx_...",
"countries": [{
"country": "DE",
"status": "order_paid",
"completed": ["order_paid"],
"next": { "step": "mandate_signed", "client_action_required": true },
"registration_number": null
}],
"complete": false
}ステップは5秒ごとに1つ進みます。フランスは3ステップ、ドイツは5ステップ、スペインは4ステップのため、ドイツは20秒後に完了します。
ID=$(curl -s -X POST https://epreurep.com/api/v1/sandbox/onboardings \
-H 'content-type: application/json' -d '{"countries":["DE"]}' | python3 -c 'import json,sys; print(json.load(sys.stdin)["id"])')
sleep 25
curl -s https://epreurep.com/api/v1/sandbox/onboardings/$ID{
"ok": true,
"sandbox": true,
"countries": [{
"country": "DE",
"status": "registered",
"completed": ["order_paid", "mandate_signed", "dual_system_paid", "appointed_in_lucid", "registered"],
"next": null,
"registration_number": "DE-TEST-0000000000000"
}],
"complete": true,
"note": "Simulated. No order, mandate, payment or registration exists. Test numbers are not valid anywhere."
}complete が true になったらポーリングを停止してください。IDにすべての状態が含まれているため、そのまま使い続けることができ、当社側には何も保存されません。
curl -X POST https://epreurep.com/api/v1/onboarding-links \
-H 'content-type: application/json' \
-d '{"partner":"northstar","france":{"sells_to":"consumers","streams":["toys"],"tonnes":"up_to_1"},"company":"Example Ltd","email":"owner@example.com"}'{
"ok": true,
"custom_quote": false,
"url": "https://epreurep.com/checkout/?fr=0&frs=toys&fr_seg=cons&ref=northstar#company=Example+Ltd&email=owner%40example.com",
"note": "The client confirms the details, signs and pays at this link. Paid orders are tracked to the partner."
}northstarはテスト用のデモコードです。パートナー様はご自身のコードをお使いください。リンクは担当者に直接お渡しください。会社名とメールアドレスはURLのフラグメントに含まれ、サーバーに送信されることはありません。
DE-TEST-0000000000000 のような番号は、どこでも有効ではありません。client_action_required が true の場合は処理を止め、お客様が行うべきことをお伝えください。/check は、あくまで最初の目安としてお取り扱いください。誰が生産者に該当するかは、販売チャネルと事業所の所在地によって異なります。| 国 | クライアント本人が行う手順 |
|---|---|
| フランス | 委任契約に署名します(オンラインで完了できます) |
| ドイツ | 委任状に手書きまたは適格電子署名で署名し、LUCIDで代理人を指名します |
| スペイン | 委任状に署名してください。その後、委任状の確認が行われますが、時間がかかる場合があります |
弊社のチームが登録と申告を行いますので、完了までには数秒ではなく数日かかります。詳しくはEPR登録を完全に自動化できない理由をご覧ください。
エラー時は、HTTPステータスと、ok: false、error コード、message を含む本文が返されます。
| ステータス | error | 対応方法 |
|---|---|---|
| 400 | invalid_json | JSONオブジェクトを送信 |
| 400 | invalid_request | messageには対象のフィールドが示されます。修正して再試行してください |
| 400 | unknown_partner | 実在するパートナーコードをご利用ください |
| 404 | not_found | パスまたはサンドボックスIDをご確認ください |
| 405 | method_not_allowed | このパスにはPOSTを使用してください |
| 429 | お待ちいただき、再度お試しください |
HTTPリクエストを送信できるエージェントであれば、これをそのまま貼り付けてご利用いただけます。
Test the EPR EU Rep API from start to finish.
1. Read https://epreurep.com/developers/ai-agents/index.md and https://epreurep.com/developers/openapi.json
2. POST /api/v1/check for a seller of cotton t-shirts in FR, DE and ES.
3. GET /api/v1/france/questionnaire and POST /api/v1/quote with the answers.
4. POST /api/v1/sandbox/onboardings for FR, DE and ES, then poll the id until complete is true.
5. Report each step's status, and which steps need the client personally.
It is a simulation: never present a test number as a real registration.