Peplink Portal Docs
Starlink Service Lines

Cancel a Starlink Service Line

Cancel the specified Starlink service line.

Required Capabilities

Starlink Manager

Request

POST/starlink/service-lines/{refId}/cancel

Path parameters

refIdstringrequired

Reference ID of the Starlink service line to cancel.

Body parameters

isCancelNowbooleanrequired

Whether to cancel the service line immediately. If false, the service line will be cancelled at the end of the current billing cycle.

Response

200 The service line is cancelled successfully

A json is returned in the response body with the following fields:

refIdstring

Reference ID of the service line.

starlinkAccountRefIdstring

Reference ID of the Starlink account the service line belongs to.

namestring

Name of the service line.

typeenum

Type of the service line.

  • LOCAL — Local priority data plan
  • GLOBAL — Global priority data plan
starlinkAddressRefIdstring

Reference ID of the Starlink address associated with the service line.

terminalAccessChargeobject

Terminal access charge of the service line.

Show child attributes
terminalAccessCharge.skustring

SKU of the terminal access charge product.

terminalAccessCharge.productNamestring

Product name of the terminal access charge.

terminalAccessCharge.starlinkProductIdstring

Starlink product ID of the terminal access charge.

dataBlocksobject array

Data blocks included in the service line plan.

Show child attributes
dataBlocks.skustring

SKU of the data block product.

dataBlocks.productNamestring

Product name of the data block.

dataBlocks.starlinkProductIdstring

Starlink product ID of the data block.

dataBlocks.dataVolumeinteger

Data volume of the data block.

dataBlocks.dataUnitstring

Unit of the data volume (e.g. GB).

dataBlocks.quantityinteger

Quantity of the data block.

autoTopupStatusenum

Auto top-up status of the service line.

  • OPT_IN — Opted in to auto top-up.
  • OPT_OUT — Opted out of auto top-up.
starlinkDeviceRefIdsstring array

Reference IDs of the Starlink devices assigned to the service line.

cancelledAtnullable datetime string

Date and time the service line was cancelled. null if not cancelled.

isCancelNowboolean

Indicates whether the service line is set to cancel immediately.

starlinkServiceLineNumbernullable string

Starlink service line number. null if not yet assigned.

serviceStartAtnullable datetime string

Date and time the service line starts. null if not applicable.

serviceEndAtnullable datetime string

Date and time the service line ends. null if not applicable.

topupsobject array

Top-ups applied to the service line.

Show child attributes
topups.idstring

ID of the top-up.

topups.starlinkRequestRefIdstring

Starlink request reference ID of the top-up.

topups.skustring

SKU of the top-up product.

topups.productNamestring

Product name of the top-up.

topups.starlinkProductIdstring

Starlink product ID of the top-up.

topups.dataVolumeinteger

Data volume of the top-up.

topups.dataUnitstring

Unit of the data volume.

topups.quantityinteger

Quantity of the top-up.

topups.starlinkSyncedAtnullable datetime string

Date and time the top-up was synced to Starlink. null if not yet synced.

topups.createdAtdatetime string

Date and time the top-up was created.

topups.createdBystring

Username of the user who created the top-up.

topups.createdByEmailnullable string

Email of the user who created the top-up. null if not applicable.

topups.updatedAtdatetime string

Date and time the top-up was last updated.

topups.updatedBystring

Username of the user who last updated the top-up.

topups.updatedByEmailnullable string

Email of the user who last updated the top-up. null if not applicable.

changePlansobject array

Plan changes scheduled or applied to the service line.

Show child attributes
changePlans.idstring

ID of the change plan.

changePlans.starlinkRequestRefIdstring

Starlink request reference ID of the change plan.

changePlans.isDelayUpdateboolean

Indicates whether the plan change is scheduled for a future date.

changePlans.typeenum

Type of the change plan.

  • LOCAL — Local priority data plan
  • GLOBAL — Global priority data plan
changePlans.terminalAccessChargeobject

Terminal access charge of the change plan.

Show child attributes
changePlans.terminalAccessCharge.skustring

SKU of the terminal access charge product.

changePlans.terminalAccessCharge.productNamestring

Product name of the terminal access charge.

changePlans.terminalAccessCharge.starlinkProductIdstring

Starlink product ID of the terminal access charge.

changePlans.dataBlocksobject array

Data blocks included in the change plan.

Show child attributes
changePlans.dataBlocks.skustring

SKU of the data block product.

changePlans.dataBlocks.productNamestring

Product name of the data block.

changePlans.dataBlocks.starlinkProductIdstring

Starlink product ID of the data block.

changePlans.dataBlocks.dataVolumeinteger

