# Stripe Integration via LowCodeAPI

**Last Updated**: February 10, 2026

## Overview
Payment processing

**Categories:**
- {'id': 'payment-processing', 'name': 'Payment Processing'}

## Base Endpoint
https://api.lowcodeapi.com/stripe

**Important**: Always include the provider name in the URL path after `api.lowcodeapi.com/`

## Authentication
**Type:** TOKEN

**Official Documentation:** https://stripe.com/docs

## 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

### Create a coupon

**Method:** POST
**LowCodeAPI Path:** /v1/coupons

**New Format URL:**
https://api.lowcodeapi.com/stripe/v1/coupons?api_token=YOUR_API_TOKEN

**Old Format URL:**
https://api.lowcodeapi.com/stripe/v1/coupons?api_token=YOUR_API_TOKEN

**Request Body:**

| Field | Type | Description |
|-------|------|-------------|
| amount_off | number |  |
| applies_to | object |  |
| currency | string |  |
| currency_options | object |  |
| duration | enum |  |
| duration_in_months | number |  |
| id | string |  |
| max_redemptions | number |  |
| metadata | object |  |
| name | string |  |
| percent_off | number |  |
| redeem_by | number |  |

**Example Request (New Format):**

```bash
curl -X POST 'https://api.lowcodeapi.com/stripe/v1/coupons?api_token=YOUR_API_TOKEN'
```

**Official Documentation:** https://stripe.com/docs/api/coupons/create

### Retrieve a coupon

**Method:** GET
**LowCodeAPI Path:** /v1/coupons/:id

**New Format URL:**
https://api.lowcodeapi.com/stripe/v1/coupons/:id?api_token=YOUR_API_TOKEN

