- Retrieves a subscription by ID
GET {{baseURL}}/sub-api/v1/subscriptions/{subscriptionId}
This endpoint retrieves a specified subscription.
See Also:
To list a merchant's subscriptions, see GET /sub-api/v1/subscriptions.
To create a subscription, see POST /sub-api/v1/subscriptions.
To retrieve a subscription's payment history, see GET /sub-api/v1/subscriptions/{subscriptionId}/payments.
To terminate a subscription, see PUT /sub-api/v1/subscriptions/{subscriptionId}/terminate.
- Mock serverhttps://developer.flute.com/_mock/api-reference/sub-api/v1/subscriptions/{subscriptionId}
- Sandbox environmenthttps://sandbox.api.flute.com/sub-api/v1/subscriptions/{subscriptionId}
- Production environmenthttps://api.flute.com/sub-api/v1/subscriptions/{subscriptionId}
curl -i -X GET \
https://developer.flute.com/_mock/api-reference/sub-api/v1/subscriptions/79c0d1e2-3f4a-4b5c-6d7e-8f9a0b1c2d58 \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'OK
Indicates the subscription identifier.
Example: 35e6f7a8-9b0c-4d1e-2f3a-4b5c6d7e8f14
Indicates the merchant identifier.
Example: 46f7a8b9-0c1d-4e2f-3a4b-5c6d7e8f9a25
Indicates the payment processor identifier.
Example: 57a8b9c0-1d2e-4f3a-4b5c-6d7e8f9a0b36
Indicates the subscription status identifier.
Possible values:
| Value | Meaning |
|---|---|
| 1 | Active |
| 2 | Completed |
| 3 | Suspended |
| 4 | Delinquent |
| 5 | Terminated |
| 6 | Deleted |
Example: 2
Indicates the subscription status.
Possible values:
| Value | Meaning |
|---|---|
| Active | 1 |
| Completed | 2 |
| Suspended | 3 |
| Delinquent | 4 |
| Terminated | 5 |
| Deleted | 6 |
Example: Completed
Indicates the Flute transaction type identifier code value.
Example: 6
Indicates the transaction type name.
Possible values:
| Value | Type |
|---|---|
| Authorization | 1 |
| Sale | 2 |
| Capture | 3 |
| Void | 4 |
| Refund | 5 |
| Verify | 6 |
Example: Refund
Specifies the customer identifier.
This is used when saving the payment method.
If this value is provided, the payment method is saved to the specified customer.
If this value is not provided, a new customer record is created.
Example: fd9198a4-eb6f-4620-9603-4f4638289de5
Identifies the customer payment method identifier.
We recommend using paymentMethodId instead of accountNumber.
Example: b6df8625-cd25-4123-b345-638aa7b5d011
Indicates the total amount the client has already paid as part of this subscription.
Example: 259.99
Indicates the total of all amounts due of the subscription.
Example: 54.92
Indicates the Flute currency identifier.
Always set to 1.
Example: 1
Indicates the payment frequency identifier.
Possible values:
| ID | Label |
|---|---|
| 1 | Daily |
| 2 | Weekly |
| 3 | Monthly |
Example: 3
Indicates the payment frequency unit.
As examples:
With a paymentFrequencyUnit of Weekly, and paymentFrequency of 1, payments are made once a week.
With a paymentFrequencyUnit of Weekly, and paymentFrequency of 2, payments are made twice a week
Possible values:
| ID | Label |
|---|---|
| 1 | Daily |
| 2 | Weekly |
| 3 | Monthly |
Example: 3
Indicates the payment frequency identifier.
Possible values:
| Value | Meaning |
|---|---|
| Daily | 1 |
| Weekly | 2 |
| Monthly | 3 |
As examples:
With a paymentFrequencyUnit of Weekly, and paymentFrequency of 1, payments are made once a week.
With a paymentFrequencyUnit of Weekly, and paymentFrequency of 2, payments are made twice a week.
Example: Weekly
Indicates the date-time (in an ISO 8601 date-time UTC format) when the subscription was created.
Examples: 2026-02-19T20:24:52.934Z
Indicates the date-time (in an ISO 8601 date-time UTC format) of the subscription's first payment.
Examples: 2026-02-19T20:24:52.934Z
Indicates the date-time (in an ISO 8601 date-time UTC format) of the subscription's last payment.
Examples: 2027-02-19T20:24:52.934Z
Indicates the date-time (in an ISO 8601 date-time UTC format) of the subscription's last payment date.
Examples: 2027-02-19T20:24:52.934Z
Indicates the date-time (in an ISO 8601 date-time UTC format) of the subscription's next payment date.
Examples: 2026-03-19T20:24:52.934Z
Indicates the number of successful payments for the subscription.
See numberOfPayments for the total expected number of payments.
Example: 32
Total number of payments for the subscription.
See successfulPaymentsCount for the current number of payments.
Example: 60
{ "id": "35e6f7a8-9b0c-4d1e-2f3a-4b5c6d7e8f14", "merchantId": "46f7a8b9-0c1d-4e2f-3a4b-5c6d7e8f9a25", "paymentProcessorId": "57a8b9c0-1d2e-4f3a-4b5c-6d7e8f9a0b36", "statusId": 2, "status": "Completed", "transactionTypeId": 6, "transactionType": "Refund", "customerId": "fd9198a4-eb6f-4620-9603-4f4638289de5", "paymentMethodId": "b6df8625-cd25-4123-b345-638aa7b5d011", "paymentAmount": { "baseAmount": 129.99, "percentageOffAmount": 12.5, "percentageOffRate": 3.5, "cashDiscountAmount": 10.55, "cashDiscountRate": 1.5, "surchargeAmount": 6.45, "surchargeRate": 1.5, "totalAmount": 3219.45 }, "alreadyPaidAmount": 259.99, "allPaymentsAmount": 54.92, "currencyId": 1, "paymentFrequencyUnitId": 3, "paymentFrequencyUnit": 3, "paymentFrequency": "Weekly", "createdOn": "2026-02-19T20:24:52.934Z", "subscriptionStartDate": "2026-02-19T20:24:52.934Z", "subscriptionEndDate": "2027-02-19T20:24:52.934Z", "lastPaymentDate": "2027-02-19T20:24:52.934Z", "nextPaymentDate": "2026-03-19T20:24:52.934Z", "successfulPaymentsCount": 32, "numberOfPayments": 60, "customer": { "customerName": "Alexandro Peppard", "companyName": "Example: Peppared Street Cafe", "panMask": "4111********1234", "cardTokenType": 2, "emailAddress": "peppared@example.com", "phoneNumber": "+15551234567" }, "source": { "typeId": 1, "type": "Api", "id": "5c6d7e8f-9a0b-4c1d-8e2f-3a4b5c6d7e81", "name": "Terminal 12" } }