- Set up a subscription with customer and payment details.
- Define billing frequency and payment plans.
- Retrieve a subscription response.
- Optionally create a customerId before initiating a subscription.
- Creating a Subscription
- Production Environment: https://api.revolv3.com
- Sandbox Environment: https://api-sandbox.revolv3.com
- Explanation of API Request Fields
Field | Description |
---|---|
PaymentMethods | Array containing the payment method details. |
Priority | Determines the priority of the payment method (0 = primary). |
BillingAddress | Contains the full billing details. |
BillingFirstName, BillingLastName | Name associated with the payment method. |
CreditCard.PaymentAccountNumber | The card number used for billing. |
CreditCard.ExpirationDate | The card’s expiration date (MMYY). |
MerchantPaymentMethodRefId | A merchant-assigned reference for tracking payment methods. |
MerchantSubscriptionRefId | A unique identifier for the subscription assigned by the merchant. |
BillingFrequencyType | Determines how often the subscription is billed (e.g., daily, weekly, monthly). |
SubscriptionStatusType | The current state of the subscription (current, canceled, recycle). |
SubscriptionCancelType | Defines how the subscription should be canceled (immediate, endOfCycle). |
StartDate | The date when the subscription begins. |
TrialDuration | The number of trial days before billing starts. |
SubscriptionBillingPlans | Contains details of the billing plan. |
RecycleImmediatePayment | Determines whether an immediate charge is processed upon subscription renewal. |
- Subscription Creation Response
Field | Description |
---|---|
subscriptionId | The unique identifier for the created subscription. |
customerId | The associated customer ID for the subscription. |
merchantSubscriptionRefId | The merchant’s reference for tracking the subscription. |
networkTransactionId | The transaction ID assigned for the first payment. |
billingFrequencyType | The billing interval (e.g., daily, weekly). |
subscriptionStatusType | Current state of the subscription (current, canceled, recycle). |
subscriptionCancelType | Defines how cancellations are handled (immediate, endOfCycle). |
initialBillDate | The first billing date for the subscription. |
nextBillDate | The next scheduled billing date. |
paymentMethodIds | IDs of the payment methods associated with this subscription. |
billingPlans | Details of the assigned billing plan. |
cyclesRemaining | Number of billing cycles left (-1 = unlimited). |
- Creating a Customer ID (Optional)
- Summary of Subscription API Calls
Action | API Endpoint | Purpose |
---|---|---|
Create a Subscription | POST /api/Subscriptions | Initiates a recurring billing cycle. |
Retrieve Subscription Details | GET /api/Subscriptions/{subscriptionId} | Fetches details of an active subscription. |
Create a Customer (Optional) | POST /api/Customers | Generates a customerId for managing user profiles. |
Invoice API Reference