Create a payment schedule for the client: the invoices and credit notes it settles, and the due dates of their payment. The schedule takes the currency of its documents.
See also
GET /client-payment-schedules/{clientPaymentScheduleId} to read the schedule and the status of its due dates.
Id of the schedule outside LeanPay, chosen by the integrator. Not blank, and unique among the schedules.
Required string length: 1 - 80
Pattern: \S
client
object
required
Option 1
Option 2
Show child attributes
dueDates
object[]
required
Due dates of the payment. Their amounts add up to the amount of the invoices minus the amount of the credit notes. A date may be in the past. The amount already paid on the documents settles the earliest due dates first.
Required array length: 1 - 100 elements
Show child attributes
name
string
Name of the schedule. Not blank. When left out, LeanPay generates one, such as EC-002.
Required string length: 1 - 40
Pattern: \S
invoices
object[]
Invoices settled by the schedule. Give at least one invoice or credit note.
Option 1
Option 2
Show child attributes
creditNotes
object[]
Credit notes deducted from the invoices.
Option 1
Option 2
Show child attributes
Response
The created client payment schedule.
id
string<uuid>
required
Id of the client payment schedule.
externalId
string | null
required
Id of the schedule outside LeanPay, chosen by the integrator. null for a schedule created in the LeanPay app.
clientId
string<uuid>
required
Id of the client.
name
string
required
Name of the schedule.
currency
string
required
ISO 4217 code of the currency of the schedule, the currency of its documents.
amount
integer
required
Total of the due dates.
remainingAmount
integer
required
Amount still to pay on the due dates.
invoices
object[]
required
Invoices of the schedule.
Show child attributes
creditNotes
object[]
required
Credit notes of the schedule.
Show child attributes
dueDates
object[]
required
Due dates of the schedule, sorted by ascending date.
Show child attributes
createdAt
string<date-time>
required
Date the schedule was created.
updatedAt
string<date-time>
required
Date the schedule was last changed, a recalculation of its due dates after a payment included.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"LeanPay API Documentation","colors":{"primary":"#16A34A","light":"#07C983","dark":"#15803D"},"logo":"https://mintcdn.com/leanpay/9GtxLYxiF6alvpBo/images/logo_leanpay.png?fit=max\u0026auto=format\u0026n=9GtxLYxiF6alvpBo\u0026q=85\u0026s=3b7451ff3cf0f2c4b08ed4852aa5bcb7","favicon":"https://mintcdn.com/leanpay/9GtxLYxiF6alvpBo/images/favicon.png?fit=max\u0026auto=format\u0026n=9GtxLYxiF6alvpBo\u0026q=85\u0026s=c0d5a722170c89bf32926f699c0a89d4","navbar":{"links":[{"href":"mailto:integration@leanpay.fr","label":"Support"}],"primary":{"type":"button","label":"App","href":"https://app.leanpay.fr"}},"seo":{"indexing":"navigable"},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode"],"display":"header"},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"leanpay","hasAudioNarration":false,"actualSubdomain":"leanpay","customDomains":["docs.leanpay.io"],"gitSource":{"type":"github","owner":"mintlify-community","repo":"docs-leanpay-9205eb40","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{},"buildId":"6afc0fc63745a66d17090573","clientVersion":"0.0.4304","searchFilterCounts":[{"language":"default","tag":"API reference","count":84},{"language":"default","tag":"clients","count":10},{"language":"default","tag":"credit-notes","count":9},{"language":"default","tag":"invoices","count":9},{"language":"default","tag":"client-properties","count":8},{"language":"default","tag":"addresses","count":6},{"language":"default","tag":"contacts","count":6},{"language":"default","tag":"links","count":6},{"language":"default","tag":"paybacks","count":6},{"language":"default","tag":"payments","count":6}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"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":"site-roles","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":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"api-reference/client-payment-schedules/create-a-client-payment-schedule","slug":"/api-reference/client-payment-schedules/create-a-client-payment-schedule","pageMetadata":{"title":"Create a client payment schedule","description":"Create a payment schedule for the client: the invoices and credit notes it settles, and the due dates of their payment. The schedule takes the currency of its documents.\n\n**See also**\n- `GET /client-payment-schedules/{clientPaymentScheduleId}` to read the schedule and the status of its due dates.\n","deprecated":null,"version":null,"openapi":"https://public.leanpay.fr/openapi/leanpay_api_documentation.swagger.yaml post /client-payment-schedules","href":"/api-reference/client-payment-schedules/create-a-client-payment-schedule","autogeneratedByOpenApi":true},"description":{"compiledSource":"\"use strict\";\nconst {Fragment: _Fragment, jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n code: \"code\",\n li: \"li\",\n p: \"p\",\n strong: \"strong\",\n ul: \"ul\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_Fragment, {\n children: [_jsx(_components.p, {\n children: \"Create a payment schedule for the client: the invoices and credit notes it settles, and the due dates of their payment. The schedule takes the currency of its documents.\"\n }), \"\\n\", _jsx(_components.p, {\n children: _jsx(_components.strong, {\n children: \"See also\"\n })\n }), \"\\n\", _jsxs(_components.ul, {\n children: [\"\\n\", _jsxs(_components.li, {\n children: [_jsx(_components.code, {\n children: \"GET /client-payment-schedules/{clientPaymentScheduleId}\"\n }), \" to read the schedule and the status of its due dates.\"]\n }), \"\\n\"]\n })]\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Create a client payment schedule","description":"Create a payment schedule for the client: the invoices and credit notes it settles, and the due dates of their payment. The schedule takes the currency of its documents.\n\n**See also**\n- `GET /client-payment-schedules/{clientPaymentScheduleId}` to read the schedule and the status of its due dates.\n","deprecated":null,"version":null,"openapi":"https://public.leanpay.fr/openapi/leanpay_api_documentation.swagger.yaml post /client-payment-schedules","href":"/api-reference/client-payment-schedules/create-a-client-payment-schedule","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"tags":["client-payment-schedules"],"operationId":"createClientPaymentSchedule","summary":"Create a client payment schedule","description":"Create a payment schedule for the client: the invoices and credit notes it settles, and the due dates of their payment. The schedule takes the currency of its documents.\n\n**See also**\n- `GET /client-payment-schedules/{clientPaymentScheduleId}` to read the schedule and the status of its due dates.\n","requestBody":"b3c75b26-ed01-468d-8974-41075769426c","responses":{"201":"cc93eb1b-9bbc-44c2-8067-11e7f6e4cb65","400":"f809f7c3-83f3-48ba-a2bb-c0481517bd94","404":"6bd801c6-1453-47a2-975e-454918ef4ee2","409":"1208123e-a034-4b80-8346-ced104d05fd1"},"security":["2d0e26ed-f7fa-417d-90b2-5b01ae74b066"],"method":"post","type":"path","servers":["ef0c9916-cc2b-4b5b-adf2-327f15d1ef9b"],"path":"/client-payment-schedules","baseUrlOptions":["https://api.leanpay.fr/v1/public"],"title":"Create a client payment schedule","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"externalId":{"description":"Id of the schedule outside LeanPay, chosen by the integrator. Not blank, and unique among the schedules.","type":"string","maxLength":80,"minLength":1,"pattern":"\\S","isRequired":true,"uniqueKey":"externalId","typeLabel":"string"},"client":{"oneOf":[{"type":"object","required":["id"],"properties":{"id":{"description":"Id of the client.","type":"string","format":"uuid","isRequired":true,"uniqueKey":"client.oneOf.0.id","typeLabel":"string\u003cuuid>"}},"isRequired":true,"uniqueKey":"client.oneOf.0","typeLabel":"object"},{"type":"object","required":["externalId"],"properties":{"externalId":{"description":"Id of the client outside LeanPay.","type":"string","maxLength":80,"isRequired":true,"uniqueKey":"client.oneOf.1.externalId","typeLabel":"string"}},"isRequired":true,"uniqueKey":"client.oneOf.1","typeLabel":"object"}],"isRequired":true,"uniqueKey":"client","typeLabel":"object"},"dueDates":{"description":"Due dates of the payment. Their amounts add up to the amount of the invoices minus the amount of the credit notes. A date may be in the past. The amount already paid on the documents settles the earliest due dates first.","type":"array","items":{"type":"object","properties":{"date":{"type":"string","format":"date","isRequired":true,"uniqueKey":"dueDates.items.[INDEX].date","typeLabel":"string\u003cdate>"},"amount":{"type":"integer","minimum":1,"isRequired":true,"uniqueKey":"dueDates.items.[INDEX].amount","typeLabel":"integer"}},"required":["date","amount"],"uniqueKey":"dueDates.items.[INDEX]","typeLabel":"object"},"maxItems":100,"minItems":1,"isRequired":true,"uniqueKey":"dueDates","typeLabel":"object[]"},"name":{"description":"Name of the schedule. Not blank. When left out, LeanPay generates one, such as `EC-002`.","type":"string","maxLength":40,"minLength":1,"pattern":"\\S","uniqueKey":"name","typeLabel":"string"},"invoices":{"description":"Invoices settled by the schedule. Give at least one invoice or credit note.","type":"array","items":{"oneOf":[{"type":"object","required":["id"],"properties":{"id":{"description":"Id of the invoice or credit note.","type":"string","format":"uuid","isRequired":true,"uniqueKey":"invoices.items.[INDEX].oneOf.0.id","typeLabel":"string\u003cuuid>"}},"additionalProperties":false,"uniqueKey":"invoices.items.[INDEX].oneOf.0","typeLabel":"object"},{"type":"object","required":["externalId"],"properties":{"externalId":{"description":"Id of the invoice or credit note outside LeanPay. Not blank.","type":"string","maxLength":80,"minLength":1,"pattern":"\\S","isRequired":true,"uniqueKey":"invoices.items.[INDEX].oneOf.1.externalId","typeLabel":"string"}},"additionalProperties":false,"uniqueKey":"invoices.items.[INDEX].oneOf.1","typeLabel":"object"}],"uniqueKey":"invoices.items.[INDEX]","typeLabel":"object"},"uniqueKey":"invoices","typeLabel":"object[]"},"creditNotes":{"description":"Credit notes deducted from the invoices.","type":"array","items":{"oneOf":[{"type":"object","required":["id"],"properties":{"id":{"description":"Id of the invoice or credit note.","type":"string","format":"uuid","isRequired":true,"uniqueKey":"creditNotes.items.[INDEX].oneOf.0.id","typeLabel":"string\u003cuuid>"}},"additionalProperties":false,"uniqueKey":"creditNotes.items.[INDEX].oneOf.0","typeLabel":"object"},{"type":"object","required":["externalId"],"properties":{"externalId":{"description":"Id of the invoice or credit note outside LeanPay. Not blank.","type":"string","maxLength":80,"minLength":1,"pattern":"\\S","isRequired":true,"uniqueKey":"creditNotes.items.[INDEX].oneOf.1.externalId","typeLabel":"string"}},"additionalProperties":false,"uniqueKey":"creditNotes.items.[INDEX].oneOf.1","typeLabel":"object"}],"uniqueKey":"creditNotes.items.[INDEX]","typeLabel":"object"},"uniqueKey":"creditNotes","typeLabel":"object[]"}},"required":["externalId","client","dueDates"],"uniqueKey":"","typeLabel":"object"},"example":{"externalId":"NOR-PLAN-0042","client":{"externalId":"CLI-0042"},"name":"Acme 2026 plan","invoices":[{"externalId":"INV-2026-0187"}],"creditNotes":[{"id":"8467ac72-fd93-41fb-a6f3-ad2c27c7ac11"}],"dueDates":[{"date":"2026-11-15T00:00:00.000Z","amount":300000}]},"examples":{"Example":{"title":"Example","value":{"externalId":"NOR-PLAN-0042","client":{"externalId":"CLI-0042"},"name":"Acme 2026 plan","invoices":[{"externalId":"INV-2026-0187"}],"creditNotes":[{"id":"8467ac72-fd93-41fb-a6f3-ad2c27c7ac11"}],"dueDates":[{"date":"2026-11-15T00:00:00.000Z","amount":300000}]}}},"exampleType":"examples"}},"exampleType":"examples"},"responses":{"cc93eb1b-9bbc-44c2-8067-11e7f6e4cb65":{"description":"The created client payment schedule.","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"description":"Id of the client payment schedule.","type":"string","format":"uuid","isRequired":true,"uniqueKey":"id","typeLabel":"string\u003cuuid>"},"externalId":{"oneOf":[{"description":"Id of the schedule outside LeanPay, chosen by the integrator. `null` for a schedule created in the LeanPay app.","type":"string","isRequired":true,"uniqueKey":"externalId.oneOf.0","typeLabel":"string"},{"description":"Id of the schedule outside LeanPay, chosen by the integrator. `null` for a schedule created in the LeanPay app.","type":"null","isRequired":true,"uniqueKey":"externalId.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"externalId","typeLabel":"string | null"},"clientId":{"description":"Id of the client.","type":"string","format":"uuid","isRequired":true,"uniqueKey":"clientId","typeLabel":"string\u003cuuid>"},"name":{"description":"Name of the schedule.","type":"string","isRequired":true,"uniqueKey":"name","typeLabel":"string"},"currency":{"description":"ISO 4217 code of the currency of the schedule, the currency of its documents.","type":"string","isRequired":true,"uniqueKey":"currency","typeLabel":"string"},"amount":{"description":"Total of the due dates.","type":"integer","isRequired":true,"uniqueKey":"amount","typeLabel":"integer"},"remainingAmount":{"description":"Amount still to pay on the due dates.","type":"integer","isRequired":true,"uniqueKey":"remainingAmount","typeLabel":"integer"},"invoices":{"description":"Invoices of the schedule.","type":"array","items":{"type":"object","properties":{"id":{"description":"Id of the invoice or credit note.","type":"string","format":"uuid","isRequired":true,"uniqueKey":"invoices.items.[INDEX].id","typeLabel":"string\u003cuuid>"},"externalId":{"oneOf":[{"description":"Id of the invoice or credit note outside LeanPay. `null` for a document without one.","type":"string","isRequired":true,"uniqueKey":"invoices.items.[INDEX].externalId.oneOf.0","typeLabel":"string"},{"description":"Id of the invoice or credit note outside LeanPay. `null` for a document without one.","type":"null","isRequired":true,"uniqueKey":"invoices.items.[INDEX].externalId.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"invoices.items.[INDEX].externalId","typeLabel":"string | null"},"reference":{"description":"Number of the invoice or credit note.","type":"string","isRequired":true,"uniqueKey":"invoices.items.[INDEX].reference","typeLabel":"string"}},"required":["id","externalId","reference"],"uniqueKey":"invoices.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"invoices","typeLabel":"object[]"},"creditNotes":{"description":"Credit notes of the schedule.","type":"array","items":{"type":"object","properties":{"id":{"description":"Id of the invoice or credit note.","type":"string","format":"uuid","isRequired":true,"uniqueKey":"creditNotes.items.[INDEX].id","typeLabel":"string\u003cuuid>"},"externalId":{"oneOf":[{"description":"Id of the invoice or credit note outside LeanPay. `null` for a document without one.","type":"string","isRequired":true,"uniqueKey":"creditNotes.items.[INDEX].externalId.oneOf.0","typeLabel":"string"},{"description":"Id of the invoice or credit note outside LeanPay. `null` for a document without one.","type":"null","isRequired":true,"uniqueKey":"creditNotes.items.[INDEX].externalId.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"creditNotes.items.[INDEX].externalId","typeLabel":"string | null"},"reference":{"description":"Number of the invoice or credit note.","type":"string","isRequired":true,"uniqueKey":"creditNotes.items.[INDEX].reference","typeLabel":"string"}},"required":["id","externalId","reference"],"uniqueKey":"creditNotes.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"creditNotes","typeLabel":"object[]"},"dueDates":{"description":"Due dates of the schedule, sorted by ascending date.","type":"array","items":{"type":"object","properties":{"date":{"description":"Day the due date falls on.","type":"string","format":"date","isRequired":true,"uniqueKey":"dueDates.items.[INDEX].date","typeLabel":"string\u003cdate>"},"amount":{"description":"Amount of the due date.","type":"integer","isRequired":true,"uniqueKey":"dueDates.items.[INDEX].amount","typeLabel":"integer"},"remainingAmount":{"description":"Amount still to pay on the due date.","type":"integer","isRequired":true,"uniqueKey":"dueDates.items.[INDEX].remainingAmount","typeLabel":"integer"},"status":{"description":"Payment status of the due date, computed at read time.","type":"string","enum":["paid","due","overdue"],"isRequired":true,"uniqueKey":"dueDates.items.[INDEX].status","typeLabel":"enum\u003cstring>"}},"required":["date","amount","remainingAmount","status"],"uniqueKey":"dueDates.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"dueDates","typeLabel":"object[]"},"createdAt":{"description":"Date the schedule was created.","type":"string","format":"date-time","isRequired":true,"uniqueKey":"createdAt","typeLabel":"string\u003cdate-time>"},"updatedAt":{"description":"Date the schedule was last changed, a recalculation of its due dates after a payment included.","type":"string","format":"date-time","isRequired":true,"uniqueKey":"updatedAt","typeLabel":"string\u003cdate-time>"}},"required":["id","externalId","clientId","name","currency","amount","remainingAmount","invoices","creditNotes","dueDates","createdAt","updatedAt"],"uniqueKey":"","typeLabel":"object"},"example":{"id":"69d7d4d7-85f0-4611-a0dc-1cd2dc7e0f34","externalId":"NOR-PLAN-0042","clientId":"e59d1c19-3382-4aab-90d8-1c4e1d80aaa9","name":"Acme 2026 plan","currency":"EUR","amount":300000,"remainingAmount":300000,"invoices":[{"id":"048079ef-5bd6-4302-a4ff-e779bf420fa4","externalId":"INV-2026-0187","reference":"F2026-0187"}],"creditNotes":[{"id":"8467ac72-fd93-41fb-a6f3-ad2c27c7ac11","externalId":null,"reference":"AV2026-0012"}],"dueDates":[{"date":"2026-11-15T00:00:00.000Z","amount":300000,"remainingAmount":300000,"status":"due"}],"createdAt":"2026-11-13T09:24:51.000Z","updatedAt":"2026-11-13T09:24:51.000Z"},"examples":{"Example":{"title":"Example","value":{"id":"69d7d4d7-85f0-4611-a0dc-1cd2dc7e0f34","externalId":"NOR-PLAN-0042","clientId":"e59d1c19-3382-4aab-90d8-1c4e1d80aaa9","name":"Acme 2026 plan","currency":"EUR","amount":300000,"remainingAmount":300000,"invoices":[{"id":"048079ef-5bd6-4302-a4ff-e779bf420fa4","externalId":"INV-2026-0187","reference":"F2026-0187"}],"creditNotes":[{"id":"8467ac72-fd93-41fb-a6f3-ad2c27c7ac11","externalId":null,"reference":"AV2026-0012"}],"dueDates":[{"date":"2026-11-15T00:00:00.000Z","amount":300000,"remainingAmount":300000,"status":"due"}],"createdAt":"2026-11-13T09:24:51.000Z","updatedAt":"2026-11-13T09:24:51.000Z"}}},"exampleType":"examples"}},"exampleType":"examples"},"f809f7c3-83f3-48ba-a2bb-c0481517bd94":{"description":"The request is refused by a business rule.\n\n| Code | Cause |\n| --- | --- |\n| `document_required` | The body references no invoice and no credit note. |\n| `duplicate_document` | The body references the same document more than once. |\n| `document_of_another_client` | A document belongs to another client. |\n| `currency_mismatch` | The documents are in several currencies. |\n| `non_positive_documents_amount` | The invoices minus the credit notes do not add up to a positive amount. |\n| `amount_mismatch` | The due dates do not add up to the amount of the documents. |\n","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}},"6bd801c6-1453-47a2-975e-454918ef4ee2":{"description":"The client referenced by `client`, or a document referenced by `invoices` or `creditNotes`, does not exist.","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}},"1208123e-a034-4b80-8346-ced104d05fd1":{"description":"A client payment schedule with the same `externalId` already exists, or a document is already in another schedule.","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}}},"security":{"2d0e26ed-f7fa-417d-90b2-5b01ae74b066":{"authorization":{"type":"apiKey","name":"Authorization","in":"header","scopes":[],"schemeName":"authorization"}}},"servers":{"ef0c9916-cc2b-4b5b-adf2-327f15d1ef9b":{"url":"https://api.leanpay.fr/v1/public"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"apiKey","name":"Authorization","in":"header","scopes":[],"schemeName":"authorization"},"schema":{"title":"Authorization","type":"string","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"authorization","name":"Authorization"}],"title":"authorization"}]},"originalFileLocation":"https://public.leanpay.fr/openapi/leanpay_api_documentation.swagger.yaml"},"subdomain":"leanpay","siteName":"LeanPay API Documentation","title":"Create a client payment schedule - LeanPay API Documentation","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-17T08:26:51.803Z","originalFileLocation":"api-reference/client-payment-schedules/create-a-client-payment-schedule.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=\"Create a payment schedule for the client: the invoices and credit notes it settles, and the due dates of their payment. The schedule takes the currency of its documents. See also - GET /client-payment-schedules/{clientPaymentScheduleId} to read the schedule and the status of its due dates.\">\u003cmeta data-mint-head name=\"application-name\" content=\"LeanPay API 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/leanpay/zET7u3uY2dlaXJqD/_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/leanpay/zET7u3uY2dlaXJqD/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/leanpay/zET7u3uY2dlaXJqD/_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/leanpay/zET7u3uY2dlaXJqD/_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/leanpay/zET7u3uY2dlaXJqD/_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/leanpay/zET7u3uY2dlaXJqD/_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/leanpay/zET7u3uY2dlaXJqD/_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/leanpay/zET7u3uY2dlaXJqD/_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/leanpay/zET7u3uY2dlaXJqD/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Create a client payment schedule - LeanPay API Documentation\">\u003cmeta data-mint-head property=\"og:description\" content=\"Create a payment schedule for the client: the invoices and credit notes it settles, and the due dates of their payment. The schedule takes the currency of its documents. See also - GET /client-payment-schedules/{clientPaymentScheduleId} to read the schedule and the status of its due dates.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"LeanPay API Documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.leanpay.io/api-reference/client-payment-schedules/create-a-client-payment-schedule\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://leanpay.mintlify.site/_mintlify/api/og/v2?division=client-payment-schedules\u0026amp;title=Create+a+client+payment+schedule\u0026amp;description=Create+a+payment+schedule+for+the+client%3A+the+invoices+and+credit+notes+it+settles%2C+and+the+due+dates+of+their+payment.+The+schedule+takes+the+currency+of+its+d\u0026amp;theme=4b08886939ba2b056717be9c\u0026amp;signature=c74e8db8f1e22129ca41445d7d62fb70790b521e15fdea9492004ee445e4336c\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Create a client payment schedule - LeanPay API Documentation\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Create a payment schedule for the client: the invoices and credit notes it settles, and the due dates of their payment. The schedule takes the currency of its documents. See also - GET /client-payment-schedules/{clientPaymentScheduleId} to read the schedule and the status of its due dates.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://leanpay.mintlify.site/_mintlify/api/og/v2?division=client-payment-schedules\u0026amp;title=Create+a+client+payment+schedule\u0026amp;description=Create+a+payment+schedule+for+the+client%3A+the+invoices+and+credit+notes+it+settles%2C+and+the+due+dates+of+their+payment.+The+schedule+takes+the+currency+of+its+d\u0026amp;theme=4b08886939ba2b056717be9c\u0026amp;signature=c74e8db8f1e22129ca41445d7d62fb70790b521e15fdea9492004ee445e4336c\">\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/leanpay/zET7u3uY2dlaXJqD/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"LeanPay API Documentation\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#16A34A\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.leanpay.io/api-reference/client-payment-schedules/create-a-client-payment-schedule\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/client-payment-schedules/create-a-client-payment-schedule.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.leanpay.io/#organization\",\"name\":\"LeanPay API Documentation\",\"url\":\"https://docs.leanpay.io\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/leanpay/9GtxLYxiF6alvpBo/images/logo_leanpay.png?fit=max\u0026auto=format\u0026n=9GtxLYxiF6alvpBo\u0026q=85\u0026s=3b7451ff3cf0f2c4b08ed4852aa5bcb7\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.leanpay.io#website\",\"name\":\"LeanPay API Documentation\",\"url\":\"https://docs.leanpay.io\",\"publisher\":{\"@id\":\"https://docs.leanpay.io/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.leanpay.io/api-reference/client-payment-schedules/create-a-client-payment-schedule#webpage\",\"url\":\"https://docs.leanpay.io/api-reference/client-payment-schedules/create-a-client-payment-schedule\",\"name\":\"Create a client payment schedule\",\"description\":\"Create a payment schedule for the client: the invoices and credit notes it settles, and the due dates of their payment. The schedule takes the currency of its documents. See also - GET /client-payment-schedules/{clientPaymentScheduleId} to read the schedule and the status of its due dates.\",\"dateModified\":\"2026-11-17T08:26:51.803Z\",\"isPartOf\":{\"@id\":\"https://docs.leanpay.io#website\"},\"breadcrumb\":{\"@id\":\"https://docs.leanpay.io/api-reference/client-payment-schedules/create-a-client-payment-schedule#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.leanpay.io/api-reference/client-payment-schedules/create-a-client-payment-schedule#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"client-payment-schedules\",\"item\":\"https://docs.leanpay.io/api-reference/client-payment-schedules/list-client-payment-schedules\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Create a client payment schedule\",\"item\":\"https://docs.leanpay.io/api-reference/client-payment-schedules/create-a-client-payment-schedule\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.leanpay.io/api-reference/client-payment-schedules/create-a-client-payment-schedule#apireference\",\"headline\":\"Create a client payment schedule\",\"name\":\"Create a client payment schedule\",\"description\":\"Create a payment schedule for the client: the invoices and credit notes it settles, and the due dates of their payment. The schedule takes the currency of its documents. See also - GET /client-payment-schedules/{clientPaymentScheduleId} to read the schedule and the status of its due dates.\",\"url\":\"https://docs.leanpay.io/api-reference/client-payment-schedules/create-a-client-payment-schedule\",\"mainEntityOfPage\":{\"@id\":\"https://docs.leanpay.io/api-reference/client-payment-schedules/create-a-client-payment-schedule#webpage\"},\"dateModified\":\"2026-11-17T08:26:51.803Z\",\"publisher\":{\"@id\":\"https://docs.leanpay.io/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.leanpay.io#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"LeanPay API Documentation\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"LeanPay API Documentation\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/client-payment-schedules/create-a-client-payment-schedule.md","siteName":"LeanPay API Documentation","nav":{"global":null,"tabs":[{"tab":"API reference","groups":[{"group":"clients","pages":[{"title":"List clients","deprecated":null,"version":null,"openapi":"https://public.leanpay.fr/openapi/leanpay_api_documentation.swagger.yaml get /clients","href":"/api-reference/clients/list-clients"},{"title":"Create a client","deprecated":null,"version":null,"openapi":"https://public.leanpay.fr/openapi/leanpay_api_documentation.swagger.yaml post /clients","href":"/api-reference/clients/create-a-client"},{"title":"Create a portal session","deprecated":null,"version":null,"openapi":"https://public.leanpay.fr/openapi/leanpay_api_documentation.swagger.yaml post /clients/portal-session","href":"/api-reference/clients/create-a-portal-session"},{"title":"Create clients (max 100)","deprecated":null,"version":null,"openapi":"https://public.leanpay.fr/openapi/leanpay_api_documentation.swagger.yaml post /clients/batch","href":"/api-reference/clients/create-clients-max-100"},{"title":"Import a client","deprecated":null,"version":null,"openapi":"https://public.leanpay.fr/openapi/leanpay_api_documentation.swagger.yaml post /clients/import","href":"/api-reference/clients/import-a-client"},{"title":"Import clients (max 100)","deprecated":null,"version":null,"openapi":"https://public.leanpay.fr/openapi/leanpay_api_documentation.swagger.yaml post /clients/import/batch","href":"/api-reference/clients/import-clients-max-100"},{"title":"Get a client","deprecated":null,"version":null,"openapi":"https://public.leanpay.fr/openapi/leanpay_api_documentation.swagger.yaml get /clients/{clientId}","href":"/api-reference/clients/get-a-client"},{"title":"Update a client","deprecated":null,"version":null,"openapi":"https://public.leanpay.fr/openapi/leanpay_api_documentation.swagger.yaml put /clients/{clientId}","href":"/api-reference/clients/update-a-client"},{"title":"Delete a client","deprecated":null,"version":null,"openapi":"https://public.leanpay.fr/openapi/leanpay_api_documentation.swagger.yaml delete /clients/{clientId}","href":"/api-reference/clients/delete-a-client"},{"title":"List client tags","deprecated":null,"version":null,"openapi":"https://public.leanpay.fr/openapi/leanpay_api_documentation.swagger.yaml get /clients/{clientId}/tags","href":"/api-reference/clients/list-client-tags"}]},{"group":"invoices","pages":[{"title":"List invoices","deprecated":null,"version":null,"openapi":"https://public.leanpay.fr/openapi/leanpay_api_documentation.swagger.yaml get /invoices","href":"/api-reference/invoices/list-invoices"},{"title":"Create an invoice","deprecated":null,"version":null,"openapi":"https://public.leanpay.fr/openapi/leanpay_api_documentation.swagger.yaml post /invoices","href":"/api-reference/invoices/create-an-invoice"},{"title":"Create invoices (max 100)","deprecated":null,"version":null,"openapi":"https://public.leanpay.fr/openapi/leanpay_api_documentation.swagger.yaml post /invoices/batch","href":"/api-reference/invoices/create-invoices-max-100"},{"title":"Find invoice by id","deprecated":null,"version":null,"openapi":"https://public.leanpay.fr/openapi/leanpay_api_documentation.swagger.yaml get /invoices/{invoiceId}","href":"/api-reference/invoices/find-invoice-by-id"},{"title":"Delete invoice by id","deprecated":null,"version":null,"openapi":"https://public.leanpay.fr/openapi/leanpay_api_documentation.swagger.yaml delete /invoices/{invoiceId}","href":"/api-reference/invoices/delete-invoice-by-id"},{"title":"Get invoice download url","deprecated":null,"version":null,"openapi":"https://public.leanpay.fr/openapi/leanpay_api_documentation.swagger.yaml get /invoices/{invoiceId}/download-url","href":"/api-reference/invoices/get-invoice-download-url"},{"title":"Upload invoice PDF","deprecated":null,"version":null,"openapi":"https://public.leanpay.fr/openapi/leanpay_api_documentation.swagger.yaml post /invoices/{invoiceId}/pdf","href":"/api-reference/invoices/upload-invoice-pdf"},{"title":"Upload invoices PDF (max 10)","deprecated":null,"version":null,"openapi":"https://public.leanpay.fr/openapi/leanpay_api_documentation.swagger.yaml post /invoices/pdf/batch","href":"/api-reference/invoices/upload-invoices-pdf-max-10"},{"title":"Import a complete invoice","deprecated":null,"version":null,"openapi":"https://public.leanpay.fr/openapi/leanpay_api_documentation.swagger.yaml post /invoices/complete","href":"/api-reference/invoices/import-a-complete-invoice"}]},{"group":"credit-notes","pages":[{"title":"List credit notes","deprecated":null,"version":null,"openapi":"https://public.leanpay.fr/openapi/leanpay_api_documentation.swagger.yaml get /credit-notes","href":"/api-reference/credit-notes/list-credit-notes"},{"title":"Create a credit note","deprecated":null,"version":null,"openapi":"https://public.leanpay.fr/openapi/leanpay_api_documentation.swagger.yaml post /credit-notes","href":"/api-reference/credit-notes/create-a-credit-note"},{"title":"Create credit notes (max 100)","deprecated":null,"version":null,"openapi":"https://public.leanpay.fr/openapi/leanpay_api_documentation.swagger.yaml post /credit-notes/batch","href":"/api-reference/credit-notes/create-credit-notes-max-100"},{"title":"Find a credit note by its id","deprecated":null,"version":null,"openapi":"https://public.leanpay.fr/openapi/leanpay_api_documentation.swagger.yaml get /credit-notes/{creditNoteId}","href":"/api-reference/credit-notes/find-a-credit-note-by-its-id"},{"title":"Delete a credit note by its id","deprecated":null,"version":null,"openapi":"https://public.leanpay.fr/openapi/leanpay_api_documentation.swagger.yaml delete /credit-notes/{creditNoteId}","href":"/api-reference/credit-notes/delete-a-credit-note-by-its-id"},{"title":"Get credit note download url","deprecated":null,"version":null,"openapi":"https://public.leanpay.fr/openapi/leanpay_api_documentation.swagger.yaml get /credit-notes/{creditNoteId}/download-url","href":"/api-reference/credit-notes/get-credit-note-download-url"},{"title":"Upload credit note PDF","deprecated":null,"version":null,"openapi":"https://public.leanpay.fr/openapi/leanpay_api_documentation.swagger.yaml post /credit-notes/{creditNoteId}/pdf","href":"/api-reference/credit-notes/upload-credit-note-pdf"},{"title":"Upload credit note PDF (max 10)","deprecated":null,"version":null,"openapi":"https://public.leanpay.fr/openapi/leanpay_api_documentation.swagger.yaml post /credit-notes/pdf/batch","href":"/api-reference/credit-notes/upload-credit-note-pdf-max-10"},{"title":"Import a complete credit note","deprecated":null,"version":null,"openapi":"https://public.leanpay.fr/openapi/leanpay_api_documentation.swagger.yaml post /credit-notes/complete","href":"/api-reference/credit-notes/import-a-complete-credit-note"}]},{"group":"misc-operations","pages":[{"title":"List misc operations","deprecated":null,"version":null,"openapi":"https://public.leanpay.fr/openapi/leanpay_api_documentation.swagger.yaml get /misc-operations","href":"/api-reference/misc-operations/list-misc-operations"},{"title":"Import a misc operation","deprecated":null,"version":null,"openapi":"https://public.leanpay.fr/openapi/leanpay_api_documentation.swagger.yaml post /misc-operations","href":"/api-reference/misc-operations/import-a-misc-operation"},{"title":"Import misc operations (max 100)","deprecated":null,"version":null,"openapi":"https://public.leanpay.fr/openapi/leanpay_api_documentation.swagger.yaml post /misc-operations/batch","href":"/api-reference/misc-operations/import-misc-operations-max-100"},{"title":"Find misc operation by id","deprecated":null,"version":null,"openapi":"https://public.leanpay.fr/openapi/leanpay_api_documentation.swagger.yaml get /misc-operations/{miscOperationId}","href":"/api-reference/misc-operations/find-misc-operation-by-id"},{"title":"Delete misc operation by id","deprecated":null,"version":null,"openapi":"https://public.leanpay.fr/openapi/leanpay_api_documentation.swagger.yaml delete /misc-operations/{miscOperationId}","href":"/api-reference/misc-operations/delete-misc-operation-by-id"}]},{"group":"contacts","pages":[{"title":"List contacts","deprecated":null,"version":null,"openapi":"https://public.leanpay.fr/openapi/leanpay_api_documentation.swagger.yaml get /contacts","href":"/api-reference/contacts/list-contacts"},{"title":"Create a contact","deprecated":null,"version":null,"openapi":"https://public.leanpay.fr/openapi/leanpay_api_documentation.swagger.yaml post /contacts","href":"/api-reference/contacts/create-a-contact"},{"title":"Create contacts (max 100)","deprecated":null,"version":null,"openapi":"https://public.leanpay.fr/openapi/leanpay_api_documentation.swagger.yaml post /contacts/batch","href":"/api-reference/contacts/create-contacts-max-100"},{"title":"Get a contact","deprecated":null,"version":null,"openapi":"https://public.leanpay.fr/openapi/leanpay_api_documentation.swagger.yaml get /contacts/{contactId}","href":"/api-reference/contacts/get-a-contact"},{"title":"Update a contact","deprecated":null,"version":null,"openapi":"https://public.leanpay.fr/openapi/leanpay_api_documentation.swagger.yaml put /contacts/{contactId}","href":"/api-reference/contacts/update-a-contact"},{"title":"Delete a contact","deprecated":null,"version":null,"openapi":"https://public.leanpay.fr/openapi/leanpay_api_documentation.swagger.yaml delete /contacts/{contactId}","href":"/api-reference/contacts/delete-a-contact"}]},{"group":"addresses","pages":[{"title":"List addresses","deprecated":null,"version":null,"openapi":"https://public.leanpay.fr/openapi/leanpay_api_documentation.swagger.yaml get /addresses","href":"/api-reference/addresses/list-addresses"},{"title":"Create an address","deprecated":null,"version":null,"openapi":"https://public.leanpay.fr/openapi/leanpay_api_documentation.swagger.yaml post /addresses","href":"/api-reference/addresses/create-an-address"},{"title":"Create addresses (max 100)","deprecated":null,"version":null,"openapi":"https://public.leanpay.fr/openapi/leanpay_api_documentation.swagger.yaml post /addresses/batch","href":"/api-reference/addresses/create-addresses-max-100"},{"title":"Get an address","deprecated":null,"version":null,"openapi":"https://public.leanpay.fr/openapi/leanpay_api_documentation.swagger.yaml get /addresses/{addressId}","href":"/api-reference/addresses/get-an-address"},{"title":"Update an address","deprecated":null,"version":null,"openapi":"https://public.leanpay.fr/openapi/leanpay_api_documentation.swagger.yaml put /addresses/{addressId}","href":"/api-reference/addresses/update-an-address"},{"title":"Delete an address","deprecated":null,"version":null,"openapi":"https://public.leanpay.fr/openapi/leanpay_api_documentation.swagger.yaml delete /addresses/{addressId}","href":"/api-reference/addresses/delete-an-address"}]},{"group":"payments","pages":[{"title":"List payments","deprecated":null,"version":null,"openapi":"https://public.leanpay.fr/openapi/leanpay_api_documentation.swagger.yaml get /payments","href":"/api-reference/payments/list-payments"},{"title":"Create a payment","deprecated":null,"version":null,"openapi":"https://public.leanpay.fr/openapi/leanpay_api_documentation.swagger.yaml post /payments","href":"/api-reference/payments/create-a-payment"},{"title":"Create payments (max 100)","deprecated":null,"version":null,"openapi":"https://public.leanpay.fr/openapi/leanpay_api_documentation.swagger.yaml post /payments/batch","href":"/api-reference/payments/create-payments-max-100"},{"title":"Find a payment by its id","deprecated":null,"version":null,"openapi":"https://public.leanpay.fr/openapi/leanpay_api_documentation.swagger.yaml get /payments/{paymentId}","href":"/api-reference/payments/find-a-payment-by-its-id"},{"title":"Update a payment","deprecated":null,"version":null,"openapi":"https://public.leanpay.fr/openapi/leanpay_api_documentation.swagger.yaml put /payments/{paymentId}","href":"/api-reference/payments/update-a-payment"},{"title":"Delete a payment by its id","deprecated":null,"version":null,"openapi":"https://public.leanpay.fr/openapi/leanpay_api_documentation.swagger.yaml delete /payments/{paymentId}","href":"/api-reference/payments/delete-a-payment-by-its-id"}]},{"group":"portal-payments","pages":[{"title":"Find a portal payment by its id","deprecated":null,"version":null,"openapi":"https://public.leanpay.fr/openapi/leanpay_api_documentation.swagger.yaml get /portal-payments/{portalPaymentId}","href":"/api-reference/portal-payments/find-a-portal-payment-by-its-id"}]},{"group":"paybacks","pages":[{"title":"List paybacks","deprecated":null,"version":null,"openapi":"https://public.leanpay.fr/openapi/leanpay_api_documentation.swagger.yaml get /paybacks","href":"/api-reference/paybacks/list-paybacks"},{"title":"Create a payback","deprecated":null,"version":null,"openapi":"https://public.leanpay.fr/openapi/leanpay_api_documentation.swagger.yaml post /paybacks","href":"/api-reference/paybacks/create-a-payback"},{"title":"Create paybacks (max 100)","deprecated":null,"version":null,"openapi":"https://public.leanpay.fr/openapi/leanpay_api_documentation.swagger.yaml post /paybacks/batch","href":"/api-reference/paybacks/create-paybacks-max-100"},{"title":"Find a payback by its id","deprecated":null,"version":null,"openapi":"https://public.leanpay.fr/openapi/leanpay_api_documentation.swagger.yaml get /paybacks/{paybackId}","href":"/api-reference/paybacks/find-a-payback-by-its-id"},{"title":"Update a payback","deprecated":null,"version":null,"openapi":"https://public.leanpay.fr/openapi/leanpay_api_documentation.swagger.yaml put /paybacks/{paybackId}","href":"/api-reference/paybacks/update-a-payback"},{"title":"Delete a payback by its id","deprecated":null,"version":null,"openapi":"https://public.leanpay.fr/openapi/leanpay_api_documentation.swagger.yaml delete /paybacks/{paybackId}","href":"/api-reference/paybacks/delete-a-payback-by-its-id"}]},{"group":"links","pages":[{"title":"List links","deprecated":null,"version":null,"openapi":"https://public.leanpay.fr/openapi/leanpay_api_documentation.swagger.yaml get /links","href":"/api-reference/links/list-links"},{"title":"Create a link","deprecated":null,"version":null,"openapi":"https://public.leanpay.fr/openapi/leanpay_api_documentation.swagger.yaml post /links","href":"/api-reference/links/create-a-link"},{"title":"Create links (max 100)","deprecated":null,"version":null,"openapi":"https://public.leanpay.fr/openapi/leanpay_api_documentation.swagger.yaml post /links/batch","href":"/api-reference/links/create-links-max-100"},{"title":"Find a link by its id","deprecated":null,"version":null,"openapi":"https://public.leanpay.fr/openapi/leanpay_api_documentation.swagger.yaml get /links/{linkId}","href":"/api-reference/links/find-a-link-by-its-id"},{"title":"Update a link","deprecated":null,"version":null,"openapi":"https://public.leanpay.fr/openapi/leanpay_api_documentation.swagger.yaml put /links/{linkId}","href":"/api-reference/links/update-a-link"},{"title":"Delete a link by its id","deprecated":null,"version":null,"openapi":"https://public.leanpay.fr/openapi/leanpay_api_documentation.swagger.yaml delete /links/{linkId}","href":"/api-reference/links/delete-a-link-by-its-id"}]},{"group":"comments","pages":[{"title":"List comments","deprecated":null,"version":null,"openapi":"https://public.leanpay.fr/openapi/leanpay_api_documentation.swagger.yaml get /comments","href":"/api-reference/comments/list-comments"},{"title":"Create a comment","deprecated":null,"version":null,"openapi":"https://public.leanpay.fr/openapi/leanpay_api_documentation.swagger.yaml post /comments","href":"/api-reference/comments/create-a-comment"},{"title":"Find a comment by its id","deprecated":null,"version":null,"openapi":"https://public.leanpay.fr/openapi/leanpay_api_documentation.swagger.yaml get /comments/{commentId}","href":"/api-reference/comments/find-a-comment-by-its-id"}]},{"group":"deleted-elements","pages":[{"title":"List deleted elements","deprecated":null,"version":null,"openapi":"https://public.leanpay.fr/openapi/leanpay_api_documentation.swagger.yaml get /deleted-elements","href":"/api-reference/deleted-elements/list-deleted-elements"}]},{"group":"reminders","pages":[{"title":"List done reminders","deprecated":null,"version":null,"openapi":"https://public.leanpay.fr/openapi/leanpay_api_documentation.swagger.yaml get /reminders/done","href":"/api-reference/reminders/list-done-reminders"},{"title":"List reminders to do","deprecated":null,"version":null,"openapi":"https://public.leanpay.fr/openapi/leanpay_api_documentation.swagger.yaml get /reminders/todo","href":"/api-reference/reminders/list-reminders-to-do"}]},{"group":"client-groups","pages":[{"title":"List client groups","deprecated":null,"version":null,"openapi":"https://public.leanpay.fr/openapi/leanpay_api_documentation.swagger.yaml get /client-groups","href":"/api-reference/client-groups/list-client-groups"},{"title":"Get a client group","deprecated":null,"version":null,"openapi":"https://public.leanpay.fr/openapi/leanpay_api_documentation.swagger.yaml get /client-groups/{clientGroupId}","href":"/api-reference/client-groups/get-a-client-group"}]},{"group":"client-properties","pages":[{"title":"Get all client properties","deprecated":null,"version":null,"openapi":"https://public.leanpay.fr/openapi/leanpay_api_documentation.swagger.yaml get /client-properties","href":"/api-reference/client-properties/get-all-client-properties"},{"title":"Create a new client property","deprecated":null,"version":null,"openapi":"https://public.leanpay.fr/openapi/leanpay_api_documentation.swagger.yaml post /client-properties","href":"/api-reference/client-properties/create-a-new-client-property"},{"title":"Assign a tag to a client and create the tag if it does not exist","deprecated":null,"version":null,"openapi":"https://public.leanpay.fr/openapi/leanpay_api_documentation.swagger.yaml post /client-properties/{clientPropertyId}/assign-tag-to-client","href":"/api-reference/client-properties/assign-a-tag-to-a-client-and-create-the-tag-if-it-does-not-exist"},{"title":"Get tags for a specific client property","deprecated":null,"version":null,"openapi":"https://public.leanpay.fr/openapi/leanpay_api_documentation.swagger.yaml get /client-properties/{clientPropertyId}/tags","href":"/api-reference/client-properties/get-tags-for-a-specific-client-property"},{"title":"Create a new tag for a specific client property","deprecated":null,"version":null,"openapi":"https://public.leanpay.fr/openapi/leanpay_api_documentation.swagger.yaml post /client-properties/{clientPropertyId}/tags","href":"/api-reference/client-properties/create-a-new-tag-for-a-specific-client-property"},{"title":"Update a tag","deprecated":null,"version":null,"openapi":"https://public.leanpay.fr/openapi/leanpay_api_documentation.swagger.yaml put /client-properties/{clientPropertyId}/tags/{tagId}","href":"/api-reference/client-properties/update-a-tag"},{"title":"Delete a tag for a client property","deprecated":null,"version":null,"openapi":"https://public.leanpay.fr/openapi/leanpay_api_documentation.swagger.yaml delete /client-properties/{clientPropertyId}/tags/{tagId}","href":"/api-reference/client-properties/delete-a-tag-for-a-client-property"},{"title":"Delete a client property","deprecated":null,"version":null,"openapi":"https://public.leanpay.fr/openapi/leanpay_api_documentation.swagger.yaml delete /client-properties/{clientPropertyId}","href":"/api-reference/client-properties/delete-a-client-property"}]},{"group":"client-payment-schedules","pages":[{"title":"List client payment schedules","description":"List the client payment schedules, with their invoices, credit notes and due dates.","deprecated":null,"version":null,"openapi":"https://public.leanpay.fr/openapi/leanpay_api_documentation.swagger.yaml get /client-payment-schedules","href":"/api-reference/client-payment-schedules/list-client-payment-schedules"},{"title":"Create a client payment schedule","deprecated":null,"version":null,"openapi":"https://public.leanpay.fr/openapi/leanpay_api_documentation.swagger.yaml post /client-payment-schedules","href":"/api-reference/client-payment-schedules/create-a-client-payment-schedule"},{"title":"Get a client payment schedule","description":"Get the client payment schedule, with its invoices, credit notes and due dates.","deprecated":null,"version":null,"openapi":"https://public.leanpay.fr/openapi/leanpay_api_documentation.swagger.yaml get /client-payment-schedules/{clientPaymentScheduleId}","href":"/api-reference/client-payment-schedules/get-a-client-payment-schedule"},{"title":"Delete a client payment schedule","deprecated":null,"version":null,"openapi":"https://public.leanpay.fr/openapi/leanpay_api_documentation.swagger.yaml delete /client-payment-schedules/{clientPaymentScheduleId}","href":"/api-reference/client-payment-schedules/delete-a-client-payment-schedule"}]}]}]},"basePath":"","title":"Create a client payment schedule - LeanPay API Documentation","deploymentId":"dpl_57NA6NKtrcUBhuxv6Tm2hAi21TK4","buildId":"dpl_57NA6NKtrcUBhuxv6Tm2hAi21TK4","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-CalkZbx8.js","snippetPresets-DtvvunBK.js","utils-Bn5byECU.js","style-to-object-BY3JEAdk.js","utils-DOTAoFcT.js","v4-DIgz8zy6.js","addUniqueKeysToSchema-CDauU9aU.js","conditional-requirements-CFM0id0Q.js","cloneDeep-k2aHAqp5.js","_Uint8Array-CQuRedKT.js","isObject-FP1Yky1u.js","ApiExamples-CSBS2nDe.js","usePlaygroundInputsStore-BkN7uKke.js","shallow-6IMgYiEa.js","isEqual-DicuCknl.js","CodeSnippets-C268fsRY.js","CodeSnippet-BBA8eWiP.js","getApiPlaygroundDisplay-DMK5GRGS.js","Page-Dz3zehSO.js","api-description-markdown-DwoksVHI.js","DynamicMarkdown-XsrWkK-b.js","SectionHeading-AR_EzDYe.js","MethodPill-CvOL8UTX.js","getPastedJson-BazkMjRw.js","Check2Icon-BL_xILK9.js","axios-CsQoIw0U.js","Markdown-CX8Sr5UZ.js","AssistantPageLink-B3VcLrB0.js","dist-WDJo6xkj.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}