Do you have example code?
Yes. We keep up-to-date snippets of our API for the most used languages:
- curl: to try from the command line.
- Python: with
requests. - Node.js: with
fetch(native in Node 18+). - PHP: with cURL or Guzzle.
- Ruby: with
Net::HTTPorFaraday. - Go: with
net/http. - Java: with
HttpClient(Java 11+). - C#: with
HttpClient.
All available at /api β Quickstart.
Python example
import requests, base64
r = requests.post(
"https://api.generatesepa.com/v1/conversions",
headers={"Authorization": "Bearer YOUR_KEY"},
json={"profile_id": "p_123", "operations": [...]}
)
r.raise_for_status()
xml = base64.b64decode(r.json()["sepa_xml_base64"])
open("sepa.xml", "wb").write(xml)
Conclusion
Donβt see your language? Drop us a line β we add new ones often.