Customer’s mobile money number. Format: 22670XXXXXXX (no + or spaces).
string
Customer first name.
string
Customer last name.
string
Customer email.
string
required
Always "".
string
required
OTP based on the operator’s mode: USSD OTP → value; USSD Push / Approval / 1st SMS OTP request → ""; 2nd SMS OTP request → OTP received 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 returned in the callback. 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":"","_id":"6b10bce29ffae5051c403632"},"entitlements":{},"buildId":"6ae93f136adaf11fe54f39b9:success","clientVersion":"0.0.4428","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":"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":"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":"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":"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":"turbopuffer-dual-write","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":"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":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"auth-vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"en/reference/endpoints/payin-straight-create","slug":"/en/reference/endpoints/payin-straight-create","pageMetadata":{"title":"Create a direct payin transaction","description":"Initiates a mobile money payment directly from your interface, without redirecting to a LigdiCash page.","api":"POST https://app.ligdicash.com/pay/v01/straight/checkout-invoice/create","href":"/en/reference/endpoints/payin-straight-create"},"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: \"Initiates a mobile money payment directly from your interface, without redirecting to a LigdiCash page.\"\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`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,ul:`ul`,..._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:[`The LigdiCash Wallet uses distinct endpoints (`,_jsx(_components.code,{children:`/v02`}),`). See `,_jsx(_components.a,{href:`/en/reference/endpoints/debit-otp`,children:`GET /pay/v02/debitotp`}),` and `,_jsx(_components.a,{href:`/en/reference/endpoints/debit-wallet-with-otp`,children:`POST /pay/v02/debitwallet/withotp`}),`.`]})}),`\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`,_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:[_jsxs(_components.p,{children:[`Items. Can be `,_jsx(_components.code,{children:`[]`}),` — `,_jsx(_components.code,{children:`total_amount`}),` takes precedence.`]}),_jsxs(Expandable,{title:`item`,children:[_jsx(ParamField,{body:`name`,type:`string`,required:true,id:`param-name`,children:`Item name.`}),_jsx(ParamField,{body:`description`,type:`string`,id:`param-description`,children:`Description.`}),_jsx(ParamField,{body:`quantity`,type:`integer`,required:true,id:`param-quantity`,children:`Quantity.`}),_jsx(ParamField,{body:`unit_price`,type:`integer`,required:true,id:`param-unit-price`,children:`Unit price in XOF.`}),_jsxs(ParamField,{body:`total_price`,type:`integer`,required:true,id:`param-total-price`,children:[_jsx(_components.code,{children:`unit_price × quantity`}),` in XOF.`]})]})]}),_jsx(ParamField,{body:`total_amount`,type:`integer`,required:true,id:`param-total-amount`,children:`Total 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-1`,children:`Order description.`}),_jsxs(ParamField,{body:`customer`,type:`string`,required:true,id:`param-customer`,children:[`Customer’s mobile money number. Format: `,_jsx(_components.code,{children:`22670XXXXXXX`}),` (no `,_jsx(_components.code,{children:`+`}),` or spaces).`]}),_jsx(ParamField,{body:`customer_firstname`,type:`string`,id:`param-customer-firstname`,children:`Customer first name.`}),_jsx(ParamField,{body:`customer_lastname`,type:`string`,id:`param-customer-lastname`,children:`Customer last name.`}),_jsx(ParamField,{body:`customer_email`,type:`string`,id:`param-customer-email`,children:`Customer 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:_jsxs(_components.p,{children:[`OTP based on the operator’s mode: USSD OTP → value; USSD Push / Approval / 1st SMS OTP request → `,_jsx(_components.code,{children:`\"\"`}),`; 2nd SMS OTP request → OTP received 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-1`,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 returned in the callback. 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-guides`,children:`Related guides`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.a,{href:`/en/payment-api/direct-payin/create-transaction`,children:`Create a transaction`}),` — examples per OTP mode`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.a,{href:`/en/payment-api/direct-payin/validation-modes`,children:`Validation modes`}),` — USSD OTP, SMS OTP, Approval`]}),`\n`]})]})}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":"Create a direct payin transaction","description":"Initiates a mobile money payment directly from your interface, without redirecting to a LigdiCash page.","api":"POST https://app.ligdicash.com/pay/v01/straight/checkout-invoice/create","href":"/en/reference/endpoints/payin-straight-create"}}},"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 guides","slug":"related-guides","depth":2,"children":[]}],"codeExamples":{},"endpoint":{"title":"Create a direct payin transaction","path":"/pay/v01/straight/checkout-invoice/create","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":{"name":[{"type":"string","description":"Item name.","required":true}],"description":[{"type":"string","description":"Description."}],"quantity":[{"type":"integer","description":"Quantity.","required":true}],"unit_price":[{"type":"integer","description":"Unit price in XOF.","required":true}],"total_price":[{"type":"integer","description":"`unit_price × quantity` in XOF.","required":true}]}}],"description":"Items. Can be `[]` — `total_amount` takes precedence.","required":true}],"total_amount":[{"type":"integer","description":"Total 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":"Customer’s mobile money number. Format: `22670XXXXXXX` (no `+` or spaces).","required":true}],"customer_firstname":[{"type":"string","description":"Customer first name."}],"customer_lastname":[{"type":"string","description":"Customer last name."}],"customer_email":[{"type":"string","description":"Customer email."}],"external_id":[{"type":"string","description":"Always `\"\"` .","required":true}],"otp":[{"type":"string","description":"OTP based on the operator’s mode: USSD OTP → value; USSD Push / Approval / 1st SMS OTP request → `\"\"` ; 2nd SMS OTP request → OTP received 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 returned in the callback. Recommended: include a unique `transaction_id` ."}]},"required":true}]}}],"examples":{"example":{"value":{"commande":{"invoice":{"items":[{"name":"\u003cstring>","description":"\u003cstring>","quantity":123,"unit_price":123,"total_price":123}],"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":"Create a direct payin transaction - LigdiCash","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{"fr":{"href":"/reference/endpoints/payin-straight-create","matchLevel":1},"en":{"href":"/en/reference/endpoints/payin-straight-create","matchLevel":0}}},"lastModified":"2026-05-12T15:46:25.377Z","originalFileLocation":"en/reference/endpoints/payin-straight-create.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=\"Initiates a mobile money payment directly from your interface, without redirecting to a LigdiCash page.\">\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=\"Create a direct payin transaction - LigdiCash\">\u003cmeta data-mint-head property=\"og:description\" content=\"Initiates a mobile money payment directly from your interface, without redirecting to a LigdiCash page.\">\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/payin-straight-create\">\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=Create+a+direct+payin+transaction\u0026amp;description=Initiates+a+mobile+money+payment+directly+from+your+interface%2C+without+redirecting+to+a+LigdiCash+page.\u0026amp;theme=c1cc823165e528d39b58bf8f\u0026amp;signature=66eba2c0a75ad07896317a28102da82e70f2bbf10b591bd71c62532c9c1b6025\">\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 a direct payin transaction - LigdiCash\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Initiates a mobile money payment directly from your interface, without redirecting to a LigdiCash page.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://ligdicash.mintlify.site/_mintlify/api/og/v2?division=Endpoints+%E2%80%94+Payin\u0026amp;title=Create+a+direct+payin+transaction\u0026amp;description=Initiates+a+mobile+money+payment+directly+from+your+interface%2C+without+redirecting+to+a+LigdiCash+page.\u0026amp;theme=c1cc823165e528d39b58bf8f\u0026amp;signature=66eba2c0a75ad07896317a28102da82e70f2bbf10b591bd71c62532c9c1b6025\">\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/payin-straight-create\">\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/payin-straight-create.md\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"en\" href=\"https://developers.ligdicash.com/en/reference/endpoints/payin-straight-create\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"fr\" href=\"https://developers.ligdicash.com/reference/endpoints/payin-straight-create\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"x-default\" href=\"https://developers.ligdicash.com/reference/endpoints/payin-straight-create\">\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/payin-straight-create#webpage\",\"url\":\"https://developers.ligdicash.com/en/reference/endpoints/payin-straight-create\",\"name\":\"Create a direct payin transaction\",\"description\":\"Initiates a mobile money payment directly from your interface, without redirecting to a LigdiCash page.\",\"dateModified\":\"2026-05-12T15:46:25.377Z\",\"isPartOf\":{\"@id\":\"https://developers.ligdicash.com#website\"},\"breadcrumb\":{\"@id\":\"https://developers.ligdicash.com/en/reference/endpoints/payin-straight-create#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://developers.ligdicash.com/en/reference/endpoints/payin-straight-create#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\":\"Create a direct payin transaction\",\"item\":\"https://developers.ligdicash.com/en/reference/endpoints/payin-straight-create\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://developers.ligdicash.com/en/reference/endpoints/payin-straight-create#apireference\",\"headline\":\"Create a direct payin transaction\",\"name\":\"Create a direct payin transaction\",\"description\":\"Initiates a mobile money payment directly from your interface, without redirecting to a LigdiCash page.\",\"url\":\"https://developers.ligdicash.com/en/reference/endpoints/payin-straight-create\",\"mainEntityOfPage\":{\"@id\":\"https://developers.ligdicash.com/en/reference/endpoints/payin-straight-create#webpage\"},\"dateModified\":\"2026-05-12T15:46:25.377Z\",\"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/payin-straight-create.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/payin-straight-create"}]},{"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","description":"Verifies the status of a payin invoice (hosted or direct) from the creation token.","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","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":"Create a direct payin transaction - LigdiCash","deploymentId":"dpl_4dgnk6TA5fUgboKHTvWWyeqm3idh","buildId":"dpl_4dgnk6TA5fUgboKHTvWWyeqm3idh","dynamics":["c2aa737661","2b790eda92","b0f84f53ff"],"chunks":["OpenApiReferenceProvider-5zXlUUV6.js","snippetPresets-D3m2eL-0.js","utils-u8TSWPiZ.js","style-to-object-BY3JEAdk.js","utils-D3TDKJCH.js","v4-DIgz8zy6.js","addTypeLabelsToSchema-Om0Y4Ijd.js","conditional-requirements-CFM0id0Q.js","cloneDeep-Cyl7LOol.js","_Uint8Array-BuOv0f5_.js","isObject-FP1Yky1u.js","ApiExamples-BnqLE2Kf.js","usePlaygroundInputsStore-DhQKVH9n.js","shallow-BOCfJNQU.js","isEqual-BrbSa25D.js","CodeSnippets-DUGBlB-S.js","CodeSnippet-CuGpPhIN.js","use-playground-group-access-DYZiRN3l.js","Page-DdEXfHxg.js","api-description-markdown-DDasI_tu.js","DynamicMarkdown-DoPsKgYC.js","SectionHeading-CKObOTcn.js","MethodPill-D_DqPuJw.js","getPastedJson-DWfa7n0M.js","Check2Icon-CEquKboc.js","axios-CsQoIw0U.js"]}