curl https://example.com/wp-json/wc-yith-ywsbs/v1/subscriptions/ \ -u consumer_key:consumer_secret
JSON response example:
[ { "id": 253, "status": "trial", "order_id": 252, "customer_id": 0, "currency": "USD", "version": "2.3.2", "date_created": "2021-06-22T10:48:43", "date_created_gmt": "2021-06-22T08:48:43", "date_modified": "2021-06-22T11:04:20", "date_modified_gmt": "2021-06-22T09:04:20", "start_date": "2021-06-22T08:48:43", "next_payment_date": "2022-01-01T02:00:00", "expired_date": "", "cancelled_date": "", "end_date": "", "expired_pause_date": "", "product_id": 222, "variation_id": 0, "product_name": "Alexa yearly", "subscription_interval": 1, "subscription_period": "years", "subscription_length": "", "trial_period": "1", "trial_interval": "months", "quantity": 1, "order_item_id": 170, "payment_method": "paypal", "payment_method_title": "PayPal", "created_via": "checkout", "prices_include_tax": true, "discount_total": "0.00", "discount_tax": "0.00", "shipping_total": "5.00", "shipping_tax": "0.00", "line_subtotal": "12.00", "line_subtotal_tax": "0.00", "line_total": "12.00", "line_tax": "0.00", "line_tax_data": { "subtotal": "0.00", "total": "0.00" }, "order_total": "17.00", "order_tax": "0.00", "order_subtotal": "12.00", "fee": "0.00", "total": "17.00", "billing": { "first_name": "John", "last_name": "Doe", "company": "", "address_1": "1294 Timber Oak Drive", "address_2": "", "city": "San Luis Obispo", "state": "CA", "postcode": "93401", "country": "US", "email": "[email protected]", "phone": "805-980-8331" }, "shipping": { "first_name": "Donna", "last_name": "Summer", "company": "", "address_1": "2108 Duck Creek Road", "address_2": "", "city": "San Francisco", "state": "california", "postcode": "94107", "country": "US" }, "customer_order_note": "", "shipping_data": [ [] ], "paid_orders": [ 252 ], "editable": true, "delivery_schedules": [ { "id": "72", "status": "waiting", "entry_date": "2021-06-22 08:48:43", "scheduled_date": "2021-07-15 06:00:00", "sent_on": null }, { "id": "83", "status": "waiting", "entry_date": "2021-06-22 08:48:43", "scheduled_date": "2022-06-15 06:00:00", "sent_on": null } ], "meta_data": [ { "key": "order_ids", "value": [ [ 252 ] ] } ], "_links": { "self": [ { "href": "https://example.com/wp-json/wc-yith-ywsbs/v1/subscriptions/253" } ], "collection": [ { "href": "https://example.com/wp-json/wc-yith-ywsbs/v1/subscriptions" } ], "up": [ { "href": "https://example.com/wp-json/wc/v3/orders/252" } ] } }, { "id": 212, "status": "paused", "order_id": 210, "customer_id": 1, "currency": "EUR", "version": "2.3.2", "date_created": "2021-06-09T13:17:31", "date_created_gmt": "2021-06-09T11:17:31", "date_modified": "2021-06-14T12:54:50", "date_modified_gmt": "2021-06-14T10:54:50", "start_date": "2021-06-09T11:17:32", "next_payment_date": "2021-12-16T11:21:43", "expired_date": "", "cancelled_date": "", "end_date": "", "expired_pause_date": "", "product_id": 112, "variation_id": 0, "product_name": "Magazine Subscription", "subscription_interval": 6, "subscription_period": "months", "subscription_length": "", "trial_period": "1", "trial_interval": "weeks", "quantity": 1, "order_item_id": 116, "payment_method": "yith-stripe", "payment_method_title": "Credit Card", "created_via": "checkout", "prices_include_tax": true, "discount_total": "0.00", "discount_tax": "0.00", "shipping_total": "0.00", "shipping_tax": "0.00", "line_subtotal": "28.69", "line_subtotal_tax": "6.31", "line_total": "28.69", "line_tax": "6.31", "line_tax_data": { "subtotal": "1.00", "total": "1.00" }, "order_total": "35.00", "order_tax": "6.31", "order_subtotal": "35.00", "fee": "0.00", "total": "35.00", "billing": { "first_name": "John", "last_name": "Doe", "company": "", "address_1": "1294 Timber Oak Drive", "address_2": "", "city": "San Luis Obispo", "state": "CA", "postcode": "93401", "country": "US", "email": "[email protected]", "phone": "805-980-8331" }, "shipping": { "first_name": "Daniel", "last_name": "White", "company": "", "address_1": "via Black Bird", "address_2": "", "city": "San Luis Obispo", "state": "CA", "postcode": "93403", "country": "US" }, "customer_order_note": "", "shipping_data": [], "paid_orders": [ 210, 237 ], "editable": true, "delivery_schedules": [], "meta_data": [ { "key": "order_ids", "value": [ [ [ 211, 237 ] ] ] }, { "key": "rates_payed", "value": [ [ "1" ] ] }, { "key": "yith_stripe_token", "value": [ "pm_1Ix4gVI2uO1SpHI6oR6RLRuW" ] }, { "key": "stripe_customer_id", "value": [ "cus_JaFAeIc7YeMjyh" ] }, { "key": "conversion_date", "value": [ "1623311833" ] }, { "key": "previous_payment_due_date", "value": [ "1623842252" ] }, { "key": "date_of_pauses", "value": [ { "1": 1623667834, "2": 1623668090 } ] }, { "key": "num_of_pauses", "value": [ "2" ] }, { "key": "sum_of_pauses", "value": [ "251" ] } ], "_links": { "self": [ { "href": "https://example.com/wp-json/wc-yith-ywsbs/v1/subscriptions/212" } ], "collection": [ { "href": "https://example.com/wp-json/wc-yith-ywsbs/v1/subscriptions" } ], "customer": [ { "href": "https://example.com/wp-json/wc/v3/customers/1" } ], "up": [ { "href": "https://example.com/wp-json/wc/v3/orders/210" } ] } } ]