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.

POST
/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.

Authorization

ApiKeyAuth
x-api-key<token>

In: header

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/test-clock/process-billing"
{  "success": true,  "data": {    "customersFound": -9007199254740991,    "enqueued": -9007199254740991,    "failed": -9007199254740991,    "object": "test_clock",    "livemode": true  }}
{  "success": false,  "error": {    "type": "string",    "code": "string",    "message": "string",    "param": "string",    "details": null,    "doc_url": "string"  }}
{  "success": false,  "error": {    "type": "string",    "code": "string",    "message": "string",    "param": "string",    "details": null,    "doc_url": "string"  }}
{  "success": false,  "error": {    "type": "string",    "code": "string",    "message": "string",    "param": "string",    "details": null,    "doc_url": "string"  }}
{  "success": false,  "error": {    "type": "string",    "code": "string",    "message": "string",    "param": "string",    "details": null,    "doc_url": "string"  }}

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.