biterp

List customer subscriptions

GET
/customer-subscriptions
AuthorizationBearer <token>

In: header

Query Parameters

cursor?string

Opaque cursor from CursorPaginationDto.cursor. Use next_cursor or previous_cursor from the previous response.

limit?integer

Page size from CursorPaginationDto.limit.

Default20
Range1 <= value <= 100
search?string

Full-text search term from CursorPaginationDto.search.

with_deleted?boolean

Include soft-deleted records from CursorPaginationDto.with_deleted.

Defaultfalse
include_payload_search?boolean

Include payload JSON search from CursorPaginationDto.include_payload_search when supported by the endpoint.

Defaultfalse
sort?string

Sort expression from CursorPaginationDto.sort in the format field:order (for example created_at:desc).

record_number?number

Exact match for "record_number" (number)

record_number[neq]?number

Not equal filter for "record_number" (number)

record_number[gt]?number

Greater than filter for "record_number" (number)

record_number[gte]?number

Greater than or equal filter for "record_number" (number)

record_number[lt]?number

Less than filter for "record_number" (number)

record_number[lte]?number

Less than or equal filter for "record_number" (number)

reference_code?|

Exact match for "reference_code" (string)

reference_code[neq]?|

Not equal filter for "reference_code" (string)

reference_code[contains]?|

Contains filter for "reference_code"

reference_code[not_contains]?|

Does not contain filter for "reference_code"

reference_code[is_null]?boolean

Filter "reference_code" where the value is null. Pass literal true (for example reference_code[is_null]=true).

Value intrue
reference_code[is_not_null]?boolean

Filter "reference_code" where the value is not null. Pass literal true (for example reference_code[is_not_null]=true).

Value intrue
customer_id?string

Exact match for "customer_id" (UUID)

Formatuuid
customer_id[neq]?string

Not equal filter for "customer_id" (UUID)

Formatuuid
status?string

Exact match for "status" (string)

status[neq]?string

Not equal filter for "status" (string)

status[contains]?string

Contains filter for "status"

status[not_contains]?string

Does not contain filter for "status"

billing_mode?string

Exact match for "billing_mode" (string)

billing_mode[neq]?string

Not equal filter for "billing_mode" (string)

billing_mode[contains]?string

Contains filter for "billing_mode"

billing_mode[not_contains]?string

Does not contain filter for "billing_mode"

billing_interval?string

Exact match for "billing_interval" (string)

billing_interval[neq]?string

Not equal filter for "billing_interval" (string)

billing_interval[contains]?string

Contains filter for "billing_interval"

billing_interval[not_contains]?string

Does not contain filter for "billing_interval"

next_billing_date?string

Exact match for "next_billing_date" (ISO 8601 date (YYYY-MM-DD))

next_billing_date[neq]?string

Not equal filter for "next_billing_date" (ISO 8601 date (YYYY-MM-DD))

next_billing_date[gt]?string

Greater than filter for "next_billing_date" (ISO 8601 date (YYYY-MM-DD))

next_billing_date[gte]?string

Greater than or equal filter for "next_billing_date" (ISO 8601 date (YYYY-MM-DD))

next_billing_date[lt]?string

Less than filter for "next_billing_date" (ISO 8601 date (YYYY-MM-DD))

next_billing_date[lte]?string

Less than or equal filter for "next_billing_date" (ISO 8601 date (YYYY-MM-DD))

financial_account_id?string

Exact match for "financial_account_id" (UUID)

Formatuuid
financial_account_id[neq]?string

Not equal filter for "financial_account_id" (UUID)

Formatuuid
created_at?string

Exact match for "created_at" (ISO 8601 datetime)

created_at[neq]?string

Not equal filter for "created_at" (ISO 8601 datetime)

created_at[gt]?string

Greater than filter for "created_at" (ISO 8601 datetime)

created_at[gte]?string

Greater than or equal filter for "created_at" (ISO 8601 datetime)

created_at[lt]?string

Less than filter for "created_at" (ISO 8601 datetime)

created_at[lte]?string

Less than or equal filter for "created_at" (ISO 8601 datetime)

updated_at?string

Exact match for "updated_at" (ISO 8601 datetime)

