> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.ocpplab.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.ocpplab.com/_mcp/server.

# Get bulk charger-create job status

GET https://host.com/ocpp/locations/{location_id}/chargers/jobs/{job_id}

Lightweight poll endpoint for the async bulk-create flow. Returns the job's current state (PENDING / PROVISIONING / READY / FAILED), the workflow run id for debugging, `error` when the workflow terminated unsuccessfully, and `results` with per-charger success and failure reports once READY.

Reference: https://docs.ocpplab.com/api-reference/ocpplab-gateway-api/location-operations/location-chargers/get-bulk-job

## OpenAPI Specification

```yaml
openapi: 3.1.0
info:
  title: OCPPLab SDK
  version: 1.0.0
paths:
  /ocpp/locations/{location_id}/chargers/jobs/{job_id}:
    get:
      operationId: get-bulk-job
      summary: Get bulk charger-create job status
      description: >-
        Lightweight poll endpoint for the async bulk-create flow. Returns the
        job's current state (PENDING / PROVISIONING / READY / FAILED), the
        workflow run id for debugging, `error` when the workflow terminated
        unsuccessfully, and `results` with per-charger success and failure
        reports once READY.
      tags:
        - subpackage_locationChargers
      parameters:
        - name: location_id
          in: path
          description: Internal location identifier returned by the location CRUD API.
          required: true
          schema:
            type: string
        - name: job_id
          in: path
          required: true
          schema:
            type: string
        - name: Authorization
          in: header
          description: Bearer authentication
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Status retrieved
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LocationChargerBulkStatusResponse'
        '401':
          description: Missing or invalid bearer token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HttpErrorResponse'
        '403':
          description: Insufficient permissions or missing required claims
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HttpErrorResponse'
        '404':
          description: Job not found
          content:
            application/json:
              schema:
                description: Any type
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HttpErrorResponse'
servers:
  - url: https://host.com
    description: Default
components:
  schemas:
    ChargerProvisioningStatus:
      type: string
      enum:
        - PENDING
        - PROVISIONING
        - READY
        - FAILED
      description: |-
        Terminal + in-flight states for async charger provisioning.

        Mirrors ``CpoProvisioningStatus`` so callers observe the same shape
        for both durable flows. ``PENDING`` is the transient state between
        the 202 response and the workflow's first webhook.
      title: ChargerProvisioningStatus
    ProvisioningErrorDetail:
      type: object
      properties:
        code:
          type: string
          description: >-
            Stable machine-readable identifier for the failure class. Safe to
            branch on. Known codes grow over time; unknown codes should be
            treated as `unknown_error`.
        message:
          type: string
          description: >-
            Human-readable explanation of what went wrong. Trimmed to ~2000
            chars so DB writes stay predictable.
        step:
          type:
            - string
            - 'null'
          description: >-
            Durable-workflow step name that failed, when the failure handler can
            attribute it. Example: `charger-1-0-02`.
        param:
          type:
            - string
            - 'null'
          description: >-
            Request parameter responsible for the failure, when applicable (e.g.
            an invalid `ocpp_version` override).
        doc_url:
          type:
            - string
            - 'null'
          description: URL pointing at a reference page for this failure code.
        retryable:
          type: boolean
          default: false
          description: >-
            True when a fresh request (same payload) has a reasonable chance of
            succeeding. False for deterministic validation-type failures.
      required:
        - code
        - message
      description: >-
        Structured failure detail returned alongside a FAILED provisioning
        status.


        Populated on any async-provisioning status endpoint (CPO bundle, bulk

        locations, charger deployment) when the final state is ``FAILED``.

        Designed so clients can branch on ``code`` programmatically instead of

        regex-matching a string, and so ``retryable`` tells them whether a

        fresh attempt is likely to help.
      title: ProvisioningErrorDetail
    LocationChargerBulkStatusResponse:
      type: object
      properties:
        job_id:
          type: string
        job_type:
          type:
            - string
            - 'null'
        status:
          oneOf:
            - $ref: '#/components/schemas/ChargerProvisioningStatus'
            - type: 'null'
        workflow_run_id:
          type:
            - string
            - 'null'
        error:
          oneOf:
            - $ref: '#/components/schemas/ProvisioningErrorDetail'
            - type: 'null'
          description: >-
            Populated when status=FAILED. Clients can branch on `error.code` and
            use `error.retryable` to decide whether to re-submit.
        results:
          type:
            - object
            - 'null'
          additionalProperties:
            description: Any type
        provisioned_at:
          type:
            - string
            - 'null'
          format: date-time
      required:
        - job_id
      description: |-
        Lightweight poll response for the bulk-charger-create status endpoint.

        ``results`` is populated on READY with per-charger success and
        failure lists — the same shape the old synchronous endpoint
        returned, now delivered asynchronously.
      title: LocationChargerBulkStatusResponse
    HttpErrorResponse:
      type: object
      properties:
        detail:
          type: string
          description: Human-readable error message returned by the API.
      required:
        - detail
      description: Standard HTTP error payload returned by the API.
      title: HttpErrorResponse
    ValidationErrorLocItems:
      oneOf:
        - type: string
        - type: integer
      title: ValidationErrorLocItems
    ValidationErrorCtx:
      type: object
      properties: {}
      title: ValidationErrorCtx
    ValidationError:
      type: object
      properties:
        loc:
          type: array
          items:
            $ref: '#/components/schemas/ValidationErrorLocItems'
        msg:
          type: string
        type:
          type: string
        input:
          description: Any type
        ctx:
          $ref: '#/components/schemas/ValidationErrorCtx'
      required:
        - loc
        - msg
        - type
      title: ValidationError
    HTTPValidationError:
      type: object
      properties:
        detail:
          type: array
          items:
            $ref: '#/components/schemas/ValidationError'
      title: HTTPValidationError
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer

```

