Phone number of the customer’s LigdiCash account. Format: 22670XXXXXXX.
string
First name.
string
Last name.
string
Email.
string
required
Always "".
string
required
OTP received by the customer on their LigdiCash app or by SMS.
object
required
Hide store
string
required
Store name.
string
required
Merchant site URL.
object
required
Hide actions
string
required
Always "".
string
required
Always "".
string
required
Backend notification URL. Publicly accessible.
object
Free-form metadata. Recommended: include a unique transaction_id.
Response
string
"00" = success, "01" = error.
string
Transaction token. Store it immediately — required for confirm.
string
Success: "Votre requête est en cours de traitement". Failure: Echec (CodeXX).
string
URL to the sub-codes documentation.
{ "response_code": "00", "token": "eyJ0eXAiOiJKV1Qi...", "response_text": "Votre requête est en cours de traitement", "wiki": "https://client.ligdicash.com/wiki/createInvoice"}
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"LigdiCash","description":"Documentation officielle de LigdiCash — agrégateur de paiement mobile money en Afrique de l'Ouest","colors":{"primary":"#00754B","light":"#00A86B","dark":"#005235"},"logo":{"light":"https://mintcdn.com/ligdicash/6Mlx7qXwPaCOwibS/logo/logo.png?fit=max\u0026auto=format\u0026n=6Mlx7qXwPaCOwibS\u0026q=85\u0026s=f2b2f57228d547b652695a29b8347018","dark":"https://mintcdn.com/ligdicash/6Mlx7qXwPaCOwibS/logo/logo.png?fit=max\u0026auto=format\u0026n=6Mlx7qXwPaCOwibS\u0026q=85\u0026s=f2b2f57228d547b652695a29b8347018"},"favicon":"https://mintcdn.com/ligdicash/6Mlx7qXwPaCOwibS/favicon.ico?fit=max\u0026auto=format\u0026n=6Mlx7qXwPaCOwibS\u0026q=85\u0026s=f431868bb413fb6d7b4aa031d27e6840","navbar":{"links":[{"href":"mailto:support@ligdicash.com","label":"Support"}],"primary":{"type":"button","label":"Dashboard","href":"https://client.ligdicash.com"}},"footer":{"socials":{"website":"https://ligdicash.com"},"links":[{"header":"Produits","items":[{"label":"API de paiement","href":"/api-paiement/vue-ensemble"},{"label":"Paylinks","href":"/autres-produits/paylinks"},{"label":"SMS","href":"/autres-produits/sms"}]},{"header":"Ressources","items":[{"label":"FAQ","href":"/ressources/faq"},{"label":"Glossaire","href":"/ressources/glossaire"},{"label":"Support","href":"/ressources/support"}]}]},"search":{"prompt":"Rechercher dans la documentation..."},"seo":{"metatags":{"og:site_name":"LigdiCash Documentation","og:type":"website"},"indexing":"navigable"},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode"],"display":"header"},"styling":{"latex":false},"navigation":{"global":{"anchors":[{"anchor":"Site web LigdiCash","icon":"globe","href":"https://ligdicash.com"},{"anchor":"Dashboard","icon":"gauge","href":"https://client.ligdicash.com"},{"anchor":"Support","icon":"life-ring","href":"mailto:support@ligdicash.com"}]},"languages":[{"language":"fr","href":"essentials/introduction"},{"language":"en","href":"en/getting-started/introduction"}]}},"deployment":{"deploymentMetadataValue":{"subdomain":"ligdicash","hasAudioNarration":false,"actualSubdomain":"ligdicash","customDomains":["developers.ligdicash.com"],"gitSource":{"type":"github","owner":"ligdicash","repo":"ligdicash-mintlify-doc","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{},"buildId":"6ae93f136adaf11fe54f39b9:success","clientVersion":"0.0.4142","searchFilterCounts":[{"language":"fr","tag":"Documentation","count":90},{"language":"en","tag":"Documentation","count":90},{"language":"fr","tag":"API de paiement","count":54},{"language":"en","tag":"Payment API","count":54},{"language":"fr","tag":"Payin sans redirection","count":27},{"language":"en","tag":"Direct payin","count":27},{"language":"fr","tag":"Intégration par opérateur","count":23},{"language":"en","tag":"Integration by operator","count":23},{"language":"fr","tag":"Référence API","count":10},{"language":"en","tag":"API Reference","count":10},{"language":"fr","tag":"Concepts fondamentaux","count":9},{"language":"en","tag":"Core concepts","count":9},{"language":"fr","tag":"Le callback (webhook)","count":8},{"language":"en","tag":"Callback (webhook)","count":8},{"language":"fr","tag":"SDK \u0026 Plugins","count":7},{"language":"en","tag":"SDKs \u0026 Plugins","count":7},{"language":"fr","tag":"Payin avec redirection","count":6},{"language":"en","tag":"Hosted payin","count":6},{"language":"fr","tag":"Payout","count":5},{"language":"en","tag":"Payout","count":5}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","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":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","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":"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":"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":"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":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","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":"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":"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":"turbopuffer-dual-write","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},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","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}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"en/reference/endpoints/debit-wallet-with-otp","slug":"/en/reference/endpoints/debit-wallet-with-otp","pageMetadata":{"title":"Submit a LigdiCash Wallet payment","description":"Finalizes a LigdiCash wallet payment by submitting the OTP received by the customer. Second step of the wallet flow.","api":"POST https://app.ligdicash.com/pay/v02/debitwallet/withotp","href":"/en/reference/endpoints/debit-wallet-with-otp"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Finalizes a LigdiCash wallet payment by submitting the OTP received by the customer. Second step of the wallet flow.\"\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,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,..._provideComponents(),...props.components},{CodeBlock,CodeGroup,Expandable,Heading,Note,ParamField,ResponseField}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!CodeGroup)_missingMdxReference(`CodeGroup`,true);if(!Expandable)_missingMdxReference(`Expandable`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!ResponseField)_missingMdxReference(`ResponseField`,true);return _jsxs(_Fragment,{children:[_jsx(Note,{children:_jsxs(_components.p,{children:[`This endpoint is `,_jsx(_components.strong,{children:`exclusive to the LigdiCash Wallet`}),`, to be called after `,_jsx(_components.a,{href:`/en/reference/endpoints/debit-otp`,children:`GET /pay/v02/debitotp`}),` which triggers the OTP being sent to the customer.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`headers`,children:`Headers`}),`\n`,_jsx(ParamField,{header:`Apikey`,type:`string`,required:true,id:`param-apikey`,children:_jsx(_components.p,{children:`API key of the LigdiCash project.`})}),`\n`,_jsx(ParamField,{header:`Authorization`,type:`string`,required:true,id:`param-authorization`,children:_jsx(_components.p,{children:_jsx(_components.code,{children:`Bearer {API_TOKEN}`})})}),`\n`,_jsx(ParamField,{header:`Accept`,type:`string`,required:true,id:`param-accept`,children:_jsx(_components.p,{children:_jsx(_components.code,{children:`application/json`})})}),`\n`,_jsx(ParamField,{header:`Content-Type`,type:`string`,required:true,id:`param-content-type`,children:_jsx(_components.p,{children:_jsx(_components.code,{children:`application/json`})})}),`\n`,_jsx(Heading,{level:`2`,id:`body`,children:`Body`}),`\n`,_jsxs(_components.p,{children:[`Same structure as `,_jsx(_components.a,{href:`/en/reference/endpoints/payin-straight-create`,children:`POST /pay/v01/straight/checkout-invoice/create`}),`, with `,_jsx(_components.code,{children:`customer`}),` filled and `,_jsx(_components.code,{children:`otp`}),` containing the code received by the customer.`]}),`\n`,_jsx(ParamField,{body:`commande`,type:`object`,required:true,id:`param-commande`,children:_jsxs(Expandable,{title:`commande`,defaultOpen:true,children:[_jsx(ParamField,{body:`invoice`,type:`object`,required:true,id:`param-invoice`,children:_jsxs(Expandable,{title:`invoice`,defaultOpen:true,children:[_jsxs(ParamField,{body:`items`,type:`array`,required:true,id:`param-items`,children:[`Items. Can be `,_jsx(_components.code,{children:`[]`}),`.`]}),_jsx(ParamField,{body:`total_amount`,type:`integer`,required:true,id:`param-total-amount`,children:`Amount in XOF (integer).`}),_jsxs(ParamField,{body:`devise`,type:`string`,required:true,id:`param-devise`,children:[`Always `,_jsx(_components.code,{children:`\"XOF\"`}),`.`]}),_jsx(ParamField,{body:`description`,type:`string`,required:true,id:`param-description`,children:`Order description.`}),_jsxs(ParamField,{body:`customer`,type:`string`,required:true,id:`param-customer`,children:[`Phone number of the customer’s LigdiCash account. Format: `,_jsx(_components.code,{children:`22670XXXXXXX`}),`.`]}),_jsx(ParamField,{body:`customer_firstname`,type:`string`,id:`param-customer-firstname`,children:`First name.`}),_jsx(ParamField,{body:`customer_lastname`,type:`string`,id:`param-customer-lastname`,children:`Last name.`}),_jsx(ParamField,{body:`customer_email`,type:`string`,id:`param-customer-email`,children:`Email.`}),_jsxs(ParamField,{body:`external_id`,type:`string`,required:true,id:`param-external-id`,children:[`Always `,_jsx(_components.code,{children:`\"\"`}),`.`]}),_jsx(ParamField,{body:`otp`,type:`string`,required:true,id:`param-otp`,children:`OTP received by the customer on their LigdiCash app or by SMS.`})]})}),_jsx(ParamField,{body:`store`,type:`object`,required:true,id:`param-store`,children:_jsxs(Expandable,{title:`store`,defaultOpen:true,children:[_jsx(ParamField,{body:`name`,type:`string`,required:true,id:`param-name`,children:`Store name.`}),_jsx(ParamField,{body:`website_url`,type:`string`,required:true,id:`param-website-url`,children:`Merchant site URL.`})]})}),_jsx(ParamField,{body:`actions`,type:`object`,required:true,id:`param-actions`,children:_jsxs(Expandable,{title:`actions`,defaultOpen:true,children:[_jsxs(ParamField,{body:`cancel_url`,type:`string`,required:true,id:`param-cancel-url`,children:[`Always `,_jsx(_components.code,{children:`\"\"`}),`.`]}),_jsxs(ParamField,{body:`return_url`,type:`string`,required:true,id:`param-return-url`,children:[`Always `,_jsx(_components.code,{children:`\"\"`}),`.`]}),_jsx(ParamField,{body:`callback_url`,type:`string`,required:true,id:`param-callback-url`,children:`Backend notification URL. Publicly accessible.`})]})}),_jsxs(ParamField,{body:`custom_data`,type:`object`,id:`param-custom-data`,children:[`Free-form metadata. Recommended: include a unique `,_jsx(_components.code,{children:`transaction_id`}),`.`]})]})}),`\n`,_jsx(Heading,{level:`2`,id:`response`,children:`Response`}),`\n`,_jsxs(ResponseField,{name:`response_code`,type:`string`,id:`param-response-code`,children:[_jsx(_components.code,{children:`\"00\"`}),` = success, `,_jsx(_components.code,{children:`\"01\"`}),` = error.`]}),`\n`,_jsxs(ResponseField,{name:`token`,type:`string`,id:`param-token`,children:[`Transaction token. `,_jsx(_components.strong,{children:`Store it immediately`}),` — required for `,_jsx(_components.code,{children:`confirm`}),`.`]}),`\n`,_jsxs(ResponseField,{name:`response_text`,type:`string`,id:`param-response-text`,children:[`Success: `,_jsx(_components.code,{children:`\"Votre requête est en cours de traitement\"`}),`. Failure: `,_jsx(_components.code,{children:`Echec (CodeXX)`}),`.`]}),`\n`,_jsx(ResponseField,{name:`wiki`,type:`string`,id:`param-wiki`,children:`URL to the sub-codes documentation.`}),`\n`,_jsxs(CodeGroup,{children:[_jsx(CodeBlock,{filename:`Success`,numberOfLines:`6`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`6`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"response_code\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"00\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"token\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"eyJ0eXAiOiJKV1Qi...\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"response_text\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Votre requête est en cours de traitement\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"wiki\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://client.ligdicash.com/wiki/createInvoice\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`Failure`,numberOfLines:`6`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`6`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"response_code\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"01\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"token\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"response_text\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Echec (Code00)\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"wiki\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://client.ligdicash.com/wiki/createInvoice\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})]}),`\n`,_jsx(Heading,{level:`2`,id:`error-codes`,children:`Error codes`}),`\n`,_jsxs(_components.p,{children:[`Wiki: `,_jsx(_components.code,{children:`https://client.ligdicash.com/wiki/createInvoice`}),` — see `,_jsx(_components.a,{href:`/en/errors/sub-codes#createinvoice`,children:`Sub-codes per endpoint`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`related-guide`,children:`Related guide`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.a,{href:`/en/payment-api/direct-payin/operators/ligdicash-wallet`,children:`LigdiCash Wallet`}),` — full two-step flow.`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Submit a LigdiCash Wallet payment","description":"Finalizes a LigdiCash wallet payment by submitting the OTP received by the customer. Second step of the wallet flow.","api":"POST https://app.ligdicash.com/pay/v02/debitwallet/withotp","href":"/en/reference/endpoints/debit-wallet-with-otp"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Headers","slug":"headers","depth":2,"children":[]},{"title":"Body","slug":"body","depth":2,"children":[]},{"title":"Response","slug":"response","depth":2,"children":[]},{"title":"Error codes","slug":"error-codes","depth":2,"children":[]},{"title":"Related guide","slug":"related-guide","depth":2,"children":[]}],"codeExamples":{},"endpoint":{"title":"Submit a LigdiCash Wallet payment","path":"/pay/v02/debitwallet/withotp","servers":[{"url":"https://app.ligdicash.com"}],"method":"post","request":{"security":[],"parameters":{"query":{},"header":{"Apikey":{"schema":[{"type":"string","description":"API key of the LigdiCash project.","required":true}]},"Authorization":{"schema":[{"type":"string","description":"`Bearer {API_TOKEN}`","required":true}]},"Accept":{"schema":[{"type":"string","description":"`application/json`","required":true}]},"Content-Type":{"schema":[{"type":"string","description":"`application/json`","required":true}]}},"cookie":{},"path":{}},"body":{"application/json":{"schemaArray":[{"type":"object","properties":{"commande":[{"type":"object","properties":{"invoice":[{"type":"object","properties":{"items":[{"type":"array","items":[{"type":"object","properties":{}}],"description":"Items. Can be `[]` .","required":true}],"total_amount":[{"type":"integer","description":"Amount in XOF (integer).","required":true}],"devise":[{"type":"string","description":"Always `\"XOF\"` .","required":true}],"description":[{"type":"string","description":"Order description.","required":true}],"customer":[{"type":"string","description":"Phone number of the customer’s LigdiCash account. Format: `22670XXXXXXX` .","required":true}],"customer_firstname":[{"type":"string","description":"First name."}],"customer_lastname":[{"type":"string","description":"Last name."}],"customer_email":[{"type":"string","description":"Email."}],"external_id":[{"type":"string","description":"Always `\"\"` .","required":true}],"otp":[{"type":"string","description":"OTP received by the customer on their LigdiCash app or by SMS.","required":true}]},"required":true}],"store":[{"type":"object","properties":{"name":[{"type":"string","description":"Store name.","required":true}],"website_url":[{"type":"string","description":"Merchant site URL.","required":true}]},"required":true}],"actions":[{"type":"object","properties":{"cancel_url":[{"type":"string","description":"Always `\"\"` .","required":true}],"return_url":[{"type":"string","description":"Always `\"\"` .","required":true}],"callback_url":[{"type":"string","description":"Backend notification URL. Publicly accessible.","required":true}]},"required":true}],"custom_data":[{"type":"object","properties":{},"description":"Free-form metadata. Recommended: include a unique `transaction_id` ."}]},"required":true}]}}],"examples":{"example":{"value":{"commande":{"invoice":{"items":[{}],"total_amount":123,"devise":"\u003cstring>","description":"\u003cstring>","customer":"\u003cstring>","customer_firstname":"\u003cstring>","customer_lastname":"\u003cstring>","customer_email":"\u003cstring>","external_id":"\u003cstring>","otp":"\u003cstring>"},"store":{"name":"\u003cstring>","website_url":"\u003cstring>"},"actions":{"cancel_url":"\u003cstring>","return_url":"\u003cstring>","callback_url":"\u003cstring>"},"custom_data":{}}}}}}}},"response":{"200":{"application/json":{"schemaArray":[{"type":"object","properties":{"response_code":[{"type":"string","description":"`\"00\"` = success, `\"01\"` = error."}],"token":[{"type":"string","description":"Transaction token. Store it immediately — required for `confirm` ."}],"response_text":[{"type":"string","description":"Success: `\"Votre requête est en cours de traitement\"` . Failure: `Echec (CodeXX)` ."}],"wiki":[{"type":"string","description":"URL to the sub-codes documentation."}]}}],"examples":{"example":{"value":{"response_code":"\u003cstring>","token":"\u003cstring>","response_text":"\u003cstring>","wiki":"\u003cstring>"}}}}}},"deprecated":false}},"jsLinks":[],"subdomain":"ligdicash","siteName":"LigdiCash","title":"Submit a LigdiCash Wallet payment - LigdiCash","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{"fr":{"href":"/reference/endpoints/debit-wallet-with-otp","matchLevel":1},"en":{"href":"/en/reference/endpoints/debit-wallet-with-otp","matchLevel":0}}},"lastModified":"2026-05-12T15:46:24.806Z","originalFileLocation":"en/reference/endpoints/debit-wallet-with-otp.mdx","locale":"en"},"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=\"Finalizes a LigdiCash wallet payment by submitting the OTP received by the customer. Second step of the wallet flow.\">\u003cmeta data-mint-head name=\"application-name\" content=\"LigdiCash\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/ligdicash/-GyaSerpEOEfay6N/_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/ligdicash/-GyaSerpEOEfay6N/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/ligdicash/-GyaSerpEOEfay6N/_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/ligdicash/-GyaSerpEOEfay6N/_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/ligdicash/-GyaSerpEOEfay6N/_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/ligdicash/-GyaSerpEOEfay6N/_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/ligdicash/-GyaSerpEOEfay6N/_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/ligdicash/-GyaSerpEOEfay6N/_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/ligdicash/-GyaSerpEOEfay6N/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Submit a LigdiCash Wallet payment - LigdiCash\">\u003cmeta data-mint-head property=\"og:description\" content=\"Finalizes a LigdiCash wallet payment by submitting the OTP received by the customer. Second step of the wallet flow.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"LigdiCash Documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://developers.ligdicash.com/en/reference/endpoints/debit-wallet-with-otp\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://ligdicash.mintlify.site/_mintlify/api/og/v2?division=Endpoints+%E2%80%94+Payin\u0026amp;title=Submit+a+LigdiCash+Wallet+payment\u0026amp;description=Finalizes+a+LigdiCash+wallet+payment+by+submitting+the+OTP+received+by+the+customer.+Second+step+of+the+wallet+flow.\u0026amp;theme=c1cc823165e528d39b58bf8f\u0026amp;signature=6d9015b4006befab30757ed16f6c5f3961931d7e5e2e0c7462557ef120622ebb\">\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=\"Submit a LigdiCash Wallet payment - LigdiCash\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Finalizes a LigdiCash wallet payment by submitting the OTP received by the customer. Second step of the wallet flow.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://ligdicash.mintlify.site/_mintlify/api/og/v2?division=Endpoints+%E2%80%94+Payin\u0026amp;title=Submit+a+LigdiCash+Wallet+payment\u0026amp;description=Finalizes+a+LigdiCash+wallet+payment+by+submitting+the+OTP+received+by+the+customer.+Second+step+of+the+wallet+flow.\u0026amp;theme=c1cc823165e528d39b58bf8f\u0026amp;signature=6d9015b4006befab30757ed16f6c5f3961931d7e5e2e0c7462557ef120622ebb\">\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/ligdicash/-GyaSerpEOEfay6N/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"LigdiCash\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#00754B\">\u003clink data-mint-head rel=\"canonical\" href=\"https://developers.ligdicash.com/en/reference/endpoints/debit-wallet-with-otp\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/en/reference/endpoints/debit-wallet-with-otp.md\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"en\" href=\"https://developers.ligdicash.com/en/reference/endpoints/debit-wallet-with-otp\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"fr\" href=\"https://developers.ligdicash.com/reference/endpoints/debit-wallet-with-otp\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"x-default\" href=\"https://developers.ligdicash.com/reference/endpoints/debit-wallet-with-otp\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://developers.ligdicash.com/#organization\",\"name\":\"LigdiCash\",\"url\":\"https://developers.ligdicash.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/ligdicash/6Mlx7qXwPaCOwibS/logo/logo.png?fit=max\u0026auto=format\u0026n=6Mlx7qXwPaCOwibS\u0026q=85\u0026s=f2b2f57228d547b652695a29b8347018\"}},{\"@type\":\"WebSite\",\"@id\":\"https://developers.ligdicash.com#website\",\"name\":\"LigdiCash\",\"url\":\"https://developers.ligdicash.com\",\"publisher\":{\"@id\":\"https://developers.ligdicash.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://developers.ligdicash.com/en/reference/endpoints/debit-wallet-with-otp#webpage\",\"url\":\"https://developers.ligdicash.com/en/reference/endpoints/debit-wallet-with-otp\",\"name\":\"Submit a LigdiCash Wallet payment\",\"description\":\"Finalizes a LigdiCash wallet payment by submitting the OTP received by the customer. Second step of the wallet flow.\",\"dateModified\":\"2026-05-12T15:46:24.806Z\",\"isPartOf\":{\"@id\":\"https://developers.ligdicash.com#website\"},\"breadcrumb\":{\"@id\":\"https://developers.ligdicash.com/en/reference/endpoints/debit-wallet-with-otp#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://developers.ligdicash.com/en/reference/endpoints/debit-wallet-with-otp#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Endpoints — Payin\",\"item\":\"https://developers.ligdicash.com/en/reference/endpoints/payin-redirect-create\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Submit a LigdiCash Wallet payment\",\"item\":\"https://developers.ligdicash.com/en/reference/endpoints/debit-wallet-with-otp\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://developers.ligdicash.com/en/reference/endpoints/debit-wallet-with-otp#apireference\",\"headline\":\"Submit a LigdiCash Wallet payment\",\"name\":\"Submit a LigdiCash Wallet payment\",\"description\":\"Finalizes a LigdiCash wallet payment by submitting the OTP received by the customer. Second step of the wallet flow.\",\"url\":\"https://developers.ligdicash.com/en/reference/endpoints/debit-wallet-with-otp\",\"mainEntityOfPage\":{\"@id\":\"https://developers.ligdicash.com/en/reference/endpoints/debit-wallet-with-otp#webpage\"},\"dateModified\":\"2026-05-12T15:46:24.806Z\",\"publisher\":{\"@id\":\"https://developers.ligdicash.com/#organization\"},\"isPartOf\":{\"@id\":\"https://developers.ligdicash.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"LigdiCash\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"LigdiCash\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/en/reference/endpoints/debit-wallet-with-otp.md","siteName":"LigdiCash","nav":{"global":{"anchors":[{"anchor":"Site web LigdiCash","icon":"globe","href":"https://ligdicash.com"},{"anchor":"Dashboard","icon":"gauge","href":"https://client.ligdicash.com"},{"anchor":"Support","icon":"life-ring","href":"mailto:support@ligdicash.com"}]},"languages":[{"language":"fr","pages":[{"title":"fr","href":"/reference/endpoints/debit-wallet-with-otp"}]},{"language":"en","tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":"/en/getting-started/introduction"}]},{"tab":"API Reference","groups":[{"group":"Reference","pages":[{"title":"API Reference","href":"/en/reference/introduction"},{"title":"Supported operators","href":"/en/reference/supported-operators"}]},{"group":"Endpoints — Payin","pages":[{"title":"Create a hosted payin invoice","api":"POST https://app.ligdicash.com/pay/v01/redirect/checkout-invoice/create","href":"/en/reference/endpoints/payin-redirect-create"},{"title":"Verify the status of a payin invoice","api":"GET https://app.ligdicash.com/pay/v01/redirect/checkout-invoice/confirm","href":"/en/reference/endpoints/payin-redirect-confirm"},{"title":"Create a direct payin transaction","api":"POST https://app.ligdicash.com/pay/v01/straight/checkout-invoice/create","href":"/en/reference/endpoints/payin-straight-create"},{"title":"Send LigdiCash Wallet OTP","description":"Triggers the sending of an SMS OTP to the customer to authenticate a payment via their LigdiCash wallet. First step of the wallet flow.","api":"GET https://app.ligdicash.com/pay/v02/debitotp/{phone_number}/{amount}","href":"/en/reference/endpoints/debit-otp"},{"title":"Submit a LigdiCash Wallet payment","api":"POST https://app.ligdicash.com/pay/v02/debitwallet/withotp","href":"/en/reference/endpoints/debit-wallet-with-otp"}]},{"group":"Endpoints — Payout","pages":[{"title":"Create a wallet payout","description":"Transfers funds to a beneficiary's LigdiCash wallet, with an option to auto-transfer to their mobile money.","api":"POST https://app.ligdicash.com/pay/v01/withdrawal/create","href":"/en/reference/endpoints/withdrawal-create"},{"title":"Create a direct mobile money payout","api":"POST https://app.ligdicash.com/pay/v01/straight/payout","href":"/en/reference/endpoints/straight-payout"},{"title":"Verify the status of a payout","api":"GET https://app.ligdicash.com/pay/v01/withdrawal/confirm/","href":"/en/reference/endpoints/withdrawal-confirm"}]}]}]}]},"basePath":"","title":"Submit a LigdiCash Wallet payment - LigdiCash","buildId":"dpl_G2Qd45vZZ7MkBiGF9yYx8ZsbbKXX","deploymentId":"dpl_G2Qd45vZZ7MkBiGF9yYx8ZsbbKXX","dynamics":["c2aa737661","2b790eda92","b0f84f53ff"],"chunks":["OpenApiReferenceProvider-NXj-Rqjv.js","utils-m0thOP-_.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-D13EKcfm.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema--XTdfsEb.js","snippetPresets-D3s4lmAH.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","conditional-requirements-CFM0id0Q.js","ApiExamples-ChURybxL.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-DL8CiXq2.js","shallow-DI2-YB2E.js","getApiPlaygroundDisplay-DxbW7b_y.js","CodeSnippet-CiNYS0pP.js","CodeSnippets-BT87bThu.js","Page-DSpdRuhM.js","getPastedJson-F_g_IrFQ.js","icon-CCIG5BAs.js","MethodPill-DY3E0jwx.js","DuplicateIcon-BN88xnEg.js","createIcon-VCCc5HO5.js","DynamicMarkdown-CaSwclgK.js","SectionHeading-DXV8nWhc.js","axios-vUo_bRtp.js"]}