---
title: "AmazonCapiExport: Create job"
method: POST
path: "/job/amazon-capi-export"
tags: ["Jobs"]
---

# AmazonCapiExport: Create job

`POST /job/amazon-capi-export`

Create a AmazonCapiExport job

## Query parameters

- `account_id` string

## Response `201`

AmazonCapiExport Job

- object
  - `_meta` object — Response Metadata
  - `data` object — Response Payload
    - `account_id` string — Lytics Account ID
    - `anomaly_rule` ModelsAnomalyRuleResp
      - `aid` integer
      - `checks` ModelsRuleCheckConfigReq[]
        - `allowable_violations` integer
        - `interval` string
        - `lookback_count` integer
        - `max_threshold` integer
        - `metric_type` string
        - `min_threshold` integer
        - `type` string
        - `variance_pct` number
      - `created` string
      - `id` string
      - `subject_id` string
      - `subject_type` string
      - `updated` string
    - `api_token_auth_id` string — this is set when work is create using access token
    - `auth_ids` string[] — Authorization IDs associated with the Job
    - `config` object, required — Job configuration, unique per-workflow
      - `ad_storage_consent` '' | 'GRANTED' | 'DENIED' — Amazon ad storage consent status. Required for EU countries.
      - `advertiser_id` string, required — Enter your Amazon Ads Advertiser ID (DSP Advertiser ID)
      - `audience_events` 'enters_only' | 'exits_only' — Select which type of audience trigger events to send. By default both enters and exits will be sent.
      - `conversion_type` 'ADD_TO_SHOPPING_CART' | 'APPLICATION' | 'CHECKOUT' | 'CONTACT' | 'LEAD' | 'OFF_AMAZON_PURCHASES' | 'MOBILE_APP_FIRST_START' | 'PAGE_VIEW' | 'SEARCH' | 'SIGN_UP' | 'SUBSCRIBE' | 'OTHER', required — Select the Amazon conversion type for this event
      - `country_code` string — Select the 2 letter country code (ISO 3166-1 alpha-2). Required by Amazon for compliance.
      - `currency_code` 'AED' | 'AUD' | 'BRL' | 'CAD' | 'CNY' | 'EUR' | 'GBP' | 'INR' | 'JPY' | 'MXN' | 'SAR' | 'SEK' | 'SGD' | 'TRY' | 'USD' — Enter currency code, three letter code in ISO-4217 format. Only for OFF_AMAZON_PURCHASES. If not provided, "USD" will be used as default
      - `data_set_name` string — Optional: Event Dataset Name for organizing conversion definitions
      - `event_id` string — Select the Lytics user field that contains a unique event ID for deduplication
      - `event_name` string — Enter the name for the event. If not provided, events will be sent with **Lytics Audiences** name
      - `event_source` 'ANDROID' | 'FIRE_TV' | 'IOS' | 'MEASUREMENT_ATTRIBUTION_PARTNER' | 'OFFLINE' | 'WEBSITE' — Select the platform from which the event was sourced
      - `event_timestamp` string — Select the Lytics user field that contains the timestamp of the event. The timestamp must not be older than 21 days. If left empty, current timestamp will be used
      - `field_changes` string[] — Select up to 75 user fields to trigger user change events. For any user in the exported audience, if any of the selected field values change, then the user field change event will be sent to the Amazon Ads API.
      - `identifier_mapping` object[], required — Map Lytics user fields to Amazon Ads PII. We will hash (SHA256) the identifiers before we send them to Amazon Ads. You can also select a field that is already hashed.
      - `segment_ids` string[], required — Select the Lytics audiences that contains the users to export
      - `units_sold` string — Select the Lytics user field that contains the number of units sold. Only for OFF_AMAZON_PURCHASES
      - `user_data_consent` '' | 'GRANTED' | 'DENIED' — Amazon user data consent status. Required for EU countries.
      - `value` string — Select the Lytics user field that contains the value of the event
      - `withbackfill` boolean — Select this to immediately push users who currently exist in the selected Lytics audience. Deselecting will only push users as they leave or enter the audience
    - `created` string
    - `deleted` boolean — The Job has been deleted
    - `description` string — A user-defined description
    - `drop_events_during_quiet_window` boolean
    - `expires_at` string, date-time
    - `id` string — A Lytics-assigned, immutable unique ID for the Job
    - `meta` object — Extra meta data about the job
    - `monitoring` object — Inline monitoring config. On write: omit to keep, null to clear, or a config to set.
    - `name` string, required — A user-defined name
    - `quiet_period` integer
    - `quiet_time_of_day` string
    - `quiet_timezone` string
    - `sleep_until` string
    - `status` 'runnable' | 'sleeping' | 'paused' | 'completed' | 'fault' | 'failed' | 'killed' | 'deleted' | 'unknown' — The status of the job
    - `updated` string
    - `user_id` string — The user ID that created or updated the job
    - `workflow` string — The workflow slug
    - `workflow_id` string — The workflow ID
  - `request_id` string
  - `status` integer — HTTP Status Code

## Other responses

- `404` — Not Found
- `500` — Internal Server Error

---

[API](https://skmtc.net/lytics/apis/lytics-api.md) · [All operations](https://skmtc.net/lytics/apis/lytics-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/lytics/lytics-api/versions/366eeabcb6de/schema)
