Skip to main content
POST
/
organizations
/
{orgId}
/
statementjobs
/
batch
Create Batch StatementJobs
curl --request POST \
  --url https://api.m3ter.com/organizations/{orgId}/statementjobs/batch \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "billIds": [
    "<string>"
  ],
  "version": 123,
  "includeCsvFormat": true,
  "filters": {
    "meterIds": "<string>"
  }
}
'
[
  {
    "id": "<string>",
    "version": 123,
    "statementJobStatus": "PENDING",
    "billId": "<string>",
    "orgId": "<string>",
    "includeCsvFormat": true,
    "filters": {
      "meterIds": "<string>"
    },
    "presignedJsonStatementUrl": "<string>",
    "jsonStatementStatus": "LATEST",
    "presignedCsvStatementUrl": "<string>",
    "csvStatementStatus": "LATEST",
    "dtCreated": "2023-11-07T05:31:56Z",
    "dtLastModified": "2023-11-07T05:31:56Z",
    "createdBy": "<string>",
    "lastModifiedBy": "<string>"
  }
]

Authorizations

Authorization
string
header
required

m3ter supports machine to machine authentication using the clientCredentials OAuth2 flow.

The authorizationCode flow controls access for human users via the m3ter Console application.

Path Parameters

orgId
string
required

The unique identifier (UUID) of your Organization. The Organization represents your company as a direct customer of our service.

Body

application/json
billIds
string[]
required

The list of unique identifiers (UUIDs) of the bills associated with the StatementJob.

Required array length: 1 - 10 elements
version
integer<int64>

The version number of the entity:

  • Create entity: Not valid for initial insertion of new entity - do not use for Create. On initial Create, version is set at 1 and listed in the response.
  • Update Entity: On Update, version is required and must match the existing version because a check is performed to ensure sequential versioning is preserved. Version is incremented by 1 and listed in the response.
includeCsvFormat
boolean

A Boolean value indicating whether the generated statement includes a CSV format.

  • TRUE - includes the statement in CSV format.
  • FALSE - no CSV format statement.
filters
object

Response

Returns a list of the created StatementJobs

id
string
required

The UUID of the entity.

version
integer<int64>

The version number:

  • Create: On initial Create to insert a new entity, the version is set at 1 in the response.
  • Update: On successful Update, the version is incremented by 1 in the response.
statementJobStatus
enum<string>

The current status of the StatementJob. The status helps track the progress and outcome of a StatementJob.

Available options:
PENDING,
RUNNING,
COMPLETE,
CANCELLED,
FAILED
billId
string

The unique identifier (UUID) of the bill associated with the StatementJob.

orgId
string

The unique identifier (UUID) of your Organization. The Organization represents your company as a direct customer of our service.

includeCsvFormat
boolean

A Boolean value indicating whether the generated statement includes a CSV format.

  • TRUE - includes the statement in CSV format.
  • FALSE - no CSV format statement.
filters
object
presignedJsonStatementUrl
string

The URL to access the generated statement in JSON format. This URL is temporary and has a limited lifetime.

jsonStatementStatus
enum<string>
Available options:
LATEST,
STALE,
INVALIDATED
presignedCsvStatementUrl
string
csvStatementStatus
enum<string>
Available options:
LATEST,
STALE,
INVALIDATED
dtCreated
string<date-time>

The date and time (in ISO-8601 format) when the StatementJob was created.

dtLastModified
string<date-time>

The date and time (in ISO-8601 format) when the StatementJob was last modified.

createdBy
string

The unique identifier (UUID) of the user who created this StatementJob.

lastModifiedBy
string

The unique identifier (UUID) of the user who last modified this StatementJob.