Skip to main content

Attributes

This object represents a subscription that can be associated with a customer.
id
string
The unique identifier of the subscription (MAX 64 ; MIN 36).Example: 7304911d-5df9-429e-8488-ad41abea1a4c
name
string
The subscription name (MAX 255; MIN 3).Example: sub_001
description
string
The subscription description (MAX 255; MIN 3).Example: Servicio de streaming
account_id
string
The unique identifier of the account that will have the subscription plan available to use (MAX 64 ; MIN 36).Example: 2404911d-5df9-429e-8488-ad41abea1a4b
merchant_reference
string
Identification of the subscription plan (MAX 255; MIN 3).Example: 001_marzo_23
country
string
The subscription’s country.Example: CO
status
enum
Status of the subscription.Possible values:
  • ACTIVE = The subscription has been created with an associated customer and is already active.
  • PAUSED = The subscription has been paused and can be reactivated.
  • COMPLETED = The subscription is completed because it reached the end date and time.
  • CANCELED = Subscription canceled.
amount
object
Specifies the subscription amount object, with the value and currency.
frequency
object
The frequency defined for the payment subscription. If not set, defaults are MONTH for type and 1 for value.
billing_cycles
object
Specifies the billing_cycles object.
billing_date
object
[Optional] Specifies the billing_date object. Mutually exclusive with the frequency object.
customer_payer
object
Specifies the customer_payer object.
payment_method
array of objects
Specifies the payment_method object.
trial_period
object
Specifies the trial_period object.
availability
object
Specifies the availability object. The dates that the subscription will be available. If null the start date will be the day of the creation and it will not have a finish date.
retries
object
Specifies the retries object. If we need to retry declined transactions in Yuno and the amount if necessary.
initial_payment_validation
bool
Flag to identify if the subscription should wait for the first payment in order to continue. False by default.Example: false
metadata
object
Specifies the metadata object.
payments
Array of strings
Specifies the payments array.
created_at
Timestamp
Subscription creation date and time (ISO 8601 MAX 27; MIN 27).Example: 2023-12-16T20:46:54.786342Z
updated_at
Timestamp
Subscription last updated date and time (ISO 8601 MAX 27; MIN 27).Example: 2023-12-16T21:00:54.786342Z
additional_data
object
Specifies the additional_data object. This object is not mandatory. However, if you send this information, the payment experience will be enhanced for your user.