Skip to content

Billing Tasks

A billing task is a single job in the platform’s processing queue. The platform does its heavy work in the background, and each piece of work is tracked as a billing task. This lets you see what the system is doing and spot anything that has gone wrong.

Most of the platform’s longer jobs run as billing tasks. Common examples are:

  • Generating invoices during a billing run
  • Importing call data record files from carriers
  • Sending bill emails to customers
  • Collecting payments by Direct Debit or card

You don’t create or run billing tasks by hand. The platform adds them to the queue and works through them in priority order. The Billing Tasks list is there so you can watch progress and troubleshoot, not to start jobs yourself.

  • Billing runs queue invoice production once you request bills. See Request Bills.
  • CDR processing queues an import task for each call data file. See Supply Files.
  • Email Bills queues a task per batch of emails. See Email Bills.
  • Payment runs queue collection tasks for Direct Debit and card payments. See Payment Runs.

This section contains the core information about the billing task, including the task type, status, customer association, and attachment details.

FieldDescription
Billing Task TypeThe type of billing task to be performed
Billing Task StatusCurrent status of the billing task
CustomerCustomer this billing task is for, if applicable
Task ForID of the specific object this task is attached to

Detailed information about the task execution including timing, parameters, and processing flags.

FieldDescription
ParametersJSON parameters for the billing task execution
PriorityProcessing priority of this billing task
Retry CountNumber of times this task has been retried
Added DateDate when this billing task was added to the queue
Delay DateDate when this billing task should be processed (if delayed)
Started DateDate when processing of this billing task began
Ended DateDate when processing of this billing task completed
Test ModeWhether this task is running in test mode
Activity LogLog of processing activities for this billing task

System-generated information and activity tracking for this billing task.

FieldDescription
Last ModifiedTimestamp of the most recent modification to this billing task
CreatedTimestamp when this billing task was created

A few fields are worth explaining:

  • Billing Task Status tells you where the job is:
    • Pending: waiting in the queue to start.
    • Running: currently being processed.
    • Completed: finished successfully.
    • Error: hit a problem but may be retried.
    • Failed: stopped after running out of retries or hitting a fatal problem.
    • Skipped: deliberately passed over (for example, superseded by a later task).
  • Billing Task Type is the kind of job, such as invoice generation or CDR import.
  • Customer and Task For link the task to the record it relates to, when it applies to one.
  • Parameters holds the job’s inputs as JSON. Activity Log records what happened step by step, which is the first place to look when a task shows an Error or Failed status.
  • Retry Count shows how many times the platform has re-attempted the job. Priority controls the order tasks run in.
  • Test Mode flags tasks that ran as a dry run rather than for real.

Open the Billing Tasks list to see recent and current jobs. The list is colour-coded by status, so running, completed, error, failed and skipped tasks stand out at a glance.

  1. Open the task from the list.
  2. Check the Billing Task Status and Retry Count.
  3. Read the Activity Log for the error message and the step that failed.
  4. Fix the underlying cause (for example, a bad CDR file or a payment provider issue), then let the platform retry on its next pass.

Tasks normally clear themselves once the cause is resolved. If a task is no longer needed, you can delete it from the list.

Important: Billing tasks run automatically as part of daily processing and billing runs. You don’t need to start them, and they should not be left for manual action.

  • Permission: Users need the Billing Tasks permission to view the queue. Assign it through the usual user or user group permissions.
  • Visibility: The list is most useful to billing and support administrators monitoring a run.

Want billing that runs itself in the background while you get on with your day? see how SAFE Billing Platform automates the whole billing cycle