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/Update/Get Response

PreviousUpdate SubscriptionNextCustomer Subscription

Last updated 2 years ago

Response is same for: create, update and get subscription.

field
length
type
description
field
length
type
description
field
length
type
description
field
length
type
description
field
length
type
description
field
length
type
description
field
length
type
description
field
length
type
description

Response example:

{
  "id": 593,
  "name": "Subscription #1",
  "merchant_id": 11880,
  "status": "approved",
  "sku": null,
  "description": "Description",
  "price": 1000,
  "currency": "EUR",
  "period": "week"
}

status

enum

String

approved, invalid-request or error

id

predefined

Integer

Subscription id

name

1-255

String

Name

message

-

String

OPTIONAL - available if status is error or invalid-request

merchant_id

predefined

Integer

Merchant's id

price

predefined

Integer

Price in minor units

currency

3

String

ISO 3 letter currency code

period

predefined

String

One of available period values (week, day etc)