Skip to main content
POST
/
jobs
/
{job_id}
/
confirm
Confirm a job
curl --request POST \
  --url https://api.togai.com/jobs/{job_id}/confirm \
  --header 'Authorization: Bearer <token>'
{
  "id": "<string>",
  "type": "PRICE_PLAN",
  "updatedAt": "2023-11-07T05:31:56Z",
  "status": "SCHEDULED",
  "totalJobEntries": 123,
  "pendingJobEntries": 123,
  "failedJobEntries": 123,
  "completedJobEntries": 123,
  "settledAt": "2023-11-07T05:31:56Z",
  "metadata": {}
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

job_id
string
required
Example:

"mig.20aUyEZSuYq.SoGbS"

Response

Response for get job status request

id
string
required
type
enum<string>
required
Available options:
PRICE_PLAN,
EVENT_CORRECTIONS,
BILL_RUN
updatedAt
string<date-time>
required
status
enum<string>
required
Available options:
SCHEDULED,
PENDING,
INITIALIZED,
WAITING_FOR_CONFIRMATION,
IN_PROGRESS,
COMPLETED,
FAILED,
CANCELLED
totalJobEntries
integer<int32>
required
pendingJobEntries
integer<int32>
required
failedJobEntries
integer<int32>
required
completedJobEntries
integer<int32>
required
settledAt
string<date-time>
metadata
object