WorkMagic Enrich Orders API

The Enrich Orders API from WorkMagic, for enrich orders.

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).

Operations 2

POST /api/enrich/orders Upload enrich orders #
GET /api/enrich/orders View enrich orders #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • 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.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/workmagic-io:workmagic-io-enrich-orders-api"
All apis
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.

Get an API 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 Specification

workmagic-io-enrich-orders-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  version: 1.0.0
  title: Developer Docs Enrich Orders API
  description: Developer Docs.
servers:
- url: https://store-api.workmagic.io
tags:
- name: Enrich Orders
paths:
  /api/enrich/orders:
    post:
      operationId: postenrichorders
      summary: Upload enrich orders
      tags:
      - Enrich Orders
      description: Enhance order data with custom details, such as adjusted sales and profit calculations. Use this API to override Shopify's data with your own values for more accurate reporting. If no data is sent, Shopify's values will be used.
      requestBody:
        content:
          application/json:
            schema:
              type: object
              required:
              - orders
              properties:
                orders:
                  type: array
                  minItems: 0
                  maxItems: 100
                  items:
                    type: object
                    required:
                    - id
                    - updated_at
                    properties:
                      id:
                        type: string
                        minLength: 1
                        maxLength: 100
                        description: 'Unique identifier of the order. Priority: High.'
                        example: 12295e26-36c9-457c-af57-4b20e7c58378
                      updated_at:
                        type: string
                        pattern: \d\d\d\d-\d\d-\d\dT\d\d:\d\d:\d\d(\.\d+)?([+-]\d\d:\d\d|Z)
                        description: 'Date and time the order was last modified, in ISO 8601 format. Priority: High. Usage: WorkMagic will update only the changed data based on order update time.'
                        example: '2025-01-01T00:00:00+00:00'
                      browser_ip:
                        type: string
                        description: 'The customer''s browser IP address. Priority: High. Usage: The IP is used as a probalistic signal for enhanced mode in MTA. IP is also used to calculate GEO pair in lift test.'
                        example: 216.191.105.146
                      financial_status:
                        type: string
                        enum:
                        - pending
                        - paid
                        - refunded
                        - voided
                        description: 'Payment status of the order. WorkMagic''s orders and sales metrics include all orders sent via the Orders API, regardless of financial_status. If no financial_status is provided, the order defaults to "paid." Priority: Low. Usage: Audience insights and audience segment.'
                        example: paid
                      total_price:
                        type: number
                        description: 'The original total amount paid by the customer when placing the order, composed of all line item prices, discounts, shipping and taxes. This value should be provided in the store''s currency. Priority: High. Usage: "Sales" metrics.'
                        example: 10.01
                      current_total_price:
                        type: number
                        description: 'The adjusted total amount paid by the customer for the order, reflecting any edits, returns, or refunds. This value should be provided in the store''s currency. Priority: High. Usage: "Net sales" metrics.'
                        example: 10.01
                      shipping_address:
                        type: object
                        default: {}
                        properties:
                          zip:
                            type: string
                            description: 'Postal code of the shipping address. Priority: High. Usage: Calculate GEO pair in lift test. Recommended to pair with country_code for accurate location mapping.'
                            example: T0E 0M0
                          city:
                            type: string
                            description: 'City of the shipping address. Priority: Low. Usage: Calculate top cities in audience insights.'
                            example: Drayton Valley
                          country:
                            type: string
                            description: 'Country of the shipping address. Priority: Low. Usage: Calculate top countries in audience insights.'
                            example: Canada
                          country_code:
                            type: string
                            pattern: '[A-Z]{2}'
                            default: US
                            description: 'Two-letter country code of the shipping address in ISO 3166-1 alpha-2 format. Priority: Medium. Usage: Calculate top countries in audience insights and to enable accurate ZIP-to-geo mapping for multi-country lift test. Defaults to US if not provided.'
                            example: CA
                          province_code:
                            type: string
                            description: 'State or province of the shipping address. Priority: High. Usage: Calculate GEO pair in lift test. Recommended to pair with country_code for accurate location mapping.'
                            example: KY
                          province:
                            type: string
                            description: 'The name of the region (for example, province, state, or prefecture) of the shipping address. Priority: Low.'
                            example: Kentucky
                      extensions:
                        type: object
                        default: {}
                        properties:
                          sales_platform:
                            type: string
                            enum:
                            - amazon
                            - tiktok
                            - shopify
                            default: shopify
                            description: Sales channel for the order. If left blank, it defaults to Shopify.
                            example: amazon
                          order_net_profit:
                            type: number
                            description: 'Order net profit. Priority: High. Usage: "Net profit" metrics.'
                            example: 10.01
                          is_new_customer_order:
                            type: boolean
                            description: 'Indicates whether the order was placed by a new customer. WorkMagic will caculate new customer order based on customer_id if this field is not provided. Priority: Medium. Usage: Supplementary information used to calculate the "New customer orders" metric.'
                            example: true
                          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
                  description: Up to 100 orders per request.
        required: true
      security:
      - apiKey: []
      responses:
        '200':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
    get:
      operationId: getenrichorders
      summary: View enrich orders
      tags:
      - Enrich Orders
      description: View enrich orders.
      parameters:
      - schema:
          type: number
          default: 10
          maximum: 100
        in: query
        name: limit
        required: false
        description: The maximum number of results to show.
      - schema:
          type: string
        example: 12295e26-36c9-457c-af57-4b20e7c58378,12295e26-36c9-457c-af57-4b20e7c58379
        in: query
        name: ids
        required: false
        description: Retrieve only orders specified by a comma-separated list of order ids.
      - schema:
          type: string
          pattern: \d\d\d\d-\d\d-\d\dT\d\d:\d\d:\d\d(\.\d+)?([+-]\d\d:\d\d|Z)
        example: '2025-01-01T00:00:00+00:00'
        in: query
        name: updated_at_min
        required: false
        description: Show orders updated at or after this time, in ISO 8601 format.
      - schema:
          type: string
          pattern: \d\d\d\d-\d\d-\d\dT\d\d:\d\d:\d\d(\.\d+)?([+-]\d\d:\d\d|Z)
        example: '2025-01-01T00:00:00+00:00'
        in: query
        name: updated_at_max
        required: false
        description: Show orders updated at or before this time, in ISO 8601 format.
      - schema:
          type: string
          enum:
          - amazon
          - tiktok
          - shopify
        example: amazon
        in: query
        name: extensions.sales_platform
        required: false
        description: Show orders from this sales platform, optional.
      security:
      - apiKey: []
      responses:
        '200':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                required:
                - orders
                properties:
                  orders:
                    type: array
                    minItems: 0
                    maxItems: 100
                    items:
                      type: object
                      required:
                      - id
                      - updated_at
                      properties:
                        id:
                          type: string
                          minLength: 1
                          maxLength: 100
                          description: 'Unique identifier of the order. Priority: High.'
                          example: 12295e26-36c9-457c-af57-4b20e7c58378
                        updated_at:
                          type: string
                          pattern: \d\d\d\d-\d\d-\d\dT\d\d:\d\d:\d\d(\.\d+)?([+-]\d\d:\d\d|Z)
                          description: 'Date and time the order was last modified, in ISO 8601 format. Priority: High. Usage: WorkMagic will update only the changed data based on order update time.'
                          example: '2025-01-01T00:00:00+00:00'
                        browser_ip:
                          type: string
                          description: 'The customer''s browser IP address. Priority: High. Usage: The IP is used as a probalistic signal for enhanced mode in MTA. IP is also used to calculate GEO pair in lift test.'
                          example: 216.191.105.146
                        financial_status:
                          type: string
                          enum:
                          - pending
                          - paid
                          - refunded
                          - voided
                          description: 'Payment status of the order. WorkMagic''s orders and sales metrics include all orders sent via the Orders API, regardless of financial_status. If no financial_status is provided, the order defaults to "paid." Priority: Low. Usage: Audience insights and audience segment.'
                          example: paid
                        total_price:
                          type: number
                          description: 'The original total amount paid by the customer when placing the order, composed of all line item prices, discounts, shipping and taxes. This value should be provided in the store''s currency. Priority: High. Usage: "Sales" metrics.'
                          example: 10.01
                        current_total_price:
                          type: number
                          description: 'The adjusted total amount paid by the customer for the order, reflecting any edits, returns, or refunds. This value should be provided in the store''s currency. Priority: High. Usage: "Net sales" metrics.'
                          example: 10.01
                        shipping_address:
                          type: object
                          default: {}
                          properties:
                            zip:
                              type: string
                              description: 'Postal code of the shipping address. Priority: High. Usage: Calculate GEO pair in lift test. Recommended to pair with country_code for accurate location mapping.'
                              example: T0E 0M0
                            city:
                              type: string
                              description: 'City of the shipping address. Priority: Low. Usage: Calculate top cities in audience insights.'
                              example: Drayton Valley
                            country:
                              type: string
                              description: 'Country of the shipping address. Priority: Low. Usage: Calculate top countries in audience insights.'
                              example: Canada
                            country_code:
                              type: string
                              pattern: '[A-Z]{2}'
                              default: US
                              description: 'Two-letter country code of the shipping address in ISO 3166-1 alpha-2 format. Priority: Medium. Usage: Calculate top countries in audience insights and to enable accurate ZIP-to-geo mapping for multi-country lift test. Defaults to US if not provided.'
                              example: CA
                            province_code:
                              type: string
                              description: 'State or province of the shipping address. Priority: High. Usage: Calculate GEO pair in lift test. Recommended to pair with country_code for accurate location mapping.'
                              example: KY
                            province:
                              type: string
                              description: 'The name of the region (for example, province, state, or prefecture) of the shipping address. Priority: Low.'
                              example: Kentucky
                        extensions:
                          type: object
                          default: {}
                          properties:
                            sales_platform:
                              type: string
                              enum:
                              - amazon
                              - tiktok
                              - shopify
                              default: shopify
                              description: Sales channel for the order. If left blank, it defaults to Shopify.
                              example: amazon
                            order_net_profit:
                              type: number
                              description: 'Order net profit. Priority: High. Usage: "Net profit" metrics.'
                              example: 10.01
                            is_new_customer_order:
                              type: boolean
                              description: 'Indicates whether the order was placed by a new customer. WorkMagic will caculate new customer order based on customer_id if this field is not provided. Priority: Medium. Usage: Supplementary information used to calculate the "New customer orders" metric.'
                              example: true
                            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
                    description: Up to 100 orders 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