Package

Create a new Package record.

post/api/cp/package

Request

  • Base URL
    https://app.connexcs.com
  • Auth
    • OAuth 2
      Authorization code: https://auth.connexcs.com/authorize
      Token URL: https://auth.connexcs.com/token
    • or HTTP bearer

Request body

idinteger

Id

account_idinteger

Account Id

company_idinteger

Company Id

package_idinteger

Package Id

ststring date-time

St

etstring date-time

Et

qtyinteger

Qty

auto_decrement_creditinteger

Auto Decrement Credit

balancenumber required

Balance

minutesnumber required

Minutes

min_daysinteger

Min Days

Example request

{
  "id": 12345,
  "account_id": 1,
  "company_id": 1,
  "package_id": 1,
  "st": "2025-01-17T10:30:00Z",
  "et": "2025-01-17T10:30:00Z",
  "qty": 123,
  "auto_decrement_credit": 1,
  "balance": 99.99,
  "minutes": 99.99,
  "min_days": 123
}

Response

Successful response

statusstring

Operation status

Example response

{
  "id": 12345,
  "status": "OK"
}

Changes

    • info

      the endpoint scheme security oAuth2 was added to the API

    • info

      the endpoint scheme security opaqueToken was added to the API

    • info

      the endpoint scheme security basicAuth was removed from the API