Documentation
  • Documentation
  • Requirements
    • API Settings
  • Web SDKs and APIs
    • Components
    • Form (redirect)
      • Introduction
        • Demo Client (Test Client)
        • 3D Secure
      • Variables - names, lengths and formats
        • How to calculate digest
        • Supported Card Issuers
        • Form Rules
        • Installments
        • Tokenize Brands
        • Custom Params
        • Custom Attributes
        • Supported Payment Methods
        • Transaction Types
      • Notifications
    • LightBox
  • eCommerce Plugins
    • WooCommerce
    • Magento
    • Prestashop
  • Mobile SDKs
  • API Documentation
    • API v1
      • Direct API
      • Transaction management
    • API v2
      • Requirements - API v2
      • Payment API
      • Pay By Link API
      • Payment Method API
      • Token API
      • Customers API
      • Card on File Payment
      • Subscriptions
        • Create Subscription
        • Update Subscription
        • Create/Update/Get Response
      • Customer Subscription
        • Create Customer Subscription
        • Update Customer Subscription
        • Create/Update/Get Response
      • Recurring payments
    • Notifications
    • List of response codes
  • WebRisk
  • 🟣Knowledge Center
    • Payments
    • WebPay Account
Powered by GitBook
On this page
  1. API Documentation
  2. API v2
  3. Subscriptions

Create Subscription

Create new subscription

POST https://ipgtest.monri.com/v2/subscriptions

Headers

Name
Type
Description

Content-Type*

application/json

Accept*

application/json

Authorization*

<calculated-value>

Request Body

Name
Type
Description

name*

String

Name, it should be unique. 1-255 characters.

description*

String

Subscription description

price*

Integer

Amount in minor units

currency*

String

ISO three letter currency code - it should be one of supported currencies.

period*

String

Subscription charge period - possible values are: day, week, month, half_year, year

{
  "id": 593,
  "name": "Subscription #1",
  "merchant_id": 11880,
  "status": "approved",
  "description": "Description",
  "price": 1000,
  "currency": "EUR",
  "period": "week"
}
{
    "status": "invalid-request",
    "message": "Error details"
}
{
    "status": "error",
    "message": "Error details"
}
{
    // Response
}

PreviousSubscriptionsNextUpdate Subscription

Last updated 2 years ago