Get subscription details
Retrieve detailed information about a specific subscription.
Authorization
applicationPassword AuthorizationBasic <token>
WordPress Application Password authentication. Generate one at wp-admin > Users > Application Passwords. Use as Basic Auth with username:application_password (base64-encoded).
In: header
Path Parameters
subscription_id*string
Subscription order ID
Response Body
application/json
application/json
application/json
curl -X GET "https://your-site.com/wp-json/fluent-cart/v2/subscriptions/string"{
"subscription": {
"id": 0,
"parent_id": 0,
"customer_id": 0,
"status": "active",
"payment_method": "string",
"vendor_subscription_id": "string",
"billing_interval": "weekly",
"bill_times": 0,
"recurring_amount": 0,
"trial_days": 0,
"initial_amount": 0,
"currency": "string",
"uuid": "string",
"next_billing_date": "2019-08-24T14:15:22Z",
"expiry_date": "2019-08-24T14:15:22Z",
"activated_at": "2019-08-24T14:15:22Z",
"canceled_at": "2019-08-24T14:15:22Z",
"created_at": "2019-08-24T14:15:22Z",
"updated_at": "2019-08-24T14:15:22Z"
}
}{
"code": "rest_forbidden",
"message": "Sorry, you are not allowed to do that.",
"data": {
"status": 401
}
}{
"code": "fluent_cart_entity_not_found",
"message": "Order not found",
"data": {
"status": 404
}
}