Base URL https://payments.clocknext.com/api/v1
Grants (positive delta) or claws back (negative delta) a composite balance for the current cycle. The composite must be a prepaid (ADVANCE) part of the plan, or the answer is a 422. A claw-back may take the balance below 0. Send an idempotencyKey to make retries safe.
apiKeyAuthorizationBearer <cnk_…>Organisation-scoped key from Settings → API Keys.
id*stringCustomer id.
application/json- body
agentKey*stringThe composite's refId, the value that signals tag it with. A composite has no agentKey.
1 <= lengthdelta*integerSigned change: positive adds slots, negative reduces. Non-zero whole number; absolute value ≤ 10,000,000.
notes?stringYour note about the change, up to 200 characters. It is saved with the adjustment.
length <= 200idempotencyKey?stringMakes retries safe: a repeat with the same key adjusts nothing and returns replayed: true.
1 <= length <= 255Composite balance adjusted.
application/json- response
statusCode*integerThe HTTP status code of the response, repeated in the body.
statusDetail*The status of the request. status is SUCCESS, and message says what happened.
result*The result of the composite balance change.
curl -X POST 'https://payments.clocknext.com/api/v1/customers/cus_abc123/composites/adjust' \ -H 'Content-Type: application/json' \ -d '{ "agentKey": "voice_call", "delta": 10, "notes": "Pilot extension"}'{ "statusCode": 200, "statusDetail": { "status": "SUCCESS", "message": "Composite slot pool adjusted." }, "result": { "adjusted": true, "replayed": false, "remaining": 129, "customerArchived": false }}Base URL https://payments.clocknext.com/api/v1
The same call, addressed by the customer's externalId. Same body and response.
apiKeyAuthorizationBearer <cnk_…>Organisation-scoped key from Settings → API Keys.
externalId*stringYour own id for the customer: 1–64 letters, numbers or "-". Case-sensitive.
^[A-Za-z0-9-]{1,64}$1 <= length <= 64application/json- body
agentKey*stringThe composite's refId, the value that signals tag it with. A composite has no agentKey.
1 <= lengthdelta*integerSigned change: positive adds slots, negative reduces. Non-zero whole number; absolute value ≤ 10,000,000.
notes?stringYour note about the change, up to 200 characters. It is saved with the adjustment.
length <= 200idempotencyKey?stringMakes retries safe: a repeat with the same key adjusts nothing and returns replayed: true.
1 <= length <= 255Composite balance adjusted.
application/json- response
statusCode*integerThe HTTP status code of the response, repeated in the body.
statusDetail*The status of the request. status is SUCCESS, and message says what happened.
result*The result of the composite balance change.
curl -X POST 'https://payments.clocknext.com/api/v1/customers/ext/string/composites/adjust' \ -H 'Content-Type: application/json' \ -d '{ "agentKey": "research_report", "delta": 5}'{ "statusCode": 200, "statusDetail": { "status": "SUCCESS", "message": "Composite slot pool adjusted." }, "result": { "adjusted": true, "replayed": false, "remaining": 55, "customerArchived": false }}Types
Every object type on this page, with its fields.
CompositeAdjustInput
| Field | Type | Required | Description |
|---|---|---|---|
agentKey | string | yes | The composite's refId, the value that signals tag it with. A composite has no agentKey. |
delta | integer | yes | Signed change: positive adds slots, negative reduces. Non-zero whole number; absolute value ≤ 10,000,000. |
notes | string | no | Your note about the change, up to 200 characters. It is saved with the adjustment. |
idempotencyKey | string | no | Makes retries safe: a repeat with the same key adjusts nothing and returns replayed: true. |