Create subscription
Create a new subscription for a customer. A subscription ties a customer to a product and defines a billing interval and payment method. The subscription starts inpending_payment status until the first payment is received.
Authentication
Request body
UUID of the customer to subscribe. The customer must already exist in your account.
UUID of the product the subscription is for. The product’s price becomes the recurring billing amount.
Billing frequency. One of:
daily, every_3_days, weekly, biweekly, monthly, quarterly, biannual, yearly.How the subscription will be collected. One of:
card— charge the customer’s card on each billing cycle.manual— you manually mark each cycle as paid.va— generate a fresh virtual account for each billing cycle.
Number of days after a missed payment before the subscription is automatically canceled. Defaults to
3 if not provided.Arbitrary key-value pairs for your own reference.
An HTTPS URL Hyparrow will POST to when a checkout-link payment for this subscription changes status (
completed, pending, or failed).Example request
Example response
201 Created
Response fields
Unique subscription UUID.
The billing interval as provided.
Recurring billing amount pulled from the product’s price.
3-letter currency code inherited from the product.
Subscription status. Starts as
pending_payment. Transitions to active once the first payment is received. Other values: canceled, expired.ISO 8601 timestamp of the next scheduled billing date. Populated after first payment.
Days of grace after a missed payment before auto-cancellation.
List subscriptions
Returns a paginated list of all subscriptions for your account.Query parameters
Page number. Defaults to
1.Results per page. Defaults to
20.Filter by status. One of:
active, pending_payment, canceled, expired.Example request
cURL
Example response
200 OK
Get subscription
Retrieve a single subscription by its ID.Path parameters
UUID of the subscription to retrieve.
Example request
cURL
Example response
200 OK
