Get a specific billing cycle

get/billing-cycles/{billing_cycle_id}
SecuritybearerAuth
Request
path Parameters
billing_cycle_id
required
integer <int64> (IdParam) >= 1

Billing cycle identifier

Example: 1
Responses
200

Billing cycle found

400

Bad Request

401

Unauthorized

404

Not Found

412

Precondition Failed

500

Internal Server Error

501

Not Implemented Yet

Response samples
application/json
{
  • "id": 1,
  • "name": "string",
  • "startDayOfPeriod": 2,
  • "wholePeriod": false,
  • "lengthOfPeriod": 1,
  • "periodUnit": "DAILY",
  • "maxDaysBeforeCloseable": 15,
  • "maxDaysAfterCloseable": 15,
  • "maxBackDateableUsageInDays": 0,
  • "currencyCode": "GBP",
  • "defaultInvoiceDate": "TODAY",
  • "completionType": "DISABLED",
  • "autoCloseHour": 23,
  • "autoCloseMinute": 59,
  • "autoCloseOffsetDays": -15,
  • "autoCloseUserId": 1,
  • "billingCycleRules": [
    • {
      • "id": 1,
      • "type": "REVENUE",
      • "thresholdPercentage": 1,
      • "thresholdMinValue": 50000,
      • "thresholdMaxValue": 50000,
      • "active": true,
      • "comparisonPeriod": "THREE_PERIODS",
      • "comparisonBasedOn": "VALUE"
      }
    ],
  • "billingCycleStats": [
    • {
      • "type": "REVENUE",
      • "value": 0,
      • "comparisonPeriod": "THREE_PERIODS"
      }
    ]
}