デベロッパー · AIエージェント

AIエージェント向けEPR API

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.txtEPR EU Rep に関するすべてのページと引用用の事実情報

フルテストを実行

この5つのステップが一連の流れのすべてです。各例では、実際のAPIが返した内容を示しています。

1. 国とストリームを確認する

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です。見積りを出す前に、顧客とストリーム(対象区分)を確認してください。

2. フランスに関する質問を確認する

curl https://epreurep.com/api/v1/france/questionnaire

必須の3つの回答、各対象品目の最安プラン、プランのルールが返されます。推測せず、お客様にこれらの質問をしてください。

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となり、見積りは当社のみが作成できます。

4. オンボーディングをシミュレートする

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にすべての状態が含まれているため、そのまま使い続けることができ、当社側には何も保存されません。

5. 実際のリンクを準備する

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対応方法
400invalid_jsonJSONオブジェクトを送信
400invalid_requestmessageには対象のフィールドが示されます。修正して再試行してください
400unknown_partner実在するパートナーコードをご利用ください
404not_foundパスまたはサンドボックスIDをご確認ください
405method_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.