---
title: "Copy of Create a Subscription"
method: POST
path: "/v1/subscriptions/:id/on_demand_pay"
---

# Copy of Create a Subscription

`POST /v1/subscriptions/:id/on_demand_pay`

Use secret API key to create a Subscription.

## Request body

- object
  - `data` object
    - `attributes` object
      - `amount` string, required — A positive integer with minimum amount of 100. 100 is the smallest unit in cents. If you want to receive an amount of 20.00, the value that you should pass is 2000. If you want to receive an amount of 1500.50, the value that you should pass is 150050. This will be the amount that will be charged to the customer linked to the subscription

## Response `200`

200

- object

## Other responses

- `400` — 400

---

[API](https://skmtc.net/paymongo/apis/paymongo-api.md) · [All operations](https://skmtc.net/paymongo/apis/paymongo-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/paymongo/paymongo-api/versions/c18f9a027b2c/schema)
