POST
/
v1
/
subscriptions
curl --request POST \
  --url https://api.app.slickerhq.com/ingest/v1/subscriptions \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "subscriptions": [
    {
      "id": "sub_12345678",
      "state": "SUBSCRIPTION_STATE_ACTIVE",
      "customerId": "cus_87654321",
      "planId": "plan_premium_monthly",
      "amount": 2000,
      "currency": "USD",
      "createdAt": "2023-01-01T00:00:00Z",
      "updatedAt": "2023-01-05T12:30:00Z",
      "activatedAt": "2023-01-01T00:00:00Z",
      "expiresAt": "2023-04-01T00:00:00Z"
    },
    {
      "id": "sub_87654321",
      "state": "SUBSCRIPTION_STATE_CANCELED",
      "customerId": "cus_12345678",
      "planId": "plan_basic_annual",
      "amount": 10000,
      "currency": "USD",
      "createdAt": "2022-10-01T00:00:00Z",
      "updatedAt": "2023-01-10T09:15:00Z",
      "activatedAt": "2022-10-01T00:00:00Z",
      "canceledAt": "2023-01-10T09:15:00Z",
      "expiresAt": "2023-10-01T00:00:00Z"
    }
  ]
}'
{
  "requestId": "req_2uqkAo1bwllmzrgV2qtGv48DtGI"
}

Authorizations

Authorization
string
header
required

API key authentication using a Bearer token in the Authorization header. Example: Authorization: Bearer YOUR_API_KEY

Body

application/json

Request to ingest subscription data. Maximum of 200 subscriptions per request.

subscriptions
object[]

Response

200
application/json
A successful response.
requestId
string

Unique identifier for tracking the request through the system

Example:

"req_2uqkAo1bwllmzrgV2qtGv48DtGI"