Do you have example code in my programming language?

Published on · Updated on

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::HTTP or Faraday.
  • 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.


Frequently Asked Questions

Is there a Postman/Insomnia collection?
Yes, in the docs. Import the OpenAPI 3.1 spec and every endpoint is ready.
Do the examples handle errors?
Yes. Each snippet handles the JSON `error` object with `code` and `message`.
Compatible with Lambda/Cloud Run?
Fully. The API is a standard REST endpoint with no infra requirements.

Read the API documentation

Try it now β†’
Was this article helpful?

Related articles