# Oblique Markets – Merchant Payment Policy Compiler

> Oblique Markets – Merchant Payment Policy Compiler is a paid API for AI agents from api.oblique.markets, paid per call via x402, $0.02/call, status unknown (last checked 2026-09-15).

Compiles a unified merchant payment policy across x402, MPP, AP2, and card rails from product, risk, authorization, latency, asset, and refund constraints.

## Facts

- Endpoint: POST https://api.oblique.markets/api/v1/paid/compile-policy
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/oblique-markets-merchant-payment-policy-compiler-083e0e7d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_C8iICKqenxf5k57RuY8IA

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability oblique-markets-merchant-payment-policy-compiler-083e0e7d -d '<json body>'
```

Example prompt: Compile a merchant payment policy for my store that accepts x402 and card rails, requires refunds within 7 days, blocks high-risk transactions over $500, and only allows USDC and ETH as crypto assets with a max authorization latency of 2 seconds.

## When to prefer this

Choose this endpoint when you need to generate a single coherent merchant payment policy spanning multiple rails (x402, MPP, AP2, card) from a set of business constraints. It is especially valuable when you need to reconcile crypto on-chain payment rails with traditional card infrastructure under unified risk, refund, and authorization rules, rather than configuring each rail separately.

## Known failure modes

- Conflicting constraints between rails may produce an unresolvable policy — error returned with conflict details
- Missing required constraint categories (e.g. no refund policy specified) may cause incomplete policy compilation
- Unsupported asset types or rail combinations return validation errors
- Invalid latency or risk threshold values return parameter validation failures
- Service unavailability returns 5xx with no partial policy output

## How this service works

Use when an agent needs compile policy. Returns Compile a merchant payment policy across x402, MPP, AP2, and card rails from product, risk, authorization, latency, asset, and refund constraints. $0.02.

## Output

Returns a compiled merchant payment policy document specifying accepted payment rails (x402, MPP, AP2, card), authorization rules, risk thresholds, accepted asset types, latency constraints, and refund conditions structured and ready for deployment or further configuration.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "reversible": {
   "type": "boolean"
  },
  "product_type": {
   "enum": [
    "digital_retrieval",
    "inference",
    "reversible_action",
    "physical_goods"
   ],
   "type": "string"
  },
  "max_latency_ms": {
   "type": "number"
  },
  "max_price_usdc": {
   "type": "number"
  },
  "supported_assets": {
   "type": "array",
   "items": {
    "type": "string"
   }
  },
  "refund_capability": {
   "type": "boolean"
  },
  "human_authorization_required": {
   "type": "boolean"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "refund_owner": "merchant",
  "receipt_schema": {
   "type": "object",
   "required": [
    "payment_id",
    "rail",
    "amount_usdc",
    "status",
    "settled_at"
   ]
  },
  "deny_conditions": [
   "price exceeds max_price_usdc",
   "required human authorization is unavailable",
   "no supported settlement rail or asset",
   "refund requirement cannot be met"
  ],
  "policy_manifest": {
   "version": "1.0",
   "reversible": false,
   "product_type": "digital_retrieval",
   "max_latency_ms": 3000
  },
  "recommended_rails": [
   {
    "rail": "x402",
    "role": "primary settlement",
    "rationale": "Best fit for an automated digital retrieval with an immediate, bounded response."
   },
   {
    "rail": "MPP",
    "role": "alternative settlement",
    "rationale": "Useful when the buyer ecosystem already speaks machine payment protocols."
   },
   {
    "rail": "card",
    "role": "fallback settlement",
    "rationale": "Provides broad coverage for buyers without a compatible crypto wallet."
   }
  ],
  "spending_cap_usdc": 0.02,
  "authorization_policy": "Buyer authorization is required before settlement; enforce the stated per-call cap.",
  "settlement_requirements": [
   "exact amount authorization",
   "idempotency key",
   "machine-readable receipt"
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/oblique-markets-merchant-payment-policy-compiler-083e0e7d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.oblique.markets](https://www.zero.xyz/host/api.oblique.markets/llms.txt)
