Skip to main content
GET
/
organizations
/
{orgId}
/
integrationruns
/
{entityType}
/
latest
/
{id}
Retrieve Latest IntegrationRun
curl --request GET \
  --url https://api.m3ter.com/organizations/{orgId}/integrationruns/{entityType}/latest/{id} \
  --header 'Authorization: Bearer <token>'
{
  "id": "<string>",
  "entityType": "<string>",
  "entityId": "<string>",
  "status": "WAITING",
  "destination": "<string>",
  "version": 123,
  "dtCreated": "2023-11-07T05:31:56Z",
  "dtLastModified": "2023-11-07T05:31:56Z",
  "createdBy": "<string>",
  "lastModifiedBy": "<string>",
  "dtStarted": "2023-11-07T05:31:56Z",
  "dtCompleted": "2023-11-07T05:31:56Z",
  "destinationId": "<string>",
  "error": "<string>",
  "url": "<string>",
  "externalId": "<string>",
  "parentIntegrationRunId": "<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) for your Organization. The Organization represents your company as a direct customer of our service.

entityType
string
required

The type of the entity you want to retrieve the last integration run for. Two options:

  • Bill
  • Notification
id
string
required

The UUID of the entity to retrieve the latest integration run for.

Response

Return the Integration Run

Response containing an IntegrationRun entity.

id
string
required

The UUID of the entity.

entityType
string
required

The type of entity the integration run is for. Two options:

  • Bill
  • Notification
Minimum string length: 1
entityId
string
required

The unique identifier (UUID) of the entity the integration run is for.

Minimum string length: 1
status
enum<string>
required

The current status of the integration run.

Available options:
WAITING,
STARTED,
COMPLETE,
ERROR,
AWAITING_RETRY,
AUTH_FAILED,
ACCOUNTING_PERIOD_CLOSED,
INVOICE_ALREADY_PAID,
DISABLED,
TIMEOUT_LIMIT_EXCEEDED,
RATE_LIMIT_RETRY
destination
string
required

The destination system for the integration run.

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.
dtCreated
string<date-time>

The DateTime when this item was created (in ISO-8601 format).

dtLastModified
string<date-time>

The DateTime when this item was last modified (in ISO-8601 format).

createdBy
string

The ID of the user who created this item.

lastModifiedBy
string

The ID of the user who last modified this item.

dtStarted
string<date-time>

The date and time the integration run was started (in ISO-8601 format).

dtCompleted
string<date-time>

The date and time the integration was completed. (in ISO-8601 format).

destinationId
string

Identifier of the destination

error
string

Describes any errors encountered during the integration run.

url
string

The URL of the entity in the destination system if available.

externalId
string

The external ID in the destination system if available.

parentIntegrationRunId
string

ID of the parent integration run, or null if this is a parent integration run