{"docsConfig":{"theme":"sequoia","$schema":"https://mintlify.com/docs.json","name":"Crycket Documentation","colors":{"primary":"#16A34A","light":"#07C983","dark":"#15803D"},"logo":{"light":"https://mintcdn.com/cherp/o1WwAtNmZQb81qza/logo/light.svg?fit=max\u0026auto=format\u0026n=o1WwAtNmZQb81qza\u0026q=85\u0026s=db020bf07f027bb3d6a3d015d406ff6a","dark":"https://mintcdn.com/cherp/o1WwAtNmZQb81qza/logo/dark.svg?fit=max\u0026auto=format\u0026n=o1WwAtNmZQb81qza\u0026q=85\u0026s=ddd6104b515e21a9483ccf23802f1ced"},"favicon":"https://mintcdn.com/cherp/8Rdh2yNlqIgjnPIS/favicon.svg?fit=max\u0026auto=format\u0026n=8Rdh2yNlqIgjnPIS\u0026q=85\u0026s=c3a4ee1027127fc7efb160a406f0feee","navbar":{"links":[{"href":"mailto:hi@crycketpay.com","label":"Support"}],"primary":{"type":"button","label":"Dashboard","href":"https://dashboard.crycketpay.com"}},"footer":{"socials":{"github":"https://github.com/crycket"}},"styling":{"latex":false},"navigation":{"global":{"anchors":[{"anchor":"API reference","icon":"code","href":"/api-reference/introduction"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"cherp","hasAudioNarration":false,"actualSubdomain":"cherp","customDomains":["docs.crycketpay.com"],"gitSource":{"type":"github","owner":"crycketpay","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6a21b6b949aa838db643cf67","collectionId":"6b4feca5-4286-4e47-ac02-76200e41edb8","schemaVersion":"v2"},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6a21b6b949aa838db643cf67:success","clientVersion":"0.0.3990","searchFilterCounts":[{"language":"default","tag":"API reference","count":17},{"language":"default","tag":"Guides","count":15},{"language":"default","tag":"Intents","count":10},{"language":"default","tag":"Integration guides","count":5},{"language":"default","tag":"Core concepts","count":4},{"language":"default","tag":"SDK","count":4},{"language":"default","tag":"Webhooks","count":3},{"language":"default","tag":"Reference data","count":2},{"language":"default","tag":"Getting started","count":2},{"language":"default","tag":"Testing","count":1}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-v7-file-tree","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"pause-universal-search-reconcile","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"per-site-search-delta","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-private-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-nav-generations","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"byok-sep-25","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-agent-model-picker","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-updated-9-15","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"isAtlas":false,"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"api-reference/endpoint/create","slug":"/api-reference/endpoint/create","pageMetadata":{"title":"Create intent","openapi":"POST /intents","description":"Creates a new Payment Intent. The same `idempotencyKey` within 24 hours returns the existing Intent with `X-Idempotent-Replayed: true`.","href":"/api-reference/endpoint/create"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n code: \"code\",\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_components.p, {\n children: [\"Creates a new Payment Intent. The same \", _jsx(_components.code, {\n children: \"idempotencyKey\"\n }), \" within 24 hours returns the existing Intent with \", _jsx(_components.code, {\n children: \"X-Idempotent-Replayed: true\"\n }), \".\"]\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Create intent","openapi":"POST /intents","description":"Creates a new Payment Intent. The same `idempotencyKey` within 24 hours returns the existing Intent with `X-Idempotent-Replayed: true`.","href":"/api-reference/endpoint/create"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"operationId":"createIntent","summary":"Create a payment intent","description":"Creates a new Payment Intent. The same `idempotencyKey` within 24 hours returns the existing Intent with `X-Idempotent-Replayed: true`.","requestBody":"b6aaf40c-100c-40d9-8525-72bd7e411a96","responses":{"201":"2f2275e7-e782-4a15-9efb-9985a2f8dd79","400":"129824c2-7a8b-41c2-9f3c-44ac5e100c61","401":"f72fa632-9911-4dfb-8476-84420fc3968c","422":"86df530b-e426-4716-aa6b-9cd9edaa1ac3"},"method":"post","type":"path","servers":["286a47a7-54d5-41ff-af8e-c580c1bb2ebc"],"security":["1749bea0-7e11-4ffa-9a4e-79ed071382cc"],"path":"/intents","baseUrlOptions":["https://api.crycketpay.com/v1"],"title":"Create a payment intent","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["chain","token","amount","requestor","idempotencyKey"],"properties":{"chain":{"type":"string","description":"CAIP-2 chain identifier","example":"solana:5eykt4UsFv8P8NJdTREpY1vzqKq2Kvdp","isRequired":true,"uniqueKey":"chain","typeLabel":"string"},"token":{"type":"string","description":"Canonical symbol or chain-specific address","example":"USDC","isRequired":true,"uniqueKey":"token","typeLabel":"string"},"amount":{"type":"string","description":"Decimal string amount","example":"10.50","isRequired":true,"uniqueKey":"amount","typeLabel":"string"},"requestor":{"type":"string","description":"Wallet address of the requestor","isRequired":true,"uniqueKey":"requestor","typeLabel":"string"},"idempotencyKey":{"type":"string","description":"Caller-supplied idempotency key, unique per account per 24h","example":"order_982734","isRequired":true,"uniqueKey":"idempotencyKey","typeLabel":"string"},"fulfiller":{"type":"string","description":"Optional wallet address of the fulfiller","uniqueKey":"fulfiller","typeLabel":"string"},"direction":{"type":"string","enum":["request","send"],"default":"request","uniqueKey":"direction","typeLabel":"enum\u003cstring>"},"ttlSeconds":{"type":"number","description":"Time-to-live in seconds (min 300, max 2592000)","default":86400,"uniqueKey":"ttlSeconds","typeLabel":"number"},"metadata":{"type":"object","additionalProperties":{"type":"string","uniqueKey":"metadata.additionalProperties","typeLabel":"string"},"description":"Custom key-value pairs, max 20 keys","example":{"orderId":"982734"},"uniqueKey":"metadata","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"chain":"solana:5eykt4UsFv8P8NJdTREpY1vzqKq2Kvdp","token":"USDC","amount":"10.50","requestor":"\u003cstring>","idempotencyKey":"order_982734","fulfiller":"\u003cstring>","direction":"request","ttlSeconds":86400,"metadata":{"orderId":"982734"}}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"2f2275e7-e782-4a15-9efb-9985a2f8dd79":{"description":"Payment Intent created","content":{"application/json":{"schema":{"type":"object","properties":{"intent":{"type":"object","required":["id","chain","token","amount","requestor","state","direction","reference","createdAt","updatedAt","expiresAt","livemode"],"properties":{"id":{"type":"string","description":"Unique identifier, prefixed with `pi_`","example":"pi_abc123def456ghij","isRequired":true,"uniqueKey":"intent.id","typeLabel":"string"},"chain":{"type":"string","description":"CAIP-2 chain identifier","example":"solana:5eykt4UsFv8P8NJdTREpY1vzqKq2Kvdp","isRequired":true,"uniqueKey":"intent.chain","typeLabel":"string"},"token":{"type":"string","description":"Canonical symbol (e.g. `USDC`) or chain-specific address","example":"USDC","isRequired":true,"uniqueKey":"intent.token","typeLabel":"string"},"amount":{"type":"string","description":"Decimal string amount","example":"10.50","isRequired":true,"uniqueKey":"intent.amount","typeLabel":"string"},"requestor":{"type":"string","description":"Wallet address of the party requesting payment","isRequired":true,"uniqueKey":"intent.requestor","typeLabel":"string"},"direction":{"type":"string","enum":["request","send"],"description":"`request` = requestor created, fulfiller pays. `send` = fulfiller created, pushes payment.","isRequired":true,"uniqueKey":"intent.direction","typeLabel":"enum\u003cstring>"},"state":{"type":"string","enum":["created","pending","confirmed","finalized","failed","expired","cancelled"],"description":"Current state of the Payment Intent","isRequired":true,"uniqueKey":"intent.state","typeLabel":"enum\u003cstring>"},"reference":{"type":"string","description":"Correlation reference. Solana: base58 pubkey. EVM: bytes32 hex.","isRequired":true,"uniqueKey":"intent.reference","typeLabel":"string"},"expiresAt":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"intent.expiresAt","typeLabel":"string\u003cdate-time>"},"createdAt":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"intent.createdAt","typeLabel":"string\u003cdate-time>"},"updatedAt":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"intent.updatedAt","typeLabel":"string\u003cdate-time>"},"livemode":{"type":"boolean","description":"Whether this intent was created with a live API key","isRequired":true,"uniqueKey":"intent.livemode","typeLabel":"boolean"},"idempotencyKey":{"type":"string","description":"Caller-supplied key, unique per account per 24h","uniqueKey":"intent.idempotencyKey","typeLabel":"string"},"tokenAddress":{"type":"string","description":"Resolved chain-specific contract address","uniqueKey":"intent.tokenAddress","typeLabel":"string"},"amountBaseUnits":{"type":"string","description":"Resolved to lamports/wei/TIP-20 units","uniqueKey":"intent.amountBaseUnits","typeLabel":"string"},"fulfiller":{"oneOf":[{"type":"string","description":"Wallet address of the party fulfilling payment","uniqueKey":"intent.fulfiller.oneOf.0","typeLabel":"string"},{"type":"null","description":"Wallet address of the party fulfilling payment","uniqueKey":"intent.fulfiller.oneOf.1","typeLabel":"null"}],"uniqueKey":"intent.fulfiller","typeLabel":"string | null"},"retryRequired":{"type":"boolean","description":"True if tx was dropped and fulfiller must re-sign","uniqueKey":"intent.retryRequired","typeLabel":"boolean"},"pendingAtExpiry":{"type":"boolean","description":"True if tx was in mempool when TTL expired","uniqueKey":"intent.pendingAtExpiry","typeLabel":"boolean"},"txSignature":{"oneOf":[{"type":"string","description":"Solana tx signature or EVM tx hash after submission","uniqueKey":"intent.txSignature.oneOf.0","typeLabel":"string"},{"type":"null","description":"Solana tx signature or EVM tx hash after submission","uniqueKey":"intent.txSignature.oneOf.1","typeLabel":"null"}],"uniqueKey":"intent.txSignature","typeLabel":"string | null"},"detectedAt":{"oneOf":[{"type":"string","format":"date-time","description":"When the audio receipt was acknowledged","uniqueKey":"intent.detectedAt.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","description":"When the audio receipt was acknowledged","uniqueKey":"intent.detectedAt.oneOf.1","typeLabel":"null"}],"uniqueKey":"intent.detectedAt","typeLabel":"string\u003cdate-time> | null"},"ataRentLamports":{"oneOf":[{"type":"number","description":"ATA rent cost in lamports (Solana only)","uniqueKey":"intent.ataRentLamports.oneOf.0","typeLabel":"number"},{"type":"null","description":"ATA rent cost in lamports (Solana only)","uniqueKey":"intent.ataRentLamports.oneOf.1","typeLabel":"null"}],"uniqueKey":"intent.ataRentLamports","typeLabel":"number | null"},"ttlSeconds":{"type":"number","description":"Time-to-live in seconds","default":86400,"uniqueKey":"intent.ttlSeconds","typeLabel":"number"},"confirmedAt":{"oneOf":[{"type":"string","format":"date-time","uniqueKey":"intent.confirmedAt.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","uniqueKey":"intent.confirmedAt.oneOf.1","typeLabel":"null"}],"uniqueKey":"intent.confirmedAt","typeLabel":"string\u003cdate-time> | null"},"finalizedAt":{"oneOf":[{"type":"string","format":"date-time","uniqueKey":"intent.finalizedAt.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","uniqueKey":"intent.finalizedAt.oneOf.1","typeLabel":"null"}],"uniqueKey":"intent.finalizedAt","typeLabel":"string\u003cdate-time> | null"},"metadata":{"oneOf":[{"type":"object","additionalProperties":{"type":"string","uniqueKey":"intent.metadata.oneOf.0.additionalProperties","typeLabel":"string"},"description":"Integrator key-value bag, max 20 keys","uniqueKey":"intent.metadata.oneOf.0","typeLabel":"object"},{"type":"null","additionalProperties":{"type":"string","uniqueKey":"intent.metadata.oneOf.1.additionalProperties","typeLabel":"string"},"description":"Integrator key-value bag, max 20 keys","uniqueKey":"intent.metadata.oneOf.1","typeLabel":"null"}],"uniqueKey":"intent.metadata","typeLabel":"object | null"},"refundedBy":{"oneOf":[{"type":"string","description":"Intent ID of the refund intent, if any","uniqueKey":"intent.refundedBy.oneOf.0","typeLabel":"string"},{"type":"null","description":"Intent ID of the refund intent, if any","uniqueKey":"intent.refundedBy.oneOf.1","typeLabel":"null"}],"uniqueKey":"intent.refundedBy","typeLabel":"string | null"},"refundOf":{"oneOf":[{"type":"string","description":"Intent ID this is a refund of, if any","uniqueKey":"intent.refundOf.oneOf.0","typeLabel":"string"},{"type":"null","description":"Intent ID this is a refund of, if any","uniqueKey":"intent.refundOf.oneOf.1","typeLabel":"null"}],"uniqueKey":"intent.refundOf","typeLabel":"string | null"}},"uniqueKey":"intent","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"intent":{"id":"pi_abc123def456ghij","chain":"solana:5eykt4UsFv8P8NJdTREpY1vzqKq2Kvdp","token":"USDC","amount":"10.50","requestor":"\u003cstring>","direction":"request","state":"created","reference":"\u003cstring>","expiresAt":"2023-11-07T05:31:56Z","createdAt":"2023-11-07T05:31:56Z","updatedAt":"2023-11-07T05:31:56Z","livemode":true,"idempotencyKey":"\u003cstring>","tokenAddress":"\u003cstring>","amountBaseUnits":"\u003cstring>","fulfiller":"\u003cstring>","retryRequired":true,"pendingAtExpiry":true,"txSignature":"\u003cstring>","detectedAt":"2023-11-07T05:31:56Z","ataRentLamports":123,"ttlSeconds":86400,"confirmedAt":"2023-11-07T05:31:56Z","finalizedAt":"2023-11-07T05:31:56Z","metadata":{},"refundedBy":"\u003cstring>","refundOf":"\u003cstring>"}}}},"exampleType":"generated"}},"exampleType":"generated"},"129824c2-7a8b-41c2-9f3c-44ac5e100c61":{"description":"Validation error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","description":"Machine-readable error code in `resource.error_type` dot notation","example":"intent.already_fulfilled","uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","description":"Human-readable error message","uniqueKey":"error.message","typeLabel":"string"},"param":{"oneOf":[{"type":"string","description":"Field name if this is a validation error","uniqueKey":"error.param.oneOf.0","typeLabel":"string"},{"type":"null","description":"Field name if this is a validation error","uniqueKey":"error.param.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.param","typeLabel":"string | null"},"details":{"oneOf":[{"type":"object","description":"Additional context about the error","uniqueKey":"error.details.oneOf.0","typeLabel":"object"},{"type":"null","description":"Additional context about the error","uniqueKey":"error.details.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.details","typeLabel":"object | null"}},"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"intent.already_fulfilled","message":"\u003cstring>","param":"\u003cstring>","details":{}}}}},"exampleType":"generated"}},"exampleType":"generated"},"f72fa632-9911-4dfb-8476-84420fc3968c":{"description":"Invalid or missing API key","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","description":"Machine-readable error code in `resource.error_type` dot notation","example":"intent.already_fulfilled","uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","description":"Human-readable error message","uniqueKey":"error.message","typeLabel":"string"},"param":{"oneOf":[{"type":"string","description":"Field name if this is a validation error","uniqueKey":"error.param.oneOf.0","typeLabel":"string"},{"type":"null","description":"Field name if this is a validation error","uniqueKey":"error.param.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.param","typeLabel":"string | null"},"details":{"oneOf":[{"type":"object","description":"Additional context about the error","uniqueKey":"error.details.oneOf.0","typeLabel":"object"},{"type":"null","description":"Additional context about the error","uniqueKey":"error.details.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.details","typeLabel":"object | null"}},"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"intent.already_fulfilled","message":"\u003cstring>","param":"\u003cstring>","details":{}}}}},"exampleType":"generated"}},"exampleType":"generated"},"86df530b-e426-4716-aa6b-9cd9edaa1ac3":{"description":"Semantically invalid (e.g. token not on this chain)","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","description":"Machine-readable error code in `resource.error_type` dot notation","example":"intent.already_fulfilled","uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","description":"Human-readable error message","uniqueKey":"error.message","typeLabel":"string"},"param":{"oneOf":[{"type":"string","description":"Field name if this is a validation error","uniqueKey":"error.param.oneOf.0","typeLabel":"string"},{"type":"null","description":"Field name if this is a validation error","uniqueKey":"error.param.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.param","typeLabel":"string | null"},"details":{"oneOf":[{"type":"object","description":"Additional context about the error","uniqueKey":"error.details.oneOf.0","typeLabel":"object"},{"type":"null","description":"Additional context about the error","uniqueKey":"error.details.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.details","typeLabel":"object | null"}},"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"intent.already_fulfilled","message":"\u003cstring>","param":"\u003cstring>","details":{}}}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"1749bea0-7e11-4ffa-9a4e-79ed071382cc":{"bearerAuth":{"type":"http","scheme":"bearer","description":"API key. Use `pk_live_*` for production or `pk_test_*` for test mode.","scopes":[]}}},"servers":{"286a47a7-54d5-41ff-af8e-c580c1bb2ebc":{"url":"https://api.crycketpay.com/v1","description":"Production"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","description":"API key. Use `pk_live_*` for production or `pk_test_*` for test mode.","scopes":[]},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"API key. Use `pk_live_*` for production or `pk_test_*` for test mode.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"bearerAuth","name":"Authorization"}],"title":"bearerAuth"}]},"originalFileLocation":"api-reference/openapi.json"},"subdomain":"cherp","siteName":"Crycket Documentation","title":"Create intent - Crycket Documentation","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-04-21T21:41:56.559Z","originalFileLocation":"api-reference/endpoint/create.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Creates a new Payment Intent. The same idempotencyKey within 24 hours returns the existing Intent with X-Idempotent-Replayed: true.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Crycket Documentation\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/cherp/f4yx9aJhG4MOI0JK/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/cherp/f4yx9aJhG4MOI0JK/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/cherp/f4yx9aJhG4MOI0JK/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/cherp/f4yx9aJhG4MOI0JK/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/cherp/f4yx9aJhG4MOI0JK/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/cherp/f4yx9aJhG4MOI0JK/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/cherp/f4yx9aJhG4MOI0JK/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/cherp/f4yx9aJhG4MOI0JK/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/cherp/f4yx9aJhG4MOI0JK/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Create intent - Crycket Documentation\">\u003cmeta data-mint-head property=\"og:description\" content=\"Creates a new Payment Intent. The same idempotencyKey within 24 hours returns the existing Intent with X-Idempotent-Replayed: true.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Crycket Documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.crycketpay.com/api-reference/endpoint/create\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://cherp.mintlify.app/_mintlify/api/og/v2?division=Intents\u0026amp;title=Create+intent\u0026amp;description=Creates+a+new+Payment+Intent.+The+same+%60idempotencyKey%60+within+24+hours+returns+the+existing+Intent+with+%60X-Idempotent-Replayed%3A+true%60.\u0026amp;theme=fd9039999b7c2506a202776f\u0026amp;signature=2fbf4a146b241b33d149d831e1c3a4c90a6060db834e7c7b3952289bcdbf083a\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Create intent - Crycket Documentation\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Creates a new Payment Intent. The same idempotencyKey within 24 hours returns the existing Intent with X-Idempotent-Replayed: true.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://cherp.mintlify.app/_mintlify/api/og/v2?division=Intents\u0026amp;title=Create+intent\u0026amp;description=Creates+a+new+Payment+Intent.+The+same+%60idempotencyKey%60+within+24+hours+returns+the+existing+Intent+with+%60X-Idempotent-Replayed%3A+true%60.\u0026amp;theme=fd9039999b7c2506a202776f\u0026amp;signature=2fbf4a146b241b33d149d831e1c3a4c90a6060db834e7c7b3952289bcdbf083a\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/cherp/f4yx9aJhG4MOI0JK/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Crycket Documentation\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#16A34A\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.crycketpay.com/api-reference/endpoint/create\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/endpoint/create.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.crycketpay.com/#organization\",\"name\":\"Crycket Documentation\",\"url\":\"https://docs.crycketpay.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/cherp/o1WwAtNmZQb81qza/logo/light.svg?fit=max\u0026auto=format\u0026n=o1WwAtNmZQb81qza\u0026q=85\u0026s=db020bf07f027bb3d6a3d015d406ff6a\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.crycketpay.com#website\",\"name\":\"Crycket Documentation\",\"url\":\"https://docs.crycketpay.com\",\"publisher\":{\"@id\":\"https://docs.crycketpay.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.crycketpay.com/api-reference/endpoint/create#webpage\",\"url\":\"https://docs.crycketpay.com/api-reference/endpoint/create\",\"name\":\"Create intent\",\"description\":\"Creates a new Payment Intent. The same idempotencyKey within 24 hours returns the existing Intent with X-Idempotent-Replayed: true.\",\"dateModified\":\"2026-04-21T21:41:56.559Z\",\"isPartOf\":{\"@id\":\"https://docs.crycketpay.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.crycketpay.com/api-reference/endpoint/create#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.crycketpay.com/api-reference/endpoint/create#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Crycket Documentation\",\"item\":\"https://docs.crycketpay.com\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Create intent\",\"item\":\"https://docs.crycketpay.com/api-reference/endpoint/create\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.crycketpay.com/api-reference/endpoint/create#apireference\",\"headline\":\"Create intent\",\"name\":\"Create intent\",\"description\":\"Creates a new Payment Intent. The same idempotencyKey within 24 hours returns the existing Intent with X-Idempotent-Replayed: true.\",\"url\":\"https://docs.crycketpay.com/api-reference/endpoint/create\",\"mainEntityOfPage\":{\"@id\":\"https://docs.crycketpay.com/api-reference/endpoint/create#webpage\"},\"dateModified\":\"2026-04-21T21:41:56.559Z\",\"publisher\":{\"@id\":\"https://docs.crycketpay.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.crycketpay.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Crycket Documentation\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Crycket Documentation","nav":{"global":{"anchors":[{"anchor":"API reference","icon":"code","href":"/api-reference/introduction"}]},"tabs":[{"tab":"Guides","pages":[{"title":"Guides","href":""}]},{"tab":"API reference","groups":[{"group":"Overview","pages":[{"title":"API reference","description":"Complete reference for the Crycket API","href":"/api-reference/introduction"}]},{"group":"Intents","pages":[{"title":"Create intent","openapi":"POST /intents","href":"/api-reference/endpoint/create"},{"title":"Get intent","openapi":"GET /intents/{id}","description":"Retrieves a Payment Intent by its ID. Served from cache (60s TTL, refreshed on each state change).","href":"/api-reference/endpoint/get"},{"title":"List intents","openapi":"GET /intents","href":"/api-reference/endpoint/list"},{"title":"Update intent","openapi":"PATCH /intents/{id}","href":"/api-reference/endpoint/update"},{"title":"Build transaction","openapi":"POST /intents/{id}/build","href":"/api-reference/endpoint/build"},{"title":"Submit transaction","openapi":"POST /intents/{id}/submit","href":"/api-reference/endpoint/submit"},{"title":"Mark detected","openapi":"POST /intents/{id}/detected","href":"/api-reference/endpoint/detected"},{"title":"Create refund","openapi":"POST /intents/{id}/refund","href":"/api-reference/endpoint/refund"},{"title":"Cancel intent","openapi":"POST /intents/{id}/cancel","href":"/api-reference/endpoint/delete"},{"title":"Stream status","openapi":"GET /intents/{id}/stream","href":"/api-reference/endpoint/stream"}]},{"group":"Reference data","pages":[{"title":"List tokens","openapi":"GET /tokens","href":"/api-reference/endpoint/get-tokens"},{"title":"List chains","openapi":"GET /chains","href":"/api-reference/endpoint/get-chains"}]},{"group":"Webhooks","pages":[{"title":"Webhook events","href":"/api-reference/endpoint/webhook"},{"title":"List webhook deliveries","openapi":"GET /webhooks","href":"/api-reference/endpoint/list-webhooks"},{"title":"Retry webhook","openapi":"POST /webhooks/{id}/retry","href":"/api-reference/endpoint/retry-webhook"}]},{"group":"Testing","pages":[{"title":"Simulate transition","openapi":"POST /test/intents/{id}/simulate","href":"/api-reference/endpoint/simulate"}]}]}]},"title":"Create intent - Crycket Documentation","buildId":"dpl_2oYXwqkEXirXBPk8wV1FtM5USFWi","deploymentId":"dpl_2oYXwqkEXirXBPk8wV1FtM5USFWi","dynamics":["c2aa737661","b0f84f53ff","a9bb46feb3","2b790eda92"],"chunks":["OpenApiReferenceProvider-WRhTSUDL.js","utils-ChMov4Kr.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-_REmC2bI.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-Bp6nVRCu.js","snippetPresets-DZadmXoU.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","Page-R3M_BF4L.js","ApiExamples-CY2WdoTl.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-DwYG-Q4l.js","shallow-BXQIGwv4.js","getApiPlaygroundDisplay-CK5nK5B9.js","CodeSnippet-TH4a2aGW.js","CodeSnippets-DwsQiOFS.js","getPastedJson-DD7kUzi_.js","icon-holE3QoJ.js","MethodPill-DUW0T8us.js","DuplicateIcon-CI_p4be-.js","createIcon-BdbRvavb.js","DynamicMarkdown-DN96a4Ur.js","SectionHeading-SCu36A9d.js","axios-vUo_bRtp.js","Markdown-CCeGv-zI.js","clsx-BGBGWFTt.js","lib--scc4DXi.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-Cv_O2fky.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-2C5OB2eV.js"]}