Skip to main content

Create Job

POST 

/v2/jobs

Create a Job to export orders to a CSV file. Jobs automatically expire one week after creation. You must fetch the exported data before the jobs expire.

Request

Body

required
    data object
    filter string
    job_type string

    This represents the type of job. For example, order_export.

    type string

    This represents the type of object being returned. Always job.

Responses

OK

Schema
    data Job[]
  • Array [
  • id uuid

    A unique ID generated when a job is created

    type string

    This represents the type of object being returned. Always job.

    job_type string

    This represents the type of job. For example, order_export.

    status string

    The status of a job.

    • PENDING - Commerce has received the request but is currently busy processing other requests.
    • STARTED - Commerce has started processing the job.
    • SUCCESS - The job has successfully completed.
    • FAILED - The job has failed.
    error string

    A message describing the error that caused a job to fail.

    timestamps object

    The date and time a job is created/updated.

    created_at string

    The date and time a job is created.

    updated_at string

    The date and time a job is updated.

    links object

    Links are used to allow you to move between requests

    self string

    Single entities use a self parameter with a link to that specific resource.

    link object

    A link to the exported data.

    href string

    The publicly available URL for this CSV file that contains the exported data.

  • ]
Loading...