updated_at[neq]?string

Not equal filter for "updated_at" (ISO 8601 datetime)

updated_at[gt]?string

Greater than filter for "updated_at" (ISO 8601 datetime)

updated_at[gte]?string

Greater than or equal filter for "updated_at" (ISO 8601 datetime)

updated_at[lt]?string

Less than filter for "updated_at" (ISO 8601 datetime)

updated_at[lte]?string

Less than or equal filter for "updated_at" (ISO 8601 datetime)

Response Body

application/json

application/json

application/json

application/json

curl -X GET "https://api.biterp.ai/customer-subscriptions"
{
  "data": [
    {
      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
      "record_number": 0,
      "customer_id": "160c0c4b-9966-4dc1-a916-8407eb10d74e",
      "financial_account_id": "12004dd2-b67b-4561-b5c8-278b86c292fd",
      "financial_category_id": "a6b66ee2-6cb9-4e40-8c14-5161236f36c0",
      "reference_code": "string",
      "status": "string",
      "billing_mode": "string",
      "billing_interval": "day",
      "billing_interval_count": 0,
      "billing_cycle_anchor": "2019-08-24",
      "current_period_start": "2019-08-24",
      "current_period_end": "2019-08-24",
      "next_billing_date": "2019-08-24",
      "trial_end": "2019-08-24",
      "start_date": "2019-08-24",
      "payment_terms_days": 0,
      "cancel_at_period_end": true,
      "canceled_at": "2019-08-24T14:15:22Z",
      "paused_at": "2019-08-24T14:15:22Z",
      "ended_at": "2019-08-24T14:15:22Z",
      "description": "string",
      "notes": "string",
      "metadata": {},
      "created_at": "2019-08-24T14:15:22Z",
      "updated_at": "2019-08-24T14:15:22Z",
      "deleted_at": "2019-08-24T14:15:22Z",
      "items": [
        {
          "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
          "subscription_id": "aa11a4c2-a467-43db-b413-c4ab0f5cf627",
          "subscription_plan_id": "0fcb3216-bef6-4343-b483-7a77bff76ad5",
          "product_id": "0d012afa-f885-4e65-aeca-37e27701e2d1",
          "item_description": "string",
          "quantity": "string",
          "unit_price": "string",
          "discount_rate": "string",
          "position": 0,
          "created_at": "2019-08-24T14:15:22Z",
          "updated_at": "2019-08-24T14:15:22Z",
          "deleted_at": "2019-08-24T14:15:22Z"
        }
      ],
      "latest_billing_cycle": {
        "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
        "subscription_id": "aa11a4c2-a467-43db-b413-c4ab0f5cf627",
        "sequence": 0,
        "period_start": "2019-08-24",
        "period_end": "2019-08-24",
        "status": "string",
        "amount": "string",
        "sales_order_id": "5e95a238-d0d8-4280-92bc-08d83c9c12a6",
        "receivable_id": "c5fdbd77-089d-4f8e-bf49-b02b6e7fc04a",
        "external_invoice_id": "string",
        "external_idempotency_key": "string",
        "external_event_id": "string",
        "billed_at": "2019-08-24T14:15:22Z",
        "error_detail": "string",
        "metadata": {},
        "created_at": "2019-08-24T14:15:22Z",
        "updated_at": "2019-08-24T14:15:22Z"
      }
    }
  ],
  "pagination": {
    "limit": 0,
    "has_next_page": true,
    "has_previous_page": true,
    "current_query_cursor": "string",
    "current_page_cursor": "string",
    "next_cursor": "string",
    "previous_cursor": "string"
  },
  "meta": {
    "filters": {},
    "search": "string",
    "sort": {
      "field": "string",
      "order": "asc"
    }
  }
}
{
  "status_code": 404,
  "message": "Customer not found",
  "error": "Not Found",
  "code": "CUSTOMER_NOT_FOUND"
}
{
  "status_code": 404,
  "message": "Customer not found",
  "error": "Not Found",
  "code": "CUSTOMER_NOT_FOUND"
}
{
  "status_code": 404,
  "message": "Customer not found",
  "error": "Not Found",
  "code": "CUSTOMER_NOT_FOUND"
}