{ "id": "01hhhtvg4w7gk4mcaxmgzb2ynw", "entity": "payment_link", "livemode": false, "name": "Payment Link for Facebook page.", "active": 1, "after_completion_message": "The product will arrive in 03 days.", "locale": "ar", "pass_fees_to_customer": false, "metadata": [], "created_at": 1702479380, "updated_at": 1702479380, "collect_shipping_address": 0, "url": "https://pay.chargily.dz/test/payment-links/01hhhtvg4w7gk4mcaxmgzb2ynw"}
{"docsConfig":{"theme":"maple","$schema":"https://mintlify.com/docs.json","name":"Chargily Pay Documentation","colors":{"primary":"#5801A2","light":"#12d1fa"},"logo":{"light":"https://mintcdn.com/chargily-78/IvLooWHoSWhCd-iT/logo/light.svg?fit=max\u0026auto=format\u0026n=IvLooWHoSWhCd-iT\u0026q=85\u0026s=54dd666d4c9300866f7484ebbb20261e","dark":"https://mintcdn.com/chargily-78/IvLooWHoSWhCd-iT/logo/dark.svg?fit=max\u0026auto=format\u0026n=IvLooWHoSWhCd-iT\u0026q=85\u0026s=0511d1af3e3499a94b36a75ee58e04b9","href":"http://dz.chargily.com/developer"},"favicon":"/favicon.ico","api":{"mdx":{"auth":{"method":"bearer"},"server":"https://pay.chargily.net/test/api/v2"}},"footer":{"socials":{"github":"http://github.com/chargily","reddit":"http://reddit.com/u/chargily","telegram":"http://t.me/+653KV9zxIxAwNDY0"}},"seo":{"metatags":{"og:title":"Developer Documentation | Chargily for Developers | Chargily Algeria | Chargily","og:description":"APIs, SDKs, docs and open-source resources to integrate payments easily into any platform. Together, we’re building the future of fintech in Algeria.","og:image":"/images/meta-image.webp"},"indexing":"navigable"},"fonts":{"family":"Poppins"},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"chargily-78","hasAudioNarration":false,"actualSubdomain":"chargily-78","customDomains":["dev.chargily.com"],"gitSource":{"type":"github","owner":"chargilydev","repo":"mintlify-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{},"buildId":"6ae91e5c490ed5cbb563f526:success","clientVersion":"0.0.4138","searchFilterCounts":[{"language":"default","tag":"API Reference","count":34},{"language":"default","tag":"Documentation","count":18},{"language":"default","tag":"Start The Integration","count":9},{"language":"default","tag":"Products","count":7},{"language":"default","tag":"Get Started","count":6},{"language":"default","tag":"Checkouts","count":6},{"language":"default","tag":"Customers","count":6},{"language":"default","tag":"Payment Links","count":6},{"language":"default","tag":"Prices","count":5},{"language":"default","tag":"The Full Guide","count":4}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[],"googleFontsInlined":true},"customCss":[],"page":{"pagePath":"pay-v2/api-reference/payment-links/update","slug":"/pay-v2/api-reference/payment-links/update","pageMetadata":{"title":"Update a Payment Link","description":"Updates the information of a payment link by defining the values for the passed parameters. Any parameters not supplied will remain unaltered.","api":"POST /payment-links/{id}","og:title":"Update a payment link | Chargily Pay API - Edahabia API - Satim CIB Web API | Chargily for Developers","href":"/pay-v2/api-reference/payment-links/update"},"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: \"Updates the information of a payment link by defining the values for the passed parameters. Any parameters not supplied will remain unaltered.\"\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`,p:`p`,..._provideComponents(),...props.components},{Expandable,Heading,ParamField}=_components;if(!Expandable)_missingMdxReference(`Expandable`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`2`,id:`path-parameters`,children:`Path parameters`}),`\n`,_jsx(ParamField,{path:`id`,type:`string`,id:`param-id`,children:_jsx(_components.p,{children:`The ID of the payment link.`})}),`\n`,_jsx(Heading,{level:`2`,id:`body-parameters`,children:`Body parameters`}),`\n`,_jsx(ParamField,{body:`name`,type:`string`,id:`param-name`,children:_jsx(_components.p,{children:`A String representing the name of the payment link, it will not be shown to\ncustomers, it helps you to organize payment links.`})}),`\n`,_jsxs(ParamField,{body:`items`,type:`array`,multiple:true,id:`param-items`,children:[_jsx(_components.p,{children:`The items are the products that are being sold.`}),_jsxs(Expandable,{title:`items`,children:[_jsx(ParamField,{body:`price`,type:`string`,required:true,id:`param-price`,children:_jsxs(_components.p,{children:[`The ID of the `,_jsx(_components.a,{href:`/v2/api-reference/prices/price-object`,title:`Price`,children:`Price`}),`.`]})}),_jsx(ParamField,{body:`quantity`,type:`integer`,required:true,id:`param-quantity`}),_jsx(ParamField,{body:`adjustable_quantity`,type:`boolean`,default:`false`,id:`param-adjustable-quantity`})]})]}),`\n`,_jsx(ParamField,{body:`after_completion_message`,type:`string`,id:`param-after-completion-message`,children:_jsx(_components.p,{children:`A message which will be displayed to the customer after a successful payment.`})}),`\n`,_jsx(ParamField,{body:`locale`,type:`string`,id:`param-locale`,children:_jsx(_components.p,{children:`The language of the checkout page, accepted values are: ‘ar’, ‘en’ or ‘fr’.`})}),`\n`,_jsx(ParamField,{body:`pass_fees_to_customer`,type:`boolean`,id:`param-pass-fees-to-customer`,children:_jsx(_components.p,{children:`A Boolean value indicating whether the Chargily Pay fees will be paid by you,\nthe merchant, or by your customers.`})}),`\n`,_jsx(ParamField,{body:`collect_shipping_address`,type:`boolean`,id:`param-collect-shipping-address`,children:_jsx(_components.p,{children:`A Boolean value indicates whether the shipping address should be collected\nfrom the customer.`})}),`\n`,_jsx(ParamField,{body:`metadata`,type:`key-value array`,id:`param-metadata`,children:_jsx(_components.p,{children:`A Set of key-value pairs that can be used to store additional information\nabout the payment link.`})}),`\n`,_jsx(Heading,{level:`2`,id:`returns`,children:`Returns`}),`\n`,_jsx(_components.p,{children:`If the update is successful, it returns a payment link object with the updated information.`})]})}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":"Update a Payment Link","description":"Updates the information of a payment link by defining the values for the passed parameters. Any parameters not supplied will remain unaltered.","api":"POST /payment-links/{id}","og:title":"Update a payment link | Chargily Pay API - Edahabia API - Satim CIB Web API | Chargily for Developers","href":"/pay-v2/api-reference/payment-links/update"}}},"mdxSourceWithNoJs":{"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`,..._provideComponents(),...props.components},{CodeBlock,Expandable,Heading,ParamField,ResponseExample}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Expandable)_missingMdxReference(`Expandable`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!ResponseExample)_missingMdxReference(`ResponseExample`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`2`,id:`path-parameters`,children:`Path parameters`}),`\n`,_jsx(ParamField,{path:`id`,type:`string`,id:`param-id`,children:_jsx(_components.p,{children:`The ID of the payment link.`})}),`\n`,_jsx(Heading,{level:`2`,id:`body-parameters`,children:`Body parameters`}),`\n`,_jsx(ParamField,{body:`name`,type:`string`,id:`param-name`,children:_jsx(_components.p,{children:`A String representing the name of the payment link, it will not be shown to\ncustomers, it helps you to organize payment links.`})}),`\n`,_jsxs(ParamField,{body:`items`,type:`array`,multiple:true,id:`param-items`,children:[_jsx(_components.p,{children:`The items are the products that are being sold.`}),_jsxs(Expandable,{title:`items`,children:[_jsx(ParamField,{body:`price`,type:`string`,required:true,id:`param-price`,children:_jsxs(_components.p,{children:[`The ID of the `,_jsx(_components.a,{href:`/v2/api-reference/prices/price-object`,title:`Price`,children:`Price`}),`.`]})}),_jsx(ParamField,{body:`quantity`,type:`integer`,required:true,id:`param-quantity`}),_jsx(ParamField,{body:`adjustable_quantity`,type:`boolean`,default:`false`,id:`param-adjustable-quantity`})]})]}),`\n`,_jsx(ParamField,{body:`after_completion_message`,type:`string`,id:`param-after-completion-message`,children:_jsx(_components.p,{children:`A message which will be displayed to the customer after a successful payment.`})}),`\n`,_jsx(ParamField,{body:`locale`,type:`string`,id:`param-locale`,children:_jsx(_components.p,{children:`The language of the checkout page, accepted values are: ‘ar’, ‘en’ or ‘fr’.`})}),`\n`,_jsx(ParamField,{body:`pass_fees_to_customer`,type:`boolean`,id:`param-pass-fees-to-customer`,children:_jsx(_components.p,{children:`A Boolean value indicating whether the Chargily Pay fees will be paid by you,\nthe merchant, or by your customers.`})}),`\n`,_jsx(ParamField,{body:`collect_shipping_address`,type:`boolean`,id:`param-collect-shipping-address`,children:_jsx(_components.p,{children:`A Boolean value indicates whether the shipping address should be collected\nfrom the customer.`})}),`\n`,_jsx(ParamField,{body:`metadata`,type:`key-value array`,id:`param-metadata`,children:_jsx(_components.p,{children:`A Set of key-value pairs that can be used to store additional information\nabout the payment link.`})}),`\n`,_jsx(Heading,{level:`2`,id:`returns`,children:`Returns`}),`\n`,_jsx(_components.p,{children:`If the update is successful, it returns a payment link object with the updated information.`}),`\n`,_jsx(ResponseExample,{children:_jsx(CodeBlock,{filename:`Response`,numberOfLines:`15`,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:`15`,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:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"01hhhtvg4w7gk4mcaxmgzb2ynw\"`}),_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:` \"entity\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"payment_link\"`}),_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:` \"livemode\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`false`}),_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:` \"name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Payment Link for Facebook page.\"`}),_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:` \"active\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1`}),_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:` \"after_completion_message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"The product will arrive in 03 days.\"`}),_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:` \"locale\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"ar\"`}),_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:` \"pass_fees_to_customer\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`false`}),_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:` \"metadata\"`}),_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:` \"created_at\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1702479380`}),_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:` \"updated_at\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1702479380`}),_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:` \"collect_shipping_address\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0`}),_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:` \"url\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://pay.chargily.dz/test/payment-links/01hhhtvg4w7gk4mcaxmgzb2ynw\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\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":"Update a Payment Link","description":"Updates the information of a payment link by defining the values for the passed parameters. Any parameters not supplied will remain unaltered.","api":"POST /payment-links/{id}","og:title":"Update a payment link | Chargily Pay API - Edahabia API - Satim CIB Web API | Chargily for Developers","href":"/pay-v2/api-reference/payment-links/update"}}}},"mdxExtracts":{"tableOfContents":[{"title":"Path parameters","slug":"path-parameters","depth":2,"children":[]},{"title":"Body parameters","slug":"body-parameters","depth":2,"children":[]},{"title":"Returns","slug":"returns","depth":2,"children":[]}],"codeExamples":{"response":{"type":"ResponseExample","children":[{"filename":"Response","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"json\">\u003ccode language=\"json\" numberOfLines=\"15\">\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"id\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"01hhhtvg4w7gk4mcaxmgzb2ynw\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"entity\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"payment_link\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"livemode\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">false\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"name\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Payment Link for Facebook page.\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"active\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">1\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"after_completion_message\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"The product will arrive in 03 days.\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"locale\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"ar\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"pass_fees_to_customer\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">false\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"metadata\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: [],\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"created_at\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">1702479380\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"updated_at\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">1702479380\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"collect_shipping_address\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">0\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"url\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"https://pay.chargily.dz/test/payment-links/01hhhtvg4w7gk4mcaxmgzb2ynw\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">}\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"}],"attributes":[]}},"endpoint":{"title":"Update a Payment Link","path":"/payment-links/{id}","servers":[{"url":"https://pay.chargily.net/test/api/v2"}],"method":"post","request":{"security":[{"title":"Bearer Auth","parameters":{"header":{"Authorization":{"type":"http","scheme":"bearer","description":"Bearer authentication header of the form `Bearer \u003ctoken>`, where `\u003ctoken>` is your auth token."}},"query":{},"cookie":{}}}],"parameters":{"query":{},"header":{},"cookie":{},"path":{"id":{"schema":[{"type":"string","description":"The ID of the payment link."}]}}},"body":{"application/json":{"schemaArray":[{"type":"object","properties":{"name":[{"type":"string","description":"A String representing the name of the payment link, it will not be shown to customers, it helps you to organize payment links."}],"items":[{"type":"array","items":[{"type":"object","properties":{"price":[{"type":"string","description":"The ID of the Price .","required":true}],"quantity":[{"type":"integer","required":true}],"adjustable_quantity":[{"type":"boolean"}]}}],"description":"The items are the products that are being sold."}],"after_completion_message":[{"type":"string","description":"A message which will be displayed to the customer after a successful payment."}],"locale":[{"type":"string","description":"The language of the checkout page, accepted values are: ‘ar’, ‘en’ or ‘fr’."}],"pass_fees_to_customer":[{"type":"boolean","description":"A Boolean value indicating whether the Chargily Pay fees will be paid by you, the merchant, or by your customers."}],"collect_shipping_address":[{"type":"boolean","description":"A Boolean value indicates whether the shipping address should be collected from the customer."}],"metadata":[{"type":"object","properties":{},"description":"A Set of key-value pairs that can be used to store additional information about the payment link."}]}}],"examples":{"example":{"value":{"name":"\u003cstring>","items":[{"price":"\u003cstring>","quantity":123,"adjustable_quantity":true}],"after_completion_message":"\u003cstring>","locale":"\u003cstring>","pass_fees_to_customer":true,"collect_shipping_address":true,"metadata":{}}}}}}},"response":{},"deprecated":false}},"jsLinks":[],"subdomain":"chargily-78","siteName":"Chargily Pay Documentation","title":"Update a payment link | Chargily Pay API - Edahabia API - Satim CIB Web API | Chargily for Developers","navMaps":{"firstHrefInVersion":{"Chargily Pay V2":{"href":"/pay-v2/api-reference/payment-links/update","matchLevel":0},"Chargily Pro V1":{"href":"/pro-v1/documentation","matchLevel":4}},"firstHrefInLanguage":{}},"lastModified":"2026-01-05T11:04:39.317Z","originalFileLocation":"pay-v2/api-reference/payment-links/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 the information of a payment link by defining the values for the passed parameters. Any parameters not supplied will remain unaltered.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Chargily Pay 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/chargily-78/HpuciM5pKLD22xs-/_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/chargily-78/HpuciM5pKLD22xs-/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/chargily-78/HpuciM5pKLD22xs-/_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/chargily-78/HpuciM5pKLD22xs-/_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/chargily-78/HpuciM5pKLD22xs-/_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/chargily-78/HpuciM5pKLD22xs-/_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/chargily-78/HpuciM5pKLD22xs-/_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/chargily-78/HpuciM5pKLD22xs-/_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/chargily-78/HpuciM5pKLD22xs-/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Update a payment link | Chargily Pay API - Edahabia API - Satim CIB Web API | Chargily for Developers\">\u003cmeta data-mint-head property=\"og:description\" content=\"APIs, SDKs, docs and open-source resources to integrate payments easily into any platform. Together, we’re building the future of fintech in Algeria.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Chargily Pay Documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://dev.chargily.com/pay-v2/api-reference/payment-links/update\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://chargily-78.mintlify.site/images/meta-image.webp\">\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 a payment link | Chargily Pay API - Edahabia API - Satim CIB Web API | Chargily for Developers\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"APIs, SDKs, docs and open-source resources to integrate payments easily into any platform. Together, we’re building the future of fintech in Algeria.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://chargily-78.mintlify.site/images/meta-image.webp\">\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/chargily-78/HpuciM5pKLD22xs-/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Chargily Pay Documentation\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#5801A2\">\u003clink data-mint-head rel=\"canonical\" href=\"https://dev.chargily.com/pay-v2/api-reference/payment-links/update\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/pay-v2/api-reference/payment-links/update.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://dev.chargily.com/#organization\",\"name\":\"Chargily Pay Documentation\",\"url\":\"https://dev.chargily.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/chargily-78/IvLooWHoSWhCd-iT/logo/light.svg?fit=max\u0026auto=format\u0026n=IvLooWHoSWhCd-iT\u0026q=85\u0026s=54dd666d4c9300866f7484ebbb20261e\"}},{\"@type\":\"WebSite\",\"@id\":\"https://dev.chargily.com#website\",\"name\":\"Chargily Pay Documentation\",\"url\":\"https://dev.chargily.com\",\"publisher\":{\"@id\":\"https://dev.chargily.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://dev.chargily.com/pay-v2/api-reference/payment-links/update#webpage\",\"url\":\"https://dev.chargily.com/pay-v2/api-reference/payment-links/update\",\"name\":\"Update a Payment Link\",\"description\":\"Updates the information of a payment link by defining the values for the passed parameters. Any parameters not supplied will remain unaltered.\",\"dateModified\":\"2026-01-05T11:04:39.317Z\",\"isPartOf\":{\"@id\":\"https://dev.chargily.com#website\"},\"breadcrumb\":{\"@id\":\"https://dev.chargily.com/pay-v2/api-reference/payment-links/update#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://dev.chargily.com/pay-v2/api-reference/payment-links/update#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Payment Links\",\"item\":\"https://dev.chargily.com/pay-v2/api-reference/payment-links/payment-link-object\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Update a Payment Link\",\"item\":\"https://dev.chargily.com/pay-v2/api-reference/payment-links/update\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://dev.chargily.com/pay-v2/api-reference/payment-links/update#apireference\",\"headline\":\"Update a Payment Link\",\"name\":\"Update a Payment Link\",\"description\":\"Updates the information of a payment link by defining the values for the passed parameters. Any parameters not supplied will remain unaltered.\",\"url\":\"https://dev.chargily.com/pay-v2/api-reference/payment-links/update\",\"mainEntityOfPage\":{\"@id\":\"https://dev.chargily.com/pay-v2/api-reference/payment-links/update#webpage\"},\"image\":\"https://dev.chargily.com/images/meta-image.webp\",\"dateModified\":\"2026-01-05T11:04:39.317Z\",\"publisher\":{\"@id\":\"https://dev.chargily.com/#organization\"},\"isPartOf\":{\"@id\":\"https://dev.chargily.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Chargily Pay Documentation\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Chargily Pay Documentation\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/pay-v2/api-reference/payment-links/update.md","siteName":"Chargily Pay Documentation","nav":{"global":null,"versions":[{"version":"Chargily Pay V2","anchors":[{"anchor":"Documentation","icon":"book-open","pages":[{"title":"Documentation","href":"/pay-v2/introduction"}]},{"anchor":"API Reference","icon":"link","groups":[{"group":"API Documentation","pages":[{"title":"Introduction","href":"/pay-v2/api-reference/introduction"},{"title":"Authentication","href":"/pay-v2/api-reference/authentication"}]},{"group":"Balance","pages":[{"title":"The Balance object","href":"/pay-v2/api-reference/balance/balance-object"},{"title":"Retrieve balance","api":"GET /balance","href":"/pay-v2/api-reference/balance/retrieve-balance"}]},{"group":"Customers","pages":[{"title":"The Customer object","href":"/pay-v2/api-reference/customers/customer-object"},{"title":"Create a customer","api":"POST /customers","href":"/pay-v2/api-reference/customers/create"},{"title":"Update a customer","api":"POST /customers/{id}","href":"/pay-v2/api-reference/customers/update"},{"title":"Retrieve a customer","api":"GET /customers/{id}","href":"/pay-v2/api-reference/customers/retrieve"},{"title":"List all customers","api":"GET /customers","href":"/pay-v2/api-reference/customers/list"},{"title":"Delete a customer","api":"DELETE /customers/{id}","href":"/pay-v2/api-reference/customers/delete"}]},{"group":"Products","pages":[{"title":"The Product object","href":"/pay-v2/api-reference/products/product-object"},{"title":"Create a product","api":"POST /products","href":"/pay-v2/api-reference/products/create"},{"title":"Update a Product","api":"POST /products/{id}","href":"/pay-v2/api-reference/products/update"},{"title":"Retrieve a product","api":"GET /products/{id}","href":"/pay-v2/api-reference/products/retrieve"},{"title":"List all products","api":"GET /products","href":"/pay-v2/api-reference/products/list"},{"title":"Delete a product","api":"DELETE /products/{id}","href":"/pay-v2/api-reference/products/delete"},{"title":"Retrieve a products's prices","api":"GET /products/{id}/prices","href":"/pay-v2/api-reference/products/prices"}]},{"group":"Prices","pages":[{"title":"The Price object","href":"/pay-v2/api-reference/prices/price-object"},{"title":"Create a price","api":"POST /prices","href":"/pay-v2/api-reference/prices/create"},{"title":"Update a price","api":"POST /prices/{id}","href":"/pay-v2/api-reference/prices/update"},{"title":"Retrieve a price","api":"GET /prices/{id}","href":"/pay-v2/api-reference/prices/retrieve"},{"title":"List all prices","api":"GET /prices","href":"/pay-v2/api-reference/prices/list"}]},{"group":"Checkouts","pages":[{"title":"The Checkout object","href":"/pay-v2/api-reference/checkouts/checkout-object"},{"title":"Create a checkout","api":"POST /checkouts","href":"/pay-v2/api-reference/checkouts/create"},{"title":"Retrieve a checkout","api":"GET /checkouts/{id}","href":"/pay-v2/api-reference/checkouts/retrieve"},{"title":"List all checkouts","api":"GET /checkouts","href":"/pay-v2/api-reference/checkouts/list"},{"title":"Retrieve a checkout's items","api":"GET /checkouts/{id}/items","href":"/pay-v2/api-reference/checkouts/items"},{"title":"Expire a checkout","api":"POST /checkouts/{id}/expire","href":"/pay-v2/api-reference/checkouts/expire"}]},{"group":"Payment Links","pages":[{"title":"The Payment Link object","href":"/pay-v2/api-reference/payment-links/payment-link-object"},{"title":"Create a payment link","description":"Creates a new payment link.","api":"POST /payment-links","href":"/pay-v2/api-reference/payment-links/create"},{"title":"Update a Payment Link","api":"POST /payment-links/{id}","href":"/pay-v2/api-reference/payment-links/update"},{"title":"Retrieve a payment link","description":"Retrieves all the information of an already-existing payment link by providing it's unique identifier (ID).","api":"GET /payment-links/{id}","href":"/pay-v2/api-reference/payment-links/retrieve"},{"title":"List all payment links","api":"GET /payment-links","href":"/pay-v2/api-reference/payment-links/list"},{"title":"Retrieve a payment link's items","api":"GET /payment-links/{id}/items","href":"/pay-v2/api-reference/payment-links/items"}]}]},{"anchor":"Community","icon":"telegram","href":"https://t.me/+653KV9zxIxAwNDY0"},{"anchor":"Live Support","icon":"whatsapp","href":"https://chargi.link/WaPay"},{"anchor":"Dashboard","icon":"gauge","href":"http://pay.chargily.com"}]},{"version":"Chargily Pro V1","pages":[{"title":"Chargily Pro V1","href":"/pro-v1/documentation"}]}]},"basePath":"","title":"Update a payment link | Chargily Pay API - Edahabia API - Satim CIB Web API | Chargily for Developers","buildId":"dpl_715YoAgvjTGBDdo8RtXmHKM22b5p","deploymentId":"dpl_715YoAgvjTGBDdo8RtXmHKM22b5p","dynamics":["c2aa737661","b0f84f53ff","2b790eda92"],"chunks":["OpenApiReferenceProvider-BvKnMd7F.js","utils-BMt52org.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-CGXZuDGO.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-Dl57XWH2.js","snippetPresets-CWd8CxSk.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","conditional-requirements-CFM0id0Q.js","Page-Chgj7sZe.js","ApiExamples-BR-Wkc_D.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-YMmi08aZ.js","shallow-DBC1OB78.js","getApiPlaygroundDisplay-Be7mmEzP.js","CodeSnippet-B14o1TgQ.js","CodeSnippets-CJ2q3fTq.js","getPastedJson-DnpLXm8x.js","icon-BpkSFtdK.js","MethodPill-BO3zPf-g.js","DuplicateIcon-Bib3qwfw.js","createIcon-CY2noFo3.js","DynamicMarkdown-TAXIW2vN.js","SectionHeading-Dfs3Fmfw.js","axios-vUo_bRtp.js"]}