{
  "openapi": "3.0.1",
  "info": {
    "title": "Auto Pricing Engine for Shopify & Amazon",
    "description": "This actor is a multi-currency pricing engine designed for e-commerce businesses.\n\nA powerful multi-currency pricing engine for Shopify and Amazon sellers. Convert prices using FX rates, apply margins, enforce minimum price floors, and optimize pricing automatically across markets.",
    "version": "1.0",
    "x-build-id": "58nVrHVinTh8QGW95"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/unlimiteddots~auto-pricing-engine-shopify-amazon/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-unlimiteddots-auto-pricing-engine-shopify-amazon",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/unlimiteddots~auto-pricing-engine-shopify-amazon/runs": {
      "post": {
        "operationId": "runs-sync-unlimiteddots-auto-pricing-engine-shopify-amazon",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/unlimiteddots~auto-pricing-engine-shopify-amazon/run-sync": {
      "post": {
        "operationId": "run-sync-unlimiteddots-auto-pricing-engine-shopify-amazon",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "endpoint": {
            "title": "Endpoint to execute",
            "enum": [
              "health",
              "symbols",
              "latest",
              "date",
              "timeseries",
              "convert",
              "fluctuation",
              "validate-rules",
              "preview-price",
              "bulk-convert",
              "shopify-sync"
            ],
            "type": "string",
            "description": "Select which API endpoint behavior to run with this input.",
            "default": "bulk-convert"
          },
          "serveApi": {
            "title": "Run as API server",
            "type": "boolean",
            "description": "When enabled, the actor starts an HTTP server and waits for requests instead of executing a single endpoint and exiting.",
            "default": false
          },
          "requestTimeoutMs": {
            "title": "Network timeout (ms)",
            "type": "integer",
            "description": "Maximum wait time for upstream and webhook calls.",
            "default": 30000
          },
          "disableCharging": {
            "title": "Disable charging (local dev)",
            "type": "boolean",
            "description": "When enabled, Actor.charge calls are skipped for local testing.",
            "default": false
          },
          "date": {
            "title": "Date for /:date endpoint",
            "type": "string",
            "description": "Date in YYYY-MM-DD format for GET /:date queries.",
            "default": "2026-04-16"
          },
          "base": {
            "title": "Base currency (default EUR)",
            "type": "string",
            "description": "Base currency used for price calculations and market expansion scenarios.",
            "default": "EUR"
          },
          "symbols": {
            "title": "Symbols filter",
            "type": "string",
            "description": "Comma-separated currency list (for latest/date/timeseries/fluctuation).",
            "default": "USD,GBP"
          },
          "places": {
            "title": "Decimal places",
            "type": "integer",
            "description": "Optional output precision for supported upstream endpoints.",
            "default": 2
          },
          "amount": {
            "title": "Amount",
            "type": "number",
            "description": "Amount used by latest/date/timeseries/convert/fluctuation endpoints.",
            "default": 1
          },
          "callback": {
            "title": "JSONP callback",
            "type": "string",
            "description": "Optional callback parameter for upstream-compatible requests."
          },
          "start_date": {
            "title": "Start date",
            "type": "string",
            "description": "Start date in YYYY-MM-DD format (timeseries/fluctuation)."
          },
          "end_date": {
            "title": "End date",
            "type": "string",
            "description": "End date in YYYY-MM-DD format (timeseries/fluctuation)."
          },
          "from": {
            "title": "From currency",
            "type": "string",
            "description": "Source currency for GET /convert."
          },
          "to": {
            "title": "To currency",
            "type": "string",
            "description": "Destination currency for GET /convert."
          },
          "target": {
            "title": "Single target currency",
            "type": "string",
            "description": "Single destination currency for preview/bulk flows."
          },
          "targets": {
            "title": "Target market currencies",
            "type": "array",
            "description": "Destination currencies for international pricing rollout.",
            "items": {
              "type": "string"
            },
            "default": [
              "USD",
              "GBP"
            ]
          },
          "price": {
            "title": "Single product price",
            "type": "number",
            "description": "Source price used by POST /preview-price.",
            "default": 49
          },
          "currency": {
            "title": "Shop currency",
            "type": "string",
            "description": "Target currency for POST /shopify-sync.",
            "default": "EUR"
          },
          "mode": {
            "title": "Shopify sync mode",
            "enum": [
              "dry_run",
              "live"
            ],
            "type": "string",
            "description": "Choose dry_run to simulate or live to publish updates.",
            "default": "dry_run"
          },
          "products": {
            "title": "Products list",
            "type": "array",
            "description": "Product items for bulk-convert/shopify-sync payloads.",
            "items": {
              "type": "object"
            },
            "default": [
              {
                "id": "p1",
                "price": 10,
                "shopify_product_id": 1234567890,
                "variant_id": 9876543210
              }
            ]
          },
          "pricing_rules": {
            "title": "Pricing optimization rules (margin, rounding, price floor)",
            "type": "object",
            "description": "Business rules to protect profit and standardize localized price presentation.",
            "default": {
              "margin_percent": 5,
              "rounding_rules": {
                "USD": {
                  "type": "0.99"
                }
              },
              "price_floor": {
                "enabled": true,
                "values": {
                  "USD": 20
                },
                "fallback": "base"
              }
            }
          },
          "webhook_url": {
            "title": "Webhook URL",
            "type": "string",
            "description": "Optional callback URL to receive computed POST /bulk-convert payloads."
          },
          "shopify": {
            "title": "Shopify credentials",
            "type": "object",
            "description": "Shopify store settings used by POST /shopify-sync live mode.",
            "default": {
              "shop_domain": "your-store.myshopify.com",
              "access_token": ""
            }
          },
          "shopifyApiVersion": {
            "title": "Shopify API Version",
            "type": "string",
            "description": "Shopify Admin API version for live catalog price updates.",
            "default": "2026-01"
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}