This endpoint creates a new subscription for a customer, enrolls the customer’s card, and initiates the first payment where applicable.
Important Notes
cardDetails is mandatory when creating a subscription.
If no trial period is configured, the first charge is attempted immediately after the card is enrolled.
If a trial period is configured, the subscription is created with a status of TRIALING. The card is enrolled immediately, but the first charge is deferred until the trial period ends.
When additional customer authentication is required, the subscription is created with a status of REQUIRES_ACTION, and the response includes the 3D Secure challenge details.
Creating another active subscription using the same customerEmail returns a 409 Conflict response.
Before the first successful payment, the subscription remains in the INCOMPLETE state.
The card service determines the charge mode (DIRECT_CHARGE, TOKENIZATION, or AGREEMENT_BASED) during card enrollment and returns it in the response. The subscription service stores this value for future recurring billing.
The payload containing the combined results of the subscription enrollment and initialization charge.
Show child attributes
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Payaza Documentation","colors":{"primary":"#31044F","light":"#C4B5FD","dark":"#31044F"},"logo":{"light":"https://mintcdn.com/payazaafrica/ui3YNZKQDioJXnZa/images/dev-light.svg?fit=max\u0026auto=format\u0026n=ui3YNZKQDioJXnZa\u0026q=85\u0026s=b97f560ac5252499e096df1ec8097964","dark":"https://mintcdn.com/payazaafrica/ui3YNZKQDioJXnZa/images/dev-dark.svg?fit=max\u0026auto=format\u0026n=ui3YNZKQDioJXnZa\u0026q=85\u0026s=5e8daf7e1d6999ecca26b84e225b8472"},"favicon":"https://mintcdn.com/payazaafrica/ZNJujSOwGSjNHyWU/images/payazafavicon.svg?fit=max\u0026auto=format\u0026n=ZNJujSOwGSjNHyWU\u0026q=85\u0026s=dbff6a14dad529b5e3b96cfd67ecc544","navbar":{"links":[{"href":"mailto:support@payaza.africa","label":"Support"},{"icon":"credit-card","href":"https://payaza.africa/checkout","label":"Try Our Checkout"}],"primary":{"type":"button","label":"Dashboard","href":"https://business.payaza.africa"}},"footer":{"socials":{"x":"https://x.com/mypayaza","linkedin":"https://www.linkedin.com/company/payaza-africa","instagram":"https://www.instagram.com/mypayaza"}},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"payazaafrica","hasAudioNarration":false,"actualSubdomain":"payazaafrica","customDomains":["docs.payaza.africa"],"gitSource":{"type":"github","owner":"78-financials","repo":"payaza-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{},"buildId":"6ae9d46798ee2cfbfea8681b","clientVersion":"0.0.4087","searchFilterCounts":[{"language":"default","tag":"API Reference","count":59},{"language":"default","tag":"Documentation","count":23},{"language":"default","tag":"Payment Links","count":7},{"language":"default","tag":"Libraries \u0026 SDKs","count":6},{"language":"default","tag":"SDKs","count":6},{"language":"default","tag":"Accept Payments","count":6},{"language":"default","tag":"Split Settlements","count":5},{"language":"default","tag":"Subscriptions","count":5},{"language":"default","tag":"Auth-Capture-Void","count":5},{"language":"default","tag":"Refunds And Chargebacks","count":5}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":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":"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":"llms-txt-v2","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":"comment-mode","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":"styles.css","content":"/* latin-ext */\n@font-face {\n font-family: 'DM Sans';\n font-style: italic;\n font-weight: 100 1000;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/dmsans/v17/rP2Fp2ywxg089UriCZa4ET-DNl0.woff2) format('woff2');\n unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;\n}\n/* latin */\n@font-face {\n font-family: 'DM Sans';\n font-style: italic;\n font-weight: 100 1000;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/dmsans/v17/rP2Fp2ywxg089UriCZa4Hz-D.woff2) format('woff2');\n unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;\n}\n/* latin-ext */\n@font-face {\n font-family: 'DM Sans';\n font-style: normal;\n font-weight: 100 1000;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/dmsans/v17/rP2Hp2ywxg089UriCZ2IHSeH.woff2) format('woff2');\n unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;\n}\n/* latin */\n@font-face {\n font-family: 'DM Sans';\n font-style: normal;\n font-weight: 100 1000;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/dmsans/v17/rP2Hp2ywxg089UriCZOIHQ.woff2) format('woff2');\n unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;\n}\n/* cyrillic-ext */\n@font-face {\n font-family: 'Libre Franklin';\n font-style: italic;\n font-weight: 100 900;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/librefranklin/v20/jizBREVItHgc8qDIbSTKq4XkRiUa6zgTjmbI.woff2) format('woff2');\n unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;\n}\n/* cyrillic */\n@font-face {\n font-family: 'Libre Franklin';\n font-style: italic;\n font-weight: 100 900;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/librefranklin/v20/jizBREVItHgc8qDIbSTKq4XkRiUa6zETjmbI.woff2) format('woff2');\n unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;\n}\n/* vietnamese */\n@font-face {\n font-family: 'Libre Franklin';\n font-style: italic;\n font-weight: 100 900;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/librefranklin/v20/jizBREVItHgc8qDIbSTKq4XkRiUa6zoTjmbI.woff2) format('woff2');\n unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;\n}\n/* latin-ext */\n@font-face {\n font-family: 'Libre Franklin';\n font-style: italic;\n font-weight: 100 900;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/librefranklin/v20/jizBREVItHgc8qDIbSTKq4XkRiUa6zsTjmbI.woff2) format('woff2');\n unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;\n}\n/* latin */\n@font-face {\n font-family: 'Libre Franklin';\n font-style: italic;\n font-weight: 100 900;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/librefranklin/v20/jizBREVItHgc8qDIbSTKq4XkRiUa6zUTjg.woff2) format('woff2');\n unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;\n}\n/* cyrillic-ext */\n@font-face {\n font-family: 'Libre Franklin';\n font-style: normal;\n font-weight: 100 900;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/librefranklin/v20/jizDREVItHgc8qDIbSTKq4XkRiUS2zcLig.woff2) format('woff2');\n unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;\n}\n/* cyrillic */\n@font-face {\n font-family: 'Libre Franklin';\n font-style: normal;\n font-weight: 100 900;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/librefranklin/v20/jizDREVItHgc8qDIbSTKq4XkRiUb2zcLig.woff2) format('woff2');\n unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;\n}\n/* vietnamese */\n@font-face {\n font-family: 'Libre Franklin';\n font-style: normal;\n font-weight: 100 900;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/librefranklin/v20/jizDREVItHgc8qDIbSTKq4XkRiUQ2zcLig.woff2) format('woff2');\n unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;\n}\n/* latin-ext */\n@font-face {\n font-family: 'Libre Franklin';\n font-style: normal;\n font-weight: 100 900;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/librefranklin/v20/jizDREVItHgc8qDIbSTKq4XkRiUR2zcLig.woff2) format('woff2');\n unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;\n}\n/* latin */\n@font-face {\n font-family: 'Libre Franklin';\n font-style: normal;\n font-weight: 100 900;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/librefranklin/v20/jizDREVItHgc8qDIbSTKq4XkRiUf2zc.woff2) format('woff2');\n unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;\n}\nbody,p,li{font-family:\"DM Sans\", sans-serif!important;font-size:0.9375rem;line-height:1.7;letter-spacing:0.01rem}span{font-family:\"DM Sans\", sans-serif;letter-spacing:0.01rem}h1,h2,h3,h4{font-family:\"Libre Franklin\", serif!important;font-weight:700;margin-top:1.5rem!important;margin-bottom:0.75rem!important}.eyebrow{color:#9CA3AF!important;font-size:0.72rem!important;font-weight:500!important;text-transform:uppercase;letter-spacing:0.08rem}.mdx-content h1{font-size:1.875rem!important;font-weight:800!important;letter-spacing:-0.025rem;margin-top:0!important;margin-bottom:0.625rem!important;line-height:1.2!important}.mdx-content h2{font-size:1.125rem!important;font-weight:700!important;border-top:1px solid #e5e7eb;padding-top:1.5rem!important;margin-top:2rem!important;margin-bottom:0.625rem!important;line-height:1.3!important}.dark .mdx-content h2{border-top-color:rgba(255, 255, 255, 0.07)}.mdx-content h3{font-size:1rem!important;font-weight:600!important;margin-top:1.5rem!important;margin-bottom:0.375rem!important;line-height:1.4!important}.mdx-content h4{font-size:0.875rem!important;font-weight:600!important;margin-top:1rem!important;margin-bottom:0.25rem!important}.mdx-content hr{border:none;border-top:1px solid #e5e7eb;margin:2rem 0!important}.dark .mdx-content hr{border-top-color:rgba(255, 255, 255, 0.07)}.mdx-content p{font-size:0.9375rem!important;line-height:1.7!important;margin-bottom:0.875rem!important}.mdx-content li{font-size:0.9375rem!important;line-height:1.7!important;margin-bottom:0.2rem}.mdx-content strong{font-weight:600}.callout{border-radius:0.375rem!important;padding:0.75rem 1rem!important;border:none!important;border-left:3px solid!important;gap:0.5rem!important;margin-top:1rem!important;margin-bottom:1rem!important}.callout[class*=\"border-blue\"]{border-left-color:#3B82F6!important;background-color:rgba(59, 130, 246, 0.05)!important}.dark .callout[class*=\"border-blue\"]{background-color:rgba(59, 130, 246, 0.07)!important;border-left-color:#60A5FA!important}.callout[class*=\"border-yellow\"]{border-left-color:#F59E0B!important;background-color:rgba(245, 158, 11, 0.05)!important}.dark .callout[class*=\"border-yellow\"]{background-color:rgba(245, 158, 11, 0.07)!important;border-left-color:#FCD34D!important}.callout[class*=\"border-green\"]{border-left-color:#10B981!important;background-color:rgba(16, 185, 129, 0.05)!important}.dark .callout[class*=\"border-green\"]{background-color:rgba(16, 185, 129, 0.07)!important;border-left-color:#34D399!important}.callout[class*=\"border-red\"]{border-left-color:#EF4444!important;background-color:rgba(239, 68, 68, 0.05)!important}.dark .callout[class*=\"border-red\"]{background-color:rgba(239, 68, 68, 0.07)!important;border-left-color:#F87171!important}.mdx-content table{font-size:0.875rem!important;width:100%;border-collapse:collapse;margin:1.25rem 0!important}.mdx-content th{font-family:\"DM Sans\", sans-serif!important;font-weight:600!important;font-size:0.7rem!important;text-transform:uppercase;letter-spacing:0.07rem;text-align:left;padding:0.625rem 1rem!important;border-bottom:2px solid #E5E7EB;color:#6B7280;white-space:nowrap}.mdx-content td{padding:0.625rem 1rem!important;border-bottom:1px solid #F3F4F6;vertical-align:top;line-height:1.6}.dark .mdx-content th{border-bottom-color:rgba(255, 255, 255, 0.1);color:#9CA3AF}.dark .mdx-content td{border-bottom-color:rgba(255, 255, 255, 0.05)}.mdx-content td:first-child{font-weight:500}.mdx-content :not(pre)>code{font-size:0.8125rem!important;padding:0.15rem 0.4rem!important;border-radius:0.25rem!important;font-weight:500}.method-nav-pill{font-size:9px!important}aside a,aside span,aside p,aside li{font-size:0.8rem!important;line-height:1.45rem!important;letter-spacing:0.01rem}html:not(.dark) aside .bg-primary\\/10{background-color:transparent!important}aside{width:220px!important;min-width:220px!important;max-width:220px!important;flex-shrink:0!important}aside a{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%;display:block}aside a>span,aside a>svg{flex-shrink:0}main{padding-left:1.75rem!important;padding-right:1.75rem!important}@media (max-width: 1280px){aside{width:200px!important;min-width:200px!important;max-width:200px!important}}@media (max-width: 768px){main{padding-left:1.25rem!important;padding-right:1.25rem!important}.mdx-content{max-width:100%}}header a[href*=\"payaza.africa/checkout\"]{display:inline-flex!important;align-items:center!important;gap:0.4rem!important;padding:0.35rem 0.85rem!important;border-radius:0.5rem!important;font-size:0.8rem!important;font-weight:600!important;transition:all 0.2s ease-in-out!important}header a[href*=\"payaza.africa/checkout\"] svg{width:0.9rem!important;height:0.9rem!important;transition:color 0.2s ease-in-out!important}html:not(.dark) header a[href*=\"payaza.africa/checkout\"]{background-color:#F3E8FF!important;color:#31044F!important;border:1px solid #D8B4FE!important}html:not(.dark) header a[href*=\"payaza.africa/checkout\"] svg{color:#31044F!important}html:not(.dark) header a[href*=\"payaza.africa/checkout\"]:hover{background-color:#31044F!important;color:#ffffff!important;border-color:#31044F!important}html:not(.dark) header a[href*=\"payaza.africa/checkout\"]:hover i,html:not(.dark) header a[href*=\"payaza.africa/checkout\"]:hover svg,html:not(.dark) header a[href*=\"payaza.africa/checkout\"]:hover [class*=\"fa-\"],html:not(.dark) header a[href*=\"payaza.africa/checkout\"]:hover *:before{color:#ffffff!important;fill:#ffffff!important;stroke:#ffffff!important;filter:brightness(0) invert(1)!important}html.dark header a[href*=\"payaza.africa/checkout\"]{background-color:rgba(196, 181, 253, 0.1)!important;color:#C4B5FD!important;border:1px solid rgba(196, 181, 253, 0.3)!important}html.dark header a[href*=\"payaza.africa/checkout\"] svg{color:#C4B5FD!important}html.dark header a[href*=\"payaza.africa/checkout\"]:hover{background-color:#31044F!important;color:#ffffff!important;border-color:#C4B5FD!important}html.dark header a[href*=\"payaza.africa/checkout\"]:hover svg{color:#ffffff!important}"}],"page":{"pagePath":"api-reference/subscriptions/create-subscription","slug":"/api-reference/subscriptions/create-subscription","pageMetadata":{"title":"Create Subscription","description":"This endpoint creates a new subscription for a customer, enrolls the customer's card, and initiates the first payment where applicable.\n\n### Important Notes\n\n* **`cardDetails`** is mandatory when creating a subscription.\n* If no trial period is configured, the first charge is attempted immediately after the card is enrolled.\n* If a trial period is configured, the subscription is created with a status of **TRIALING**. The card is enrolled immediately, but the first charge is deferred until the trial period ends.\n* When additional customer authentication is required, the subscription is created with a status of **REQUIRES_ACTION**, and the response includes the 3D Secure challenge details.\n* Creating another active subscription using the same `customerEmail` returns a **409 Conflict** response.\n* Before the first successful payment, the subscription remains in the **INCOMPLETE** state.\n* The card service determines the charge mode (**DIRECT_CHARGE**, **TOKENIZATION**, or **AGREEMENT_BASED**) during card enrollment and returns it in the response. The subscription service stores this value for future recurring billing.","deprecated":null,"version":null,"openapi":"/openapi.json post /subscription/api/v1/subscriptions","href":"/api-reference/subscriptions/create-subscription","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 h3: \"h3\",\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: \"This endpoint creates a new subscription for a customer, enrolls the customer’s card, and initiates the first payment where applicable.\"\n }), \"\\n\", _jsx(_components.h3, {\n children: \"Important Notes\"\n }), \"\\n\", _jsxs(_components.ul, {\n children: [\"\\n\", _jsxs(_components.li, {\n children: [_jsx(_components.strong, {\n children: _jsx(_components.code, {\n children: \"cardDetails\"\n })\n }), \" is mandatory when creating a subscription.\"]\n }), \"\\n\", _jsx(_components.li, {\n children: \"If no trial period is configured, the first charge is attempted immediately after the card is enrolled.\"\n }), \"\\n\", _jsxs(_components.li, {\n children: [\"If a trial period is configured, the subscription is created with a status of \", _jsx(_components.strong, {\n children: \"TRIALING\"\n }), \". The card is enrolled immediately, but the first charge is deferred until the trial period ends.\"]\n }), \"\\n\", _jsxs(_components.li, {\n children: [\"When additional customer authentication is required, the subscription is created with a status of \", _jsx(_components.strong, {\n children: \"REQUIRES_ACTION\"\n }), \", and the response includes the 3D Secure challenge details.\"]\n }), \"\\n\", _jsxs(_components.li, {\n children: [\"Creating another active subscription using the same \", _jsx(_components.code, {\n children: \"customerEmail\"\n }), \" returns a \", _jsx(_components.strong, {\n children: \"409 Conflict\"\n }), \" response.\"]\n }), \"\\n\", _jsxs(_components.li, {\n children: [\"Before the first successful payment, the subscription remains in the \", _jsx(_components.strong, {\n children: \"INCOMPLETE\"\n }), \" state.\"]\n }), \"\\n\", _jsxs(_components.li, {\n children: [\"The card service determines the charge mode (\", _jsx(_components.strong, {\n children: \"DIRECT_CHARGE\"\n }), \", \", _jsx(_components.strong, {\n children: \"TOKENIZATION\"\n }), \", or \", _jsx(_components.strong, {\n children: \"AGREEMENT_BASED\"\n }), \") during card enrollment and returns it in the response. The subscription service stores this value for future recurring billing.\"]\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 Subscription","description":"This endpoint creates a new subscription for a customer, enrolls the customer's card, and initiates the first payment where applicable.\n\n### Important Notes\n\n* **`cardDetails`** is mandatory when creating a subscription.\n* If no trial period is configured, the first charge is attempted immediately after the card is enrolled.\n* If a trial period is configured, the subscription is created with a status of **TRIALING**. The card is enrolled immediately, but the first charge is deferred until the trial period ends.\n* When additional customer authentication is required, the subscription is created with a status of **REQUIRES_ACTION**, and the response includes the 3D Secure challenge details.\n* Creating another active subscription using the same `customerEmail` returns a **409 Conflict** response.\n* Before the first successful payment, the subscription remains in the **INCOMPLETE** state.\n* The card service determines the charge mode (**DIRECT_CHARGE**, **TOKENIZATION**, or **AGREEMENT_BASED**) during card enrollment and returns it in the response. The subscription service stores this value for future recurring billing.","deprecated":null,"version":null,"openapi":"/openapi.json post /subscription/api/v1/subscriptions","href":"/api-reference/subscriptions/create-subscription","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"tags":["Subscriptions"],"summary":"Create Subscription","description":"This endpoint creates a new subscription for a customer, enrolls the customer's card, and initiates the first payment where applicable.\n\n### Important Notes\n\n* **`cardDetails`** is mandatory when creating a subscription.\n* If no trial period is configured, the first charge is attempted immediately after the card is enrolled.\n* If a trial period is configured, the subscription is created with a status of **TRIALING**. The card is enrolled immediately, but the first charge is deferred until the trial period ends.\n* When additional customer authentication is required, the subscription is created with a status of **REQUIRES_ACTION**, and the response includes the 3D Secure challenge details.\n* Creating another active subscription using the same `customerEmail` returns a **409 Conflict** response.\n* Before the first successful payment, the subscription remains in the **INCOMPLETE** state.\n* The card service determines the charge mode (**DIRECT_CHARGE**, **TOKENIZATION**, or **AGREEMENT_BASED**) during card enrollment and returns it in the response. The subscription service stores this value for future recurring billing.","security":["39e178d9-7980-446a-b65b-f4c5b5c31d25"],"requestBody":"f8065b27-bdc9-460c-b626-0fe63243f7a7","responses":{"200":"030f83a9-25b9-433c-9033-6204d9ad797d","400":"829c4c7c-bc25-446e-83da-642f615ecb8b"},"method":"post","type":"path","servers":["819f21b2-51b1-46b7-be2d-befe0107e52c"],"path":"/subscription/api/v1/subscriptions","baseUrlOptions":["https://api.payaza.africa/live"],"title":"Create Subscription","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{},"requestBody":{"required":true,"content":{"application/json":{"schema":{"title":"Create Subscription Request","type":"object","required":["customerEmail","planCode","cardDetails"],"properties":{"customerEmail":{"type":"string","format":"email","description":"The customer's email address. Used to identify the customer's subscription. An email address can only have one active subscription per plan.","example":"johndoe@gmail.com","isRequired":true,"uniqueKey":"customerEmail","typeLabel":"string\u003cemail>"},"planCode":{"type":"string","description":"The unique plan code generated when the subscription plan was created. If omitted, a plan is automatically created from the request.","example":"PLN_906FE4B","isRequired":true,"uniqueKey":"planCode","typeLabel":"string"},"cardDetails":{"type":"object","description":"The card information used to enroll the customer for recurring billing.","required":["cardNumber","expiryMonth","expiryYear","securityCode","cardHolderName","present"],"properties":{"cardNumber":{"type":"string","description":"The customer's card number","example":"554656xxxxxx742","isRequired":true,"uniqueKey":"cardDetails.cardNumber","typeLabel":"string"},"expiryMonth":{"type":"string","description":"The two-digit card expiry month.","example":"01","isRequired":true,"uniqueKey":"cardDetails.expiryMonth","typeLabel":"string"},"expiryYear":{"type":"string","description":"The two-digit card expiry year.","example":"02","isRequired":true,"uniqueKey":"cardDetails.expiryYear","typeLabel":"string"},"securityCode":{"type":"string","description":"The CVV/CVC code.","example":"123","isRequired":true,"uniqueKey":"cardDetails.securityCode","typeLabel":"string"},"cardHolderName":{"type":"string","description":"The name printed on the payment card.","example":"John Doe","isRequired":true,"uniqueKey":"cardDetails.cardHolderName","typeLabel":"string"},"present":{"type":"boolean","description":"To validate the card details.","example":true,"isRequired":true,"uniqueKey":"cardDetails.present","typeLabel":"boolean"}},"isRequired":true,"uniqueKey":"cardDetails","typeLabel":"object"}},"uniqueKey":"","typeLabel":"Create Subscription Request · object"},"examples":{"Create Subscription Plan":{"title":"Create Subscription Plan","value":{"customerEmail":"johndoe@gmail.com","planCode":"PLN_906FE4B","cardDetails":{"cardNumber":"554656xxxxxx742","expiryMonth":"01","expiryYear":"02","securityCode":"123","cardHolderName":"John Doe","present":true}}}},"exampleType":"examples"}},"exampleType":"examples"},"responses":{"030f83a9-25b9-433c-9033-6204d9ad797d":{"description":"Subscription Created","content":{"application/json":{"schema":{"title":"Create Subscription Response (Null Customer ID String)","type":"object","properties":{"success":{"type":"boolean","description":"Indicates if the request was successful.","example":true,"uniqueKey":"success","typeLabel":"boolean"},"message":{"type":"string","description":"Descriptive message regarding the subscription creation status.","example":"Subscription created","uniqueKey":"message","typeLabel":"string"},"data":{"type":"object","description":"The payload containing the combined results of the subscription enrollment and initialization charge.","properties":{"subscription":{"type":"object","description":"Detailed entity information for the newly enrolled subscription.","properties":{"id":{"type":"integer","description":"Unique internal identifier for the subscription.","example":20,"uniqueKey":"data.subscription.id","typeLabel":"integer"},"customerId":{"type":"string","description":"The customer reference string identifier.","example":"null","uniqueKey":"data.subscription.customerId","typeLabel":"string"},"customerEmail":{"type":"string","format":"email","description":"Email address of the customer.","example":"johndoe@gmail.com","uniqueKey":"data.subscription.customerEmail","typeLabel":"string\u003cemail>"},"firstName":{"oneOf":[{"type":"string","example":null,"uniqueKey":"data.subscription.firstName.oneOf.0","typeLabel":"string"},{"type":"null","example":null,"uniqueKey":"data.subscription.firstName.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.subscription.firstName","typeLabel":"string | null"},"lastName":{"oneOf":[{"type":"string","example":null,"uniqueKey":"data.subscription.lastName.oneOf.0","typeLabel":"string"},{"type":"null","example":null,"uniqueKey":"data.subscription.lastName.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.subscription.lastName","typeLabel":"string | null"},"customerAuthorizedAt":{"oneOf":[{"type":"string","format":"date-time","example":null,"uniqueKey":"data.subscription.customerAuthorizedAt.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","example":null,"uniqueKey":"data.subscription.customerAuthorizedAt.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.subscription.customerAuthorizedAt","typeLabel":"string\u003cdate-time> | null"},"status":{"type":"string","description":"The current lifecycle status of the subscription.","example":"ACTIVE","uniqueKey":"data.subscription.status","typeLabel":"string"},"currentPeriodStart":{"type":"string","format":"date-time","description":"Timestamp indicating when the current billing window opened.","example":"2026-07-08T19:35:52.348327","uniqueKey":"data.subscription.currentPeriodStart","typeLabel":"string\u003cdate-time>"},"currentPeriodEnd":{"type":"string","format":"date-time","description":"Timestamp indicating when the current billing window closes.","example":"2026-08-08T19:35:55.569925","uniqueKey":"data.subscription.currentPeriodEnd","typeLabel":"string\u003cdate-time>"},"nextChargeDate":{"type":"string","format":"date-time","description":"The next scheduled auto-billing execution timestamp.","example":"2026-08-08T19:35:55.569925","uniqueKey":"data.subscription.nextChargeDate","typeLabel":"string\u003cdate-time>"},"trialEndDate":{"oneOf":[{"type":"string","format":"date-time","example":null,"uniqueKey":"data.subscription.trialEndDate.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","example":null,"uniqueKey":"data.subscription.trialEndDate.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.subscription.trialEndDate","typeLabel":"string\u003cdate-time> | null"},"pauseResumesAt":{"oneOf":[{"type":"string","format":"date-time","example":null,"uniqueKey":"data.subscription.pauseResumesAt.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","example":null,"uniqueKey":"data.subscription.pauseResumesAt.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.subscription.pauseResumesAt","typeLabel":"string\u003cdate-time> | null"},"cancelAt":{"oneOf":[{"type":"string","format":"date-time","example":null,"uniqueKey":"data.subscription.cancelAt.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","example":null,"uniqueKey":"data.subscription.cancelAt.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.subscription.cancelAt","typeLabel":"string\u003cdate-time> | null"},"pausedAt":{"oneOf":[{"type":"string","format":"date-time","example":null,"uniqueKey":"data.subscription.pausedAt.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","example":null,"uniqueKey":"data.subscription.pausedAt.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.subscription.pausedAt","typeLabel":"string\u003cdate-time> | null"},"cancelledAt":{"oneOf":[{"type":"string","format":"date-time","example":null,"uniqueKey":"data.subscription.cancelledAt.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","example":null,"uniqueKey":"data.subscription.cancelledAt.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.subscription.cancelledAt","typeLabel":"string\u003cdate-time> | null"},"cancellationReason":{"oneOf":[{"type":"string","example":null,"uniqueKey":"data.subscription.cancellationReason.oneOf.0","typeLabel":"string"},{"type":"null","example":null,"uniqueKey":"data.subscription.cancellationReason.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.subscription.cancellationReason","typeLabel":"string | null"},"cardExpiryAlertSent":{"type":"boolean","example":false,"uniqueKey":"data.subscription.cardExpiryAlertSent","typeLabel":"boolean"},"connectionMode":{"type":"string","example":"Live","uniqueKey":"data.subscription.connectionMode","typeLabel":"string"},"enrollmentReference":{"type":"string","description":"The global token signature identifying the authorized card reference.","example":"SUBREF_BFE417ABF6FF49A985","uniqueKey":"data.subscription.enrollmentReference","typeLabel":"string"},"enrollmentTxnReference":{"type":"string","description":"Transaction baseline reference tracking the enrollment event.","example":"SUB_ENROLL_20_1783539352354","uniqueKey":"data.subscription.enrollmentTxnReference","typeLabel":"string"},"chargeMode":{"type":"string","example":"DIRECT_CHARGE","uniqueKey":"data.subscription.chargeMode","typeLabel":"string"},"metadata":{"oneOf":[{"type":"object","example":null,"uniqueKey":"data.subscription.metadata.oneOf.0","typeLabel":"object"},{"type":"null","example":null,"uniqueKey":"data.subscription.metadata.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.subscription.metadata","typeLabel":"object | null"},"createdAt":{"type":"string","format":"date-time","example":"2026-07-08T19:35:52.34833","uniqueKey":"data.subscription.createdAt","typeLabel":"string\u003cdate-time>"},"updatedAt":{"type":"string","format":"date-time","example":"2026-07-08T19:35:55.573662","uniqueKey":"data.subscription.updatedAt","typeLabel":"string\u003cdate-time>"},"customerBearsFee":{"type":"boolean","example":false,"uniqueKey":"data.subscription.customerBearsFee","typeLabel":"boolean"},"enrollConfirmed":{"type":"boolean","example":true,"uniqueKey":"data.subscription.enrollConfirmed","typeLabel":"boolean"}},"uniqueKey":"data.subscription","typeLabel":"object"},"chargeResult":{"type":"object","description":"Realtime transaction processing outcome details for the initial subscription authorization charge.","properties":{"charged":{"type":"boolean","example":true,"uniqueKey":"data.chargeResult.charged","typeLabel":"boolean"},"status":{"type":"string","example":"SUCCESS","uniqueKey":"data.chargeResult.status","typeLabel":"string"},"amount":{"type":"number","example":100,"uniqueKey":"data.chargeResult.amount","typeLabel":"number"},"fees":{"type":"number","example":0,"uniqueKey":"data.chargeResult.fees","typeLabel":"number"},"currency":{"type":"string","example":"NGN","uniqueKey":"data.chargeResult.currency","typeLabel":"string"},"transactionReference":{"type":"string","example":"SUB_ENROLL_20_1783539352354","uniqueKey":"data.chargeResult.transactionReference","typeLabel":"string"},"authCode":{"type":"string","example":"581032","uniqueKey":"data.chargeResult.authCode","typeLabel":"string"},"chargeMode":{"type":"string","example":"DIRECT_CHARGE","uniqueKey":"data.chargeResult.chargeMode","typeLabel":"string"},"message":{"type":"string","example":"Approved","uniqueKey":"data.chargeResult.message","typeLabel":"string"}},"uniqueKey":"data.chargeResult","typeLabel":"object"}},"uniqueKey":"data","typeLabel":"object"}},"uniqueKey":"","typeLabel":"Create Subscription Response (Null Customer ID String) · object"},"examples":{"Create Subscription(Successful)":{"title":"Create Subscription(Successful)","value":{"success":true,"message":"Subscription created","data":{"subscription":{"id":20,"customerId":"null","customerEmail":"johndoe@gmail.com","firstName":null,"lastName":null,"customerAuthorizedAt":null,"status":"ACTIVE","currentPeriodStart":"2026-07-08T19:35:52.348327","currentPeriodEnd":"2026-08-08T19:35:55.569925","nextChargeDate":"2026-08-08T19:35:55.569925","trialEndDate":null,"pauseResumesAt":null,"cancelAt":null,"pausedAt":null,"cancelledAt":null,"cancellationReason":null,"cardExpiryAlertSent":false,"connectionMode":"Live","enrollmentReference":"SUBREF_BFE417ABF6FF49A985","enrollmentTxnReference":"SUB_ENROLL_20_1783539352354","chargeMode":"DIRECT_CHARGE","metadata":null,"createdAt":"2026-07-08T19:35:52.34833","updatedAt":"2026-07-08T19:35:55.573662","customerBearsFee":false,"enrollConfirmed":true},"chargeResult":{"charged":true,"status":"SUCCESS","amount":100,"fees":0,"currency":"NGN","transactionReference":"SUB_ENROLL_20_1783539352354","authCode":"581032","chargeMode":"DIRECT_CHARGE","message":"Approved"}}}},"Create Subscription(Successful -Trial Subscription)":{"title":"Create Subscription(Successful -Trial Subscription)","value":{"success":true,"message":"Subscription created","data":{"subscription":{"id":21,"customerId":"null","customerEmail":"johndoe@gmail.com","firstName":null,"lastName":null,"customerAuthorizedAt":null,"status":"ACTIVE","currentPeriodStart":"2026-07-08T19:38:15.229726","currentPeriodEnd":"2026-07-09T19:38:18.292411","nextChargeDate":"2026-07-09T19:38:18.292411","trialEndDate":null,"pauseResumesAt":null,"cancelAt":null,"pausedAt":null,"cancelledAt":null,"cancellationReason":null,"cardExpiryAlertSent":false,"connectionMode":"Live","enrollmentReference":"SUBREF_FF29C28B70034065A6","enrollmentTxnReference":"SUB_ENROLL_21_1783539495235","chargeMode":"DIRECT_CHARGE","metadata":null,"createdAt":"2026-07-08T19:38:15.22973","updatedAt":"2026-07-08T19:38:18.295641","customerBearsFee":false,"enrollConfirmed":true},"chargeResult":{"charged":true,"status":"SUCCESS","amount":1000,"fees":0,"currency":"NGN","transactionReference":"SUB_ENROLL_21_1783539495235","authCode":"581410","chargeMode":"DIRECT_CHARGE","message":"Approved"}}}}},"exampleType":"examples"}},"exampleType":"examples"},"829c4c7c-bc25-446e-83da-642f615ecb8b":{"description":"Invalid request","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}}},"security":{"39e178d9-7980-446a-b65b-f4c5b5c31d25":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"Authorization","description":"Payaza {{Public API Key in Base 64}}","scopes":["Payaza {{Public API Key In Base64}}"],"schemeName":"ApiKeyAuth"}}},"servers":{"819f21b2-51b1-46b7-be2d-befe0107e52c":{"url":"https://api.payaza.africa/live","description":"The /live path is fixed and test transactions are performed by using the Test API Key with or without the X-TenantID header set to test."}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"apiKey","in":"header","name":"Authorization","description":"Payaza {{Public API Key in Base 64}}","scopes":["Payaza {{Public API Key In Base64}}"],"schemeName":"ApiKeyAuth"},"schema":{"title":"Authorization","type":"string","description":"Payaza {{Public API Key in Base 64}}","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"ApiKeyAuth","name":"Authorization"}],"title":"ApiKeyAuth"}]},"originalFileLocation":"openapi.json"},"subdomain":"payazaafrica","siteName":"Payaza Documentation","title":"Create Subscription - Payaza Documentation","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-03T12:32:47.432Z","originalFileLocation":"api-reference/subscriptions/create-subscription.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=\"This endpoint creates a new subscription for a customer, enrolls the customer\u0026#x27;s card, and initiates the first payment where applicable. ### Important Notes cardDetails is mandatory when creating a subscription. If no trial period is configured, the first charge is attempted immediately after the card is enrolled. If a trial period is configured, the subscription is created with a status of TRIALING. The card is enrolled immediately, but the first charge is deferred until the trial period ends. When additional customer authentication is required, the subscription is created with a status of REQUIRES_ACTION, and the response includes the 3D Secure challenge details. Creating another active subscription using the same customerEmail returns a 409 Conflict response. Before the first successful payment, the subscription remains in the INCOMPLETE state. * The card service determines the charge mode (DIRECT_CHARGE, TOKENIZATION, or AGREEMENT_BASED) during card enrollment and returns it in the response. The subscription service stores this value for future recurring billing.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Payaza 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/payazaafrica/bikKXSMRwL2Sgyda/_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/payazaafrica/bikKXSMRwL2Sgyda/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/payazaafrica/bikKXSMRwL2Sgyda/_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/payazaafrica/bikKXSMRwL2Sgyda/_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/payazaafrica/bikKXSMRwL2Sgyda/_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/payazaafrica/bikKXSMRwL2Sgyda/_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/payazaafrica/bikKXSMRwL2Sgyda/_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/payazaafrica/bikKXSMRwL2Sgyda/_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/payazaafrica/bikKXSMRwL2Sgyda/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Create Subscription - Payaza Documentation\">\u003cmeta data-mint-head property=\"og:description\" content=\"This endpoint creates a new subscription for a customer, enrolls the customer\u0026#x27;s card, and initiates the first payment where applicable. ### Important Notes cardDetails is mandatory when creating a subscription. If no trial period is configured, the first charge is attempted immediately after the card is enrolled. If a trial period is configured, the subscription is created with a status of TRIALING. The card is enrolled immediately, but the first charge is deferred until the trial period ends. When additional customer authentication is required, the subscription is created with a status of REQUIRES_ACTION, and the response includes the 3D Secure challenge details. Creating another active subscription using the same customerEmail returns a 409 Conflict response. Before the first successful payment, the subscription remains in the INCOMPLETE state. * The card service determines the charge mode (DIRECT_CHARGE, TOKENIZATION, or AGREEMENT_BASED) during card enrollment and returns it in the response. The subscription service stores this value for future recurring billing.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Payaza Documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.payaza.africa/api-reference/subscriptions/create-subscription\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://payazaafrica.mintlify.site/_mintlify/api/og/v2?division=Subscriptions\u0026amp;title=Create+Subscription\u0026amp;description=This+endpoint+creates+a+new+subscription+for+a+customer%2C+enrolls+the+customer%27s+card%2C+and+initiates+the+first+payment+where+applicable.%0A%0A%23%23%23+Important+Notes%0A%0A*+\u0026amp;theme=adb9ce2ec935984a68594865\u0026amp;signature=d4cbe2a43e981bea860bfbd628edbdd9ba35be15ab8489a34ccb14abb0f98b6c\">\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 Subscription - Payaza Documentation\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"This endpoint creates a new subscription for a customer, enrolls the customer\u0026#x27;s card, and initiates the first payment where applicable. ### Important Notes cardDetails is mandatory when creating a subscription. If no trial period is configured, the first charge is attempted immediately after the card is enrolled. If a trial period is configured, the subscription is created with a status of TRIALING. The card is enrolled immediately, but the first charge is deferred until the trial period ends. When additional customer authentication is required, the subscription is created with a status of REQUIRES_ACTION, and the response includes the 3D Secure challenge details. Creating another active subscription using the same customerEmail returns a 409 Conflict response. Before the first successful payment, the subscription remains in the INCOMPLETE state. * The card service determines the charge mode (DIRECT_CHARGE, TOKENIZATION, or AGREEMENT_BASED) during card enrollment and returns it in the response. The subscription service stores this value for future recurring billing.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://payazaafrica.mintlify.site/_mintlify/api/og/v2?division=Subscriptions\u0026amp;title=Create+Subscription\u0026amp;description=This+endpoint+creates+a+new+subscription+for+a+customer%2C+enrolls+the+customer%27s+card%2C+and+initiates+the+first+payment+where+applicable.%0A%0A%23%23%23+Important+Notes%0A%0A*+\u0026amp;theme=adb9ce2ec935984a68594865\u0026amp;signature=d4cbe2a43e981bea860bfbd628edbdd9ba35be15ab8489a34ccb14abb0f98b6c\">\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/payazaafrica/bikKXSMRwL2Sgyda/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Payaza Documentation\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#31044F\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.payaza.africa/api-reference/subscriptions/create-subscription\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/subscriptions/create-subscription.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.payaza.africa/#organization\",\"name\":\"Payaza Documentation\",\"url\":\"https://docs.payaza.africa\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/payazaafrica/ui3YNZKQDioJXnZa/images/dev-light.svg?fit=max\u0026auto=format\u0026n=ui3YNZKQDioJXnZa\u0026q=85\u0026s=b97f560ac5252499e096df1ec8097964\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.payaza.africa#website\",\"name\":\"Payaza Documentation\",\"url\":\"https://docs.payaza.africa\",\"publisher\":{\"@id\":\"https://docs.payaza.africa/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.payaza.africa/api-reference/subscriptions/create-subscription#webpage\",\"url\":\"https://docs.payaza.africa/api-reference/subscriptions/create-subscription\",\"name\":\"Create Subscription\",\"description\":\"This endpoint creates a new subscription for a customer, enrolls the customer's card, and initiates the first payment where applicable. ### Important Notes cardDetails is mandatory when creating a subscription. If no trial period is configured, the first charge is attempted immediately after the card is enrolled. If a trial period is configured, the subscription is created with a status of TRIALING. The card is enrolled immediately, but the first charge is deferred until the trial period ends. When additional customer authentication is required, the subscription is created with a status of REQUIRES_ACTION, and the response includes the 3D Secure challenge details. Creating another active subscription using the same customerEmail returns a 409 Conflict response. Before the first successful payment, the subscription remains in the INCOMPLETE state. * The card service determines the charge mode (DIRECT_CHARGE, TOKENIZATION, or AGREEMENT_BASED) during card enrollment and returns it in the response. The subscription service stores this value for future recurring billing.\",\"dateModified\":\"2026-11-03T12:32:47.432Z\",\"isPartOf\":{\"@id\":\"https://docs.payaza.africa#website\"},\"breadcrumb\":{\"@id\":\"https://docs.payaza.africa/api-reference/subscriptions/create-subscription#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.payaza.africa/api-reference/subscriptions/create-subscription#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Payaza Documentation\",\"item\":\"https://docs.payaza.africa\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Create Subscription\",\"item\":\"https://docs.payaza.africa/api-reference/subscriptions/create-subscription\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.payaza.africa/api-reference/subscriptions/create-subscription#apireference\",\"headline\":\"Create Subscription\",\"name\":\"Create Subscription\",\"description\":\"This endpoint creates a new subscription for a customer, enrolls the customer's card, and initiates the first payment where applicable. ### Important Notes cardDetails is mandatory when creating a subscription. If no trial period is configured, the first charge is attempted immediately after the card is enrolled. If a trial period is configured, the subscription is created with a status of TRIALING. The card is enrolled immediately, but the first charge is deferred until the trial period ends. When additional customer authentication is required, the subscription is created with a status of REQUIRES_ACTION, and the response includes the 3D Secure challenge details. Creating another active subscription using the same customerEmail returns a 409 Conflict response. Before the first successful payment, the subscription remains in the INCOMPLETE state. * The card service determines the charge mode (DIRECT_CHARGE, TOKENIZATION, or AGREEMENT_BASED) during card enrollment and returns it in the response. The subscription service stores this value for future recurring billing.\",\"url\":\"https://docs.payaza.africa/api-reference/subscriptions/create-subscription\",\"mainEntityOfPage\":{\"@id\":\"https://docs.payaza.africa/api-reference/subscriptions/create-subscription#webpage\"},\"dateModified\":\"2026-11-03T12:32:47.432Z\",\"publisher\":{\"@id\":\"https://docs.payaza.africa/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.payaza.africa#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Payaza Documentation\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Payaza Documentation","nav":{"global":null,"tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":"/introduction"}]},{"tab":"Libraries \u0026 SDKs","pages":[{"title":"Libraries \u0026 SDKs","href":"/api-reference/libraries/websdk"}]},{"tab":"API Reference","groups":[{"group":"Transfers","pages":[{"title":"Initiate A Transfer","deprecated":null,"version":null,"openapi":"/openapi.json post /payout-receptor/payout","href":"/api-reference/transfers/initiate-a-transfer"},{"title":"Transaction Status Query","deprecated":null,"version":null,"openapi":"/openapi.json get /payaza-account/api/v1/mainaccounts/merchant/transaction/{transaction_reference}","href":"/api-reference/transfers/transaction-status-query"},{"title":"Get Account Name Enquiry","deprecated":null,"version":null,"openapi":"/openapi.json post /payaza-account/api/v1/mainaccounts/merchant/provider/enquiry","href":"/api-reference/transfers/get-account-name-enquiry"},{"title":"Bank Codes","deprecated":null,"version":null,"openapi":"/openapi.json get /payaza-account/api/v1/mainaccounts/merchant/banks/{currency_code}","href":"/api-reference/transfers/bank-codes"}]},{"group":"Payaza Account","pages":[{"title":"View Payaza Account Details","deprecated":null,"version":null,"openapi":"/openapi.json get /payaza-account/api/v1/mainaccounts/merchant/enquiry/main","href":"/api-reference/payaza-account/view-payaza-account-details"}]},{"group":"Sub Accounts","pages":[{"title":"Create A Subaccount","deprecated":null,"version":null,"openapi":"/openapi.json post /payaza-account/api/v1/subaccounts/merchant","href":"/api-reference/sub-accounts/create-a-subaccount"},{"title":"View Payaza Sub Account Details","deprecated":null,"version":null,"openapi":"/openapi.json get /payaza-account/api/v1/subaccounts/merchant/enquiry/{payazaSubAccountReference}","href":"/api-reference/sub-accounts/view-payaza-sub-account-details"}]},{"group":"Apple Pay and Google Pay","pages":[{"title":"Initiate Payment","deprecated":null,"version":null,"openapi":"/openapi.json post /merchant-collection/mobile_payment/initiate","href":"/api-reference/apple-pay-and-google-pay/initiate-payment"}]},{"group":"Virtual Accounts","pages":[{"title":"Create Static/Dynamic Virtual Account","deprecated":null,"version":null,"openapi":"/openapi.json post /merchant-collection/merchant/virtual_account/generate_virtual_account","href":"/api-reference/virtual-accounts/create-staticdynamic-virtual-account"},{"title":"Get Virtual Account Status","deprecated":null,"version":null,"openapi":"/openapi.json get /merchant-collection/merchant/virtual_account/detail/virtual_account/{virtualAccountNumber}","href":"/api-reference/virtual-accounts/get-virtual-account-status"},{"title":"Transaction Status Query","deprecated":null,"version":null,"openapi":"/openapi.json get /merchant-collection/transfer_notification_controller/transaction-query","href":"/api-reference/virtual-accounts/transaction-status-query"},{"title":"Fund Test Virtual Account","deprecated":null,"version":null,"openapi":"/openapi.json post /merchant-collection/payaza/virtual_account/fund_test_virtual_account","href":"/api-reference/virtual-accounts/fund-test-virtual-account"}]},{"group":"Payment Links","pages":[{"title":"Create Payment Link","deprecated":null,"version":null,"openapi":"/openapi.json post /payment-link/merchant/create-payment-link","href":"/api-reference/payment-links/create-payment-link"},{"title":"Update Payment Link","deprecated":null,"version":null,"openapi":"/openapi.json patch /payment-link/merchant/update-payment-link","href":"/api-reference/payment-links/update-payment-link"},{"title":"Activate Payment Link","deprecated":null,"version":null,"openapi":"/openapi.json patch /payment-link/merchant/activate-payment-link","href":"/api-reference/payment-links/activate-payment-link"},{"title":"Deactivate Payment Link","deprecated":null,"version":null,"openapi":"/openapi.json patch /payment-link/merchant/deactivate-payment-link","href":"/api-reference/payment-links/deactivate-payment-link"},{"title":"Fetch Payment Links","deprecated":null,"version":null,"openapi":"/openapi.json get /payment-link/merchant/fetch-payment-links","href":"/api-reference/payment-links/fetch-payment-links"},{"title":"Fetch Payment Link Transactions","deprecated":null,"version":null,"openapi":"/openapi.json get /payment-link/merchant/fetch-payment-link-transactions","href":"/api-reference/payment-links/fetch-payment-link-transactions"}]},{"group":"Card Collection","pages":[{"title":"Card Charge","deprecated":null,"version":null,"openapi":"/openapi.json post /card/card_charge/","href":"/api-reference/card-collection/card-charge"},{"title":"Check Transaction Status","deprecated":null,"version":null,"openapi":"/openapi.json post /card/card_charge/transaction_status","href":"/api-reference/card-collection/check-transaction-status"},{"title":"Check Refund Status","deprecated":null,"version":null,"openapi":"/openapi.json post /card/card_charge/refund_status","href":"/api-reference/card-collection/check-refund-status"}]},{"group":"Refunds And Chargebacks","pages":[{"title":"Initiate Refund","deprecated":null,"version":null,"openapi":"/openapi.json post /refund-chargeback/refund/merchant/api/refund","href":"/api-reference/refunds-and-chargebacks/initiate-refund"},{"title":"Fetch Refund History","deprecated":null,"version":null,"openapi":"/openapi.json get /refund-chargeback/refund/merchant/api/refund_history","href":"/api-reference/refunds-and-chargebacks/fetch-refund-history"},{"title":"Accept Or Reject Chargeback","deprecated":null,"version":null,"openapi":"/openapi.json post /refund-chargeback/chargeback/merchant/api/accept_reject_chargeback","href":"/api-reference/refunds-and-chargebacks/accept-or-reject-chargeback"},{"title":"Chargeback Request","deprecated":null,"version":null,"openapi":"/openapi.json get /refund-chargeback/chargeback/merchant/api/chargeback_requests","href":"/api-reference/refunds-and-chargebacks/chargeback-request"},{"title":"Chargeback Transaction History","deprecated":null,"version":null,"openapi":"/openapi.json get /refund-chargeback/chargeback/merchant/api/chargeback_transaction_history","href":"/api-reference/refunds-and-chargebacks/chargeback-transaction-history"}]},{"group":"Momo, XOF And ZAR Collections","pages":[{"title":"Momo, XOF and ZAR Process Collection","deprecated":null,"version":null,"openapi":"/openapi.json post /subsidiary/collections/v1/process-collection","href":"/api-reference/momo-xof-and-zar-collections/momo-xof-and-zar-process-collection"},{"title":"Transaction Status Query","deprecated":null,"version":null,"openapi":"/openapi.json get /subsidiary/collections/v1/check-status","href":"/api-reference/momo-xof-and-zar-collections/transaction-status-query"},{"title":"Test Account Funding","deprecated":null,"version":null,"openapi":"/openapi.json post /subsidiary/funding/v1/process-collection","href":"/api-reference/momo-xof-and-zar-collections/test-account-funding"},{"title":"XOF Process OTP","deprecated":null,"version":null,"openapi":"/openapi.json post /subsidiary/collections/v1/process-otp","href":"/api-reference/momo-xof-and-zar-collections/xof-process-otp"}]},{"group":"Branches","pages":[{"title":"Fetch All Branches","deprecated":null,"version":null,"openapi":"/openapi.json get /branches/api/v1/merchant-branches","href":"/api-reference/branches/fetch-all-branches"}]},{"group":"Auth-Capture-Void","pages":[{"title":"Get All Authorizations","deprecated":null,"version":null,"openapi":"/openapi.json get /card/auth_capture/authorize","href":"/api-reference/auth-capture-void/get-all-authorizations"},{"title":"Authorize Transaction","deprecated":null,"version":null,"openapi":"/openapi.json post /card/auth_capture/authorize","href":"/api-reference/auth-capture-void/authorize-transaction"},{"title":"Capture Transaction","deprecated":null,"version":null,"openapi":"/openapi.json post /card/auth_capture/capture","href":"/api-reference/auth-capture-void/capture-transaction"},{"title":"Void Transaction","deprecated":null,"version":null,"openapi":"/openapi.json post /card/auth_capture/void","href":"/api-reference/auth-capture-void/void-transaction"},{"title":"Get Single Authorization","deprecated":null,"version":null,"openapi":"/openapi.json get /card/auth_capture/authorize/{authorization_reference}","href":"/api-reference/auth-capture-void/get-single-authorization"}]},{"group":"Check Transaction Status(Merchant Reference)","pages":[{"title":"Check Transaction Status(Merchant Reference)","deprecated":null,"version":null,"openapi":"/openapi.json get /merchant-collection/transfer_notification_controller/merchant/transaction-query","href":"/api-reference/check-transaction-statusmerchant-reference/check-transaction-statusmerchant-reference"}]},{"group":"Subscription Plans","pages":[{"title":"List Plans","deprecated":null,"version":null,"openapi":"/openapi.json get /subscription/api/v1/subscription-plans","href":"/api-reference/subscription-plans/list-plans"},{"title":"Create Plan","deprecated":null,"version":null,"openapi":"/openapi.json post /subscription/api/v1/subscription-plans","href":"/api-reference/subscription-plans/create-plan"},{"title":"Get Plan Details","deprecated":null,"version":null,"openapi":"/openapi.json get /subscription/api/v1/subscription-plans/{planCode}","href":"/api-reference/subscription-plans/get-plan-details"},{"title":"Update Plan Details","deprecated":null,"version":null,"openapi":"/openapi.json patch /subscription/api/v1/subscription-plans/{planCode}","href":"/api-reference/subscription-plans/update-plan-details"}]},{"group":"Subscription Reads","pages":[{"title":"List Subscription","deprecated":null,"version":null,"openapi":"/openapi.json get /subscription/api/v1/subscriptions","href":"/api-reference/subscription-reads/list-subscription"},{"title":"Get Subscription","deprecated":null,"version":null,"openapi":"/openapi.json get /subscription/api/v1/subscriptions/{id}","href":"/api-reference/subscription-reads/get-subscription"},{"title":"Upcoming Charges","deprecated":null,"version":null,"openapi":"/openapi.json get /subscription/api/v1/subscriptions/{id}/upcoming","href":"/api-reference/subscription-reads/upcoming-charges"},{"title":"Subscription Charge History","deprecated":null,"version":null,"openapi":"/openapi.json get /subscription/api/v1/subscriptions/{id}/charges","href":"/api-reference/subscription-reads/subscription-charge-history"},{"title":"Subscription Event History","description":"This retrieves the lifecycle events associated with a subscription. Lifecycle events provide an audit trail of significant actions performed on a subscription, such as creation, successful charges, payment failures, pauses, resumes, cancellations, plan changes, and other status transitions..","deprecated":null,"version":null,"openapi":"/openapi.json get /subscription/api/v1/subscriptions/{id}/events","href":"/api-reference/subscription-reads/subscription-event-history"}]},{"group":"Subscriptions","pages":[{"title":"Create Subscription","deprecated":null,"version":null,"openapi":"/openapi.json post /subscription/api/v1/subscriptions","href":"/api-reference/subscriptions/create-subscription"}]},{"group":"Subscription Charge","pages":[{"title":"Charge Now","description":"This endpoint immediately triggers the next scheduled recurring charge for a subscription without waiting for the next billing cycle.\n\n> **Note:** This endpoint charges the subscription's configured plan amount immediately and advances the billing cycle if the charge is successful.","deprecated":null,"version":null,"openapi":"/openapi.json post /subscription/api/v1/subscriptions/{id}/charge-now","href":"/api-reference/subscription-charge/charge-now"},{"title":"Create Custom Charge","deprecated":null,"version":null,"openapi":"/openapi.json post /subscription/api/v1/subscriptions/{id}/charge-custom","href":"/api-reference/subscription-charge/create-custom-charge"}]},{"group":"Subscription Lifecycle","pages":[{"title":"Cancel Subscription","deprecated":null,"version":null,"openapi":"/openapi.json patch /subscription/api/v1/subscriptions/{id}/cancel","href":"/api-reference/subscription-lifecycle/cancel-subscription"},{"title":"Pause Subscription","deprecated":null,"version":null,"openapi":"/openapi.json patch /subscription/api/v1/subscriptions/{id}/pause","href":"/api-reference/subscription-lifecycle/pause-subscription"},{"title":"Resume Subscription","deprecated":null,"version":null,"openapi":"/openapi.json patch /subscription/api/v1/subscriptions/{id}/resume","href":"/api-reference/subscription-lifecycle/resume-subscription"},{"title":"Change Plan","deprecated":null,"version":null,"openapi":"/openapi.json post /subscription/api/v1/subscriptions/{id}/change-plan","href":"/api-reference/subscription-lifecycle/change-plan"}]},{"group":"Subscription Invoices","pages":[{"title":"List Invoices","deprecated":null,"version":null,"openapi":"/openapi.json get /subscription/api/v1/invoices","href":"/api-reference/subscription-invoices/list-invoices"},{"title":"Get Invoice","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/invoices/{invoiceId}","href":"/api-reference/subscription-invoices/get-invoice"}]},{"group":"Split Settlements","pages":[{"title":"Fetch Split Accounts","deprecated":null,"version":null,"openapi":"/openapi.json get /settlement/settlement/merchant/split-account","href":"/api-reference/split-settlements/fetch-split-accounts"},{"title":"Create Split Account","deprecated":null,"version":null,"openapi":"/openapi.json post /settlement/settlement/merchant/split-account","href":"/api-reference/split-settlements/create-split-account"},{"title":"Update Split Account","deprecated":null,"version":null,"openapi":"/openapi.json put /settlement/settlement/merchant/split-account/{id}","href":"/api-reference/split-settlements/update-split-account"},{"title":"Delete Split Account","deprecated":null,"version":null,"openapi":"/openapi.json delete /settlement/settlement/merchant/split-account/{id}","href":"/api-reference/split-settlements/delete-split-account"}]}]}]},"basePath":"","title":"Create Subscription - Payaza Documentation","buildId":"dpl_FWZhTb2vab28gFGFH4ojka6qEznQ","deploymentId":"dpl_FWZhTb2vab28gFGFH4ojka6qEznQ","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-CBsVopKK.js","utils-DZAk68jJ.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-D32AYZrP.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-D_A5_cny.js","snippetPresets-xNRfS9th.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","conditional-requirements-CFM0id0Q.js","ApiExamples-BIB25-tq.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-CydJ4w4j.js","shallow-CYPBeQSG.js","getApiPlaygroundDisplay-A5xJVBOu.js","CodeSnippet-BVRTgi3m.js","CodeSnippets-DjD6BSlt.js","Page-Dr40SSJq.js","getPastedJson-D4V4JyrR.js","icon-uhcnG22T.js","MethodPill-CM-ZQdGH.js","DuplicateIcon-B_WnOiNf.js","createIcon-CJsb8utt.js","DynamicMarkdown-D-2HDKEp.js","SectionHeading-KP5xmMgQ.js","axios-vUo_bRtp.js","Markdown-D_k0dg6k.js","clsx-DK3K4Z1S.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-DE3EVdvd.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-fN9H9n9g.js"]}