A unique identifier obtained when creating an invoice. If accessed through the dashboard, it can be found at the URL on the invoice details page.Example:f774034d-d9cc-43a0-97d8-a2520c127f03
string
required
Customer Name
string
required
Customer email used to send proof of payment, or payment reminders
string
required
Customer telephone number
string
required
The destination URL where the customer will be redirected after a successful or completed transaction.
string
required
General description of the transaction or order.
string (format ISO 8601 date-time)
required
The transaction expiration date and time. This means that after this time, the payment link or order is no longer valid.
array
List of items (products/services) purchased.
integer
Number of items ordered.
integer
Price per unit of goods.
Response
Successful Response
Main Structure (Root)
integer
Status code form API.
string
Status message that describes the status code.
array of object
The main data returned (invoice details).
data Structure (Array Of Object)
string<uuid>
Unique invoice ID.
string
The URL that users/clients can access to open invoices.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Mayar Documentation","colors":{"primary":"#0951EF","light":"#0951EF","dark":"#0951EF"},"logo":{"light":"https://mintcdn.com/mayar/gxUm6zKdSg2aFxK8/logo/logo.png?fit=max\u0026auto=format\u0026n=gxUm6zKdSg2aFxK8\u0026q=85\u0026s=e4dc0f0e109f6b863b80a32a57b8a947","dark":"https://mintcdn.com/mayar/gxUm6zKdSg2aFxK8/logo/logo.png?fit=max\u0026auto=format\u0026n=gxUm6zKdSg2aFxK8\u0026q=85\u0026s=e4dc0f0e109f6b863b80a32a57b8a947"},"favicon":"https://mintcdn.com/mayar/0UzVXeqvBE-guUyn/favicon.svg?fit=max\u0026auto=format\u0026n=0UzVXeqvBE-guUyn\u0026q=85\u0026s=0f05f8fa290cfb16bf54670519f5b1d8","navbar":{"links":[{"href":"mailto:info@mayar.id","label":"Support"}],"primary":{"type":"button","label":"Dashboard","href":"https://web.mayar.id/"}},"footer":{"socials":{"x":"https://x.com/mayar_id_","instagram":"https://www.instagram.com/mayar_id"}},"styling":{"latex":false},"navigation":{"global":{"anchors":[{"anchor":"Community","icon":"telegram","href":"https://t.me/mcngroup"},{"anchor":"Blog","icon":"newspaper","href":"https://blog.mayar.id/"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"mayar","hasAudioNarration":false,"actualSubdomain":"mayar","customDomains":["docs.mayar.id"],"gitSource":{"type":"github","owner":"moerdowo","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"feedback":{"thumbs":true,"edits":true,"issues":true,"agentFeedback":true},"entitlements":{},"buildId":"6ae4546bbfaae13da36a806d","clientVersion":"0.0.4143","searchFilterCounts":[{"language":"default","tag":"API V2 Reference","count":85},{"language":"default","tag":"API V1 Reference","count":66},{"language":"default","tag":"Guides","count":54},{"language":"default","tag":"Features","count":21},{"language":"default","tag":"Product Page Types","count":19},{"language":"default","tag":"Products \u0026 payment links","count":16},{"language":"default","tag":"Invoice","count":12},{"language":"default","tag":"Product","count":11},{"language":"default","tag":"Customer","count":10},{"language":"default","tag":"Reviews","count":9}]},"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":"api-reference/invoice/edit","slug":"/api-reference/invoice/edit","pageMetadata":{"title":"Edit Invoice","openapi":"POST /endpointinvoice/edit","description":"Endpoint used to edit invoices that have been created.","href":"/api-reference/invoice/edit"},"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: \"Endpoint used to edit invoices that have been created.\"\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={code:`code`,p:`p`,pre:`pre`,span:`span`,..._provideComponents(),...props.components},{CodeBlock,CodeGroup,Heading,ParamField,ResponseField}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!CodeGroup)_missingMdxReference(`CodeGroup`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!ResponseField)_missingMdxReference(`ResponseField`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`Endpoint:`}),`\n`,_jsxs(CodeGroup,{children:[_jsx(CodeBlock,{filename:`Production`,numberOfLines:`2`,language:`text`,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:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`https://api.mayar.id/hl/v1/invoice/edit`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),_jsx(CodeBlock,{filename:`Sandbox`,numberOfLines:`2`,language:`text`,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:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`https://api.mayar.io/hl/v1/invoice/edit`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})})]}),`\n`,_jsx(Heading,{level:`2`,id:`authorization`,children:`Authorization`}),`\n`,_jsxs(ResponseField,{name:`Authorization`,type:`string`,required:true,id:`param-authorization`,children:[_jsx(_components.p,{children:`Example:`}),_jsx(_components.p,{children:_jsx(_components.code,{children:`Authorization | Bearer Paste-Your-API-Key-Here`})})]}),`\n`,_jsx(Heading,{level:`2`,id:`request-body`,children:`Request Body`}),`\n`,_jsxs(ParamField,{path:`id`,type:`string`,required:true,id:`param-id`,children:[_jsx(_components.p,{children:`A unique identifier obtained when creating an invoice. If accessed through the dashboard, it can be found at the URL on the invoice details page.`}),_jsx(_components.p,{children:`Example:`}),_jsx(_components.p,{children:_jsx(_components.code,{children:`f774034d-d9cc-43a0-97d8-a2520c127f03`})})]}),`\n`,_jsx(ParamField,{path:`name`,type:`string`,required:true,id:`param-name`,children:_jsx(_components.p,{children:`Customer Name`})}),`\n`,_jsx(ParamField,{path:`email`,type:`string`,required:true,id:`param-email`,children:_jsx(_components.p,{children:`Customer email used to send proof of payment, or payment reminders`})}),`\n`,_jsx(ParamField,{path:`mobile`,type:`string`,required:true,id:`param-mobile`,children:_jsx(_components.p,{children:`Customer telephone number`})}),`\n`,_jsx(ParamField,{path:`redirectURL`,type:`string`,required:true,id:`param-redirect-url`,children:_jsx(_components.p,{children:`The destination URL where the customer will be redirected after a successful or completed transaction.`})}),`\n`,_jsx(ParamField,{path:`description`,type:`string`,required:true,id:`param-description`,children:_jsx(_components.p,{children:`General description of the transaction or order.`})}),`\n`,_jsx(ParamField,{path:`expiredAt`,type:`string (format ISO 8601 date-time)`,required:true,id:`param-expired-at`,children:_jsx(_components.p,{children:`The transaction expiration date and time. This means that after this time, the payment link or order is no longer valid.`})}),`\n`,_jsx(ParamField,{path:`items`,type:`array`,id:`param-items`,children:_jsx(_components.p,{children:`List of items (products/services) purchased.`})}),`\n`,_jsx(ParamField,{path:`quantity`,type:`integer`,id:`param-quantity`,children:_jsx(_components.p,{children:`Number of items ordered.`})}),`\n`,_jsx(ParamField,{path:`rate`,type:`integer`,id:`param-rate`,children:_jsx(_components.p,{children:`Price per unit of goods.`})}),`\n`,_jsx(Heading,{level:`2`,id:`response`,children:`Response`}),`\n`,_jsx(_components.p,{children:`Successful Response`}),`\n`,_jsx(Heading,{level:`3`,id:`main-structure-root`,children:`Main Structure (Root)`}),`\n`,_jsx(ResponseField,{name:`statusCode`,type:`integer`,id:`param-status-code`,children:_jsx(_components.p,{children:`Status code form API.`})}),`\n`,_jsx(ResponseField,{name:`messages`,type:`string`,id:`param-messages`,children:_jsx(_components.p,{children:`Status message that describes the status code.`})}),`\n`,_jsx(ResponseField,{name:`data`,type:`array of object`,id:`param-data`,children:_jsx(_components.p,{children:`The main data returned (invoice details).`})}),`\n`,_jsx(Heading,{level:`3`,id:`data-structure-array-of-object`,children:`data Structure (Array Of Object)`}),`\n`,_jsx(ResponseField,{name:`id`,type:`string\u003cuuid>`,id:`param-id-1`,children:_jsx(_components.p,{children:`Unique invoice ID.`})}),`\n`,_jsx(ResponseField,{name:`link`,type:`string`,id:`param-link`,children:_jsx(_components.p,{children:`The URL that users/clients can access to open invoices.`})})]})}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":"Edit Invoice","openapi":"POST /endpointinvoice/edit","description":"Endpoint used to edit invoices that have been created.","href":"/api-reference/invoice/edit"}}},"mdxSourceWithNoJs":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={code:`code`,p:`p`,pre:`pre`,span:`span`,..._provideComponents(),...props.components},{CodeBlock,CodeGroup,Heading,ParamField,RequestExample,ResponseExample,ResponseField}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!CodeGroup)_missingMdxReference(`CodeGroup`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!RequestExample)_missingMdxReference(`RequestExample`,true);if(!ResponseExample)_missingMdxReference(`ResponseExample`,true);if(!ResponseField)_missingMdxReference(`ResponseField`,true);return _jsxs(_Fragment,{children:[_jsx(RequestExample,{children:_jsx(CodeBlock,{filename:`Request Example`,numberOfLines:`14`,language:`shellscript`,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:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`14`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --request`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'https://api.mayar.id/hl/v1/invoice/edit'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`--header `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'Authorization: Bearer Paste-Your-API-Key-Here'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`--header `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'Content-Type: application/json'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`--data-raw `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \t\"id\": \"f774034d-d9cc-43a0-97d8-a2520c127f03\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \t\"redirectUrl\": \"https://web.mayar.id\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \t\"description\": \"Berubah Jadi Invoice Yang Sudah Diedit\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \t\"items\":[{`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \t\"quantity\": 2,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \t\"rate\": 55000,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \t\"description\": \"Berubah Jadi Invoice Yang Sudah Diedit\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \t}]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\t}`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'`})}),`\n`]})})})}),`\n`,_jsx(ResponseExample,{children:_jsx(CodeBlock,{filename:`Response Example 200`,numberOfLines:`8`,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:`8`,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:` \"statusCode\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`200`}),_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:` \"messages\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"success\"`}),_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:` \"data\"`}),_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:`\"f774034d-d9cc-43a0-97d8-a2520c127f03\"`}),_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:` \"link\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://andiak.myr.id/invoices/ibzfrf4880\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})}),`\n`,_jsx(_components.p,{children:`Endpoint:`}),`\n`,_jsxs(CodeGroup,{children:[_jsx(CodeBlock,{filename:`Production`,numberOfLines:`2`,language:`text`,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:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`https://api.mayar.id/hl/v1/invoice/edit`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),_jsx(CodeBlock,{filename:`Sandbox`,numberOfLines:`2`,language:`text`,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:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`https://api.mayar.io/hl/v1/invoice/edit`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})})]}),`\n`,_jsx(Heading,{level:`2`,id:`authorization`,children:`Authorization`}),`\n`,_jsxs(ResponseField,{name:`Authorization`,type:`string`,required:true,id:`param-authorization`,children:[_jsx(_components.p,{children:`Example:`}),_jsx(_components.p,{children:_jsx(_components.code,{children:`Authorization | Bearer Paste-Your-API-Key-Here`})})]}),`\n`,_jsx(Heading,{level:`2`,id:`request-body`,children:`Request Body`}),`\n`,_jsxs(ParamField,{path:`id`,type:`string`,required:true,id:`param-id`,children:[_jsx(_components.p,{children:`A unique identifier obtained when creating an invoice. If accessed through the dashboard, it can be found at the URL on the invoice details page.`}),_jsx(_components.p,{children:`Example:`}),_jsx(_components.p,{children:_jsx(_components.code,{children:`f774034d-d9cc-43a0-97d8-a2520c127f03`})})]}),`\n`,_jsx(ParamField,{path:`name`,type:`string`,required:true,id:`param-name`,children:_jsx(_components.p,{children:`Customer Name`})}),`\n`,_jsx(ParamField,{path:`email`,type:`string`,required:true,id:`param-email`,children:_jsx(_components.p,{children:`Customer email used to send proof of payment, or payment reminders`})}),`\n`,_jsx(ParamField,{path:`mobile`,type:`string`,required:true,id:`param-mobile`,children:_jsx(_components.p,{children:`Customer telephone number`})}),`\n`,_jsx(ParamField,{path:`redirectURL`,type:`string`,required:true,id:`param-redirect-url`,children:_jsx(_components.p,{children:`The destination URL where the customer will be redirected after a successful or completed transaction.`})}),`\n`,_jsx(ParamField,{path:`description`,type:`string`,required:true,id:`param-description`,children:_jsx(_components.p,{children:`General description of the transaction or order.`})}),`\n`,_jsx(ParamField,{path:`expiredAt`,type:`string (format ISO 8601 date-time)`,required:true,id:`param-expired-at`,children:_jsx(_components.p,{children:`The transaction expiration date and time. This means that after this time, the payment link or order is no longer valid.`})}),`\n`,_jsx(ParamField,{path:`items`,type:`array`,id:`param-items`,children:_jsx(_components.p,{children:`List of items (products/services) purchased.`})}),`\n`,_jsx(ParamField,{path:`quantity`,type:`integer`,id:`param-quantity`,children:_jsx(_components.p,{children:`Number of items ordered.`})}),`\n`,_jsx(ParamField,{path:`rate`,type:`integer`,id:`param-rate`,children:_jsx(_components.p,{children:`Price per unit of goods.`})}),`\n`,_jsx(Heading,{level:`2`,id:`response`,children:`Response`}),`\n`,_jsx(_components.p,{children:`Successful Response`}),`\n`,_jsx(Heading,{level:`3`,id:`main-structure-root`,children:`Main Structure (Root)`}),`\n`,_jsx(ResponseField,{name:`statusCode`,type:`integer`,id:`param-status-code`,children:_jsx(_components.p,{children:`Status code form API.`})}),`\n`,_jsx(ResponseField,{name:`messages`,type:`string`,id:`param-messages`,children:_jsx(_components.p,{children:`Status message that describes the status code.`})}),`\n`,_jsx(ResponseField,{name:`data`,type:`array of object`,id:`param-data`,children:_jsx(_components.p,{children:`The main data returned (invoice details).`})}),`\n`,_jsx(Heading,{level:`3`,id:`data-structure-array-of-object`,children:`data Structure (Array Of Object)`}),`\n`,_jsx(ResponseField,{name:`id`,type:`string\u003cuuid>`,id:`param-id-1`,children:_jsx(_components.p,{children:`Unique invoice ID.`})}),`\n`,_jsx(ResponseField,{name:`link`,type:`string`,id:`param-link`,children:_jsx(_components.p,{children:`The URL that users/clients can access to open invoices.`})})]})}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":"Edit Invoice","openapi":"POST /endpointinvoice/edit","description":"Endpoint used to edit invoices that have been created.","href":"/api-reference/invoice/edit"}}}},"mdxExtracts":{"tableOfContents":[{"title":"Authorization","slug":"authorization","depth":2,"children":[]},{"title":"Request Body","slug":"request-body","depth":2,"children":[]},{"title":"Response","slug":"response","depth":2,"children":[{"title":"Main Structure (Root)","slug":"main-structure-root","depth":3,"children":[]},{"title":"data Structure (Array Of Object)","slug":"data-structure-array-of-object","depth":3,"children":[]}]}],"codeExamples":{"request":{"type":"RequestExample","children":[{"filename":"Request Example","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=\"shellscript\">\u003ccode language=\"shellscript\" numberOfLines=\"14\">\u003cspan class=\"line\">\u003cspan style=\"color:#953800;--shiki-dark:#DCDCAA\">curl\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> --request\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> POST\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'https://api.mayar.id/hl/v1/invoice/edit'\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">--header \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">'Authorization: Bearer Paste-Your-API-Key-Here'\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">--header \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">'Content-Type: application/json'\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">--data-raw \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">'{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \t\"id\": \"f774034d-d9cc-43a0-97d8-a2520c127f03\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \t\"redirectUrl\": \"https://web.mayar.id\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \t\"description\": \"Berubah Jadi Invoice Yang Sudah Diedit\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \t\"items\":[{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \t\"quantity\": 2,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \t\"rate\": 55000,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \t\"description\": \"Berubah Jadi Invoice Yang Sudah Diedit\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \t}]\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\t}\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">'\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"}],"attributes":[]},"response":{"type":"ResponseExample","children":[{"filename":"Response Example 200","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=\"8\">\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\"> \"statusCode\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">200\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"messages\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"success\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"data\"\u003c/span>\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\">\"f774034d-d9cc-43a0-97d8-a2520c127f03\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"link\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"https://andiak.myr.id/invoices/ibzfrf4880\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> }\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":[]}}},"jsLinks":[],"subdomain":"mayar","siteName":"Mayar Documentation","title":"Edit Invoice - Mayar Documentation","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-10-30T08:25:24.602Z","originalFileLocation":"api-reference/invoice/edit.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=\"Endpoint used to edit invoices that have been created.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Mayar 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/mayar/WdY3xX5J9wtqzNtE/_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/mayar/WdY3xX5J9wtqzNtE/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/mayar/WdY3xX5J9wtqzNtE/_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/mayar/WdY3xX5J9wtqzNtE/_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/mayar/WdY3xX5J9wtqzNtE/_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/mayar/WdY3xX5J9wtqzNtE/_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/mayar/WdY3xX5J9wtqzNtE/_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/mayar/WdY3xX5J9wtqzNtE/_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/mayar/WdY3xX5J9wtqzNtE/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Edit Invoice - Mayar Documentation\">\u003cmeta data-mint-head property=\"og:description\" content=\"Endpoint used to edit invoices that have been created.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Mayar Documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.mayar.id/api-reference/invoice/edit\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://mayar.mintlify.site/_mintlify/api/og/v2?division=Invoice\u0026amp;title=Edit+Invoice\u0026amp;description=Endpoint+used+to+edit+invoices+that+have+been+created.\u0026amp;theme=25038b7961e565fa0edc663b\u0026amp;signature=f868684493587ff35464a499d8733a0722145b76b0f08772766244c3ea6a7c97\">\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=\"Edit Invoice - Mayar Documentation\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Endpoint used to edit invoices that have been created.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://mayar.mintlify.site/_mintlify/api/og/v2?division=Invoice\u0026amp;title=Edit+Invoice\u0026amp;description=Endpoint+used+to+edit+invoices+that+have+been+created.\u0026amp;theme=25038b7961e565fa0edc663b\u0026amp;signature=f868684493587ff35464a499d8733a0722145b76b0f08772766244c3ea6a7c97\">\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/mayar/WdY3xX5J9wtqzNtE/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Mayar Documentation\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#0951EF\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.mayar.id/api-reference/invoice/edit\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/invoice/edit.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.mayar.id/#organization\",\"name\":\"Mayar Documentation\",\"url\":\"https://docs.mayar.id\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/mayar/gxUm6zKdSg2aFxK8/logo/logo.png?fit=max\u0026auto=format\u0026n=gxUm6zKdSg2aFxK8\u0026q=85\u0026s=e4dc0f0e109f6b863b80a32a57b8a947\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.mayar.id#website\",\"name\":\"Mayar Documentation\",\"url\":\"https://docs.mayar.id\",\"publisher\":{\"@id\":\"https://docs.mayar.id/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.mayar.id/api-reference/invoice/edit#webpage\",\"url\":\"https://docs.mayar.id/api-reference/invoice/edit\",\"name\":\"Edit Invoice\",\"description\":\"Endpoint used to edit invoices that have been created.\",\"dateModified\":\"2026-10-30T08:25:24.602Z\",\"isPartOf\":{\"@id\":\"https://docs.mayar.id#website\"},\"breadcrumb\":{\"@id\":\"https://docs.mayar.id/api-reference/invoice/edit#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.mayar.id/api-reference/invoice/edit#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Invoice\",\"item\":\"https://docs.mayar.id/api-reference/invoice/create\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Edit Invoice\",\"item\":\"https://docs.mayar.id/api-reference/invoice/edit\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.mayar.id/api-reference/invoice/edit#apireference\",\"headline\":\"Edit Invoice\",\"name\":\"Edit Invoice\",\"description\":\"Endpoint used to edit invoices that have been created.\",\"url\":\"https://docs.mayar.id/api-reference/invoice/edit\",\"mainEntityOfPage\":{\"@id\":\"https://docs.mayar.id/api-reference/invoice/edit#webpage\"},\"dateModified\":\"2026-10-30T08:25:24.602Z\",\"publisher\":{\"@id\":\"https://docs.mayar.id/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.mayar.id#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Mayar Documentation\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Mayar Documentation\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/invoice/edit.md","siteName":"Mayar Documentation","nav":{"global":{"anchors":[{"anchor":"Community","icon":"telegram","href":"https://t.me/mcngroup"},{"anchor":"Blog","icon":"newspaper","href":"https://blog.mayar.id/"}]},"tabs":[{"tab":"Guides","pages":[{"title":"Guides","href":""}]},{"tab":"API V1 Reference","groups":[{"group":"API documentation","pages":[{"title":"Introduction","href":"/api-reference/introduction"},{"title":"Status Code","href":"/api-reference/statuscode"},{"title":"API Rate Limit","href":"/api-reference/rate-limit"}]},{"group":"Product","pages":[{"title":"Get Product Page","openapi":"GET /endpointproduct/productpage","href":"/api-reference/product/productpage"},{"title":"Get Product Page with Type Filter","openapi":"GET /endpointproduct/productpagewithfilter","href":"/api-reference/product/productpagewithfilter"},{"title":"Search Product","openapi":"GET /endpointproduct/search","href":"/api-reference/product/search"},{"title":"Get Detail Product","openapi":"GET /endpointproduct/detail","href":"/api-reference/product/detail"},{"title":"Close Product","openapi":"GET /endpointproduct/close","href":"/api-reference/product/close"},{"title":"Re-open Product","openapi":"GET /endpointproduct/reopen","href":"/api-reference/product/reopen"}]},{"group":"Generic Link Product","pages":[{"title":"Create Generic Link","openapi":"POST /endpointgenericlink/create","href":"/api-reference/genericlink/create"},{"title":"Edit Generic Link","openapi":"POST /endpointgenericlink/create","href":"/api-reference/genericlink/edit"}]},{"group":"Digital Product","pages":[{"title":"Create Digital Product","openapi":"POST /endpointdigitalproduct/create","href":"/api-reference/digitalproduct/create"},{"title":"Edit Digital Product","openapi":"POST /endpointdigitalproduct/edit","href":"/api-reference/digitalproduct/edit"}]},{"group":"Webinar Product","pages":[{"title":"Create Webinar","openapi":"POST /endpointwebinar/create","href":"/api-reference/webinar/create"},{"title":"Edit Webinar","openapi":"POST /endpointwebinar/edit","href":"/api-reference/webinar/edit"}]},{"group":"Event Product","pages":[{"title":"Create Event","openapi":"POST /endpointevent/create","href":"/api-reference/event/create"},{"title":"Edit Event","openapi":"POST /endpointevent/edit","href":"/api-reference/event/edit"}]},{"group":"Invoice","pages":[{"title":"Create Invoice","openapi":"POST /endpointinvoice/create","description":"Endpoint used to create invoices","href":"/api-reference/invoice/create"},{"title":"Edit Invoice","openapi":"POST /endpointinvoice/edit","href":"/api-reference/invoice/edit"},{"title":"Get List Invoice","openapi":"GET /endpointinvoice/index","description":"Endpoint used to view details of the number of invoices that have been created","href":"/api-reference/invoice/index"},{"title":"Get Sort / Filter Invoice","openapi":"GET /endpointinvoice/filter","href":"/api-reference/invoice/filter"},{"title":"Get Detail / Invoice Status","openapi":"GET /endpointinvoice/detail","href":"/api-reference/invoice/detail"},{"title":"Close Invoice","openapi":"GET /endpointinvoice/close","href":"/api-reference/invoice/close"},{"title":"Re-open Invoice","openapi":"GET /endpointinvoice/reopen","href":"/api-reference/invoice/reopen"}]},{"group":"Request Payment","pages":[{"title":"Create Single Payment Request","openapi":"POST /endpointqrpayment/create","href":"/api-reference/reqpayment/create"},{"title":"Edit Single Payment Request","openapi":"POST /endpointqrpayment/edit","href":"/api-reference/reqpayment/edit"},{"title":"Get List Single Payment Request","openapi":"GET /endpointqrpayment/index","href":"/api-reference/reqpayment/index"},{"title":"Get Sort / Filter Single Payment Request Page","openapi":"GET /endpointqrpayment/filter","href":"/api-reference/reqpayment/filter"},{"title":"Get Detail Single Payment Request","openapi":"GET /endpointqrpayment/detail","href":"/api-reference/reqpayment/detail"},{"title":"Close Single Payment Request","openapi":"GET /endpointqrpayment/close","href":"/api-reference/reqpayment/close"},{"title":"Re-open Single Payment Request","openapi":"GET /endpointqrpayment/reopen","href":"/api-reference/reqpayment/reopen"}]},{"group":"Installment","pages":[{"title":"POST Create Installment","openapi":"POST /endpointinstallment/create","href":"/api-reference/installment/create"},{"title":"Get Installment Detail","openapi":"GET /endpointinstallment/detail","href":"/api-reference/installment/detail"}]},{"group":"Discount \u0026 Coupon","pages":[{"title":"Create Discount with Coupon","openapi":"POST /endpointdiscount/create","href":"/api-reference/discount/create"},{"title":"Validate Coupon","openapi":"POST /endpointdiscount/validate","href":"/api-reference/discount/validate"},{"title":"Get Coupon Detail","openapi":"GET /endpointdiscount/detail","href":"/api-reference/discount/detail"}]},{"group":"Customer","pages":[{"title":"Get Customer","openapi":"GET /endpointcustomer/getdetail","href":"/api-reference/customer/getdetail"},{"title":"Search Customer By Email","openapi":"GET /endpointcustomer/searchcustomerbyemail","href":"/api-reference/customer/searchcustomerbyemail"},{"title":"Create Customer","openapi":"POST /endpointcustomer/create","href":"/api-reference/customer/create"},{"title":"Update Customer Email","openapi":"POST /endpointcustomer/update","href":"/api-reference/customer/update"},{"title":"Create Magic Link","openapi":"POST /endpointcustomer/createmagiclink","href":"/api-reference/customer/createmagiclink"}]},{"group":"Transaction","pages":[{"title":"Get Account Balance","openapi":"GET /endpointtransaction/accountbalance","href":"/api-reference/transaction/accountbalance"},{"title":"Get Paid Transactions","openapi":"GET /endpointtransaction/paidtransaction","href":"/api-reference/transaction/paidtransaction"},{"title":"Get Unpaid Transaction","openapi":"GET /endpointtransaction/unpaidtransaction","href":"/api-reference/transaction/unpaidtransaction"},{"title":"Transaction Daily","openapi":"GET /endpointtransactions/daily","href":"/api-reference/transaction/dailytransaction"},{"title":"Create Dynamic QRCode","openapi":"POST /endpointtransaction/createdynamicqrcode","href":"/api-reference/transaction/createdynamicqrcode"}]},{"group":"Webhook","pages":[{"title":"Get History","openapi":"GET /endpointwebhook/history","href":"/api-reference/webhook/history"},{"title":"Register URL Hook","openapi":"POST /endpointwebhook/registerurlhook","href":"/api-reference/webhook/registerurlhook"},{"title":"Test URL Hook","openapi":"POST /endpointwebhook/testurlhook","href":"/api-reference/webhook/testurlhook"},{"title":"Retry History","openapi":"POST /endpointwebhook/retryhistory","href":"/api-reference/webhook/retryhistory"}]},{"group":"Software License Code","pages":[{"title":"Verify License","openapi":"POST /endpointlicensecode/verifylicense","href":"/api-reference/licensecode/verifylicense"}]},{"group":"Membership (SaaS)","pages":[{"title":"Verify License SaaS Subscription","openapi":"POST /endpointqrsaas/verify","href":"/api-reference/saas/verify"},{"title":"Activate License","openapi":"POST /endpointqrsaas/activate","href":"/api-reference/saas/activate"},{"title":"Deactivate License","openapi":"POST /endpointqrsaas/deactivate","href":"/api-reference/saas/deactivate"}]},{"group":"Membership (Credit)","pages":[{"title":"Get Customer Balance","openapi":"GET /endpointusagebasedmembership/","href":"/api-reference/usagebasedmembership/customerbalance"},{"title":"Get Paginate Customer Credit History","openapi":"Get /endpointusagebasedmembership/","href":"/api-reference/usagebasedmembership/paginatecustomercredithistory"},{"title":"Spend Customer Credit","openapi":"POST /endpointusagebasedmembership/","href":"/api-reference/usagebasedmembership/spendcustomercredit"},{"title":"Add Customer Credit","openapi":"POST /endpointusagebasedmembership/","href":"/api-reference/usagebasedmembership/addcustomercredit"},{"title":"Regist New Membership Customer","openapi":"POST /endpointusagebasedmembership/","href":"/api-reference/usagebasedmembership/registnewmembershipcustomer"}]},{"group":"Credit Based Product","pages":[{"title":"Get Customer Balance","openapi":"GET /endpointcreditbasedproduct/","href":"/api-reference/creditbasedproduct/customerbalance"},{"title":"Get Paginate Customer Credit History","openapi":"GET /endpointcreditbasedproduct/","href":"/api-reference/creditbasedproduct/paginatecustomercredithistory"},{"title":"Spend Customer Credit","openapi":"POST /endpointcreditbasedproduct/","href":"/api-reference/creditbasedproduct/spendcustomercredit"},{"title":"Add Customer Credit","openapi":"POST /endpointcreditbasedproduct/","href":"/api-reference/creditbasedproduct/addcustomercredit"},{"title":"Regist New Customer","openapi":"POST /endpointcreditbasedproduct/","href":"/api-reference/creditbasedproduct/registernewcustomer"},{"title":"Generate Immutable Checkout Link","openapi":"POST /endpointcreditbasedproduct/","href":"/api-reference/creditbasedproduct/generateimmutablecheckoutlink"}]},{"group":"Reviews","pages":[{"title":"Get All Reviews","openapi":"GET /endpointreviews","href":"/api-reference/reviews/getallreviews"}]}]},{"tab":"API V2 Reference","pages":[{"title":"API V2 Reference","href":"/api-reference-v2/introduction"}]}]},"basePath":"","title":"Edit Invoice - Mayar Documentation","buildId":"dpl_Fyv1NbzwP68g2bEH2Roy98uY1zmE","deploymentId":"dpl_Fyv1NbzwP68g2bEH2Roy98uY1zmE","dynamics":["2b790eda92","b0f84f53ff"],"chunks":["ApiExamples-DTsgtCEj.js","utils-BMo572L7.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","cloneDeep-izs3Hzxb.js","utils-C-4m9KAx.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-C8vmhyQM.js","shallow-r9w8LQGS.js","snippetPresets-BKjfJMC9.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","getApiPlaygroundDisplay-DjPI64HQ.js","CodeSnippet-C8Bvhl16.js","CodeSnippets-BtWUwcMy.js","Page-BIYvYBgk.js","getPastedJson-Dcm_3Pgl.js","icon-BXwrTpjc.js","MethodPill-CcjfVmmy.js","DuplicateIcon-BuKIbXAQ.js","createIcon-DaL9yXsO.js","DynamicMarkdown-Co5nikxh.js","addUniqueKeysToSchema-DPLK2Oq9.js","SectionHeading-P4UNTsMZ.js","conditional-requirements-CFM0id0Q.js","axios-vUo_bRtp.js"]}