Skip to main content
GET
/
my-account
/
subscriptions
Get customer subscriptions
curl --request GET \
  --url {protocol}://{host}/wp-json/cocart/preview/my-account/subscriptions \
  --header 'Authorization: Basic <encoded-value>'
{
  "subscriptions": {
    "123": {
      "order_id": 456,
      "subscription_number": "#123",
      "subscription_status": "Active",
      "next_payment": "January 15, 2025",
      "subscription_total": "$29.99",
      "is_manual": false
    },
    "124": {
      "order_id": 457,
      "subscription_number": "#124",
      "subscription_status": "On hold",
      "next_payment": "N/A",
      "subscription_total": "$19.99",
      "is_manual": false
    }
  },
  "pagination": {
    "previous": null,
    "next": null
  }
}
This endpoint is currently shown as a preview of what’s currently in development and is subject to change.
This endpoint supports only the official WooCommerce Subscriptions extension.

Authorizations

Authorization
string
header
required

WordPress username and password

Query Parameters

page
integer
default:1

The pagination of subscriptions to return

per_page
integer
default:10

Limit of subscriptions to return per page

Required range: 1 <= x <= 100
order
enum<string>
default:DESC

Order sort attribute ascending or descending

Available options:
ASC,
DESC

Response

Subscriptions retrieved successfully

subscriptions
object

Object with subscription IDs as keys

Example:
{
"789": {
"order_id": 456,
"subscription_number": "#789",
"subscription_status": "Active",
"next_payment": "January 15, 2025",
"subscription_total": "$29.99",
"is_manual": false
}
}
pagination
object