WorkMagic Extras API
The Extras API from WorkMagic, for extras.
The Extras API from WorkMagic, for extras.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/workmagic-io:workmagic-io-extras-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
version: 1.0.0
title: Developer Docs Extras API
description: Developer Docs.
servers:
- url: https://store-api.workmagic.io
tags:
- name: Extras
paths:
/api/extras:
post:
operationId: postextras
summary: Upload imported orders
tags:
- Extras
description: Submit aggregated order data at the Date x Geo granularity. This data supplements your main store orders and is used only for Lift Test and MMM—not MTA. It's intended for sources like offline retail or subscription orders not tracked in your primary system. Latest uploads overwrite previous data with the same unique key (sales_platform, date_type, date_code, geo_type, geo_code, order_app_name).
requestBody:
content:
application/json:
schema:
type: object
required:
- extras
properties:
extras:
type: array
minItems: 0
maxItems: 100
items:
type: object
required:
- date_type
- date_code
- geo_type
- geo_code
- sales_platform
- sales_platform_type
- country_code
- orders
- sales
properties:
date_type:
type: string
enum:
- WEEKLY
- DAILY
description: 'The time aggregation level of the data record. Priority: High. Usage: Used to determine grouping level.'
example: DAILY
date_code:
type: string
pattern: \d\d\d\d-\d\d-\d\d
description: 'The specific date representing the data period. For WEEKLY date type, use the start date of the week (e.g., Monday). The system will evenly distribute the aggregated weekly data across each day of that week. Priority: High. Usage: Used to filter or join time-based metrics.'
example: '2025-01-01'
geo_type:
type: string
enum:
- DMA
- ZIP
- STATE
- REGION
- CITY
- IP
description: 'The geographic granularity of the data. Priority: High. Usage: Determines spatial segmentation in lift test.'
example: DMA
geo_code:
type: string
description: 'The geographic identifier code, matched to the geo_type. Priority: High. Usage: Enables grouping by location.'
example: '501'
geo_name:
type: string
description: 'Human-readable name for the geographic regions. Priority: Medium. Usage: Improves readability in dashboards.'
example: NEW YORK
sales_platform:
type: string
description: 'The name of the platform where the sale occurred (e.g., Shopify, Amazon). If not platform-specific, use "Online Store" for PRIMARY sales_platform_type or "Retail" for SECONDARY. Priority: High. Usage: Segmentation of sales data by platform.'
example: walmart
sales_platform_type:
type: string
enum:
- PRIMARY
- SECONDARY
description: 'Specifies whether the sales occurred on a direct-to-consumer (DTC) or non-DTC platform. Use "PRIMARY" for DTC channels where marketing directly drives purchases. Use "SECONDARY" for indirect channels, such as marketplaces, where marketing may influence sales through halo effects. Priority: High. Usage: Controls the attribution logic used in lift tests—PRIMARY enables direct incremental lift analysis, while SECONDARY supports halo effect evaluation.'
example: PRIMARY
order_app_name:
type: string
description: 'The name of the order application. Priority: Low. Usage: When provided, serves as an additional dimension in the unique key for data segmentation by application source.'
example: MyApp
country_code:
type: string
pattern: '[A-Z]{2}'
description: 'The country code where sales occurred in ISO 3166-1 alpha-2 format. Priority: High. Usage: Used to identify the country where the lift test should be conducted.'
example: CA
orders:
type: number
description: 'The number of orders placed. Priority: High. Usage: Used for calculating incremental orders in lift test, and predict orders in MMM.'
example: 10
sales:
type: number
description: 'The total value of sales (in your store currency). Priority: High. Usage: Used for calculating incremental sales in lift test, and predict sales in MMM.'
example: 10.01
profit:
type: number
description: 'The profit earned after subtracting costs (in your store currency). Priority: Medium. Usage: Profit prediction in MMM.'
example: 10.01
new_customer_orders:
type: number
description: 'The number of orders placed by new customers. Priority: Medium. Usage: Used for calculating incremental new customer orders in lift test, and predict new customer orders in MMM.'
example: 10
new_customer_sales:
type: number
description: 'The total value of sales placed by new customers (in your store currency). Priority: Medium. Usage: Used for calculating incremental new customer sales in lift test, and predict new customer sales in MMM.'
example: 10.01
extended_metrics:
type: object
description: 'To meet analytical requirements, define new metric keys and upload corresponding values. Only base metrics (non-computed, and can be aggregated by summation) are permitted. If computed metrics are needed, use the Custom Metrics feature on the WorkMagic dashboards to implement. Prior to uploading, metric keys and value types must be set upon. Please contact your account manager for assistance with configuration. Priority: Low. Usage: Displayed across various dashboards within WorkMagic, supporting existing multi-dimensional analysis. Further flexible customisation for personalised analytical requirements can be achieved through Custom metrics and Custom dashboard configurations.'
additionalProperties:
type: number
example:
ad_spend_7day: 10.01
oneOf:
- title: US ZIP
properties:
geo_type:
enum:
- ZIP
country_code:
enum:
- US
geo_code:
type: string
pattern: ^\d{5}$
description: US ZIP code must be exactly 5 digits (e.g., 12345)
required:
- geo_type
- geo_code
- country_code
- title: US DMA
properties:
geo_type:
enum:
- DMA
country_code:
enum:
- US
geo_code:
type: string
pattern: ^\d{3}$
description: US DMA code must be exactly 3 digits (e.g., 501)
required:
- geo_type
- geo_code
- country_code
- title: NON-US ZIP/DMA
properties:
geo_type:
enum:
- ZIP
- DMA
country_code:
type: string
pattern: '[A-Z]{2}'
not:
enum:
- US
geo_code:
type: string
required:
- geo_type
- geo_code
- country_code
- title: OTHERS
properties:
geo_type:
enum:
- STATE
- REGION
- CITY
- IP
geo_code:
type: string
required:
- geo_type
- geo_code
description: Up to 100 extras per request.
required: true
security:
- apiKey: []
responses:
'200':
description: Default Response
content:
application/json:
schema:
type: object
additionalProperties: true
get:
operationId: getextras
summary: View imported orders
tags:
- Extras
description: View imported orders.
parameters:
- schema:
type: number
default: 10
maximum: 100
in: query
name: limit
required: false
description: The maximum number of results to show.
security:
- apiKey: []
responses:
'200':
description: Default Response
content:
application/json:
schema:
type: object
required:
- extras
properties:
extras:
type: array
minItems: 0
maxItems: 100
items:
type: object
required:
- date_type
- date_code
- geo_type
- geo_code
- sales_platform
- sales_platform_type
- country_code
- orders
- sales
properties:
date_type:
type: string
enum:
- WEEKLY
- DAILY
description: 'The time aggregation level of the data record. Priority: High. Usage: Used to determine grouping level.'
example: DAILY
date_code:
type: string
pattern: \d\d\d\d-\d\d-\d\d
description: 'The specific date representing the data period. For WEEKLY date type, use the start date of the week (e.g., Monday). The system will evenly distribute the aggregated weekly data across each day of that week. Priority: High. Usage: Used to filter or join time-based metrics.'
example: '2025-01-01'
geo_type:
type: string
enum:
- DMA
- ZIP
- STATE
- REGION
- CITY
- IP
description: 'The geographic granularity of the data. Priority: High. Usage: Determines spatial segmentation in lift test.'
example: DMA
geo_code:
type: string
description: 'The geographic identifier code, matched to the geo_type. Priority: High. Usage: Enables grouping by location.'
example: '501'
geo_name:
type: string
description: 'Human-readable name for the geographic regions. Priority: Medium. Usage: Improves readability in dashboards.'
example: NEW YORK
sales_platform:
type: string
description: 'The name of the platform where the sale occurred (e.g., Shopify, Amazon). If not platform-specific, use "Online Store" for PRIMARY sales_platform_type or "Retail" for SECONDARY. Priority: High. Usage: Segmentation of sales data by platform.'
example: walmart
sales_platform_type:
type: string
enum:
- PRIMARY
- SECONDARY
description: 'Specifies whether the sales occurred on a direct-to-consumer (DTC) or non-DTC platform. Use "PRIMARY" for DTC channels where marketing directly drives purchases. Use "SECONDARY" for indirect channels, such as marketplaces, where marketing may influence sales through halo effects. Priority: High. Usage: Controls the attribution logic used in lift tests—PRIMARY enables direct incremental lift analysis, while SECONDARY supports halo effect evaluation.'
example: PRIMARY
order_app_name:
type: string
description: 'The name of the order application. Priority: Low. Usage: When provided, serves as an additional dimension in the unique key for data segmentation by application source.'
example: MyApp
country_code:
type: string
pattern: '[A-Z]{2}'
description: 'The country code where sales occurred in ISO 3166-1 alpha-2 format. Priority: High. Usage: Used to identify the country where the lift test should be conducted.'
example: CA
orders:
type: number
description: 'The number of orders placed. Priority: High. Usage: Used for calculating incremental orders in lift test, and predict orders in MMM.'
example: 10
sales:
type: number
description: 'The total value of sales (in your store currency). Priority: High. Usage: Used for calculating incremental sales in lift test, and predict sales in MMM.'
example: 10.01
profit:
type: number
description: 'The profit earned after subtracting costs (in your store currency). Priority: Medium. Usage: Profit prediction in MMM.'
example: 10.01
new_customer_orders:
type: number
description: 'The number of orders placed by new customers. Priority: Medium. Usage: Used for calculating incremental new customer orders in lift test, and predict new customer orders in MMM.'
example: 10
new_customer_sales:
type: number
description: 'The total value of sales placed by new customers (in your store currency). Priority: Medium. Usage: Used for calculating incremental new customer sales in lift test, and predict new customer sales in MMM.'
example: 10.01
extended_metrics:
type: object
description: 'To meet analytical requirements, define new metric keys and upload corresponding values. Only base metrics (non-computed, and can be aggregated by summation) are permitted. If computed metrics are needed, use the Custom Metrics feature on the WorkMagic dashboards to implement. Prior to uploading, metric keys and value types must be set upon. Please contact your account manager for assistance with configuration. Priority: Low. Usage: Displayed across various dashboards within WorkMagic, supporting existing multi-dimensional analysis. Further flexible customisation for personalised analytical requirements can be achieved through Custom metrics and Custom dashboard configurations.'
additionalProperties:
type: number
example:
ad_spend_7day: 10.01
oneOf:
- title: US ZIP
properties:
geo_type:
enum:
- ZIP
country_code:
enum:
- US
geo_code:
type: string
pattern: ^\d{5}$
description: US ZIP code must be exactly 5 digits (e.g., 12345)
required:
- geo_type
- geo_code
- country_code
- title: US DMA
properties:
geo_type:
enum:
- DMA
country_code:
enum:
- US
geo_code:
type: string
pattern: ^\d{3}$
description: US DMA code must be exactly 3 digits (e.g., 501)
required:
- geo_type
- geo_code
- country_code
- title: NON-US ZIP/DMA
properties:
geo_type:
enum:
- ZIP
- DMA
country_code:
type: string
pattern: '[A-Z]{2}'
not:
enum:
- US
geo_code:
type: string
required:
- geo_type
- geo_code
- country_code
- title: OTHERS
properties:
geo_type:
enum:
- STATE
- REGION
- CITY
- IP
geo_code:
type: string
required:
- geo_type
- geo_code
description: Up to 100 extras per request.
components:
securitySchemes:
apiKey:
in: header
type: apiKey
name: X-API-KEY
externalDocs:
url: https://help.workmagic.io/
description: Help Center
x-provenance:
method: searched
source: https://developer.workmagic.io/reference
harvested: '2026-11-28'
tool: harvest-readme-openapi.py
note: Assembled verbatim from the OpenAPI definition ReadMe embeds in each operation page of the provider's developer portal; paths and components merged by API title, nothing authored.
assembled_from:
- https://developer.workmagic.io/reference/getapiorders.md
- https://developer.workmagic.io/reference/getenrichorders.md
- https://developer.workmagic.io/reference/getextras.md
- https://developer.workmagic.io/reference/postapiorders.md
- https://developer.workmagic.io/reference/postenrichorders.md
- https://developer.workmagic.io/reference/postextras.md
merge:
pages: 6
deduped: 5
conflicts_kept_first: 0