# Subscription Activity Numeric Row Ordering

> Subscription Activity Numeric Row Ordering is a paid API for AI agents from market.datapackvibe.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-12).

Sorts up to 200 subscription activity records by a specified numeric field (active_accounts or cancellations) and returns them in ordered sequence.

## Facts

- Endpoint: POST https://market.datapackvibe.com/x402/assistant-sector-analytics-subscription-activity-sort?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/subscription-activity-numeric-row-ordering-bd17cb2a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_O8MnrQcNE7vn7iX-voa7Q

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability subscription-activity-numeric-row-ordering-bd17cb2a -d '<json body>'
```

Example prompt: Sort these subscription activity rows by active_accounts — I have 4 records: row-1 (group-a plan, 2026-10-01, 10 active accounts, 1 cancellation), row-2 (group-b plan, 2026-10-02, 20 active accounts, 2 cancellations), row-3 (group-a plan, 2026-10-03, 15 active accounts, 3 cancellations), row-4 (group-b plan, 2026-10-04, 30 active accounts, 4 cancellations).

## When to prefer this

Use this endpoint when you have up to 200 subscription activity records and need them sorted numerically by either active_accounts or cancellations with no external enrichment or forecasting — ideal for lightweight, local data-quality processing on structured subscription data before downstream analysis or reporting.

## Known failure modes

- Missing required fields (row_id, plan, date, active_accounts, cancellations) causes validation error
- Exceeding 200 rows returns an error due to maxItems constraint
- Invalid date format (not YYYY-MM-DD) triggers pattern validation failure
- Invalid field enum value (not active_accounts or cancellations) causes rejection
- Empty rows array rejected due to minItems:1 constraint

## How this service works

Subscription activity - Numeric row ordering: Numeric row ordering for Subscription activity. Up to 200 supplied typed records. Local numeric and data-quality processing; no external enrichment or forecasting. One of 25 profiles or calculations across 20 shared operations in this sector. 0.01 USDC includes one bounded numeric row ordering deliverable.

## Output

Returns the submitted subscription activity rows reordered numerically by the specified field (active_accounts or cancellations), preserving all original fields (row_id, plan, date, active_accounts, cancellations) in the sorted sequence.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "rows": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "row_id",
     "plan",
     "date",
     "active_accounts",
     "cancellations"
    ],
    "properties": {
     "date": {
      "type": "string",
      "default": "",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
      "maxLength": 10
     },
     "plan": {
      "type": "string",
      "default": "",
      "maxLength": 80
     },
     "row_id": {
      "type": "string",
      "default": "",
      "maxLength": 80,
      "minLength": 1
     },
     "cancellations": {
      "type": [
       "number",
       "null"
      ],
      "maximum": 1000000000000,
      "minimum": -1000000000000
     },
     "active_accounts": {
      "type": [
       "number",
       "null"
      ],
      "maximum": 1000000000000,
      "minimum": -1000000000000
     }
    },
    "additionalProperties": false
   },
   "default": [
    {
     "date": "2026-10-01",
     "plan": "group-a",
     "row_id": "row-1",
     "cancellations": 1,
     "active_accounts": 10
    },
    {
     "date": "2026-10-02",
     "plan": "group-b",
     "row_id": "row-2",
     "cancellations": 2,
     "active_accounts": 20
    },
    {
     "date": "2026-10-03",
     "plan": "group-a",
     "row_id": "row-3",
     "cancellations": 3,
     "active_accounts": 15
    },
    {
     "date": "2026-10-04",
     "plan": "group-b",
     "row_id": "row-4",
     "cancellations": 4,
     "active_accounts": 30
    }
   ],
   "maxItems": 200,
   "minItems": 1
  },
  "field": {
   "enum": [
    "active_accounts",
    "cancellations"
   ],
   "type": "string",
   "default": "active_accounts"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/subscription-activity-numeric-row-ordering-bd17cb2a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from market.datapackvibe.com](https://www.zero.xyz/host/market.datapackvibe.com/llms.txt)
