{"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/update","slug":"/api-reference/endpoint/update","pageMetadata":{"title":"Update intent","openapi":"PATCH /intents/{id}","description":"Updates a Payment Intent (e.g. to attach a fulfiller). The caller must supply the current `updatedAt` timestamp; stale writes return `409`.","href":"/api-reference/endpoint/update"},"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: [\"Updates a Payment Intent (e.g. to attach a fulfiller). The caller must supply the current \", _jsx(_components.code, {\n children: \"updatedAt\"\n }), \" timestamp; stale writes return \", _jsx(_components.code, {\n children: \"409\"\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":"Update intent","openapi":"PATCH /intents/{id}","description":"Updates a Payment Intent (e.g. to attach a fulfiller). The caller must supply the current `updatedAt` timestamp; stale writes return `409`.","href":"/api-reference/endpoint/update"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"operationId":"updateIntent","summary":"Update a payment intent","description":"Updates a Payment Intent (e.g. to attach a fulfiller). The caller must supply the current `updatedAt` timestamp; stale writes return `409`.","parameters":["a0ff21fc-1b3a-4667-b5f5-33f3573344b7"],"requestBody":"4b76bbc5-e48c-4354-995d-fed0e46a258c","responses":{"200":"33f06e94-d460-4f0b-85ea-9ffb91ba0efb","401":"31c6c78e-be43-4938-95eb-d5284a7fbcd0","404":"3a2af088-4372-452a-9a3c-e71f1571ab29","409":"ddcca90a-0ab5-47be-b843-748e2a564428"},"method":"patch","type":"path","servers":["286a47a7-54d5-41ff-af8e-c580c1bb2ebc"],"security":["1749bea0-7e11-4ffa-9a4e-79ed071382cc"],"path":"/intents/{id}","baseUrlOptions":["https://api.crycketpay.com/v1"],"title":"Update a payment intent","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"a0ff21fc-1b3a-4667-b5f5-33f3573344b7":{"name":"id","in":"path","required":true,"description":"The Payment Intent ID","schema":{"type":"string","isRequired":true,"description":"The Payment Intent ID","uniqueKey":"","typeLabel":"string"}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["updatedAt"],"properties":{"updatedAt":{"type":"string","format":"date-time","description":"Current `updatedAt` value for optimistic concurrency","isRequired":true,"uniqueKey":"updatedAt","typeLabel":"string\u003cdate-time>"},"fulfiller":{"type":"string","description":"Wallet address to attach as fulfiller","uniqueKey":"fulfiller","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"updatedAt":"2023-11-07T05:31:56Z","fulfiller":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"33f06e94-d460-4f0b-85ea-9ffb91ba0efb":{"description":"Updated Payment Intent","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"},"31c6c78e-be43-4938-95eb-d5284a7fbcd0":{"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"},"3a2af088-4372-452a-9a3c-e71f1571ab29":{"description":"Intent not found","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"},"ddcca90a-0ab5-47be-b843-748e2a564428":{"description":"Conflict — stale `updatedAt`","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":"Update intent - Crycket Documentation","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-04-21T21:41:56.861Z","originalFileLocation":"api-reference/endpoint/update.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=\"Updates a Payment Intent (e.g. to attach a fulfiller). The caller must supply the current updatedAt timestamp; stale writes return 409.\">\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=\"Update intent - Crycket Documentation\">\u003cmeta data-mint-head property=\"og:description\" content=\"Updates a Payment Intent (e.g. to attach a fulfiller). The caller must supply the current updatedAt timestamp; stale writes return 409.\">\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/update\">\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=Update+intent\u0026amp;description=Updates+a+Payment+Intent+%28e.g.+to+attach+a+fulfiller%29.+The+caller+must+supply+the+current+%60updatedAt%60+timestamp%3B+stale+writes+return+%60409%60.\u0026amp;theme=fd9039999b7c2506a202776f\u0026amp;signature=00f073f23b52d31c64faff0a8306563136eaf6b833ad83632e5be78b36c872f7\">\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=\"Update intent - Crycket Documentation\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Updates a Payment Intent (e.g. to attach a fulfiller). The caller must supply the current updatedAt timestamp; stale writes return 409.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://cherp.mintlify.app/_mintlify/api/og/v2?division=Intents\u0026amp;title=Update+intent\u0026amp;description=Updates+a+Payment+Intent+%28e.g.+to+attach+a+fulfiller%29.+The+caller+must+supply+the+current+%60updatedAt%60+timestamp%3B+stale+writes+return+%60409%60.\u0026amp;theme=fd9039999b7c2506a202776f\u0026amp;signature=00f073f23b52d31c64faff0a8306563136eaf6b833ad83632e5be78b36c872f7\">\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/update\">\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/update.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/update#webpage\",\"url\":\"https://docs.crycketpay.com/api-reference/endpoint/update\",\"name\":\"Update intent\",\"description\":\"Updates a Payment Intent (e.g. to attach a fulfiller). The caller must supply the current updatedAt timestamp; stale writes return 409.\",\"dateModified\":\"2026-04-21T21:41:56.861Z\",\"isPartOf\":{\"@id\":\"https://docs.crycketpay.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.crycketpay.com/api-reference/endpoint/update#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.crycketpay.com/api-reference/endpoint/update#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Intents\",\"item\":\"https://docs.crycketpay.com/api-reference/endpoint/create\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Update intent\",\"item\":\"https://docs.crycketpay.com/api-reference/endpoint/update\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.crycketpay.com/api-reference/endpoint/update#apireference\",\"headline\":\"Update intent\",\"name\":\"Update intent\",\"description\":\"Updates a Payment Intent (e.g. to attach a fulfiller). The caller must supply the current updatedAt timestamp; stale writes return 409.\",\"url\":\"https://docs.crycketpay.com/api-reference/endpoint/update\",\"mainEntityOfPage\":{\"@id\":\"https://docs.crycketpay.com/api-reference/endpoint/update#webpage\"},\"dateModified\":\"2026-04-21T21:41:56.861Z\",\"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","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}","href":"/api-reference/endpoint/get"},{"title":"List intents","openapi":"GET /intents","description":"Returns a paginated list of Payment Intents for your account. Filterable by state, chain, and date range.","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","description":"Builds the unsigned transaction for a Payment Intent. Performs ATA check (Solana), constructs memo, resolves fee token (Tempo). Returns a chain-agnostic blob ready for `wallet.signTransaction()`.","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":"Update 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"]}