**Old Format URL:**
https://api.lowcodeapi.com/stripe/v1/coupons/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/stripe/v1/coupons/:id?api_token=YOUR_API_TOKEN'
```

**Official Documentation:** https://stripe.com/docs/api/coupons/retrieve

### Update a coupon

**Method:** POST
**LowCodeAPI Path:** /v1/coupons/:id

**New Format URL:**
https://api.lowcodeapi.com/stripe/v1/coupons/:id?api_token=YOUR_API_TOKEN

**Old Format URL:**
https://api.lowcodeapi.com/stripe/v1/coupons/id?id={id}&api_token=YOUR_API_TOKEN

**Path Parameters:**

| Parameter | Type | Description |
|-----------|------|-------------|
| id | string |  |

**Request Body:**

| Field | Type | Description |
|-------|------|-------------|
| currency_options | object |  |
| metadata | object |  |
| name | string |  |

**Example Request (New Format):**

```bash
curl -X POST 'https://api.lowcodeapi.com/stripe/v1/coupons/:id?api_token=YOUR_API_TOKEN'
```

**Official Documentation:** https://stripe.com/docs/api/coupons/update

### Delete a coupon

**Method:** DELETE
**LowCodeAPI Path:** /v1/coupons/:id

**New Format URL:**
https://api.lowcodeapi.com/stripe/v1/coupons/:id?api_token=YOUR_API_TOKEN

**Old Format URL:**
https://api.lowcodeapi.com/stripe/v1/coupons/id?id={id}&api_token=YOUR_API_TOKEN

**Path Parameters:**

| Parameter | Type | Description |
|-----------|------|-------------|
| id | string |  |

**Example Request (New Format):**

```bash
curl -X DELETE 'https://api.lowcodeapi.com/stripe/v1/coupons/:id?api_token=YOUR_API_TOKEN'
```

**Official Documentation:** https://stripe.com/docs/api/coupons/delete

### List all coupons

**Method:** GET
**LowCodeAPI Path:** /v1/coupons

**New Format URL:**
https://api.lowcodeapi.com/stripe/v1/coupons?api_token=YOUR_API_TOKEN

**Old Format URL:**
https://api.lowcodeapi.com/stripe/v1/coupons?api_token=YOUR_API_TOKEN

**Query Parameters:**

| Parameter | Type | Description |
|-----------|------|-------------|
| created | object |  |
| ending_before | string |  |
| limit | number |  |
| starting_after | string |  |

**Example Request (New Format):**

```bash
curl -X GET 'https://api.lowcodeapi.com/stripe/v1/coupons?api_token=YOUR_API_TOKEN'
```

**Official Documentation:** https://stripe.com/docs/api/coupons/list

### Delete a customer discount

**Method:** DELETE
**LowCodeAPI Path:** /v1/customers/:id/discount

**New Format URL:**
https://api.lowcodeapi.com/stripe/v1/customers/:id/discount?api_token=YOUR_API_TOKEN

**Old Format URL:**
https://api.lowcodeapi.com/stripe/v1/customers/id/discount?id={id}&api_token=YOUR_API_TOKEN

**Path Parameters:**

| Parameter | Type | Description |
|-----------|------|-------------|
| id | string |  |

**Example Request (New Format):**

```bash
curl -X DELETE 'https://api.lowcodeapi.com/stripe/v1/customers/:id/discount?api_token=YOUR_API_TOKEN'
```

**Official Documentation:** https://stripe.com/docs/api/discounts/delete

### Delete a subscription discount

**Method:** DELETE
**LowCodeAPI Path:** /v1/subscriptions/:id/discount

**New Format URL:**
https://api.lowcodeapi.com/stripe/v1/subscriptions/:id/discount?api_token=YOUR_API_TOKEN

**Old Format URL:**
https://api.lowcodeapi.com/stripe/v1/subscriptions/id/discount?id={id}&api_token=YOUR_API_TOKEN

**Path Parameters:**

| Parameter | Type | Description |
|-----------|------|-------------|
| id | string |  |

**Example Request (New Format):**

```bash
curl -X DELETE 'https://api.lowcodeapi.com/stripe/v1/subscriptions/:id/discount?api_token=YOUR_API_TOKEN'
```

**Official Documentation:** https://stripe.com/docs/api/discounts/subscription_delete

### Create a price

**Method:** POST
**LowCodeAPI Path:** /v1/prices

**New Format URL:**
https://api.lowcodeapi.com/stripe/v1/prices?api_token=YOUR_API_TOKEN

**Old Format URL:**
https://api.lowcodeapi.com/stripe/v1/prices?api_token=YOUR_API_TOKEN

**Request Body:**

| Field | Type | Description |
|-------|------|-------------|
| active | boolean |  |
| billing_scheme | string |  |
| currency | string |  |
| currency_options | object |  |
| custom_unit_amount |  |  |
| lookup_key | string |  |
| metadata | object |  |
| nickname | string |  |
| product | string |  |
| product_data | string |  |
| recurring | object |  |
| tax_behavioroptional | string |  |
| tiers | number |  |
| tiers_mode | string |  |
| transfer_lookup_key | boolean |  |
| transform_quantity | object |  |
| unit_amount | number |  |
| unit_amount_decimal | number |  |

**Example Request (New Format):**

```bash
curl -X POST 'https://api.lowcodeapi.com/stripe/v1/prices?api_token=YOUR_API_TOKEN'
```

**Official Documentation:** https://stripe.com/docs/api/prices/create

### Retrieve a price

**Method:** GET
**LowCodeAPI Path:** /v1/prices/:id

**New Format URL:**
https://api.lowcodeapi.com/stripe/v1/prices/:id?api_token=YOUR_API_TOKEN

**Old Format URL:**
https://api.lowcodeapi.com/stripe/v1/prices/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/stripe/v1/prices/:id?api_token=YOUR_API_TOKEN'
```

**Official Documentation:** https://stripe.com/docs/api/prices/retrieve

### Update a price

**Method:** POST
**LowCodeAPI Path:** /v1/prices/:id

**New Format URL:**
https://api.lowcodeapi.com/stripe/v1/prices/:id?api_token=YOUR_API_TOKEN

