Skip to main content
GET
/
api
/
v1
/
public
/
subscriptions
List Workspace Subscriptions
curl --request GET \
  --url https://api.sanka.com/api/v1/public/subscriptions \
  --header 'Authorization: Bearer <token>'
[
  {
    "id": "<string>",
    "created_at": "2023-11-07T05:31:56Z",
    "contact_info": [
      {
        "id": "<string>",
        "name": "<string>",
        "email": "<string>",
        "phone": "<string>"
      }
    ],
    "items": [
      {
        "id": "<string>",
        "amount": 123,
        "name": "<string>",
        "price": 123,
        "status": "<string>"
      }
    ],
    "number_item": 123,
    "status": "<string>",
    "subscription_status": "<string>",
    "start_date": "2023-12-25",
    "currency": "<string>",
    "total_price": 123,
    "prior_to_time": "<string>",
    "frequency": 123,
    "frequency_time": "<string>",
    "tax": 123,
    "shipping_cost_tax_status": "<string>"
  }
]

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

Accept-Language
string | null

Query Parameters

workspace_id
string | null

Response

200 - application/json

OK

id
string
required
created_at
string<date-time>
required
contact_info
SubscriptionContactSchema · object[]
required
items
SubscriptionItemSchema · object[]
required
number_item
integer
required
status
string | null
subscription_status
string | null
start_date
string<date> | null
currency
string | null
total_price
number | null
prior_to_time
string | null
frequency
integer | null
frequency_time
string | null
tax
number | null
shipping_cost_tax_status
string | null