Data volume of the data block.

changePlans.dataBlocks.dataUnitstring

Unit of the data volume (e.g. GB).

changePlans.dataBlocks.quantityinteger

Quantity of the data block.

changePlans.serviceStartAtnullable datetime string

Date and time the change plan takes effect. null if not applicable.

changePlans.cancelledAtnullable datetime string

Date and time the change plan was cancelled. null if not cancelled.

changePlans.starlinkSyncedAtnullable datetime string

Date and time the change plan was synced to Starlink. null if not yet synced.

changePlans.createdAtdatetime string

Date and time the change plan was created.

changePlans.createdBystring

Username of the user who created the change plan.

changePlans.createdByEmailnullable string

Email of the user who created the change plan. null if not applicable.

changePlans.updatedAtdatetime string

Date and time the change plan was last updated.

changePlans.updatedBystring

Username of the user who last updated the change plan.

changePlans.updatedByEmailnullable string

Email of the user who last updated the change plan. null if not applicable.

statusnullable string

Status of the service line. null if not applicable.

starlinkDataUsagenullable object

Current data usage information of the service line. null if not available.

Show child attributes
starlinkDataUsage.usageLimitGbnumber

Total data usage limit in GB for the current billing cycle.

starlinkDataUsage.consumedAmountGbnumber

Total data consumed in GB for the current billing cycle.

starlinkDataUsage.dataBlocksobject array

Breakdown of data usage by block.

Show child attributes
starlinkDataUsage.dataBlocks.startAtdatetime string

Start date and time of the data block period.

starlinkDataUsage.dataBlocks.expireAtdatetime string

Expiry date and time of the data block.

starlinkDataUsage.dataBlocks.totalAmountGbnumber

Total data amount in GB for this block.

starlinkDataUsage.dataBlocks.consumedAmountGbnumber

Data consumed in GB for this block.

starlinkDataUsage.dataBlocks.dataBlockTypestring

Type of the data block.

starlinkDataUsage.dataBlocks.blocksCountinteger

Number of blocks aggregated in this entry.

starlinkDataUsage.billingCycleStartAtnullable datetime string

Start of the current billing cycle. null if not applicable.

starlinkDataUsage.billingCycleEndAtnullable datetime string

End of the current billing cycle. null if not applicable.

starlinkDataUsage.recurringDataStartAtnullable datetime string

Start of the recurring data period. null if not applicable.

starlinkDataUsage.recurringDataEndAtnullable datetime string

End of the recurring data period. null if not applicable.

starlinkDataUsage.starlinkUpdatedAtnullable datetime string

Date and time Starlink last updated the usage data. null if not applicable.

starlinkDataUsage.syncedAtnullable datetime string

Date and time the usage data was last synced. null if not applicable.

starlinkSyncobject

Starlink sync information of the service line.

Show child attributes
starlinkSync.syncStatusnullable enum

The sync status of the service line. null if not applicable.

  • PENDING — The sync is pending.
  • ABORTED — The sync has been aborted.
  • SYNCING — The sync is in progress.
  • SYNCED — The sync has completed.
starlinkSync.runCountnumber

The number of times the service line sync has been run.

starlinkSync.runCountLimitnumber

The maximum number of times the service line sync can be run.

starlinkSync.lastSyncedAtnullable datetime string

The last time the service line was synced. null if not applicable.

createdAtdatetime string

Date and time the service line was created.

createdBystring

Username of the user who created the service line.

createdByEmailnullable string

Email of the user who created the service line. null if not applicable.

updatedAtdatetime string

Date and time the service line was last updated.

updatedBystring

Username of the user who last updated the service line.

updatedByEmailnullable string

Email of the user who last updated the service line. null if not applicable.

400 Request is invalid

No service line is cancelled as the request is invalid.

Check the response body for the error details.

Examples

Request

curl -X POST 'https://portal.peplink.com/api/e/v1/cp/starlink/service-lines/{refId}/cancel' \  -H 'Authorization: Bearer {token}' \  -H 'Content-Type: application/json' \  --data-raw  '{"isCancelNow": true}'

Response

