{
  "x402Version": 2,
  "id": 8226,
  "slug": "8226",
  "resource": "https://spawnxchange-api-485602182462.europe-west4.run.app/api/v1/items/:uuid/acquire",
  "description": "Buy the selected AI-generated code artifact. Paying this authorization grants you a licence and returns an instant download link plus an invoice.",
  "type": "http",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:84532",
      "payTo": "0xe858C49b7a88cc721D162b7D3b7527288157c879",
      "asset": "0x036CbD53842c5426634e7929541eC2318f3dCF7e",
      "amount": "1000000",
      "maxTimeoutSeconds": 300
    }
  ],
  "outputSchema": {
    "bazaar": {
      "info": {
        "input": {
          "body": {
            "chain": "base",
            "license_accepted": true,
            "policy_accepted": true
          },
          "bodyType": "json",
          "completion_request": {
            "defaults": {
              "currency": "USDC"
            },
            "example": {
              "chain": "base",
              "currency": "USDC",
              "license_accepted": true,
              "policy_accepted": true
            },
            "required": [
              "chain",
              "policy_accepted",
              "license_accepted"
            ],
            "supported_chains": [
              "base",
              "polygon"
            ],
            "supported_currencies": [
              "USDC"
            ]
          },
          "method": "POST",
          "prompt_request": {
            "body_omitted_allowed": true,
            "body_optional": true,
            "example": {},
            "examples": {
              "chain_only": {
                "chain": "base"
              },
              "empty_json": {}
            },
            "optional": [
              "chain"
            ],
            "supported_chains": [
              "base",
              "polygon"
            ]
          },
          "type": "http"
        },
        "output": {
          "example": {
            "download_url": "https://storage.googleapis.com/…signed-package-url…",
            "expires_in": "15 minutes",
            "invoice_url": "https://storage.googleapis.com/…signed-invoice-url…",
            "order_id": "00000000-0000-4000-8000-000000000000"
          },
          "type": "json"
        }
      },
      "itemId": "f92ddb24-6628-4af9-a45b-0b7ea0d9025a",
      "legal": {
        "license": {
          "acceptanceField": "license_accepted",
          "url": "https://spawnxchange-api-485602182462.europe-west4.run.app/license/v1",
          "version": "v1"
        },
        "terms": {
          "acceptanceField": "policy_accepted",
          "url": "https://spawnxchange-api-485602182462.europe-west4.run.app/terms/v1",
          "version": "v1"
        }
      },
      "provider": {
        "serviceName": "SpawnXchange Direct Public Purchase",
        "tags": [
          "software",
          "code",
          "marketplace",
          "license"
        ]
      },
      "routeTemplate": "/api/v1/items/:uuid/acquire",
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "additionalProperties": false,
                "properties": {
                  "chain": {
                    "enum": [
                      "base",
                      "polygon"
                    ],
                    "type": "string"
                  },
                  "currency": {
                    "enum": [
                      "USDC",
                      "usdc"
                    ],
                    "type": "string"
                  },
                  "license_accepted": {
                    "const": true,
                    "type": "boolean"
                  },
                  "policy_accepted": {
                    "const": true,
                    "type": "boolean"
                  }
                },
                "required": [
                  "chain",
                  "policy_accepted",
                  "license_accepted"
                ],
                "type": "object"
              },
              "bodyType": {
                "enum": [
                  "json",
                  "form-data",
                  "text"
                ],
                "type": "string"
              },
              "method": {
                "enum": [
                  "POST",
                  "PUT",
                  "PATCH"
                ],
                "type": "string"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method",
              "bodyType",
              "body"
            ],
            "type": "object"
          },
          "output": {
            "properties": {
              "example": {
                "additionalProperties": false,
                "properties": {
                  "download_url": {
                    "format": "uri",
                    "type": "string"
                  },
                  "expires_in": {
                    "type": "string"
                  },
                  "invoice_url": {
                    "format": "uri",
                    "type": "string"
                  },
                  "order_id": {
                    "format": "uuid",
                    "type": "string"
                  }
                },
                "required": [
                  "order_id",
                  "download_url",
                  "invoice_url",
                  "expires_in"
                ],
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    },
    "payment-identifier": {
      "required": false
    }
  },
  "tags": [
    "bazaar",
    "payment-identifier"
  ],
  "sourceHost": "spawnxchange-api-485602182462.europe-west4.run.app",
  "lastUpdated": "2026-09-10T01:15:48.883Z",
  "quality": {
    "calls30d": 109,
    "uniquePayers30d": 3,
    "lastCalledAt": "2026-09-10T01:15:58.097Z"
  },
  "liveness": {},
  "verified": false,
  "featured": false,
  "provider": {
    "host": "spawnxchange-api-485602182462.europe-west4.run.app",
    "manifest_name": "spawnxchange-api-485602182462.europe-west4.run.app",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-09-18T22:00:31.484Z"
  }
}