This endpoint allows for the batch recording of events related to customer interactions with resources. Each event captures a unique interaction at a specific point in time, including the involved resource and customer, the nature of the interaction (value), and when it occurred.
An array of event objects. Each event includes a resourceExternalId, customerExternalId, value, and occurredAt timestamp, alongside an optional idempotencyKey for ensuring uniqueness. Requires at least one event object to proceed.
resourceExternalId required | string non-empty |
customerExternalId required | string non-empty |
value required | number |
idempotencyKey required | string non-empty |
occurredAt required | string <date-time> |
[- {
- "resourceExternalId": "string",
- "customerExternalId": "string",
- "value": 0,
- "idempotencyKey": "string",
- "occurredAt": "2019-08-24T14:15:22Z"
}
]
null
This endpoint allows the creation of a new contract. If needed, it also permits the creation of a new customer and a new payment account or the provision of existing customer and payment account IDs to sync the new contract with them.
required | object New Customer details. |
required | object New Payment Account details. |
customerId | string <uuid> Existing customer ID. If provided, a new customer will not be created.
Note: You cannot provide both a |
paymentAccountId | string <uuid> Existing payment account ID. If provided, a new payment account will not be created.
Note: You cannot provide both a |
required | object New Contract details. |
{- "customer": {
- "externalId": "string",
- "name": "string"
}, - "paymentAccount": {
- "businessName": "string",
- "tradeName": "string",
- "email": "user@example.com",
- "taxId": "string"
}, - "customerId": "87d8e330-2878-4742-a86f-dbbb3bf522ac",
- "paymentAccountId": "97c1cadf-0c39-4120-b34f-8e6621ad3d02",
- "contract": {
- "startDate": "2019-08-24",
- "endDate": "2019-08-24",
- "billingEndDay": 1,
- "dueDateDay": 1,
- "contractNonBusinessDayHandling": "antecipate",
- "isAutoRenewalEnabled": true,
- "planIds": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
]
}
}
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "customerId": "87d8e330-2878-4742-a86f-dbbb3bf522ac",
- "tenantId": "f97df110-f4de-492e-8849-4a6af68026b0",
- "paymentAccountId": "97c1cadf-0c39-4120-b34f-8e6621ad3d02",
- "startDate": "2019-08-24",
- "endDate": "2019-08-24",
- "billingEndDay": 1,
- "dueDateDay": 1,
- "status": "active",
- "contractNonBusinessDayHandling": "antecipate",
- "isAutoRenewalEnabled": true,
- "plans": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "description": "string",
- "productId": "dcd53ddb-8104-4e48-8cc0-5df1088c6113"
}
], - "paymentAccount": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "tenantId": "f97df110-f4de-492e-8849-4a6af68026b0",
- "customerId": "87d8e330-2878-4742-a86f-dbbb3bf522ac",
- "businessName": "string",
- "tradeName": "string",
- "taxId": "string",
- "email": "user@example.com"
}
}