Commet
  • Precios
Iniciar SesiónRegistrarse
Advance test clock POSTGet test clock state GETProcess pending billing POST
DocumentaciónRecursosConstruir con AIAPI ReferenceWebhooks

Process pending billing

Discovers customers due for billing at the org's current (simulated) time and enqueues a billing cycle for each — renewals, expired trials, pending cancellations. Enqueueing is asynchronous. Sandbox only.

Get test clock state GET

Returns the organization's current test clock state. Sandbox only.

Get transaction GET

Retrieve a single payment transaction by its public ID, including provider details.

POST
/test-clock/process-billing

Authorization

ApiKeyAuth
x-api-key<token>

In: header

Response Body

application/json

application/json

application/json

curl -X POST "https://commet.co/api/v1/test-clock/process-billing"

Discovers customers due for billing at the org's current (simulated) time and enqueues a billing cycle for each — renewals, expired trials, pending cancellations. Enqueueing is asynchronous. Sandbox only.

{
  "success": true,
  "data": {
    "livemode": true,
    "customersFound": 0,
    "enqueued": 0,
    "failed": 0
  }
}
{
  "success": false,
  "error": {
    "type": "validation_error",
    "code": "string",
    "message": "string",
    "doc_url": "string",
    "param": "string"
  }
}
{
  "success": false,
  "error": {
    "type": "validation_error",
    "code": "string",
    "message": "string",
    "doc_url": "string",
    "param": "string"
  }
}