{
  "refId": "11",
  "starlinkAccountRefId": "3",
  "type": "LOCAL",
  "name": "Example Office 3/F",
  "starlinkAddressRefId": "3",
  "terminalAccessCharge": {
    "sku": "SLK-LP-TAC-US",
    "productName": "Starlink Local Priority Terminal Access Charge - US",
    "starlinkProductId": "us-enterprise-local-priority-terminal-access-fee-usd"
  },
  "dataBlocks": [
    {
      "sku": "SLK-LP-500GB-DB-US",
      "productName": "Starlink Local Priority 500 GB Data Block - US",
      "starlinkProductId": "us-enterprise-local-priority-500gb-data-block-usd",
      "dataVolume": 500,
      "dataUnit": "GB",
      "quantity": 1
    }
  ],
  "autoTopupStatus": "OPT_OUT",
  "starlinkDeviceRefIds": [],
  "cancelledAt": "2026-03-25T07:35:43.943Z",
  "isCancelNow": true,
  "starlinkServiceLineNumber": "SL-XX-0000000-00000-00",
  "serviceStartAt": "2026-03-25T07:34:30.626Z",
  "serviceEndAt": null,
  "topups": [
    {
      "id": "00000000-0000-0000-0000-000000000001",
      "starlinkRequestRefId": "9",
      "sku": "SLK-LP-50GB-TO-US",
      "productName": "Starlink Local Priority - 50 GB Top-Up - US",
      "starlinkProductId": "us-enterprise-local-priority-50gb-data-topup-usd",
      "dataVolume": 50,
      "dataUnit": "GB",
      "quantity": 1,
      "starlinkSyncedAt": "2026-01-29T00:00:00.000Z",
      "createdAt": "2026-01-29T04:18:55.683Z",
      "createdBy": "John Smith",
      "createdByEmail": "[email protected]",
      "updatedAt": "2026-01-29T05:23:40.652Z",
      "updatedBy": "John Smith",
      "updatedByEmail": "[email protected]"
    },
    {
      "id": "00000000-0000-0000-0000-000000000002",
      "starlinkRequestRefId": "14",
      "sku": "SLK-LP-50GB-TO-US",
      "productName": "Starlink Local Priority - 50 GB Top-Up - US",
      "starlinkProductId": "us-enterprise-local-priority-50gb-data-topup-usd",
      "dataVolume": 50,
      "dataUnit": "GB",
      "quantity": 1,
      "starlinkSyncedAt": "2026-01-29T00:00:00.000Z",
      "createdAt": "2026-01-29T04:18:55.683Z",
      "createdBy": "John Smith",
      "createdByEmail": "[email protected]",
      "updatedAt": "2026-02-04T10:55:15.046Z",
      "updatedBy": "John Smith",
      "updatedByEmail": "[email protected]"
    },
    {
      "id": "00000000-0000-0000-0000-000000000003",
      "starlinkRequestRefId": "58",
      "sku": "SLK-LP-50GB-TO-US",
      "productName": "Starlink Local Priority - 50 GB Top-Up - US",
      "starlinkProductId": "us-enterprise-local-priority-50gb-data-topup-usd",
      "dataVolume": 50,
      "dataUnit": "GB",
      "quantity": 1,
      "starlinkSyncedAt": "2026-01-29T00:00:00.000Z",
      "createdAt": "2026-01-29T04:18:55.683Z",
      "createdBy": "John Smith",
      "createdByEmail": "[email protected]",
      "updatedAt": "2026-03-02T08:23:26.778Z",
      "updatedBy": "Jane Doe",
      "updatedByEmail": "[email protected]"
    }
  ],
  "changePlans": [],
  "status": "CANCELLED",
  "starlinkDataUsage": {
    "usageLimitGb": 108.2,
    "consumedAmountGb": 0,
    "dataBlocks": [
      {
        "startAt": "2026-03-25T07:34:30.425Z",
        "expireAt": "2026-04-01T00:00:00.000Z",
        "totalAmountGb": 108.2,
        "consumedAmountGb": 0,
        "dataBlockType": "RecurringPerBillingCycle",
        "blocksCount": 1
      }
    ],
    "billingCycleStartAt": "2026-03-01T00:00:00.000Z",
    "billingCycleEndAt": "2026-04-01T00:00:00.000Z",
    "recurringDataStartAt": "2026-03-25T07:34:30.425Z",
    "recurringDataEndAt": "2026-04-01T00:00:00.000Z",
    "starlinkUpdatedAt": "1970-01-01T00:00:00.000Z",
    "syncedAt": "2026-03-25T07:34:45.265Z"
  },
  "starlinkSync": {
    "syncStatus": "SYNCED",
    "runCount": 0,
    "runCountLimit": 10,
    "lastSyncedAt": "2026-03-25T07:34:39.271Z"
  },
  "createdAt": "2026-01-29T04:18:55.683Z",
  "createdBy": "John Smith",
  "createdByEmail": "[email protected]",
  "updatedAt": "2026-03-25T07:35:43.943Z",
  "updatedBy": "Jane Doe",
  "updatedByEmail": "[email protected]"
}

On this page