Developer Documentation
Welcome to the Diamanopay API documentation. This guide will help you integrate our payment services into your application. The base URL for all API endpoints is https://api.diamanopay.com.
Simple & Powerful API Workflow
1. Authentication
Get a Bearer Token using your API credentials.
2. Create Charge
Initiate a payment and get a payment URL.
3. Webhook
Receive a real-time notification on payment status.
4. Get Transaction
Securely verify the transaction details.
Important Security Note
Never expose an API key in client-side code — a page, a mobile app, anything a customer can open. Keep it on your server. A key is shown once, at creation; if you lose it, create another and revoke the old one.
1. Authentication
Diamanopay uses OAuth2 for API authentication. All requests to the API must be authenticated with a Bearer Token.
An API key is created from your dashboard and sent as-is. There is no token to exchange and nothing to renew.