List subscriptions for a player
Authorization<token>
Bearer token authentication for client-side SDK operations. Format: 'Authorization: Bearer '
In: header
Query Parameters
segmentId?string
externalAccountId?string
status?string
Filter by status: "active", "past_due", "cancelled", "expired"
Response Body
curl -X GET "https://test-api.stash.gg/sdk/v1/subscriptions?segmentId=string&externalAccountId=string&status=string"{
"subscriptions": [
{
"subscriptionId": "string",
"externalAccountId": "string",
"segmentId": "string",
"planId": "string",
"status": "string",
"lockedAmountCents": "string",
"lockedCurrency": "string",
"trialEnd": "2019-08-24T14:15:22Z",
"accessEndDate": "2019-08-24T14:15:22Z",
"currentPeriodStart": "2019-08-24T14:15:22Z",
"currentPeriodEnd": "2019-08-24T14:15:22Z",
"originalBillingDay": 0,
"cancelAtPeriodEnd": true,
"cancelledAt": "2019-08-24T14:15:22Z",
"paymentMethodToken": "string",
"lastPaymentAttempt": "2019-08-24T14:15:22Z",
"gracePeriodEnd": "2019-08-24T14:15:22Z",
"createdAt": "2019-08-24T14:15:22Z",
"updatedAt": "2019-08-24T14:15:22Z"
}
]
}{
"code": 0,
"message": "string",
"details": [
{
"@type": "string",
"property1": null,
"property2": null
}
]
}How is this guide?