Documentation Index
Fetch the complete documentation index at: https://docs-openpay.nipuntheekshana.com/llms.txt
Use this file to discover all available pages before exploring further.
Direct Debit API
The Direct Debit API enables merchants to establish pre-authorization contracts with customers, allowing recurring or on-demand cryptocurrency charges without requiring user interaction for each payment.How It Works
- Scenario Discovery - Retrieve supported scenario codes that define transaction types and limits
- Contract Creation - Generate a pre-authorization contract with QR code and deep link
- User Signing - Customer approves the contract via their payment provider app
- Status Verification - Query the provider to confirm the contract has been signed
- Payment Execution - Charge amounts against the signed contract
- Contract Management - Sync status, execute payments, or terminate as needed
Contract Lifecycle
Endpoints
| Method | Path | Description |
|---|---|---|
GET | /v1/direct-debit/scenario-codes | List available scenario codes |
POST | /v1/direct-debit | Create a new contract |
GET | /v1/direct-debit/list | List contracts with pagination |
GET | /v1/direct-debit/{id} | Get contract details |
POST | /v1/direct-debit/{id}/sync | Sync contract status from provider |
POST | /v1/direct-debit/{id}/terminate | Terminate a signed contract |
POST | /v1/direct-debit/{id}/payment | Execute payment against contract |