# Dodo Payments Integration via LowCodeAPI
**Last Updated**: February 10, 2026
## Overview
Payment processing
**Categories:**
- {'id': 'payment-processing', 'name': 'Payment Processing'}
## Base Endpoint
https://api.lowcodeapi.com/dodopayments
**Important**: Always include the provider name in the URL path after `api.lowcodeapi.com/`
## Authentication
**Type:** TOKEN
**Official Documentation:** https://docs.dodopayments.com/api-reference
## URL Format (Important)
LowCodeAPI supports two URL formats. **Always try the New Format first**, then fall back to Old Format if needed.
### New Format (Priority)
- Path parameters stay in the URL path
- Do NOT include path parameters as query parameters
- Example: `https://api.lowcodeapi.com/{provider}/resource/{id}?api_token=XXX`
### Old Format (Fallback)
- Path parameters become query parameters
- Example: `https://api.lowcodeapi.com/{provider}/resource/id?id={id}&api_token=XXX`
### Decision Flow for AI Agents
1. Always use **New Format** first - keep path parameters in the URL path
2. If you get a 404 or error, try **Old Format** with sanitized path
3. Log which format worked for future requests to this provider
## API Categories
## Common Endpoints
### List Payments
**Method:** GET
**LowCodeAPI Path:** /payments
**New Format URL:**
https://api.lowcodeapi.com/dodopayments/payments?api_token=YOUR_API_TOKEN
**Old Format URL:**
https://api.lowcodeapi.com/dodopayments/payments?api_token=YOUR_API_TOKEN
**Query Parameters:**
| Parameter | Type | Description |
|-----------|------|-------------|
| page_number | number | |
| page_size | number | |
**Example Request (New Format):**
```bash
curl -X GET 'https://api.lowcodeapi.com/dodopayments/payments?api_token=YOUR_API_TOKEN'
```
**Official Documentation:** https://docs.dodopayments.com/api-reference/payments/get-payments
### Get Payment Detail
**Method:** GET
**LowCodeAPI Path:** /payments/{payment_id}
**New Format URL:**
https://api.lowcodeapi.com/dodopayments/payments/{payment_id}?api_token=YOUR_API_TOKEN
**Old Format URL:**
https://api.lowcodeapi.com/dodopayments/payments/payment_id?payment_id={payment_id}&api_token=YOUR_API_TOKEN
**Path Parameters:**
| Parameter | Type | Description |
|-----------|------|-------------|
| payment_id | string | |
**Example Request (New Format):**
```bash
curl -X GET 'https://api.lowcodeapi.com/dodopayments/payments/{payment_id}?api_token=YOUR_API_TOKEN'
```
**Official Documentation:** https://docs.dodopayments.com/api-reference/payments/get-payments-1
### Activate License
**Method:** POST
**LowCodeAPI Path:** /licenses/activate
**New Format URL:**
https://api.lowcodeapi.com/dodopayments/licenses/activate?api_token=YOUR_API_TOKEN
**Old Format URL:**
https://api.lowcodeapi.com/dodopayments/licenses/activate?api_token=YOUR_API_TOKEN
**Request Body:**
| Field | Type | Description |
|-------|------|-------------|
| license_key | string | |
| name | string | |
**Example Request (New Format):**
```bash
curl -X POST 'https://api.lowcodeapi.com/dodopayments/licenses/activate?api_token=YOUR_API_TOKEN'
```
**Official Documentation:** https://docs.dodopayments.com/api-reference/licenses/activate-license
### Deactivate License
**Method:** POST
**LowCodeAPI Path:** /licenses/deactivate
**New Format URL:**
https://api.lowcodeapi.com/dodopayments/licenses/deactivate?api_token=YOUR_API_TOKEN
**Old Format URL:**
https://api.lowcodeapi.com/dodopayments/licenses/deactivate?api_token=YOUR_API_TOKEN
**Request Body:**
| Field | Type | Description |
|-------|------|-------------|
| license_key | string | |
| license_key_instance_id | string | |
**Example Request (New Format):**
```bash
curl -X POST 'https://api.lowcodeapi.com/dodopayments/licenses/deactivate?api_token=YOUR_API_TOKEN'
```
**Official Documentation:** https://docs.dodopayments.com/api-reference/licenses/deactivate-license
### Validate License
**Method:** POST
**LowCodeAPI Path:** /licenses/validate
**New Format URL:**
https://api.lowcodeapi.com/dodopayments/licenses/validate?api_token=YOUR_API_TOKEN
**Old Format URL:**
https://api.lowcodeapi.com/dodopayments/licenses/validate?api_token=YOUR_API_TOKEN
**Request Body:**
| Field | Type | Description |
|-------|------|-------------|
| license_key | string | |
| license_key_instance_id | string | |
**Example Request (New Format):**
```bash
curl -X POST 'https://api.lowcodeapi.com/dodopayments/licenses/validate?api_token=YOUR_API_TOKEN'
```
**Official Documentation:** https://docs.dodopayments.com/api-reference/licenses/validate-license
### Get License Keys
**Method:** GET
**LowCodeAPI Path:** /license_keys
**New Format URL:**
https://api.lowcodeapi.com/dodopayments/license_keys?api_token=YOUR_API_TOKEN
**Old Format URL:**
https://api.lowcodeapi.com/dodopayments/license_keys?api_token=YOUR_API_TOKEN
**Query Parameters:**
| Parameter | Type | Description |
|-----------|------|-------------|
| customer_id | string | |
| page_number | number | |
| page_size | number | |
| product_id | object | |
| status | string | |
**Example Request (New Format):**
```bash
curl -X GET 'https://api.lowcodeapi.com/dodopayments/license_keys?api_token=YOUR_API_TOKEN'
```
**Official Documentation:** https://docs.dodopayments.com/api-reference/licenses/get-license-keys
### Get License Key
**Method:** GET
**LowCodeAPI Path:** /license_keys/{id}
**New Format URL:**
https://api.lowcodeapi.com/dodopayments/license_keys/{id}?api_token=YOUR_API_TOKEN
**Old Format URL:**
https://api.lowcodeapi.com/dodopayments/license_keys/id?id={id}&api_token=YOUR_API_TOKEN
**Path Parameters:**
| Parameter | Type | Description |
|-----------|------|-------------|
| id | string | |
**Example Request (New Format):**
```bash
curl -X GET 'https://api.lowcodeapi.com/dodopayments/license_keys/{id}?api_token=YOUR_API_TOKEN'
```
**Official Documentation:** https://docs.dodopayments.com/api-reference/licenses/get-license-key
### Update License Key
**Method:** PATCH
**LowCodeAPI Path:** /license_keys/{id}
**New Format URL:**
https://api.lowcodeapi.com/dodopayments/license_keys/{id}?api_token=YOUR_API_TOKEN
**Old Format URL:**
https://api.lowcodeapi.com/dodopayments/license_keys/id?id={id}&api_token=YOUR_API_TOKEN
**Path Parameters:**
| Parameter | Type | Description |
|-----------|------|-------------|
| id | string | |
**Request Body:**
| Field | Type | Description |
|-------|------|-------------|
| activations_limit | number | |
| disabled | boolean | |
| expires_at | string | |
**Example Request (New Format):**
```bash
curl -X PATCH 'https://api.lowcodeapi.com/dodopayments/license_keys/{id}?api_token=YOUR_API_TOKEN'
```
**Official Documentation:** https://docs.dodopayments.com/api-reference/licenses/update-license-key
### Get Subscription Detail
**Method:** GET
**LowCodeAPI Path:** /subscriptions/{subscription_id}
**New Format URL:**
https://api.lowcodeapi.com/dodopayments/subscriptions/{subscription_id}?api_token=YOUR_API_TOKEN
**Old Format URL:**
https://api.lowcodeapi.com/dodopayments/subscriptions/subscription_id?subscription_id={subscription_id}&api_token=YOUR_API_TOKEN
**Path Parameters:**
| Parameter | Type | Description |
|-----------|------|-------------|
| subscription_id | string | |
**Example Request (New Format):**
```bash
curl -X GET 'https://api.lowcodeapi.com/dodopayments/subscriptions/{subscription_id}?api_token=YOUR_API_TOKEN'
```
**Official Documentation:** https://docs.dodopayments.com/api-reference/subscriptions/get-subscriptions
### Get License Key Instances
**Method:** GET
**LowCodeAPI Path:** /license_key_instances
**New Format URL:**
https://api.lowcodeapi.com/dodopayments/license_key_instances?api_token=YOUR_API_TOKEN
**Old Format URL:**
https://api.lowcodeapi.com/dodopayments/license_key_instances?api_token=YOUR_API_TOKEN
**Query Parameters:**
| Parameter | Type | Description |
|-----------|------|-------------|
| license_key_id | string | |
| page_number | number | |
| page_size | number | |
**Example Request (New Format):**
```bash
curl -X GET 'https://api.lowcodeapi.com/dodopayments/license_key_instances?api_token=YOUR_API_TOKEN'
```
**Official Documentation:** https://docs.dodopayments.com/api-reference/licenses/get-license-key-instances
## Usage Examples
### Example 1: Create a Payment Intent
```bash
# Create a new payment intent
curl -X POST "https://api.lowcodeapi.com/dodopayments/v1/payments?api_token=YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"amount": 1000,
"currency": "usd",
"payment_method": "pm_card_visa"
}'
# Response includes payment ID: pay_abc123
```
### Example 2: Retrieve Payment Details
```bash
# Get payment details using ID from previous response
curl -X GET "https://api.lowcodeapi.com/dodopayments/v1/payments/{PAYMENT_ID}?api_token=YOUR_API_TOKEN"
```
### Example 3: List All Payments
```bash
# List all payments with pagination
curl -X GET "https://api.lowcodeapi.com/dodopayments/v1/payments?api_token=YOUR_API_TOKEN&limit=10"
```
## Error Handling
LowCodeAPI returns standard HTTP status codes. Common errors:
| Status Code | Description |
|-------------|-------------|
| 200 | Success - Request completed successfully |
| 400 | Bad Request - Invalid parameters or request body |
| 401 | Unauthorized - Invalid or missing API token |
| 403 | Forbidden - Insufficient permissions |
| 404 | Not Found - Endpoint or resource doesn't exist |
| 429 | Too Many Requests - Rate limit exceeded |
| 500 | Server Error - Provider API error |
All error responses include error details:
```json
{
"data": {
"error": {
"message": "Error description",
"code": "ERROR_CODE"
}
}
}
```
## Complete Endpoint Reference
| Endpoint | Method | Category |
|----------|--------|----------|
| List Payments | GET | Payments |
| Get Payment Detail | GET | Payments |
| Activate License | POST | Licenses |
| Deactivate License | POST | Licenses |
| Validate License | POST | Licenses |
| Get License Keys | GET | Licenses |
| Get License Key | GET | Licenses |
| Update License Key | PATCH | Licenses |
| Get Subscription Detail | GET | Subscriptions |
| Get License Key Instances | GET | Licenses |
| Update License Key Instance | PATCH | Licenses |
| Create Customer | POST | Customers |
| List Customers | GET | Customers |
| Get Customer Detail | GET | Customers |
| Patch Customer | PATCH | Customers |
| List Webhook Events | GET | Webhooks |
| Get Webhook Event Detail | GET | Webhooks |
| Outgoing Webhooks | POST | Webhooks |
| Update Product Images | PUT | Products |
| List Refunds | GET | Refunds |
| Create Refund | POST | Refunds |
| Get Refund Detail | GET | Refunds |
| List Disputes | GET | Disputes |
| Get Dispute Detail | GET | Disputes |
| List Payouts | GET | Payouts |
| Supported Countries | GET | Miscellaneous |
| Update Subscription | PATCH | Subscriptions |
| List subscriptions | GET | Subscriptions |
| Create Subscription | POST | Subscriptions |
| Get License Key Instance | GET | Licenses |
| List Products | GET | Products |
| Create Product | POST | Products |
| Get Product Detail | GET | Products |
| Update Product | PATCH | Products |
## API Definition Endpoints
You can fetch the complete API specification for this provider:
**New Format (OpenAPI spec):**
```bash
curl 'https://backend.lowcodeapi.com/dodopayments/openapi'
```
**Old Format (API definition):**
```bash
curl 'https://backend.lowcodeapi.com/dodopayments/definition'
```
## Response Format
All responses are wrapped in a `data` key:
```json
{
"data": {
// Actual response from provider (object or array)
}
}
```