GET /subscription/subscription_schedules/{id}/subscription_enrollments
POST /subscription/subscription_schedules/{id}/subscription_enrollments
GET /subscription/subscription_enrollments
PUT /subscription/subscription_enrollments/{id}
GET //subscription/subscription_enrollments/{id}
DEL /subscription/subscription_enrollments/{id}
When a Merchant
gets enrolled into a Subscription Schedule
, a Subscription Enrollment
is created.
A Subscription Enrollment
details:
Merchant
will be charged for.Merchant
will be enrolled in the schedule.Related Guides: Subscription Billing
Retrieve a list of Subscription Enrollments
for a specific subscription_schedule
.
List of subscription_enrollment objects
Authentication information is missing or invalid
Forbidden
Object does not exist
Not Acceptable
curl https://finix.sandbox-payments-api.com/subscription/subscription_schedules/SUBSCHEDULE_m77bRhJJ83oj9kBP3sYcv/subscription_enrollments \ -H "Content-Type: application/vnd.api+json" \ -u USimz3zSq5R2PqiEBXY6rSiJ:8bacba32-9550-48ff-b567-fe7648947041
{- "_embedded": {
- "subscription_enrollments": [
- {
- "id": "SUBENROLLMENT_sJdhvD6x91qENUvnr2otgp",
- "created_at": "2022-06-08T22:39:24.00Z",
- "updated_at": "2022-06-08T22:39:24.00Z",
- "created_by": "USka4562gALVJRD471ddEmPc",
- "ended_at": null,
- "merchant": "MUiysjyBGpiZEZYkzj7d5DhM",
- "nickname": "Vitameatavegamin Monthly",
- "started_at": "2022-07-07T07:00:00.00Z",
- "subscription_schedule": "SUBSCHEDULE_5GDvqCTAd6SrmWdsx4dUKx",
- "tags": { },
- "_links": {
}
}, - {
- "id": "SUBENROLLMENT_Yxwo2Vb6oj97m3PuW9TxQ",
- "created_at": "2022-02-02T01:47:08.07Z",
- "updated_at": "2022-02-02T01:47:08.07Z",
- "created_by": "USimz3zSq5R2PqiEBXY6rSiJ",
- "ended_at": null,
- "merchant": "MU7AxBA6MkF7Tee8veith3nG",
- "nickname": "Security Fee",
- "started_at": "2022-11-11T16:50:59.89Z",
- "subscription_schedule": "SUBSCHEDULE_m77bRhJJ83oj9kBP3sYcv",
- "tags": {
- "enrollment_info": "Security Fee Enrollment"
}, - "_links": {
}
}
]
}, - "_links": {
}, - "page": {
- "offset": 0,
- "limit": 20,
- "count": 2
}
}
Create a subscription_enrollment
.
A subscription_enrollment
details which Merchant
gets charged, to what schedule, and when the subscription will start. The subscription_enrollment
must be associated with a Subscription Schedule
.
Single subscription_enrollment resource
Authentication information is missing or invalid
Forbidden
Object does not exist
Not Acceptable
curl https://finix.sandbox-payments-api.com/subscription/subscription_schedules/SUBSCHEDULE_uKKHic71ZD9FicJ89mhcNV/subscription_enrollments \ -H "Content-Type: application/vnd.api+json" \ -u USsRhsHYZGBPnQw8CByJyEQW:8a14c2f9-d94b-4c72-8f5c-a62908e5b30e \ -X POST \ -d ' { "merchant": "MUucec6fHeaWo3VHYoSkUySM", "nickname": "Security Fee", "started_at": "2022-11-11T16:50:59.891Z", "tags": { "enrollment_info": "Security Fee Enrollment" } }'
{- "id": "SUBENROLLMENT_Yxwo2Vb6oj97m3PuW9TxQ",
- "created_at": "2022-02-02T01:47:08.07Z",
- "updated_at": "2022-02-02T01:47:08.07Z",
- "created_by": "USimz3zSq5R2PqiEBXY6rSiJ",
- "ended_at": null,
- "merchant": "MU7AxBA6MkF7Tee8veith3nG",
- "nickname": "Security Fee",
- "started_at": "2022-11-11T16:50:59.89Z",
- "subscription_schedule": "SUBSCHEDULE_m77bRhJJ83oj9kBP3sYcv",
- "tags": {
- "enrollment_info": "Security Fee Enrollment"
}, - "_links": {
}
}
Retrieve a list of Subscription Enrollments
.
List of subscription_enrollment objects
Authentication information is missing or invalid
Forbidden
Object does not exist
Not Acceptable
curl https://finix.sandbox-payments-api.com/subscription/subscription_enrollments \ -H "Content-Type: application/vnd.api+json" \ -u USimz3zSq5R2PqiEBXY6rSiJ:8bacba32-9550-48ff-b567-fe7648947041
{- "_embedded": {
- "subscription_enrollments": [
- {
- "id": "SUBENROLLMENT_sJdhvD6x91qENUvnr2otgp",
- "created_at": "2022-06-08T22:39:24.00Z",
- "updated_at": "2022-06-08T22:39:24.00Z",
- "created_by": "USka4562gALVJRD471ddEmPc",
- "ended_at": null,
- "merchant": "MUiysjyBGpiZEZYkzj7d5DhM",
- "nickname": "Vitameatavegamin Monthly",
- "started_at": "2022-07-07T07:00:00.00Z",
- "subscription_schedule": "SUBSCHEDULE_5GDvqCTAd6SrmWdsx4dUKx",
- "tags": { },
- "_links": {
}
}, - {
- "id": "SUBENROLLMENT_Yxwo2Vb6oj97m3PuW9TxQ",
- "created_at": "2022-02-02T01:47:08.07Z",
- "updated_at": "2022-02-02T01:47:08.07Z",
- "created_by": "USimz3zSq5R2PqiEBXY6rSiJ",
- "ended_at": null,
- "merchant": "MU7AxBA6MkF7Tee8veith3nG",
- "nickname": "Security Fee",
- "started_at": "2022-11-11T16:50:59.89Z",
- "subscription_schedule": "SUBSCHEDULE_m77bRhJJ83oj9kBP3sYcv",
- "tags": {
- "enrollment_info": "Security Fee Enrollment"
}, - "_links": {
}
}
]
}, - "_links": {
}, - "page": {
- "offset": 0,
- "limit": 20,
- "count": 2
}
}
Update the details of a subscription_enrollment
.
Single subscription_enrollment resource
Authentication information is missing or invalid
Forbidden
Object does not exist
Not Acceptable
curl https://finix.sandbox-payments-api.com/subscription/subscription_enrollments/SUBENROLLMENT_uPamF4YuEyzVTT42hwYgBV \ -H "Content-Type: application/vnd.api+json" \ -u USsRhsHYZGBPnQw8CByJyEQW:8a14c2f9-d94b-4c72-8f5c-a62908e5b30e \ -X PUT \ -d '{}'
{- "id": "SUBENROLLMENT_Yxwo2Vb6oj97m3PuW9TxQ",
- "created_at": "2022-02-02T01:47:08.07Z",
- "updated_at": "2022-02-02T01:47:08.07Z",
- "created_by": "USimz3zSq5R2PqiEBXY6rSiJ",
- "ended_at": null,
- "merchant": "MU7AxBA6MkF7Tee8veith3nG",
- "nickname": "Security Fee",
- "started_at": "2022-11-11T16:50:59.89Z",
- "subscription_schedule": "SUBSCHEDULE_m77bRhJJ83oj9kBP3sYcv",
- "tags": {
- "enrollment_info": "Security Fee Enrollment"
}, - "_links": {
}
}
Retrieve the details of a subscription_enrollment
.
Single subscription_enrollment resource
Authentication information is missing or invalid
Forbidden
Object does not exist
Not Acceptable
curl https://finix.sandbox-payments-api.com/subscription/subscription_enrollments/SUBENROLLMENT_Yxwo2Vb6oj97m3PuW9TxQ \ -H "Content-Type: application/vnd.api+json" \ -u USimz3zSq5R2PqiEBXY6rSiJ:8bacba32-9550-48ff-b567-fe7648947041
{- "id": "SUBENROLLMENT_Yxwo2Vb6oj97m3PuW9TxQ",
- "created_at": "2022-02-02T01:47:08.07Z",
- "updated_at": "2022-02-02T01:47:08.07Z",
- "created_by": "USimz3zSq5R2PqiEBXY6rSiJ",
- "ended_at": null,
- "merchant": "MU7AxBA6MkF7Tee8veith3nG",
- "nickname": "Security Fee",
- "started_at": "2022-11-11T16:50:59.89Z",
- "subscription_schedule": "SUBSCHEDULE_m77bRhJJ83oj9kBP3sYcv",
- "tags": {
- "enrollment_info": "Security Fee Enrollment"
}, - "_links": {
}
}
Remove a subscription_enrollment
.
Per the JSON API for deleting a resource, our API doesn't have a response body when removing a Subsciption Enrollment.
No content
Authentication information is missing or invalid
Forbidden
Object does not exist
Not Acceptable
curl https://finix.sandbox-payments-api.com/subscription/subscription_enrollments/SUBENROLLMENT_uPamF4YuEyzVTT42hwYgBV \ -u USsRhsHYZGBPnQw8CByJyEQW:8a14c2f9-d94b-4c72-8f5c-a62908e5b30e \ -X DELETE
{- "total": 0,
- "_embedded": {
- "errors": [
- {
- "code": "UNKNOWN",
- "logref": {
- "logref": "string"
}, - "message": "string",
- "_links": {
- "self": {
- "href": "string"
}, - "source": {
- "href": "string"
}
}
}
]
}
}