## Examples



**Response**

```json
{
  "job_id": "4f6b5e0e-7d1a-4b0a-9c2e-abc123456789",
  "job_type": "bulk_charger_create",
  "status": "READY",
  "workflow_run_id": "wfr_abc123",
  "results": {
    "created": [
      {
        "charger_id": "dep-123",
        "identity": "CP-BULK-001"
      },
      {
        "charger_id": "dep-124",
        "identity": "CP-BULK-002"
      }
    ],
    "created_count": 2,
    "failed": [
      {
        "error": "Duplicate charger identity",
        "identity": "CP-BULK-003"
      }
    ],
    "failed_count": 1
  },
  "provisioned_at": "2026-04-20T15:45:00Z"
}
```

**SDK Code**

```python
import requests

url = "https://host.com/ocpp/locations/4090477f-a416-4515-a302-97aa344a0a2a/chargers/jobs/job_id"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.json())
```

```javascript
const url = 'https://host.com/ocpp/locations/4090477f-a416-4515-a302-97aa344a0a2a/chargers/jobs/job_id';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://host.com/ocpp/locations/4090477f-a416-4515-a302-97aa344a0a2a/chargers/jobs/job_id"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("Authorization", "Bearer <token>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://host.com/ocpp/locations/4090477f-a416-4515-a302-97aa344a0a2a/chargers/jobs/job_id")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://host.com/ocpp/locations/4090477f-a416-4515-a302-97aa344a0a2a/chargers/jobs/job_id")
  .header("Authorization", "Bearer <token>")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://host.com/ocpp/locations/4090477f-a416-4515-a302-97aa344a0a2a/chargers/jobs/job_id', [
  'headers' => [
    'Authorization' => 'Bearer <token>',
  ],
]);

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("https://host.com/ocpp/locations/4090477f-a416-4515-a302-97aa344a0a2a/chargers/jobs/job_id");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Bearer <token>");
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = ["Authorization": "Bearer <token>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://host.com/ocpp/locations/4090477f-a416-4515-a302-97aa344a0a2a/chargers/jobs/job_id")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```