---
updatedAt: 2025-10-29T15:53:35.000Z
agentTools:
  projectIndex: https://docs.ecartpay.com/llms.txt
---

# Create a Subscription Template

Use a template when you want to define a reusable subscription model with parameters like billing frequency and trial period.

> 📘 Visit our Documentation to learn more about [Subscription Templates](https://docs.ecartpay.com/docs/subscription-templates#/).

# OpenAPI definition

```json
{
  "openapi": "3.0.3",
  "info": {
    "title": "Payments API, the best solution in LATAM for businesses | Ecart Pay Developers",
    "description": "**Ecart Pay** is a payment solution which unifies multiple payment processors into a single, easy to use, platform or API.\n\n**Why should I use Ecart Pay?**\n\n1.  Increase acceptance rate by using more than one payment processor.\n2.  Manage all your payments with a unified admin tool.\n3.  Create partial and complete refunds easily.\n4.  Issue invoices which comply with government requirements in every country.\n5.  Send payouts to bank accounts around the world.\n    \n\nIf your business accepts payments online, we are a right fit for you.\n\n**What makes Ecart Pay unique?**\n\nWe offer a 360 solution for [payments](https://docs.ecartpay.com/#16e69a32-46ca-4075-8c7d-b67e6df258fd), [payouts](https://docs.ecartpay.com/#db2cfd82-eca8-4531-a965-31e3da4a791f) and withdrawals with government compliance.\n\nWith Ecart Pay you can receive payments not only by credit and debit cards. Your customers will be able to pay in the supermarket, convenience stores, bank transfers and other local payment solutions that vary by country.\n\n**Which countries and currencies does Ecart Pay serve?**\n\n| **Currency** | **Country** |\n| --- | --- |\n| USD | USA |\n| INR | India |\n| MXN | Mexico |\n| BRL | Brasil |\n| COP | Colombia |\n| ARG | Argentina |\n| GTQ | Guatemala |\n| CLP | Chile |\n| PEN | Peru |\n| CAD | Canada |\n| EUR | Spain |\n| AUS | Australia |\n\n**And more countries coming soon!**",
    "version": "1.0.0",
    "contact": {}
  },
  "servers": [
    {
      "url": "https://sandbox.ecartpay.com"
    }
  ],
  "paths": {
    "/api/subscriptions-template": {
      "post": {
        "summary": "Create a Subscription Template",
        "description": "",
        "operationId": "post_apisubscriptions-template",
        "responses": {
          "200": {
            "description": ""
          }
        },
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "amount": {
                    "type": "number",
                    "description": "Amount to charge per interval (e.g., `100` = $100.00)"
                  },
                  "currency": {
                    "type": "string",
                    "description": "ISO 4217 currency code (like `MXN` or `USD`)"
                  },
                  "interval": {
                    "type": "string",
                    "enum": [
                      "daily",
                      "weekly",
                      "monthly",
                      "quarterly",
                      "semiannual",
                      "yearly"
                    ]
                  },
                  "frequency": {
                    "type": "number",
                    "description": "Frequency multiplier"
                  },
                  "service": {
                    "type": "string",
                    "description": "Name or label for the subscription service"
                  },
                  "trial_period_days": {
                    "type": "number",
                    "description": "(Optional) Number of days before the first charge"
                  },
                  "benefits": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "(Optional) List of benefits included in the subscription"
                  },
                  "end_date": {
                    "type": "string",
                    "description": "(Optional) ISO date string for subscription termination"
                  },
                  "billing_cycle": {
                    "type": "object",
                    "properties": {
                      "day": {
                        "type": "number",
                        "default": ""
                      },
                      "month": {
                        "type": "number",
                        "default": ""
                      }
                    }
                  }
                },
                "required": [
                  "service",
                  "frequency",
                  "interval",
                  "currency",
                  "amount"
                ]
              }
            }
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ]
      }
    }
  },
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer"
      }
    }
  },
  "x-readme": {}
}
```