{
  "x402Version": 2,
  "id": 37045,
  "slug": "37045",
  "resource": "https://api.vextorium.com/v1/margin-calculator",
  "description": "Pricing calculator: from any two of cost, price, margin or markup it computes the rest, profit per unit and total, and the price with VAT. Avoids the classic margin vs markup confusion.",
  "type": "http",
  "serviceName": "Vextorium",
  "resourceType": "Market Data",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0xb9f06D2734B7E9D7b21B64C4D8b95bd774b71aCf",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "3000",
      "amountUsd": 0.003,
      "maxTimeoutSeconds": 300
    },
    {
      "scheme": "exact",
      "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
      "payTo": "HcjfmZLgWRZzwj4deEiS7pewc4KBYSw39mW5nTyt3pz2",
      "asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
      "amount": "3000",
      "amountUsd": 0.003,
      "maxTimeoutSeconds": 300
    },
    {
      "scheme": "exact",
      "network": "eip155:137",
      "payTo": "0xb9f06D2734B7E9D7b21B64C4D8b95bd774b71aCf",
      "asset": "0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359",
      "amount": "3000",
      "amountUsd": 0.003,
      "maxTimeoutSeconds": 300
    },
    {
      "scheme": "exact",
      "network": "eip155:10",
      "payTo": "0xb9f06D2734B7E9D7b21B64C4D8b95bd774b71aCf",
      "asset": "0x0b2C639c533813f4Aa9D7837CAf62653d097Ff85",
      "amount": "3000",
      "maxTimeoutSeconds": 604900
    },
    {
      "scheme": "exact",
      "network": "eip155:5042",
      "payTo": "0xb9f06D2734B7E9D7b21B64C4D8b95bd774b71aCf",
      "asset": "0x3600000000000000000000000000000000000000",
      "amount": "3000",
      "maxTimeoutSeconds": 604900
    }
  ],
  "outputSchema": {
    "properties": {
      "example": {
        "properties": {
          "cost": {
            "type": [
              "number",
              "null"
            ]
          },
          "margin_pct": {
            "type": [
              "number",
              "null"
            ]
          },
          "markup_pct": {
            "type": [
              "number",
              "null"
            ]
          },
          "note": {
            "type": [
              "string",
              "null"
            ]
          },
          "price_with_vat": {
            "type": [
              "number",
              "null"
            ]
          },
          "price_without_vat": {
            "type": [
              "number",
              "null"
            ]
          },
          "total_profit": {
            "type": [
              "number",
              "null"
            ]
          },
          "total_revenue_without_vat": {
            "type": [
              "number",
              "null"
            ]
          },
          "unit_profit": {
            "type": [
              "number",
              "null"
            ]
          },
          "units": {
            "type": [
              "number",
              "null"
            ]
          },
          "vat_pct": {
            "type": [
              "number",
              "null"
            ]
          }
        },
        "type": [
          "object",
          "null"
        ]
      },
      "type": {
        "type": "string"
      }
    },
    "required": [
      "type"
    ],
    "type": "object"
  },
  "extensions": {
    "bazaar": {
      "info": {
        "input": {
          "body": {
            "cost": 10,
            "markup_pct": 50,
            "units": 100,
            "vat_pct": 21
          },
          "bodyType": "json",
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "cost": 10,
            "margin_pct": 33.333,
            "markup_pct": 50,
            "note": "Margin = profit / price. Markup = profit / cost. A 50% markup is only a 33.3% margin.",
            "price_with_vat": 18.15,
            "price_without_vat": 15,
            "total_profit": 500,
            "total_revenue_without_vat": 1500,
            "unit_profit": 5,
            "units": 100,
            "vat_pct": 21
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "properties": {
                  "cost": {
                    "type": "number"
                  },
                  "margin_pct": {
                    "type": "number"
                  },
                  "markup_pct": {
                    "type": "number"
                  },
                  "price": {
                    "type": "number"
                  },
                  "units": {
                    "type": "number"
                  },
                  "vat_pct": {
                    "type": "number"
                  }
                },
                "required": []
              },
              "bodyType": {
                "enum": [
                  "json",
                  "form-data",
                  "text"
                ],
                "type": "string"
              },
              "method": {
                "enum": [
                  "POST"
                ],
                "type": "string"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method",
              "bodyType",
              "body"
            ],
            "type": "object"
          },
          "output": {
            "properties": {
              "example": {
                "properties": {
                  "cost": {
                    "type": [
                      "number",
                      "null"
                    ]
                  },
                  "margin_pct": {
                    "type": [
                      "number",
                      "null"
                    ]
                  },
                  "markup_pct": {
                    "type": [
                      "number",
                      "null"
                    ]
                  },
                  "note": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "price_with_vat": {
                    "type": [
                      "number",
                      "null"
                    ]
                  },
                  "price_without_vat": {
                    "type": [
                      "number",
                      "null"
                    ]
                  },
                  "total_profit": {
                    "type": [
                      "number",
                      "null"
                    ]
                  },
                  "total_revenue_without_vat": {
                    "type": [
                      "number",
                      "null"
                    ]
                  },
                  "unit_profit": {
                    "type": [
                      "number",
                      "null"
                    ]
                  },
                  "units": {
                    "type": [
                      "number",
                      "null"
                    ]
                  },
                  "vat_pct": {
                    "type": [
                      "number",
                      "null"
                    ]
                  }
                },
                "type": [
                  "object",
                  "null"
                ]
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    }
  },
  "tags": [
    "pricing",
    "margin",
    "markup",
    "ecommerce",
    "business",
    "bazaar"
  ],
  "sourceHost": "api.vextorium.com",
  "lastUpdated": "2026-10-08T06:11:18.241Z",
  "quality": {
    "calls30d": 3,
    "uniquePayers30d": 3,
    "lastCalledAt": "2026-10-08T06:11:18.013Z"
  },
  "metadata": {
    "serviceName": "Vextorium",
    "extensions": {
      "bazaar": {
        "info": {
          "input": {
            "body": {
              "cost": 10,
              "markup_pct": 50,
              "units": 100,
              "vat_pct": 21
            },
            "bodyType": "json",
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "cost": 10,
              "margin_pct": 33.333,
              "markup_pct": 50,
              "note": "Margin = profit / price. Markup = profit / cost. A 50% markup is only a 33.3% margin.",
              "price_with_vat": 18.15,
              "price_without_vat": 15,
              "total_profit": 500,
              "total_revenue_without_vat": 1500,
              "unit_profit": 5,
              "units": 100,
              "vat_pct": 21
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "body": {
                  "properties": {
                    "cost": {
                      "type": "number"
                    },
                    "margin_pct": {
                      "type": "number"
                    },
                    "markup_pct": {
                      "type": "number"
                    },
                    "price": {
                      "type": "number"
                    },
                    "units": {
                      "type": "number"
                    },
                    "vat_pct": {
                      "type": "number"
                    }
                  },
                  "required": []
                },
                "bodyType": {
                  "enum": [
                    "json",
                    "form-data",
                    "text"
                  ],
                  "type": "string"
                },
                "method": {
                  "enum": [
                    "POST"
                  ],
                  "type": "string"
                },
                "type": {
                  "const": "http",
                  "type": "string"
                }
              },
              "required": [
                "type",
                "method",
                "bodyType",
                "body"
              ],
              "type": "object"
            },
            "output": {
              "properties": {
                "example": {
                  "properties": {
                    "cost": {
                      "type": [
                        "number",
                        "null"
                      ]
                    },
                    "margin_pct": {
                      "type": [
                        "number",
                        "null"
                      ]
                    },
                    "markup_pct": {
                      "type": [
                        "number",
                        "null"
                      ]
                    },
                    "note": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "price_with_vat": {
                      "type": [
                        "number",
                        "null"
                      ]
                    },
                    "price_without_vat": {
                      "type": [
                        "number",
                        "null"
                      ]
                    },
                    "total_profit": {
                      "type": [
                        "number",
                        "null"
                      ]
                    },
                    "total_revenue_without_vat": {
                      "type": [
                        "number",
                        "null"
                      ]
                    },
                    "unit_profit": {
                      "type": [
                        "number",
                        "null"
                      ]
                    },
                    "units": {
                      "type": [
                        "number",
                        "null"
                      ]
                    },
                    "vat_pct": {
                      "type": [
                        "number",
                        "null"
                      ]
                    }
                  },
                  "type": [
                    "object",
                    "null"
                  ]
                },
                "type": {
                  "type": "string"
                }
              },
              "required": [
                "type"
              ],
              "type": "object"
            }
          },
          "required": [
            "input"
          ],
          "type": "object"
        }
      }
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": false,
  "featured": false,
  "provider": {
    "host": "api.vextorium.com",
    "manifest_name": "api.vextorium.com",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-10-14T01:15:01.050Z"
  },
  "exampleResponse": {
    "example": {
      "cost": 0,
      "margin_pct": 0,
      "markup_pct": 0,
      "note": "string",
      "price_with_vat": 0,
      "price_without_vat": 0,
      "total_profit": 0,
      "total_revenue_without_vat": 0,
      "unit_profit": 0,
      "units": 0,
      "vat_pct": 0
    },
    "type": "string"
  }
}