**Old Format URL:**
https://api.lowcodeapi.com/stripe/v1/prices/id?id={id}&api_token=YOUR_API_TOKEN

**Path Parameters:**

| Parameter | Type | Description |
|-----------|------|-------------|
| id | string |  |

**Request Body:**

| Field | Type | Description |
|-------|------|-------------|
| active | boolean |  |
| currency_options | string |  |
| lookup_key | string |  |
| metadata | object |  |
| nickname | string |  |
| tax_behavior | string |  |
| transfer_lookup_key | boolean |  |

**Example Request (New Format):**

```bash
curl -X POST 'https://api.lowcodeapi.com/stripe/v1/prices/:id?api_token=YOUR_API_TOKEN'
```

**Official Documentation:** https://stripe.com/docs/api/prices/update


## Usage Examples

### Example 1: Create a Payment Intent

```bash
# Create a new payment intent
curl -X POST "https://api.lowcodeapi.com/stripe/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/stripe/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/stripe/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 |
|----------|--------|----------|
| Create a coupon | POST | Coupons |
| Retrieve a coupon | GET | Coupons |
| Update a coupon | POST | Coupons |
| Delete a coupon | DELETE | Coupons |
| List all coupons | GET | Coupons |
| Delete a customer discount | DELETE | Discounts |
| Delete a subscription discount | DELETE | Discounts |
| Create a price | POST | Prices |
| Retrieve a price | GET | Prices |
| Update a price | POST | Prices |
| List all prices | GET | Prices |
| Search prices | GET | Prices |
| Create a product | POST | Product |
| Retrieve a product | GET | Product |
| Update a product | POST | Product |
| List all products | GET | Product |
| Delete a product | DELETE | Product |
| Search products | GET | Product |
| Create a promotion code | POST | Promotion Code |
| Update a promotion code | POST | Promotion Code |
| Retrieve a promotion code | GET | Promotion Code |
| List all promotion codes | GET | Promotion Code |
| Create a source | POST | Source  |
| Retrieve a source | GET | Source  |
| Update a source | POST | Source  |
| Create a charge | POST | Charges |
| Retrieve a charge | GET | Charges |
| Update a charge | POST | Charges |
| Capture a charge | POST | Charges |
| List all charges | GET | Charges |
| Search charges | GET | Charges |
| Create a customer | POST | Customers |
| Retrieve a customer | GET | Customers |
| Update a customer | POST | Customers |
| Delete a customer | DELETE | Customers |
| List all customers | GET | Customers |
| Search customers | GET | Customers |
| Create a webhook endpoint | POST | Webhook Endpoints |
| Retrieve a webhook endpoint | GET | Webhook Endpoints |
| Update a webhook endpoint | POST | Webhook Endpoints |
| List all webhook endpoints | GET | Webhook Endpoints |
| Delete a webhook endpoint | DELETE | Webhook Endpoints |
| Retrieve balance | GET | Balance |
| Create a Session | POST | Checkout  |
| Expire a Session | POST | Checkout  |
| Retrieve a Session | GET | Checkout  |
| List all Checkout Sessions | GET | Checkout  |
| Retrieve a Checkout Session's line items | GET | Checkout  |
| Create a payment link | POST | Payment Link |
| Retrieve payment link | GET | Payment Link |
| Update a payment link | POST | Payment Link |
| List all payment links | GET | Payment Link |
| Retrieve a payment link's line items | GET | Payment Link |
| Retrieve a balance transaction | GET | Balance Transactions |
| List all balance transactions | GET | Balance Transactions |

## API Definition Endpoints

You can fetch the complete API specification for this provider:

**New Format (OpenAPI spec):**
```bash
curl 'https://backend.lowcodeapi.com/stripe/openapi'
```

**Old Format (API definition):**
```bash
curl 'https://backend.lowcodeapi.com/stripe/definition'
```

## Response Format

All responses are wrapped in a `data` key:

```json
{
  "data": {
    // Actual response from provider (object or array)
  }
}
```