{"openapi":"3.1.0","info":{"title":"Axiv Pay Integration Hub API","version":"1.1.0","description":"Public discovery and operator integration records, a simulation-only payment sandbox, and the Axiv Pay payment API. Paths under /v1 are served by the payment API at https://api.pay.axiv.cc and need your own Axiv Pay API token. No endpoint in this contract signs or sends a transaction. The payer’s own wallet signs each funding step."},"servers":[{"url":"https://pay.axiv.cc"}],"paths":{"/.well-known/axiv-pay.json":{"get":{"operationId":"getDiscoveryManifest","responses":{"200":{"description":"Public discovery manifest","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/api/v1/catalog":{"get":{"operationId":"listPublicCapabilities","parameters":[{"in":"query","name":"mode","schema":{"type":"string","enum":["live","demo"],"default":"live"},"description":"Operating registry or isolated demonstration fixture."},{"in":"query","name":"q","schema":{"type":"string"},"description":"Search across names, examples, workflow and quickstart."},{"in":"query","name":"role","schema":{"type":"string","enum":["user","merchant","agent"]}},{"in":"query","name":"chain","schema":{"type":"string"},"description":"CAIP-2 network ID."},{"in":"query","name":"asset","schema":{"type":"string"},"description":"Exact token symbol."},{"in":"query","name":"category","schema":{"type":"string","enum":["discovery","route","payment","tracking","protocol"]}},{"in":"query","name":"status","schema":{"type":"string","enum":["verified","partial","planned","blocked"]}}],"responses":{"200":{"description":"Public catalog","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Catalog"}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/capabilities/{id}":{"get":{"operationId":"getPublicCapability","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}},{"in":"query","name":"mode","schema":{"type":"string","enum":["live","demo"],"default":"live"},"description":"Operating registry or isolated demonstration fixture."}],"responses":{"200":{"description":"Public capability","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Feature"}}}},"404":{"description":"Unknown or private capability","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/example/{id}":{"get":{"operationId":"getExampleFixture","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Demonstration request and response","content":{"application/json":{"schema":{"type":"object","properties":{"mode":{"const":"demo"},"id":{"type":"string"},"request":{"type":"object"},"response":{"type":"object"}},"required":["mode","id","request","response"]}}}},"404":{"description":"Unknown or private capability","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/workspace":{"get":{"operationId":"readWorkspace","parameters":[{"in":"query","name":"mode","schema":{"type":"string","enum":["live","demo"],"default":"live"},"description":"Operating registry or isolated demonstration fixture."}],"description":"Returns public view for anonymous visitors and full operating workspace for authorized operators.","responses":{"200":{"description":"Workspace state","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Workspace"}}}}}}},"/api/v1/registry":{"put":{"operationId":"replaceOperatingRegistry","security":[{"cloudflareAccess":[]}],"description":"Replace operating registry after validating fields and the expected revision. A successful replacement increases the revision.","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegistryInput"}}}},"responses":{"200":{"description":"New operating workspace","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Workspace"}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Operator authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Operator access or request origin rejected","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Revision conflict or adapter configuration missing","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/checks/{id}":{"post":{"operationId":"runReadOnlyCheck","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}}],"description":"Demo works with no credentials. Live checks require operator authorization and retain the response summary. Use a verification request ID to deduplicate writes.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"mode":{"type":"string","enum":["live","demo"]},"requestId":{"type":"string","format":"uuid"}},"required":["mode"]}}}},"responses":{"200":{"description":"Verification result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Run"}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Operator authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Operator access or request origin rejected","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Revision conflict or adapter configuration missing","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/mock/v1/capabilities":{"get":{"operationId":"getSandboxCapabilities","responses":{"200":{"description":"Simulated routes, fees, and supported states","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SandboxCapabilities"}}}}}}},"/mock/v1/quotes":{"post":{"operationId":"createSandboxQuote","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SandboxQuoteInput"},"example":{"source":{"chainId":"8453","asset":"USDC","amountAtomic":"10000000"},"destination":{"chainId":"4663","asset":"USDG","recipient":"0x000000000000000000000000000000000000dEaD"},"fundingMode":"DIRECT"}}}},"responses":{"201":{"description":"Simulated quote","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SandboxQuote"}}}},"400":{"description":"Sandbox error","content":{"application/json":{"schema":{"type":"object","properties":{"mode":{"const":"mock"},"simulation":{"const":true},"error":{"type":"string"}},"required":["mode","simulation","error"]}}}},"422":{"description":"Sandbox error","content":{"application/json":{"schema":{"type":"object","properties":{"mode":{"const":"mock"},"simulation":{"const":true},"error":{"type":"string"}},"required":["mode","simulation","error"]}}}},"429":{"description":"Sandbox error","content":{"application/json":{"schema":{"type":"object","properties":{"mode":{"const":"mock"},"simulation":{"const":true},"error":{"type":"string"}},"required":["mode","simulation","error"]}}}},"503":{"description":"Sandbox error","content":{"application/json":{"schema":{"type":"object","properties":{"mode":{"const":"mock"},"simulation":{"const":true},"error":{"type":"string"}},"required":["mode","simulation","error"]}}}}}}},"/mock/v1/payments":{"post":{"operationId":"createSandboxPayment","parameters":[{"in":"header","name":"Idempotency-Key","required":true,"schema":{"type":"string","minLength":8,"maxLength":128},"description":"Use a fresh UUID per payment intent and retain it during retries."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"quoteId":{"type":"string"},"merchantReference":{"type":"string"}},"required":["quoteId"]}}}},"responses":{"200":{"description":"Idempotent replay","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SandboxPayment"}}}},"201":{"description":"New simulated payment","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SandboxPayment"}}}},"400":{"description":"Sandbox error","content":{"application/json":{"schema":{"type":"object","properties":{"mode":{"const":"mock"},"simulation":{"const":true},"error":{"type":"string"}},"required":["mode","simulation","error"]}}}},"404":{"description":"Sandbox error","content":{"application/json":{"schema":{"type":"object","properties":{"mode":{"const":"mock"},"simulation":{"const":true},"error":{"type":"string"}},"required":["mode","simulation","error"]}}}},"409":{"description":"Sandbox error","content":{"application/json":{"schema":{"type":"object","properties":{"mode":{"const":"mock"},"simulation":{"const":true},"error":{"type":"string"}},"required":["mode","simulation","error"]}}}},"410":{"description":"Sandbox error","content":{"application/json":{"schema":{"type":"object","properties":{"mode":{"const":"mock"},"simulation":{"const":true},"error":{"type":"string"}},"required":["mode","simulation","error"]}}}},"503":{"description":"Sandbox error","content":{"application/json":{"schema":{"type":"object","properties":{"mode":{"const":"mock"},"simulation":{"const":true},"error":{"type":"string"}},"required":["mode","simulation","error"]}}}}}}},"/mock/v1/payments/{id}":{"get":{"operationId":"getSandboxPayment","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"},"description":"Sandbox payment ID returned by createSandboxPayment."}],"responses":{"200":{"description":"Simulated payment","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SandboxPayment"}}}},"404":{"description":"Sandbox error","content":{"application/json":{"schema":{"type":"object","properties":{"mode":{"const":"mock"},"simulation":{"const":true},"error":{"type":"string"}},"required":["mode","simulation","error"]}}}},"503":{"description":"Sandbox error","content":{"application/json":{"schema":{"type":"object","properties":{"mode":{"const":"mock"},"simulation":{"const":true},"error":{"type":"string"}},"required":["mode","simulation","error"]}}}}}}},"/mock/v1/payments/{id}/events":{"get":{"operationId":"getSandboxEvents","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"},"description":"Sandbox payment ID returned by createSandboxPayment."}],"responses":{"200":{"description":"Simulated events","content":{"application/json":{"schema":{"type":"object","properties":{"mode":{"const":"mock"},"simulation":{"const":true},"paymentId":{"type":"string"},"events":{"type":"array","items":{"$ref":"#/components/schemas/SandboxEvent"}}},"required":["mode","simulation","paymentId","events"]}}}},"404":{"description":"Sandbox error","content":{"application/json":{"schema":{"type":"object","properties":{"mode":{"const":"mock"},"simulation":{"const":true},"error":{"type":"string"}},"required":["mode","simulation","error"]}}}},"503":{"description":"Sandbox error","content":{"application/json":{"schema":{"type":"object","properties":{"mode":{"const":"mock"},"simulation":{"const":true},"error":{"type":"string"}},"required":["mode","simulation","error"]}}}}}}},"/mock/v1/payments/{id}/simulate":{"post":{"operationId":"advanceSandboxPayment","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"},"description":"Sandbox payment ID returned by createSandboxPayment."}],"description":"Advance by one state. Resend the same expectedStatus to retry without advancing twice.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"expectedStatus":{"type":"string","enum":["AWAITING_DEPOSIT","DEPOSIT_OBSERVED","GUARANTEED","PAYOUT_PENDING","PAID","SETTLED"]}},"required":["expectedStatus"]}}}},"responses":{"200":{"description":"Updated simulated payment","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SandboxPayment"}}}},"400":{"description":"Sandbox error","content":{"application/json":{"schema":{"type":"object","properties":{"mode":{"const":"mock"},"simulation":{"const":true},"error":{"type":"string"}},"required":["mode","simulation","error"]}}}},"404":{"description":"Sandbox error","content":{"application/json":{"schema":{"type":"object","properties":{"mode":{"const":"mock"},"simulation":{"const":true},"error":{"type":"string"}},"required":["mode","simulation","error"]}}}},"409":{"description":"Sandbox error","content":{"application/json":{"schema":{"type":"object","properties":{"mode":{"const":"mock"},"simulation":{"const":true},"error":{"type":"string"}},"required":["mode","simulation","error"]}}}},"410":{"description":"Sandbox error","content":{"application/json":{"schema":{"type":"object","properties":{"mode":{"const":"mock"},"simulation":{"const":true},"error":{"type":"string"}},"required":["mode","simulation","error"]}}}},"503":{"description":"Sandbox error","content":{"application/json":{"schema":{"type":"object","properties":{"mode":{"const":"mock"},"simulation":{"const":true},"error":{"type":"string"}},"required":["mode","simulation","error"]}}}}}}},"/v1/capabilities":{"get":{"operationId":"getPaymentCapabilities","servers":[{"url":"https://api.pay.axiv.cc","description":"Axiv Pay payment API"}],"tags":["Payment API"],"security":[],"description":"Source of truth for payment availability. liveRoutes lists only routes verified with a live transfer. quoteRouting lists what can be quoted.","responses":{"200":{"description":"Payment capabilities","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayCapabilities"}}}}}}},"/v1/quotes":{"post":{"operationId":"createPaymentQuote","servers":[{"url":"https://api.pay.axiv.cc","description":"Axiv Pay payment API"}],"tags":["Payment API"],"security":[{"payApiBearer":[]}],"description":"Quote a payment. Needs a write token. The quote is bound to the caller who created it. With allowedRoutes the quote never falls back to another route and answers NO_ROUTE instead. By default each write token may create 30 quotes and 10 new payments per minute. Above the limit the API answers 429 RATE_LIMITED with Retry-After and retryAfterSeconds.","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayQuoteInput"}}}},"responses":{"201":{"description":"Quote","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayQuote"}}}},"400":{"description":"INVALID_REQUEST","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayError"}}}},"401":{"description":"UNAUTHORIZED: missing or unknown bearer token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayError"}}}},"403":{"description":"FORBIDDEN: a read-only token cannot create or fund.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayError"}}}},"409":{"description":"CHANNEL_REJECTED when the execution channel declines with a conflict.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayError"}}}},"422":{"description":"NO_ROUTE, UNSUPPORTED_ROUTE, FUNDING_MODE_UNAVAILABLE or CHANNEL_REJECTED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayError"}}}},"429":{"description":"RATE_LIMITED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayError"}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayError"}}}},"502":{"description":"CHANNEL_CONTRACT: the execution channel returned an unexpected response, a step for another chain, or a kind of step this API does not offer.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayError"}}}},"503":{"description":"CHANNEL_UNAVAILABLE or CHANNEL_BUSY: retry the same request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayError"}}}}}}},"/v1/payments":{"post":{"operationId":"createPayment","servers":[{"url":"https://api.pay.axiv.cc","description":"Axiv Pay payment API"}],"tags":["Payment API"],"security":[{"payApiBearer":[]}],"description":"Create one payment from the caller’s own quote. Creating a payment moves no funds. Repeat with the same Idempotency-Key and body to read the same payment back; a replay does not count toward the rate limit. A quote created by another caller answers 404. By default each write token may create 30 quotes and 10 new payments per minute. Above the limit the API answers 429 RATE_LIMITED with Retry-After and retryAfterSeconds.","parameters":[{"in":"header","name":"Idempotency-Key","required":true,"schema":{"type":"string","minLength":8,"maxLength":128,"pattern":"^[A-Za-z0-9._:-]+$"},"description":"One key per payment. Reuse it on every retry."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"quoteId":{"type":"string"},"merchantReference":{"type":"string","maxLength":100,"pattern":"^[A-Za-z0-9._:-]*$"},"payer":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$","description":"Required when the quote has no payer."}},"required":["quoteId"]}}}},"responses":{"200":{"description":"Replay of the same Idempotency-Key. Read status: a payment that failed while being prepared returns 200 with status FAILED and the cause in reason, for example after QUOTE_EXPIRED or CHANNEL_REJECTED.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayPayment"}}}},"201":{"description":"New payment","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayPayment"}}}},"400":{"description":"INVALID_REQUEST","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayError"}}}},"401":{"description":"UNAUTHORIZED: missing or unknown bearer token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayError"}}}},"403":{"description":"FORBIDDEN: a read-only token cannot create or fund.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayError"}}}},"404":{"description":"NOT_FOUND: unknown quote or another caller’s quote.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayError"}}}},"409":{"description":"QUOTE_ALREADY_USED, IDEMPOTENCY_CONFLICT, PAYMENT_PREPARING (retry with the same key), or CHANNEL_REJECTED when the channel declines with a conflict.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayError"}}}},"410":{"description":"QUOTE_EXPIRED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayError"}}}},"422":{"description":"CHANNEL_REJECTED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayError"}}}},"429":{"description":"RATE_LIMITED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayError"}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayError"}}}},"502":{"description":"CHANNEL_CONTRACT: the execution channel returned an unexpected response, a step for another chain, or a kind of step this API does not offer.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayError"}}}},"503":{"description":"CHANNEL_UNAVAILABLE or CHANNEL_BUSY: retry with the same Idempotency-Key. EXECUTION_DISABLED: payment creation is off.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayError"}}}}}}},"/v1/payments/{id}":{"get":{"operationId":"getPayment","servers":[{"url":"https://api.pay.axiv.cc","description":"Axiv Pay payment API"}],"tags":["Payment API"],"security":[{"payApiBearer":[]}],"parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"},"description":"Payment ID (\"pay_\" followed by a UUID). A payment created by another caller answers 404."}],"description":"Read status and receipt evidence. A write token reads only its own payments. A read-only token reads every payment.","responses":{"200":{"description":"Payment","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayPayment"}}}},"401":{"description":"UNAUTHORIZED: missing or unknown bearer token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayError"}}}},"404":{"description":"NOT_FOUND","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayError"}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayError"}}}}}}},"/v1/payments/{id}/events":{"get":{"operationId":"getPaymentEvents","servers":[{"url":"https://api.pay.axiv.cc","description":"Axiv Pay payment API"}],"tags":["Payment API"],"security":[{"payApiBearer":[]}],"parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"},"description":"Payment ID (\"pay_\" followed by a UUID). A payment created by another caller answers 404."}],"responses":{"200":{"description":"Status history","content":{"application/json":{"schema":{"type":"object","properties":{"environment":{"type":"string"},"simulation":{"type":"boolean","description":"false on the production payment API. true only on a development mock channel."},"mode":{"type":"string","enum":["live","mock"]},"paymentId":{"type":"string"},"events":{"type":"array","items":{"type":"object","properties":{"sequence":{"type":"integer","minimum":0},"at":{"type":"string","format":"date-time"},"status":{"type":"string","enum":["AWAITING_DEPOSIT","DEPOSIT_OBSERVED","GUARANTEED","PAYOUT_PENDING","PAID","SETTLED","REFUND_PENDING","REFUNDED","EXPIRED","FAILED","REVIEW_REQUIRED"]},"detail":{"type":["object","null"]}},"required":["sequence","at","status","detail"]}}},"required":["environment","simulation","mode","paymentId","events"]}}}},"401":{"description":"UNAUTHORIZED: missing or unknown bearer token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayError"}}}},"404":{"description":"NOT_FOUND","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayError"}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayError"}}}}}}},"/v1/payments/{id}/funding-instructions":{"post":{"operationId":"getFundingStep","servers":[{"url":"https://api.pay.axiv.cc","description":"Axiv Pay payment API"}],"tags":["Payment API"],"security":[{"payApiBearer":[]}],"parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"},"description":"Payment ID (\"pay_\" followed by a UUID). A payment created by another caller answers 404."}],"description":"Return the one step the payer wallet sends now. Steps are on the payment’s source chain only. Asking again returns the same step until it is submitted. EIP-712 signature steps are not offered.","responses":{"200":{"description":"Funding step","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayFundingInstructions"}}}},"401":{"description":"UNAUTHORIZED: missing or unknown bearer token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayError"}}}},"403":{"description":"FORBIDDEN: a read-only token cannot create or fund.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayError"}}}},"404":{"description":"NOT_FOUND","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayError"}}}},"409":{"description":"NOTHING_TO_SIGN (a normal wait), PAYMENT_PREPARING, or CHANNEL_REJECTED when the channel declines with a conflict.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayError"}}}},"422":{"description":"SIGNATURE_STEPS_DISABLED: the route asks for a signature or message-signing step. CHANNEL_REJECTED.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayError"}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayError"}}}},"502":{"description":"CHANNEL_CONTRACT: the execution channel returned an unexpected response, a step for another chain, or a kind of step this API does not offer.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayError"}}}},"503":{"description":"CHANNEL_UNAVAILABLE or CHANNEL_BUSY: retry the same request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayError"}}}}}}},"/v1/payments/{id}/funding-submissions":{"post":{"operationId":"submitFundingTransaction","servers":[{"url":"https://api.pay.axiv.cc","description":"Axiv Pay payment API"}],"tags":["Payment API"],"security":[{"payApiBearer":[]}],"parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"},"description":"Payment ID (\"pay_\" followed by a UUID). A payment created by another caller answers 404."}],"description":"Register the hash of the transaction the payer wallet sent. Registering a hash authorizes nothing and is not a deposit confirmation. Submitting the same hash again is safe. A signature is refused.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"stepId":{"type":"string","format":"uuid"},"txHash":{"type":"string","pattern":"^0x[0-9a-fA-F]{64}$"}},"required":["stepId","txHash"]}}}},"responses":{"202":{"description":"Accepted. Read the status for the deposit confirmation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayPayment"}}}},"400":{"description":"INVALID_REQUEST","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayError"}}}},"401":{"description":"UNAUTHORIZED: missing or unknown bearer token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayError"}}}},"403":{"description":"FORBIDDEN: a read-only token cannot create or fund.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayError"}}}},"404":{"description":"NOT_FOUND","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayError"}}}},"409":{"description":"PAYMENT_FINISHED, PAYMENT_PREPARING, or CHANNEL_REJECTED when the channel declines with a conflict.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayError"}}}},"422":{"description":"SIGNATURE_STEPS_DISABLED or CHANNEL_REJECTED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayError"}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayError"}}}},"502":{"description":"CHANNEL_CONTRACT: the execution channel returned an unexpected response, a step for another chain, or a kind of step this API does not offer.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayError"}}}},"503":{"description":"CHANNEL_UNAVAILABLE or CHANNEL_BUSY: retry the same request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayError"}}}}}}},"/v1/payment-links":{"post":{"operationId":"createPaymentLink","servers":[{"url":"https://api.pay.axiv.cc","description":"Axiv Pay payment API"}],"tags":["Payment links"],"security":[{"accountSession":[]},{"payApiBearer":[]}],"description":"Create a payment link. The amount is what the recipient receives. The buyer picks a stablecoin they hold and pays the route cost on top, shown before they sign. Without recipient the account’s wallet receives. A single-use link closes after one PAID payment.","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayPaymentLinkInput"}}}},"responses":{"201":{"description":"Payment link","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayPaymentLink"}}}},"400":{"description":"INVALID_REQUEST","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayError"}}}},"401":{"description":"UNAUTHORIZED: missing or unknown bearer token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayError"}}}},"403":{"description":"FORBIDDEN: a read-only token cannot create or fund.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayError"}}}},"422":{"description":"UNSUPPORTED_ROUTE: this chain and asset cannot be received.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayError"}}}},"429":{"description":"RATE_LIMITED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayError"}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayError"}}}}}},"get":{"operationId":"listPaymentLinks","servers":[{"url":"https://api.pay.axiv.cc","description":"Axiv Pay payment API"}],"tags":["Payment links"],"security":[{"accountSession":[]},{"payApiBearer":[]}],"responses":{"200":{"description":"The 50 most recent links","content":{"application/json":{"schema":{"type":"object","properties":{"links":{"type":"array","items":{"$ref":"#/components/schemas/PayPaymentLink"}}},"required":["links"]}}}},"401":{"description":"UNAUTHORIZED: missing or unknown bearer token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayError"}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayError"}}}}}}},"/v1/payment-links/{id}":{"get":{"operationId":"getPaymentLink","servers":[{"url":"https://api.pay.axiv.cc","description":"Axiv Pay payment API"}],"tags":["Payment links"],"security":[{"accountSession":[]},{"payApiBearer":[]}],"parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"},"description":"Payment link ID (\"plink_…\")."}],"responses":{"200":{"description":"Link with its recent payments","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/PayPaymentLink"},{"type":"object","properties":{"payments":{"type":"array","items":{"$ref":"#/components/schemas/PayLinkPayment"}}},"required":["payments"]}]}}}},"401":{"description":"UNAUTHORIZED: missing or unknown bearer token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayError"}}}},"404":{"description":"NOT_FOUND","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayError"}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayError"}}}}}},"delete":{"operationId":"disablePaymentLink","servers":[{"url":"https://api.pay.axiv.cc","description":"Axiv Pay payment API"}],"tags":["Payment links"],"security":[{"accountSession":[]},{"payApiBearer":[]}],"parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"},"description":"Payment link ID (\"plink_…\")."}],"description":"Disable the link. It accepts no new payments.","responses":{"200":{"description":"Disabled link","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayPaymentLink"}}}},"401":{"description":"UNAUTHORIZED: missing or unknown bearer token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayError"}}}},"403":{"description":"FORBIDDEN: a read-only token cannot create or fund.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayError"}}}},"404":{"description":"NOT_FOUND","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayError"}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayError"}}}}}}},"/v1/usage":{"get":{"operationId":"getUsage","servers":[{"url":"https://api.pay.axiv.cc","description":"Axiv Pay payment API"}],"tags":["Account"],"security":[{"accountSession":[]},{"payApiBearer":[]}],"description":"This month’s completed payment volume, the free allowance, Axiv fees charged, and request limits. Unpaid quotes, expired orders, and tests do not count toward the allowance.","responses":{"200":{"description":"Usage","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayUsage"}}}},"401":{"description":"UNAUTHORIZED: missing or unknown bearer token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayError"}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayError"}}}}}}},"/v1/checkout/{linkId}":{"get":{"operationId":"getCheckout","servers":[{"url":"https://api.pay.axiv.cc","description":"Axiv Pay payment API"}],"tags":["Payment links"],"security":[],"parameters":[{"in":"path","name":"linkId","required":true,"schema":{"type":"string"},"description":"Payment link ID (\"plink_…\")."}],"description":"What the buyer sees: amount, recipient, status, and the chains and assets they can pay with. No key.","responses":{"200":{"description":"Checkout","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayCheckout"}}}},"404":{"description":"NOT_FOUND","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayError"}}}},"429":{"description":"RATE_LIMITED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayError"}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayError"}}}}}}},"/v1/checkout/{linkId}/quotes":{"post":{"operationId":"createCheckoutQuote","servers":[{"url":"https://api.pay.axiv.cc","description":"Axiv Pay payment API"}],"tags":["Payment links"],"security":[],"parameters":[{"in":"path","name":"linkId","required":true,"schema":{"type":"string"},"description":"Payment link ID (\"plink_…\")."}],"description":"Quote the link for the asset the buyer chose. source.amountAtomic is what the buyer pays. destination.amountAtomic is the link amount the recipient receives. No key.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"source":{"type":"object","properties":{"chainId":{"type":"string"},"asset":{"type":"string"}},"required":["chainId","asset"]},"payer":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"}},"required":["source","payer"]}}}},"responses":{"201":{"description":"Quote","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/PayQuote"},{"type":"object","properties":{"linkId":{"type":"string"}},"required":["linkId"]}]}}}},"400":{"description":"INVALID_REQUEST","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayError"}}}},"404":{"description":"NOT_FOUND: unknown link.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayError"}}}},"410":{"description":"LINK_UNAVAILABLE: the link was disabled, expired, or already paid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayError"}}}},"422":{"description":"NO_ROUTE: this asset cannot pay this link right now. UNSUPPORTED_ROUTE.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayError"}}}},"429":{"description":"RATE_LIMITED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayError"}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayError"}}}}}}},"/v1/checkout/{linkId}/payments":{"post":{"operationId":"createCheckoutPayment","servers":[{"url":"https://api.pay.axiv.cc","description":"Axiv Pay payment API"}],"tags":["Payment links"],"security":[],"parameters":[{"in":"path","name":"linkId","required":true,"schema":{"type":"string"},"description":"Payment link ID (\"plink_…\")."},{"in":"header","name":"Idempotency-Key","required":true,"schema":{"type":"string","minLength":32,"maxLength":128,"pattern":"^[A-Za-z0-9._:-]+$"},"description":"The key the buyer’s browser chose when it created this payment. It opens the payment’s funding steps. Keep it with the payment ID; the server stores only its hash."}],"description":"Create the buyer’s payment from a checkout quote. Repeat with the same Idempotency-Key to read the same payment back.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"quoteId":{"type":"string"},"payer":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"}},"required":["quoteId","payer"]}}}},"responses":{"200":{"description":"Replay of the same Idempotency-Key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayPayment"}}}},"201":{"description":"New payment","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayPayment"}}}},"400":{"description":"INVALID_REQUEST","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayError"}}}},"404":{"description":"NOT_FOUND: unknown link.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayError"}}}},"409":{"description":"LINK_PAYMENT_IN_PROGRESS: a single-use link already has a payment being funded.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayError"}}}},"410":{"description":"QUOTE_EXPIRED or LINK_UNAVAILABLE","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayError"}}}},"429":{"description":"RATE_LIMITED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayError"}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayError"}}}}}}},"/v1/checkout/{linkId}/payments/{paymentId}":{"get":{"operationId":"getCheckoutPayment","servers":[{"url":"https://api.pay.axiv.cc","description":"Axiv Pay payment API"}],"tags":["Payment links"],"security":[],"parameters":[{"in":"path","name":"linkId","required":true,"schema":{"type":"string"},"description":"Payment link ID (\"plink_…\")."},{"in":"path","name":"paymentId","required":true,"schema":{"type":"string"},"description":"Payment ID."}],"description":"Read a link payment’s status for the receipt screen. No key.","responses":{"200":{"description":"Payment","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayPayment"}}}},"404":{"description":"NOT_FOUND","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayError"}}}},"429":{"description":"RATE_LIMITED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayError"}}}}}}},"/v1/checkout/{linkId}/qr.svg":{"get":{"operationId":"getCheckoutQr","servers":[{"url":"https://api.pay.axiv.cc","description":"Axiv Pay payment API"}],"tags":["Payment links"],"security":[],"parameters":[{"in":"path","name":"linkId","required":true,"schema":{"type":"string"},"description":"Payment link ID (\"plink_…\")."},{"in":"query","name":"size","required":false,"schema":{"type":"integer","minimum":128,"maximum":1024,"default":512},"description":"Side length in pixels."}],"description":"The link’s QR code: black modules on white with a four-module margin, encoding the link url. Takes a link ID only. No key.","responses":{"200":{"description":"QR code","content":{"image/svg+xml":{"schema":{"type":"string"}}}},"400":{"description":"INVALID_REQUEST: size out of range.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayError"}}}},"404":{"description":"NOT_FOUND","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayError"}}}},"429":{"description":"RATE_LIMITED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayError"}}}}}}},"/v1/checkout/{linkId}/payments/{paymentId}/funding-instructions":{"post":{"operationId":"getCheckoutFundingStep","servers":[{"url":"https://api.pay.axiv.cc","description":"Axiv Pay payment API"}],"tags":["Payment links"],"security":[],"parameters":[{"in":"path","name":"linkId","required":true,"schema":{"type":"string"},"description":"Payment link ID (\"plink_…\")."},{"in":"path","name":"paymentId","required":true,"schema":{"type":"string"},"description":"Payment ID."},{"in":"header","name":"Idempotency-Key","required":true,"schema":{"type":"string","minLength":32,"maxLength":128,"pattern":"^[A-Za-z0-9._:-]+$"},"description":"The key the buyer’s browser chose when it created this payment. It opens the payment’s funding steps. Keep it with the payment ID; the server stores only its hash."}],"description":"The one step the buyer’s wallet sends now. Same contract as getFundingStep, opened by the payment’s Idempotency-Key instead of an API key.","responses":{"200":{"description":"Funding step","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayFundingInstructions"}}}},"401":{"description":"UNAUTHORIZED: wrong Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayError"}}}},"404":{"description":"NOT_FOUND","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayError"}}}},"409":{"description":"NOTHING_TO_SIGN (a normal wait) or PAYMENT_PREPARING","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayError"}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayError"}}}},"502":{"description":"CHANNEL_CONTRACT: the execution channel returned an unexpected response, a step for another chain, or a kind of step this API does not offer.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayError"}}}},"503":{"description":"CHANNEL_UNAVAILABLE or CHANNEL_BUSY: retry the same request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayError"}}}}}}},"/v1/checkout/{linkId}/payments/{paymentId}/funding-submissions":{"post":{"operationId":"submitCheckoutFundingTransaction","servers":[{"url":"https://api.pay.axiv.cc","description":"Axiv Pay payment API"}],"tags":["Payment links"],"security":[],"parameters":[{"in":"path","name":"linkId","required":true,"schema":{"type":"string"},"description":"Payment link ID (\"plink_…\")."},{"in":"path","name":"paymentId","required":true,"schema":{"type":"string"},"description":"Payment ID."},{"in":"header","name":"Idempotency-Key","required":true,"schema":{"type":"string","minLength":32,"maxLength":128,"pattern":"^[A-Za-z0-9._:-]+$"},"description":"The key the buyer’s browser chose when it created this payment. It opens the payment’s funding steps. Keep it with the payment ID; the server stores only its hash."}],"description":"Register the hash of the transaction the buyer’s wallet sent. Same contract as submitFundingTransaction.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"stepId":{"type":"string"},"txHash":{"type":"string","pattern":"^0x[0-9a-fA-F]{64}$"}},"required":["stepId","txHash"]}}}},"responses":{"202":{"description":"Accepted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayPayment"}}}},"400":{"description":"INVALID_REQUEST","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayError"}}}},"401":{"description":"UNAUTHORIZED: wrong Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayError"}}}},"404":{"description":"NOT_FOUND","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayError"}}}},"409":{"description":"PAYMENT_FINISHED or PAYMENT_PREPARING","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayError"}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayError"}}}},"502":{"description":"CHANNEL_CONTRACT: the execution channel returned an unexpected response, a step for another chain, or a kind of step this API does not offer.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayError"}}}},"503":{"description":"CHANNEL_UNAVAILABLE or CHANNEL_BUSY: retry the same request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayError"}}}}}}},"/v1/account/challenges":{"post":{"operationId":"createSignInChallenge","servers":[{"url":"https://api.pay.axiv.cc","description":"Axiv Pay payment API"}],"tags":["Account"],"security":[],"description":"Return a one-time EIP-4361 sign-in message for the wallet, valid for 5 minutes. Pass message to personal_sign exactly as returned.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"address":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"},"chainId":{"type":["string","integer"],"description":"The wallet’s current chain ID."}},"required":["address","chainId"]}}}},"responses":{"201":{"description":"Sign-in message","content":{"application/json":{"schema":{"type":"object","properties":{"nonce":{"type":"string"},"message":{"type":"string"},"expiresAt":{"type":"string","format":"date-time"}},"required":["nonce","message","expiresAt"]}}}},"400":{"description":"INVALID_REQUEST","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayError"}}}},"429":{"description":"RATE_LIMITED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayError"}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayError"}}}},"503":{"description":"ISSUANCE_UNAVAILABLE: sign-in and new keys are paused. Existing keys keep working.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayError"}}}}}}},"/v1/account/sessions":{"post":{"operationId":"createAccountSession","servers":[{"url":"https://api.pay.axiv.cc","description":"Axiv Pay payment API"}],"tags":["Account"],"security":[],"description":"Exchange the signed message for a 30-minute session. The server verifies the signature against the message it issued. Each message signs in once. The first sign-in creates the account. Standard wallets (EOA) only.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"nonce":{"type":"string"},"signature":{"type":"string","pattern":"^0x[0-9a-fA-F]{130}$"}},"required":["nonce","signature"]}}}},"responses":{"201":{"description":"Session","content":{"application/json":{"schema":{"type":"object","properties":{"sessionToken":{"type":"string"},"expiresAt":{"type":"string","format":"date-time"},"account":{"$ref":"#/components/schemas/PayAccount"}},"required":["sessionToken","expiresAt","account"]}}}},"400":{"description":"INVALID_REQUEST","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayError"}}}},"401":{"description":"INVALID_SIGNATURE","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayError"}}}},"403":{"description":"ACCOUNT_SUSPENDED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayError"}}}},"410":{"description":"CHALLENGE_EXPIRED: request a new message.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayError"}}}},"429":{"description":"RATE_LIMITED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayError"}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayError"}}}},"503":{"description":"ISSUANCE_UNAVAILABLE: sign-in and new keys are paused. Existing keys keep working.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayError"}}}}}}},"/v1/account/sessions/current":{"delete":{"operationId":"deleteAccountSession","servers":[{"url":"https://api.pay.axiv.cc","description":"Axiv Pay payment API"}],"tags":["Account"],"security":[{"accountSession":[]}],"responses":{"204":{"description":"Signed out"},"401":{"description":"UNAUTHORIZED: missing, expired, or signed-out session.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayError"}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayError"}}}}}}},"/v1/account":{"get":{"operationId":"getAccount","servers":[{"url":"https://api.pay.axiv.cc","description":"Axiv Pay payment API"}],"tags":["Account"],"security":[{"accountSession":[]}],"responses":{"200":{"description":"Account","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayAccount"}}}},"401":{"description":"UNAUTHORIZED: missing, expired, or signed-out session.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayError"}}}},"403":{"description":"ACCOUNT_SUSPENDED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayError"}}}},"429":{"description":"RATE_LIMITED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayError"}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayError"}}}}}}},"/v1/account/api-keys":{"get":{"operationId":"listApiKeys","servers":[{"url":"https://api.pay.axiv.cc","description":"Axiv Pay payment API"}],"tags":["Account"],"security":[{"accountSession":[]}],"responses":{"200":{"description":"API keys, including revoked ones","content":{"application/json":{"schema":{"type":"object","properties":{"keys":{"type":"array","items":{"$ref":"#/components/schemas/PayApiKey"}}},"required":["keys"]}}}},"401":{"description":"UNAUTHORIZED: missing, expired, or signed-out session.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayError"}}}},"403":{"description":"ACCOUNT_SUSPENDED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayError"}}}},"429":{"description":"RATE_LIMITED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayError"}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayError"}}}}}},"post":{"operationId":"createApiKey","servers":[{"url":"https://api.pay.axiv.cc","description":"Axiv Pay payment API"}],"tags":["Account"],"security":[{"accountSession":[]}],"description":"Create an API key for the payment API. The full key is returned only in this response. WRITE creates quotes and payments and reads the account’s payments. READ only reads them.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","maxLength":64},"scope":{"type":"string","enum":["WRITE","READ"],"default":"WRITE"}},"required":[]}}}},"responses":{"201":{"description":"New API key","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/PayApiKey"},{"type":"object","properties":{"key":{"type":"string","pattern":"^axp_sk_[wr]_[0-9a-f]+$"}},"required":["key"]}]}}}},"400":{"description":"INVALID_REQUEST","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayError"}}}},"401":{"description":"UNAUTHORIZED: missing, expired, or signed-out session.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayError"}}}},"403":{"description":"ACCOUNT_SUSPENDED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayError"}}}},"409":{"description":"KEY_LIMIT_REACHED: the account has the maximum number of active keys.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayError"}}}},"429":{"description":"RATE_LIMITED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayError"}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayError"}}}},"503":{"description":"ISSUANCE_UNAVAILABLE: sign-in and new keys are paused. Existing keys keep working.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayError"}}}}}}},"/v1/account/api-keys/{id}":{"delete":{"operationId":"revokeApiKey","servers":[{"url":"https://api.pay.axiv.cc","description":"Axiv Pay payment API"}],"tags":["Account"],"security":[{"accountSession":[]}],"parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"},"description":"API key ID (\"key_\" followed by a UUID)."}],"description":"Revoke a key. Requests that use it are rejected from the next request on.","responses":{"200":{"description":"Revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayApiKey"}}}},"401":{"description":"UNAUTHORIZED: missing, expired, or signed-out session.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayError"}}}},"403":{"description":"ACCOUNT_SUSPENDED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayError"}}}},"404":{"description":"NOT_FOUND","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayError"}}}},"429":{"description":"RATE_LIMITED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayError"}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayError"}}}}}}},"/api/v1/report":{"get":{"operationId":"getReleaseReport","parameters":[{"in":"query","name":"mode","schema":{"type":"string","enum":["live","demo"],"default":"live"},"description":"Operating registry or isolated demonstration fixture."}],"responses":{"200":{"description":"Checklist, latest reads and settlement verification status","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReleaseReport"}}}}}}}},"components":{"securitySchemes":{"payApiBearer":{"type":"http","scheme":"bearer","description":"Your Axiv Pay API key for the payment API. Get one at https://pay.axiv.cc/start/. Keys see only their account’s quotes and payments. A READ key creates nothing."},"accountSession":{"type":"http","scheme":"bearer","description":"Session token from POST /v1/account/sessions. Works only on /v1/account routes and expires after 30 minutes."},"cloudflareAccess":{"type":"apiKey","in":"header","name":"Cf-Access-Jwt-Assertion","description":"Sign in at admin.pay.axiv.cc through Cloudflare Access. Oracle verifies the JWT signature, issuer, audience, expiry and operator allowlist. Client-supplied identity headers grant no access."}},"schemas":{"SandboxQuoteInput":{"type":"object","properties":{"source":{"type":"object","properties":{"chainId":{"type":"string"},"asset":{"type":"string"},"amountAtomic":{"type":"string","pattern":"^[1-9][0-9]{0,12}$","description":"Decimal integer string in six-decimal atomic units."}},"required":["chainId","asset","amountAtomic"]},"destination":{"type":"object","properties":{"chainId":{"type":"string"},"asset":{"type":"string"},"recipient":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"}},"required":["chainId","asset","recipient"]},"fundingMode":{"type":"string","enum":["DIRECT","PREFUNDED"]}},"required":["source","destination","fundingMode"]},"SandboxQuote":{"allOf":[{"$ref":"#/components/schemas/SandboxQuoteInput"},{"type":"object","properties":{"mode":{"const":"mock"},"simulation":{"const":true},"quoteId":{"type":"string"},"minReceiveAtomic":{"type":"string","pattern":"^[1-9][0-9]{0,12}$","description":"Decimal integer string in six-decimal atomic units."},"feeAtomic":{"type":"string","pattern":"^[1-9][0-9]{0,12}$","description":"Decimal integer string in six-decimal atomic units."},"feeBps":{"type":"integer","minimum":0},"expiresAt":{"type":"string","format":"date-time"}},"required":["mode","simulation","quoteId","minReceiveAtomic","feeAtomic","feeBps","expiresAt"]}]},"SandboxCapabilities":{"type":"object","properties":{"mode":{"const":"mock"},"simulation":{"const":true},"version":{"type":"string"},"fundingModes":{"type":"array","items":{"type":"string","enum":["DIRECT","PREFUNDED"]}},"amountDecimals":{"type":"integer","minimum":0},"feeBps":{"type":"integer","minimum":0},"routes":{"type":"array","items":{"type":"object","properties":{"source":{"type":"object","properties":{"chainId":{"type":"string"},"asset":{"type":"string"}},"required":["chainId","asset"]},"destination":{"type":"object","properties":{"chainId":{"type":"string"},"asset":{"type":"string"}},"required":["chainId","asset"]}},"required":["source","destination"]}},"paymentStates":{"type":"array","items":{"type":"string","enum":["AWAITING_DEPOSIT","DEPOSIT_OBSERVED","GUARANTEED","PAYOUT_PENDING","PAID","SETTLED"]}},"guarantees":{"const":"SIMULATED"}},"required":["mode","simulation","version","fundingModes","amountDecimals","feeBps","routes","paymentStates","guarantees"]},"SandboxPayment":{"type":"object","properties":{"mode":{"const":"mock"},"simulation":{"const":true},"paymentId":{"type":"string"},"quoteId":{"type":"string"},"merchantReference":{"type":"string"},"status":{"type":"string","enum":["AWAITING_DEPOSIT","DEPOSIT_OBSERVED","GUARANTEED","PAYOUT_PENDING","PAID","SETTLED"]},"guarantee":{"type":["object","null"]},"payout":{"type":["object","null"]},"settlement":{"type":["object","null"]}},"required":["mode","simulation","paymentId","quoteId","merchantReference","status","guarantee","payout","settlement"]},"SandboxEvent":{"type":"object","properties":{"mode":{"const":"mock"},"simulation":{"const":true},"sequence":{"type":"integer","minimum":0},"status":{"type":"string","enum":["AWAITING_DEPOSIT","DEPOSIT_OBSERVED","GUARANTEED","PAYOUT_PENDING","PAID","SETTLED"]},"at":{"type":"string","format":"date-time"}},"required":["mode","simulation","sequence","status","at"]},"Error":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},"PayError":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string","enum":["INVALID_REQUEST","UNAUTHORIZED","FORBIDDEN","NOT_FOUND","QUOTE_ALREADY_USED","IDEMPOTENCY_CONFLICT","PAYMENT_PREPARING","NOTHING_TO_SIGN","PAYMENT_FINISHED","QUOTE_EXPIRED","INVALID_SIGNATURE","CHALLENGE_EXPIRED","ACCOUNT_SUSPENDED","KEY_LIMIT_REACHED","ISSUANCE_UNAVAILABLE","NO_ROUTE","UNSUPPORTED_ROUTE","FUNDING_MODE_UNAVAILABLE","SIGNATURE_STEPS_DISABLED","CHANNEL_REJECTED","RATE_LIMITED","INTERNAL_ERROR","CHANNEL_CONTRACT","CHANNEL_UNAVAILABLE","CHANNEL_BUSY","EXECUTION_DISABLED","LINK_UNAVAILABLE","LINK_PAYMENT_IN_PROGRESS"]},"retryAfterSeconds":{"type":["integer","null"],"description":"Set with 429 RATE_LIMITED, together with the Retry-After header."}},"required":["error","code","retryAfterSeconds"]},"PayAccount":{"type":"object","properties":{"id":{"type":"string"},"walletAddress":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"},"status":{"type":"string","enum":["ACTIVE","SUSPENDED"]},"createdAt":{"type":"string","format":"date-time"},"limits":{"type":"object","properties":{"quotesPerMinute":{"type":"integer"},"paymentsPerMinute":{"type":"integer"},"activeKeys":{"type":"integer"}},"required":["quotesPerMinute","paymentsPerMinute","activeKeys"]}},"required":["id","walletAddress","status","createdAt","limits"]},"PayApiKey":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":["string","null"]},"scope":{"type":"string","enum":["WRITE","READ"]},"displayPrefix":{"type":"string"},"last4":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"lastUsedAt":{"type":["string","null"],"format":"date-time"},"revokedAt":{"type":["string","null"],"format":"date-time"}},"required":["id","name","scope","displayPrefix","last4","createdAt","lastUsedAt","revokedAt"]},"PayPaymentLinkInput":{"type":"object","properties":{"destination":{"type":"object","properties":{"chainId":{"type":"string"},"asset":{"type":"string"},"amount":{"type":"string","description":"Decimal amount the recipient receives, such as \"25.00\". Send amount or amountAtomic."},"amountAtomic":{"type":"string","pattern":"^[1-9][0-9]*$","maxLength":39,"description":"Positive decimal integer string in the asset’s atomic units."},"recipient":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"}},"required":["chainId","asset"]},"title":{"type":"string","maxLength":80},"merchantReference":{"type":"string","maxLength":100,"pattern":"^[A-Za-z0-9._:-]*$"},"reusable":{"type":"boolean","default":false}},"required":["destination"]},"PayPaymentLink":{"type":"object","properties":{"id":{"type":"string","pattern":"^plink_"},"url":{"type":"string","format":"uri","description":"The address to give the buyer, for example https://pay.axiv.cc/pay/plink_…."},"qrPath":{"type":"string","description":"Path of the link’s QR code on the payment API, for example /v1/checkout/plink_…/qr.svg."},"status":{"type":"string","enum":["ACTIVE","PAID","DISABLED","EXPIRED"]},"reusable":{"type":"boolean"},"title":{"type":["string","null"]},"merchantReference":{"type":["string","null"]},"destination":{"allOf":[{"$ref":"#/components/schemas/PayAsset"},{"type":"object","properties":{"amountAtomic":{"type":"string","pattern":"^[1-9][0-9]*$","maxLength":39,"description":"Positive decimal integer string in the asset’s atomic units."},"amount":{"type":"string"},"recipient":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"}},"required":["amountAtomic","amount","recipient"]}]},"createdAt":{"type":"string","format":"date-time"},"expiresAt":{"type":["string","null"],"format":"date-time"},"paidAt":{"type":["string","null"],"format":"date-time"},"paymentId":{"type":["string","null"]},"completedPayments":{"type":"integer","minimum":0}},"required":["id","url","qrPath","status","reusable","title","merchantReference","destination","createdAt","expiresAt","paidAt","paymentId","completedPayments"]},"PayLinkPayment":{"type":"object","properties":{"paymentId":{"type":"string"},"status":{"type":"string","enum":["AWAITING_DEPOSIT","DEPOSIT_OBSERVED","GUARANTEED","PAYOUT_PENDING","PAID","SETTLED","REFUND_PENDING","REFUNDED","EXPIRED","FAILED","REVIEW_REQUIRED"]},"payer":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"},"source":{"$ref":"#/components/schemas/PayAsset"},"receivedAtomic":{"type":["string","null"]},"createdAt":{"type":"string","format":"date-time"}},"required":["paymentId","status","payer","source","receivedAtomic","createdAt"]},"PayCheckout":{"type":"object","properties":{"id":{"type":"string"},"status":{"type":"string","enum":["ACTIVE","PAID","DISABLED","EXPIRED"]},"title":{"type":["string","null"]},"reusable":{"type":"boolean"},"destination":{"allOf":[{"$ref":"#/components/schemas/PayAsset"},{"type":"object","properties":{"chainName":{"type":"string"},"amountAtomic":{"type":"string","pattern":"^[1-9][0-9]*$","maxLength":39,"description":"Positive decimal integer string in the asset’s atomic units."},"amount":{"type":"string"},"recipient":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"}},"required":["chainName","amountAtomic","amount","recipient"]}]},"paymentOptions":{"type":"array","items":{"allOf":[{"$ref":"#/components/schemas/PayAsset"},{"type":"object","properties":{"chainName":{"type":"string"}},"required":["chainName"]}]}},"paid":{"type":["object","null"],"properties":{"paymentId":{"type":"string"},"paidAt":{"type":"string","format":"date-time"}}}},"required":["id","status","title","reusable","destination","paymentOptions","paid"]},"PayUsage":{"type":"object","properties":{"period":{"type":"object","properties":{"month":{"type":"string"},"startsAt":{"type":"string","format":"date-time"},"resetsAt":{"type":"string","format":"date-time"}},"required":["month","startsAt","resetsAt"]},"freeTier":{"type":"object","properties":{"monthlyVolumeUsd":{"type":"string"},"usedVolumeUsd":{"type":"string"},"remainingVolumeUsd":{"type":"string"},"withinFreeTier":{"type":"boolean"}},"required":["monthlyVolumeUsd","usedVolumeUsd","remainingVolumeUsd","withinFreeTier"]},"axivFees":{"type":"object","properties":{"rateBps":{"type":"integer"},"chargedUsd":{"type":"string"}},"required":["rateBps","chargedUsd"]},"payments":{"type":"object","properties":{"created":{"type":"integer"},"completed":{"type":"integer"}},"required":["created","completed"]},"quotes":{"type":"object","properties":{"created":{"type":"integer"}},"required":["created"]},"limits":{"type":"object","properties":{"quotesPerMinute":{"type":"integer"},"paymentsPerMinute":{"type":"integer"}},"required":["quotesPerMinute","paymentsPerMinute"]}},"required":["period","freeTier","axivFees","payments","quotes","limits"]},"PayPricing":{"type":"object","properties":{"axivFeeBps":{"type":"integer","const":0},"freeMonthlyVolumeUsd":{"type":"string"},"freeTierRenews":{"const":"MONTHLY"},"signupFeeUsd":{"type":"string"},"monthlyFeeUsd":{"type":"string"},"automaticCharges":{"type":"boolean","const":false},"standardLimits":{"type":"object","properties":{"quotesPerMinute":{"type":"integer"},"paymentsPerMinute":{"type":"integer"}},"required":["quotesPerMinute","paymentsPerMinute"]}},"required":["axivFeeBps","freeMonthlyVolumeUsd","freeTierRenews","signupFeeUsd","monthlyFeeUsd","automaticCharges","standardLimits"]},"PayRoute":{"type":"object","properties":{"id":{"type":"string"},"source":{"type":"object","properties":{"chainId":{"type":"string"},"tokenAddress":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"}},"required":["chainId","tokenAddress"]},"destination":{"type":"object","properties":{"chainId":{"type":"string"},"tokenAddress":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"}},"required":["chainId","tokenAddress"]}},"required":["id","source","destination"]},"PayCapabilities":{"type":"object","properties":{"environment":{"type":"string"},"simulation":{"type":"boolean","description":"false on the production payment API. true only on a development mock channel."},"mode":{"type":"string","enum":["live","mock"]},"version":{"type":"string"},"fundingModes":{"type":"array","items":{"type":"string","enum":["DIRECT"]}},"paymentExecutionEnabled":{"type":"boolean"},"liveRoutes":{"type":"array","items":{"$ref":"#/components/schemas/PayRoute"},"description":"Routes verified with a live transfer. Empty until the first verification."},"quoteRouting":{"type":"object","properties":{"mode":{"const":"QUOTE_BASED"},"channels":{"type":"array","items":{"type":"string"}},"routes":{"type":"array","items":{"type":"string"}},"chains":{"type":"array","items":{"type":"object","properties":{"chainId":{"type":"string"},"name":{"type":"string"}},"required":["chainId","name"]}}},"required":["mode","channels","routes","chains"]},"paymentStates":{"type":"array","items":{"type":"string","enum":["AWAITING_DEPOSIT","DEPOSIT_OBSERVED","GUARANTEED","PAYOUT_PENDING","PAID","SETTLED","REFUND_PENDING","REFUNDED","EXPIRED","FAILED","REVIEW_REQUIRED"]}},"guarantees":{"const":"NOT_AVAILABLE"},"pricing":{"$ref":"#/components/schemas/PayPricing","description":"Free allowance and standard limits. Absent on API versions before the free allowance."}},"required":["environment","simulation","mode","version","fundingModes","paymentExecutionEnabled","liveRoutes","quoteRouting","paymentStates","guarantees"]},"PayAssetInput":{"type":"object","properties":{"chainId":{"type":["string","integer"],"description":"Decimal EVM chain ID. A string is recommended."},"asset":{"type":"string","maxLength":16,"description":"Symbol. Send asset or tokenAddress."},"tokenAddress":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"}},"required":["chainId"]},"PayQuoteInput":{"type":"object","properties":{"source":{"allOf":[{"$ref":"#/components/schemas/PayAssetInput"},{"type":"object","properties":{"amountAtomic":{"type":"string","pattern":"^[1-9][0-9]*$","maxLength":39,"description":"Positive decimal integer string in the asset’s atomic units."}},"required":["amountAtomic"]}]},"destination":{"allOf":[{"$ref":"#/components/schemas/PayAssetInput"},{"type":"object","properties":{"recipient":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"}},"required":["recipient"]}]},"fundingMode":{"type":"string","enum":["DIRECT"],"description":"PREFUNDED answers 422 FUNDING_MODE_UNAVAILABLE."},"payer":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"},"allowedRoutes":{"type":"array","minItems":1,"maxItems":8,"items":{"type":"string","pattern":"^[A-Z0-9_]{1,32}$"},"description":"Quote only among these routes, for example [\"ACROSS\"]. No fallback to other routes."}},"required":["source","destination"]},"PayAsset":{"type":"object","properties":{"chainId":{"type":"string"},"asset":{"type":"string"},"tokenAddress":{"type":["string","null"],"pattern":"^0x[0-9a-fA-F]{40}$"},"decimals":{"type":"integer","minimum":0}},"required":["chainId","asset","tokenAddress","decimals"]},"PayQuoteSource":{"allOf":[{"$ref":"#/components/schemas/PayAsset"},{"type":"object","properties":{"amountAtomic":{"type":"string","pattern":"^[1-9][0-9]*$","maxLength":39,"description":"Positive decimal integer string in the asset’s atomic units."}},"required":["amountAtomic"]}]},"PayQuoteDestination":{"allOf":[{"$ref":"#/components/schemas/PayAsset"},{"type":"object","properties":{"recipient":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"}},"required":["recipient"]}]},"PayQuote":{"type":"object","properties":{"environment":{"type":"string"},"simulation":{"type":"boolean","description":"false on the production payment API. true only on a development mock channel."},"mode":{"type":"string","enum":["live","mock"]},"quoteId":{"type":"string","pattern":"^quote_"},"source":{"$ref":"#/components/schemas/PayQuoteSource"},"destination":{"$ref":"#/components/schemas/PayQuoteDestination"},"fundingMode":{"const":"DIRECT"},"payer":{"type":["string","null"],"pattern":"^0x[0-9a-fA-F]{40}$"},"channel":{"type":"string"},"route":{"type":"string"},"routeVariant":{"type":["string","null"]},"routeId":{"type":"string"},"feeBps":{"type":["integer","null"]},"feeAtomic":{"type":["string","null"]},"payFeeAtomic":{"type":"string","description":"Axiv Pay fee in source atomic units. Currently \"0\"."},"expectedReceiveAtomic":{"type":"string"},"minReceiveAtomic":{"type":"string"},"estimatedDurationMs":{"type":["integer","null"]},"payerNetworkFeeUsd":{"type":["string","null"]},"effectiveCostUsd":{"type":["string","null"]},"fees":{},"alternativeRoutes":{"type":"integer","minimum":0},"allowedRoutes":{"type":["array","null"],"items":{"type":"string"}},"expiresAt":{"type":"string","format":"date-time"}},"required":["environment","simulation","mode","quoteId","source","destination","fundingMode","payer","channel","route","routeVariant","routeId","feeBps","feeAtomic","payFeeAtomic","expectedReceiveAtomic","minReceiveAtomic","estimatedDurationMs","payerNetworkFeeUsd","effectiveCostUsd","fees","alternativeRoutes","allowedRoutes","expiresAt"]},"PaySourceFunding":{"type":"object","properties":{"status":{"type":"string","enum":["NOT_SUBMITTED","SUBMITTED","CONFIRMED"],"description":"CONFIRMED means the execution channel verified the source transaction (verifiedAt). It is not Axiv Pay’s own receipt check. That is verification: RECEIPT."},"chainId":{"type":"string"},"tokenAddress":{"type":["string","null"],"pattern":"^0x[0-9a-fA-F]{40}$"},"amountAtomic":{"type":"string","pattern":"^[1-9][0-9]*$","maxLength":39,"description":"The quoted source amount."},"txHash":{"type":["string","null"]},"submittedAt":{"type":["string","null"],"format":"date-time"},"blockNumber":{"type":["integer","null"]},"blockHash":{"type":["string","null"]},"finality":{"type":["string","null"],"description":"As reported by the execution channel."},"verifiedAt":{"type":["string","null"],"format":"date-time"},"recipient":{"type":["string","null"],"pattern":"^0x[0-9a-fA-F]{40}$","description":"The contract that received the deposit, read from the receipt (the SpokePool on Across). Not the payment recipient. null until the receipt is checked."},"logIndex":{"type":["integer","null"]},"verification":{"type":["string","null"],"enum":["RECEIPT",null],"description":"RECEIPT once Axiv Pay read the source receipt and matched the payer’s transfer. It is not a finality statement."}},"required":["status","chainId","tokenAddress","amountAtomic","txHash","submittedAt","blockNumber","blockHash","finality","verifiedAt","recipient","logIndex","verification"]},"PayPayout":{"type":["object","null"],"description":"null until the execution channel reports a payout transaction or the payment is PAID.","required":["status","chainId","tokenAddress","recipient","amountAtomic","txHash","confirmedAt","logIndex","blockNumber","blockHash","verification"],"properties":{"status":{"type":"string","enum":["PENDING","CONFIRMED"],"description":"CONFIRMED only when the payment is PAID or SETTLED."},"chainId":{"type":"string"},"tokenAddress":{"type":["string","null"],"pattern":"^0x[0-9a-fA-F]{40}$"},"recipient":{"type":["string","null"],"pattern":"^0x[0-9a-fA-F]{40}$","description":"The payment recipient."},"amountAtomic":{"type":["string","null"]},"txHash":{"type":["string","null"]},"confirmedAt":{"type":["string","null"],"format":"date-time"},"logIndex":{"type":["integer","null"]},"blockNumber":{"type":["integer","null"]},"blockHash":{"type":["string","null"]},"verification":{"type":["string","null"],"enum":["RECEIPT",null],"description":"RECEIPT once Axiv Pay read the destination receipt and matched token, recipient and amount. It is not a finality statement."}}},"PayPayment":{"type":"object","properties":{"environment":{"type":"string"},"simulation":{"type":"boolean","description":"false on the production payment API. true only on a development mock channel."},"mode":{"type":"string","enum":["live","mock"]},"id":{"type":"string"},"paymentId":{"type":"string"},"quoteId":{"type":"string"},"routeId":{"type":"string"},"merchantReference":{"type":"string"},"payer":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"},"status":{"type":"string","enum":["AWAITING_DEPOSIT","DEPOSIT_OBSERVED","GUARANTEED","PAYOUT_PENDING","PAID","SETTLED","REFUND_PENDING","REFUNDED","EXPIRED","FAILED","REVIEW_REQUIRED"],"description":"An external-channel payment ends at PAID: Axiv Pay recorded it only after reading the source and destination receipts. PAYOUT_PENDING waits for a receipt. REVIEW_REQUIRED, FAILED, EXPIRED and REFUNDED are not paid."},"delayed":{"type":"boolean"},"channel":{"type":"string"},"route":{"type":["string","null"]},"source":{"$ref":"#/components/schemas/PayQuoteSource"},"destination":{"$ref":"#/components/schemas/PayQuoteDestination"},"minReceiveAtomic":{"type":"string"},"sourceFunding":{"$ref":"#/components/schemas/PaySourceFunding"},"payout":{"$ref":"#/components/schemas/PayPayout"},"guarantee":{"type":"null"},"settlement":{"type":"null"},"settlementModel":{"const":"EXTERNAL","description":"Solver reimbursement inside the execution channel is not visible to Axiv Pay. The payment ends at PAID, not SETTLED."},"orderLink":{"type":["object","null"],"description":"On an ACROSS route: the deposit ID and the deposit and fill contracts and log indexes Axiv Pay matched. null on other routes."},"refund":{"type":["object","null"]},"nextAction":{"type":"string","enum":["REQUEST_FUNDING_INSTRUCTIONS","WAIT","NONE"]},"funding":{"type":"object","properties":{"nextStepId":{"type":["string","null"]},"steps":{"type":"array","items":{"type":"object","properties":{"stepId":{"type":"string"},"purpose":{"type":"string"},"kind":{"type":"string"},"status":{"type":"string"},"txHash":{"type":["string","null"]}},"required":["stepId","purpose","kind","status","txHash"]}}},"required":["nextStepId","steps"]},"reason":{"type":["string","null"]},"channelStatus":{"type":["string","null"]},"fundingExpiresAt":{"type":["string","null"],"format":"date-time"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["environment","simulation","mode","id","paymentId","quoteId","routeId","merchantReference","payer","status","delayed","channel","route","source","destination","minReceiveAtomic","sourceFunding","payout","guarantee","settlement","settlementModel","orderLink","refund","nextAction","funding","reason","channelStatus","fundingExpiresAt","createdAt","updatedAt"]},"PayFundingInstructions":{"type":"object","properties":{"environment":{"type":"string"},"simulation":{"type":"boolean","description":"false on the production payment API. true only on a development mock channel."},"mode":{"type":"string","enum":["live","mock"]},"paymentId":{"type":"string"},"status":{"type":"string","enum":["AWAITING_DEPOSIT","DEPOSIT_OBSERVED","GUARANTEED","PAYOUT_PENDING","PAID","SETTLED","REFUND_PENDING","REFUNDED","EXPIRED","FAILED","REVIEW_REQUIRED"]},"payer":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"},"source":{"$ref":"#/components/schemas/PayQuoteSource"},"step":{"type":"object","properties":{"stepId":{"type":"string","format":"uuid"},"purpose":{"type":"string","description":"APPROVAL moves no funds. BRIDGE_DEPOSIT moves the payment amount."},"kind":{"type":"string","enum":["EVM_TRANSACTION","EVM_APPROVAL"]},"payload":{"type":"object","description":"Wallet transaction on the payment source chain. Send it unchanged from the payer account.","properties":{"chainId":{"type":["integer","string"],"description":"Usually a number, for example 8453. Axiv Pay matches either form against the source chain."},"from":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$","description":"The payer."},"to":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"},"data":{"type":"string"},"value":{},"gasLimit":{}}},"planVersion":{"type":"integer","minimum":0}},"required":["stepId","purpose","kind","payload","planVersion"]},"submitTo":{"type":"string"},"minReceiveAtomic":{"type":"string"}},"required":["environment","simulation","mode","paymentId","status","payer","source","step","submitTo","minReceiveAtomic"]},"Chain":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"assets":{"type":"array","items":{"type":"string"}},"proof":{"type":"string"}},"required":["id","name","assets","proof"]},"Feature":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"en":{"type":"string"},"category":{"type":"string","enum":["discovery","route","payment","tracking","protocol"]},"description":{"type":"string"},"roles":{"type":"array","items":{"type":"string","enum":["user","merchant","agent"]}},"chains":{"type":"array","items":{"type":"string"}},"assets":{"type":"array","items":{"type":"string"}},"endpoint":{"type":"string"},"path":{"type":"string"},"adapter":{"type":"string"},"status":{"type":"string","enum":["verified","partial","planned","blocked"]},"version":{"type":"string"},"visibility":{"type":"string","enum":["public","private"]},"verifiedAt":{"type":"string","description":"YYYY-MM-DD, or empty when unverified. Required for verified status."},"docs":{"type":"string"},"flow":{"type":"array","items":{"type":"string"}},"request":{"type":"object"},"response":{"type":"object"},"command":{"type":"string"},"gap":{"type":"string"}},"required":["id","title","category","description","roles","chains","assets","endpoint","status","version","visibility","verifiedAt","flow","request","response","command"]},"Adapter":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"monogram":{"type":"string"},"layer":{"type":"string"},"description":{"type":"string"},"surfaces":{"type":"array","items":{"type":"string","enum":["request","quote","settlement"]}},"connect":{"type":"string"},"url":{"type":"string"},"request":{"type":"string"},"status":{"type":"string","enum":["verified","partial","planned","blocked"]},"version":{"type":"string"},"visibility":{"type":"string","enum":["public","private"]},"verifiedAt":{"type":"string","description":"YYYY-MM-DD, or empty when unverified. Required for verified status."},"gap":{"type":"string"}},"required":["id","title","layer","description","surfaces","connect","request","status","visibility","verifiedAt"]},"Resource":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"type":{"type":"string","enum":["Docs","GitHub","OpenAPI","SDK","MCP","Agent Skill","API"]},"url":{"type":"string"},"status":{"type":"string","enum":["verified","partial","planned","blocked"]},"version":{"type":"string"},"visibility":{"type":"string","enum":["public","private"]},"verifiedAt":{"type":"string","description":"YYYY-MM-DD, or empty when unverified. Required for verified status."},"note":{"type":"string"}},"required":["id","title","type","url","status","version","visibility","verifiedAt"]},"Registry":{"type":"object","properties":{"chains":{"type":"array","items":{"$ref":"#/components/schemas/Chain"}},"features":{"type":"array","items":{"$ref":"#/components/schemas/Feature"}},"adapters":{"type":"array","items":{"$ref":"#/components/schemas/Adapter"}},"resources":{"type":"array","items":{"$ref":"#/components/schemas/Resource"}},"assignments":{"type":"object","properties":{"request":{"type":"string"},"quote":{"type":"string"},"settlement":{"type":"string"}},"required":["request","quote","settlement"]},"checklist":{"type":"object","properties":{"user":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"note":{"type":"string"},"state":{"type":"string","enum":["todo","doing","done"]}},"required":["id","title","note","state"]}},"merchant":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"note":{"type":"string"},"state":{"type":"string","enum":["todo","doing","done"]}},"required":["id","title","note","state"]}},"agent":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"note":{"type":"string"},"state":{"type":"string","enum":["todo","doing","done"]}},"required":["id","title","note","state"]}}},"required":["user","merchant","agent"]},"gaps":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"note":{"type":"string"},"state":{"type":"string","enum":["todo","doing","done"]},"required":{"type":"boolean"}},"required":["id","title","note","state","required"]}}},"required":["chains","features","adapters","resources","assignments","checklist","gaps"]},"Catalog":{"type":"object","properties":{"schemaVersion":{"const":1},"version":{"type":"string"},"mode":{"type":"string","enum":["live","demo"]},"paymentExecutionEnabled":{"type":"boolean","description":"Copied from the payment API. The payment API GET /v1/capabilities is the source of truth."},"liveRoutes":{"type":"array","items":{"$ref":"#/components/schemas/PayRoute"},"description":"Routes verified with a live transfer. Empty until the first verification."},"sandboxAvailable":{"const":true},"paymentApi":{"type":"string","format":"uri"},"features":{"type":"array","items":{"$ref":"#/components/schemas/Feature"}},"adapters":{"type":"array","items":{"$ref":"#/components/schemas/Adapter"}},"resources":{"type":"array","items":{"$ref":"#/components/schemas/Resource"}},"chains":{"type":"array","items":{"$ref":"#/components/schemas/Chain"}},"links":{"type":"object"},"note":{"type":"string"}},"required":["schemaVersion","version","mode","paymentExecutionEnabled","liveRoutes","sandboxAvailable","paymentApi","features","adapters","resources","chains","links","note"]},"RegistryInput":{"type":"object","properties":{"schemaVersion":{"const":1},"mode":{"const":"live"},"expectedRevision":{"type":"integer","minimum":0},"registry":{"$ref":"#/components/schemas/Registry"}},"required":["schemaVersion","mode","expectedRevision","registry"]},"Workspace":{"type":"object","properties":{"schemaVersion":{"const":1},"mode":{"type":"string","enum":["live","demo"]},"revision":{"type":["integer","null"]},"registry":{"$ref":"#/components/schemas/Registry"},"runs":{"type":"array","items":{"$ref":"#/components/schemas/Run"}},"permissions":{"type":"object","properties":{"canWrite":{"type":"boolean"},"signedIn":{"type":"boolean"}},"required":["canWrite","signedIn"]},"probes":{"type":"array","items":{"type":"object"}},"report":{"$ref":"#/components/schemas/ReleaseReport"}},"required":["schemaVersion","mode","revision","registry","runs","permissions","probes","report"]},"ReleaseReport":{"type":"object","properties":{"mode":{"type":"string","enum":["live","demo"]},"reportAt":{"type":"string","format":"date-time"},"docsVersion":{"type":"string"},"result":{"type":"string","enum":["ready","hold"]},"requiredRemaining":{"type":"array","items":{"type":"string"}},"operationalGate":{"type":"string","enum":["pass","fail","unverified"]},"settlementEvidence":{"type":"object","properties":{"status":{"type":"string","enum":["pass","fail","pending","unverified"],"description":"pending: an external-route payment matches the chain receipts and is waiting for finality."},"kind":{"type":["string","null"],"enum":["SOLVER_SETTLEMENT","EXTERNAL_ROUTE",null],"description":"SOLVER_SETTLEMENT: a SETTLED payment with source funding, payout, and solver reimbursement. EXTERNAL_ROUTE: a PAID payment with source funding and payout only. Solver reimbursement is not part of an external route."},"checkedAt":{"type":["string","null"],"format":"date-time"}},"required":["status","kind","checkedAt"]},"failedReads":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string"},"at":{"type":"string"},"summary":{"type":"string"}},"required":["label","at","summary"]}},"checklist":{"type":"array","items":{"type":"object","properties":{"role":{"type":"string","enum":["user","merchant","agent"]},"done":{"type":"integer","minimum":0},"total":{"type":"integer","minimum":0}},"required":["role","done","total"]}},"unverifiedFeatures":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"status":{"type":"string","enum":["verified","partial","planned","blocked"]}},"required":["id","title","status"]}},"note":{"type":"string"}},"required":["mode","reportAt","docsVersion","result","requiredRemaining","operationalGate","settlementEvidence","failedReads","checklist","unverifiedFeatures","note"]},"Run":{"type":"object","properties":{"id":{"type":"string"},"checkId":{"type":"string"},"label":{"type":"string"},"target":{"type":"string"},"at":{"type":"string"},"mode":{"type":"string","enum":["live","demo"]},"source":{"type":"string"},"result":{"type":"string","enum":["pass","fail","pending"],"description":"pending applies to production payment evidence for an external route that is waiting for finality."},"httpStatus":{"type":["integer","null"]},"latencyMs":{"type":"integer","minimum":0},"summary":{"type":"string"},"evidence":{"type":"object"}},"required":["id","checkId","label","target","at","mode","source","result","httpStatus","latencyMs","summary","evidence"]}}}}