Tạo một khách hàng mới trong tài khoản Dodo Payments của bạn.
POST
/
customers
JavaScript
import DodoPayments from 'dodopayments';
const client = new DodoPayments({
bearerToken: process.env['DODO_PAYMENTS_API_KEY'], // This is the default and can be omitted
});
const customer = await client.customers.create({ email: 'email', name: 'name' });
console.log(customer.business_id);
import os
from dodopayments import DodoPayments
client = DodoPayments(
bearer_token=os.environ.get("DODO_PAYMENTS_API_KEY"), # This is the default and can be omitted
)
customer = client.customers.create(
email="email",
name="name",
)
print(customer.business_id)
Send your API key as a bearer token: Authorization: Bearer <api_key>. A test mode key starts with dodo_test_, for example dodo_test_AbCd1234EfGh5678.<secret>. A live mode key starts with dodo_live_. Use a test mode key on test.dodopayments.com and a live mode key on live.dodopayments.com. Keys from before these tags have no tag and operate as before.
When the merchant blocked this customer. The dashboard shows the
"Blocked" badge and the unblock action from it. The list route leaves it
empty; only the single-customer route resolves it.
import DodoPayments from 'dodopayments';
const client = new DodoPayments({
bearerToken: process.env['DODO_PAYMENTS_API_KEY'], // This is the default and can be omitted
});
const customer = await client.customers.create({ email: 'email', name: 'name' });
console.log(customer.business_id);
import os
from dodopayments import DodoPayments
client = DodoPayments(
bearer_token=os.environ.get("DODO_PAYMENTS_API_KEY"), # This is the default and can be omitted
)
customer = client.customers.create(
email="email",
name="name",
)
print(customer.business_id)
{"docsConfig":{"theme":"maple","$schema":"https://mintlify.com/docs.json","name":"Dodo Payments Documentation","description":"Documentation for Dodo Payments — the all-in-one payments, billing, and merchant of record platform for SaaS, AI, and digital products.","colors":{"primary":"#779812","light":"#C6FE1E","dark":"#166534"},"logo":{"light":"https://mintcdn.com/dodopayments/nM_mJfYkri-OpC5M/logo/light.svg?fit=max\u0026auto=format\u0026n=nM_mJfYkri-OpC5M\u0026q=85\u0026s=23f7a052f7ecb9d6570b7c95ee359a97","dark":"https://mintcdn.com/dodopayments/nM_mJfYkri-OpC5M/logo/dark.svg?fit=max\u0026auto=format\u0026n=nM_mJfYkri-OpC5M\u0026q=85\u0026s=cd6c20238a54526436f21c43fee51b26"},"favicon":"https://mintcdn.com/dodopayments/doYQc9oUE-WNz0cs/favicon.svg?fit=max\u0026auto=format\u0026n=doYQc9oUE-WNz0cs\u0026q=85\u0026s=271c6cc8ce7d6bf4d7f2b9cca029e004","background":{"color":{"light":"#FFFFFF","dark":"#0D0D0D"}},"navbar":{"links":[{"icon":"link","href":"https://docs.dodopayments.com/llms-full.txt","label":"llms-full.txt"},{"icon":"discord","href":"https://discord.gg/bYqAp4ayYh","label":"Community"},{"icon":"house","href":"https://app.dodopayments.com/","label":"Dashboard"}]},"footer":{"socials":{"x":"https://x.com/dodopayments","linkedin":"https://linkedin.com/company/dodopayments","website":"https://dodopayments.com","discord":"https://discord.gg/bYqAp4ayYh","github":"https://github.com/dodopayments","instagram":"https://www.instagram.com/dodo.payments","facebook":"https://www.facebook.com/profile.php?id=61565515607280"}},"seo":{"metatags":{"og:site_name":"Dodo Payments Documentation","twitter:card":"summary_large_image"},"indexing":"navigable"},"fonts":{"heading":{"family":"ApfelGrotezk","weight":400,"source":"fonts/ApfelGrotezk-Regular.woff2","format":"woff2"},"body":{"family":"Inter","weight":400,"source":"fonts/Inter-Variable.woff2","format":"woff2"}},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","cursor"],"display":"header"},"metadata":{"timestamp":true},"styling":{"latex":true},"navigation":{"languages":[{"language":"en","href":"introduction"},{"language":"es","href":"es/introduction"},{"language":"ar","href":"ar/introduction"},{"language":"fr","href":"fr/introduction"},{"language":"de","href":"de/introduction"},{"language":"id","href":"id/introduction"},{"language":"ja","href":"ja/introduction"},{"language":"ko","href":"ko/introduction"},{"language":"pt-BR","href":"pt-BR/introduction"},{"language":"vi","href":"vi/introduction"},{"language":"cn","href":"cn/introduction"},{"language":"hi","href":"hi/introduction"},{"language":"it","href":"it/introduction"},{"language":"sv","href":"sv/introduction"}]}},"deployment":{"deploymentMetadataValue":{"subdomain":"dodopayments","hasAudioNarration":false,"actualSubdomain":"dodopayments","customDomains":["docs.dodopayments.com"],"gitSource":{"type":"github","owner":"dodopayments","repo":"dodo-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"feedback":{"thumbs":true,"edits":false,"issues":false},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6af4027c778b6a49d3c24d62","clientVersion":"0.0.4102","searchFilterCounts":[{"language":"en","tag":"API Reference","count":181},{"language":"en","tag":"Docs","count":176},{"language":"ar","tag":"Docs","count":153},{"language":"cn","tag":"Docs","count":153},{"language":"de","tag":"Docs","count":153},{"language":"es","tag":"Docs","count":153},{"language":"fr","tag":"Docs","count":153},{"language":"hi","tag":"Docs","count":153},{"language":"id","tag":"Docs","count":153},{"language":"it","tag":"Docs","count":153},{"language":"ja","tag":"Docs","count":153},{"language":"ko","tag":"Docs","count":153},{"language":"pt-BR","tag":"Docs","count":153},{"language":"sv","tag":"Docs","count":153},{"language":"vi","tag":"Docs","count":153},{"language":"ar","tag":"API Reference","count":151},{"language":"cn","tag":"API Reference","count":151},{"language":"de","tag":"API Reference","count":151},{"language":"es","tag":"API Reference","count":151},{"language":"fr","tag":"API Reference","count":151},{"language":"hi","tag":"API Reference","count":151},{"language":"id","tag":"API Reference","count":151},{"language":"it","tag":"API Reference","count":151},{"language":"ja","tag":"API Reference","count":151},{"language":"ko","tag":"API Reference","count":151},{"language":"pt-BR","tag":"API Reference","count":151},{"language":"sv","tag":"API Reference","count":151},{"language":"vi","tag":"API Reference","count":151},{"language":"en","tag":"Features","count":86},{"language":"ar","tag":"Features","count":81},{"language":"cn","tag":"Features","count":81},{"language":"de","tag":"Features","count":81},{"language":"es","tag":"Features","count":81},{"language":"fr","tag":"Features","count":81},{"language":"hi","tag":"Features","count":81},{"language":"id","tag":"Features","count":81},{"language":"it","tag":"Features","count":81},{"language":"ja","tag":"Features","count":81},{"language":"ko","tag":"Features","count":81},{"language":"pt-BR","tag":"Features","count":81},{"language":"sv","tag":"Features","count":81},{"language":"vi","tag":"Features","count":81},{"language":"en","tag":"Integrate","count":74},{"language":"en","tag":"Changelog","count":66},{"language":"ar","tag":"Changelog","count":65},{"language":"cn","tag":"Changelog","count":65},{"language":"de","tag":"Changelog","count":65},{"language":"es","tag":"Changelog","count":65},{"language":"fr","tag":"Changelog","count":65},{"language":"hi","tag":"Changelog","count":65},{"language":"id","tag":"Changelog","count":65},{"language":"it","tag":"Changelog","count":65},{"language":"ja","tag":"Changelog","count":65},{"language":"ko","tag":"Changelog","count":65},{"language":"pt-BR","tag":"Changelog","count":65},{"language":"sv","tag":"Changelog","count":65},{"language":"vi","tag":"Changelog","count":65},{"language":"ar","tag":"Integrate","count":59},{"language":"cn","tag":"Integrate","count":59},{"language":"de","tag":"Integrate","count":59},{"language":"es","tag":"Integrate","count":59},{"language":"fr","tag":"Integrate","count":59},{"language":"hi","tag":"Integrate","count":59},{"language":"id","tag":"Integrate","count":59},{"language":"it","tag":"Integrate","count":59},{"language":"ja","tag":"Integrate","count":59},{"language":"ko","tag":"Integrate","count":59},{"language":"pt-BR","tag":"Integrate","count":59},{"language":"sv","tag":"Integrate","count":59},{"language":"vi","tag":"Integrate","count":59},{"language":"en","tag":"External Integrations","count":33},{"language":"ar","tag":"External Integrations","count":30},{"language":"cn","tag":"External Integrations","count":30},{"language":"de","tag":"External Integrations","count":30},{"language":"es","tag":"External Integrations","count":30},{"language":"fr","tag":"External Integrations","count":30},{"language":"hi","tag":"External Integrations","count":30},{"language":"id","tag":"External Integrations","count":30},{"language":"it","tag":"External Integrations","count":30},{"language":"ja","tag":"External Integrations","count":30},{"language":"ko","tag":"External Integrations","count":30},{"language":"pt-BR","tag":"External Integrations","count":30},{"language":"sv","tag":"External Integrations","count":30},{"language":"vi","tag":"External Integrations","count":30},{"language":"en","tag":"Webhooks","count":23},{"language":"ar","tag":"Webhooks","count":23},{"language":"cn","tag":"Webhooks","count":23},{"language":"de","tag":"Webhooks","count":23},{"language":"es","tag":"Webhooks","count":23},{"language":"fr","tag":"Webhooks","count":23},{"language":"hi","tag":"Webhooks","count":23},{"language":"id","tag":"Webhooks","count":23},{"language":"it","tag":"Webhooks","count":23},{"language":"ja","tag":"Webhooks","count":23},{"language":"ko","tag":"Webhooks","count":23},{"language":"pt-BR","tag":"Webhooks","count":23},{"language":"sv","tag":"Webhooks","count":23},{"language":"vi","tag":"Webhooks","count":23},{"language":"en","tag":"Guides","count":22},{"language":"ar","tag":"Guides","count":22},{"language":"cn","tag":"Guides","count":22},{"language":"de","tag":"Guides","count":22},{"language":"es","tag":"Guides","count":22},{"language":"fr","tag":"Guides","count":22},{"language":"hi","tag":"Guides","count":22},{"language":"id","tag":"Guides","count":22},{"language":"it","tag":"Guides","count":22},{"language":"ja","tag":"Guides","count":22},{"language":"ko","tag":"Guides","count":22},{"language":"pt-BR","tag":"Guides","count":22},{"language":"sv","tag":"Guides","count":22},{"language":"vi","tag":"Guides","count":22},{"language":"en","tag":"Entitlements","count":20},{"language":"ar","tag":"Entitlements","count":20},{"language":"cn","tag":"Entitlements","count":20},{"language":"de","tag":"Entitlements","count":20},{"language":"es","tag":"Entitlements","count":20},{"language":"fr","tag":"Entitlements","count":20},{"language":"hi","tag":"Entitlements","count":20},{"language":"id","tag":"Entitlements","count":20},{"language":"it","tag":"Entitlements","count":20},{"language":"ja","tag":"Entitlements","count":20},{"language":"ko","tag":"Entitlements","count":20},{"language":"pt-BR","tag":"Entitlements","count":20},{"language":"sv","tag":"Entitlements","count":20},{"language":"vi","tag":"Entitlements","count":20},{"language":"en","tag":"Invoices","count":17},{"language":"ar","tag":"Customers","count":16},{"language":"cn","tag":"Customers","count":16},{"language":"de","tag":"Customers","count":16},{"language":"es","tag":"Customers","count":16},{"language":"fr","tag":"Customers","count":16},{"language":"hi","tag":"Customers","count":16},{"language":"id","tag":"Customers","count":16},{"language":"it","tag":"Customers","count":16},{"language":"ja","tag":"Customers","count":16},{"language":"ko","tag":"Customers","count":16},{"language":"pt-BR","tag":"Customers","count":16},{"language":"sv","tag":"Customers","count":16},{"language":"vi","tag":"Customers","count":16}]},"assistantConfig":{"deflection":{"enabled":false,"email":"support@dodopayments.com","showHelpButton":true}},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":true,"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":"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}],"googleFontsInlined":false},"customCss":[{"filePath":"styles.css","content":"#content-area{max-width:60rem}h1,h2,h3,h4,h5,h6{letter-spacing:0.05em!important}.welcome-page .card-group{margin:3rem auto 8rem;max-width:70rem;padding-left:1.25rem;padding-right:1.25rem}.welcome-page .card-group .card{padding:1rem}.welcome-hero{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:20vh;text-align:center;margin-top:3rem;margin-bottom:2.5rem}.welcome-hero h1{font-size:2.5rem;font-weight:700;margin-bottom:1rem;line-height:1.2;color:#fff}.welcome-hero p{font-size:1.25rem;max-width:600px;margin:0 auto}.welcome-hero h1{color:rgb(41 42 37 / 1)}.dark .welcome-hero h1{color:rgb(255 255 255 / 1)}.welcome-hero p{color:rgb(83 85 79 / 1)}.dark .welcome-hero p{color:rgb(162 164 158 / 1)}"}],"page":{"pagePath":"vi/api-reference/customers/create-customer","slug":"/vi/api-reference/customers/create-customer","pageMetadata":{"openapi":"post /customers","title":"Tạo Khách Hàng","description":"Tạo một khách hàng mới trong tài khoản Dodo Payments của bạn.","keywords":["Dodo Payments","Tham khảo API","REST API","tạo khách hàng"],"href":"/vi/api-reference/customers/create-customer"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Tạo một khách hàng mới trong tài khoản Dodo Payments của bạ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":{"openapi":"post /customers","title":"Tạo Khách Hàng","description":"Tạo một khách hàng mới trong tài khoản Dodo Payments của bạn.","keywords":["Dodo Payments","Tham khảo API","REST API","tạo khách hàng"],"href":"/vi/api-reference/customers/create-customer"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":["/_mintlify/custom/dodopayments/0ee82a08f7b65bcb/seo.js","/_mintlify/custom/dodopayments/6f88c9bbee313616/assistant-loader.js"],"openApiReferenceData":{"operation":{"tags":["Customers"],"operationId":"create_customer","requestBody":"9c255539-49eb-44a7-9291-a26483fd1189","responses":{"200":"8ba0f451-3f81-4224-b67a-5d63ff77f72a","422":"82f0e258-27f1-42c3-80e7-de8baf89ba17","500":"69a42644-73f1-4c8d-adf8-f766af6df79f"},"security":["4c820c7e-7d8c-47fb-a875-be7f8b2a56bc"],"x-codeSamples":[{"lang":"JavaScript","source":"import DodoPayments from 'dodopayments';\n\nconst client = new DodoPayments({\n bearerToken: process.env['DODO_PAYMENTS_API_KEY'], // This is the default and can be omitted\n});\n\nconst customer = await client.customers.create({ email: 'email', name: 'name' });\n\nconsole.log(customer.business_id);"},{"lang":"Python","source":"import os\nfrom dodopayments import DodoPayments\n\nclient = DodoPayments(\n bearer_token=os.environ.get(\"DODO_PAYMENTS_API_KEY\"), # This is the default and can be omitted\n)\ncustomer = client.customers.create(\n email=\"email\",\n name=\"name\",\n)\nprint(customer.business_id)"},{"lang":"Go","source":"package main\n\nimport (\n\t\"context\"\n\t\"fmt\"\n\n\t\"github.com/dodopayments/dodopayments-go\"\n\t\"github.com/dodopayments/dodopayments-go/option\"\n)\n\nfunc main() {\n\tclient := dodopayments.NewClient(\n\t\toption.WithBearerToken(\"My Bearer Token\"),\n\t)\n\tcustomer, err := client.Customers.New(context.TODO(), dodopayments.CustomerNewParams{\n\t\tEmail: dodopayments.F(\"email\"),\n\t\tName: dodopayments.F(\"name\"),\n\t})\n\tif err != nil {\n\t\tpanic(err.Error())\n\t}\n\tfmt.Printf(\"%+v\\n\", customer.BusinessID)\n}\n"},{"lang":"Java","source":"package com.dodopayments.api.example;\n\nimport com.dodopayments.api.client.DodoPaymentsClient;\nimport com.dodopayments.api.client.okhttp.DodoPaymentsOkHttpClient;\nimport com.dodopayments.api.models.customers.Customer;\nimport com.dodopayments.api.models.customers.CustomerCreateParams;\n\npublic final class Main {\n private Main() {}\n\n public static void main(String[] args) {\n DodoPaymentsClient client = DodoPaymentsOkHttpClient.fromEnv();\n\n CustomerCreateParams params = CustomerCreateParams.builder()\n .email(\"email\")\n .name(\"name\")\n .build();\n Customer customer = client.customers().create(params);\n }\n}"},{"lang":"Kotlin","source":"package com.dodopayments.api.example\n\nimport com.dodopayments.api.client.DodoPaymentsClient\nimport com.dodopayments.api.client.okhttp.DodoPaymentsOkHttpClient\nimport com.dodopayments.api.models.customers.Customer\nimport com.dodopayments.api.models.customers.CustomerCreateParams\n\nfun main() {\n val client: DodoPaymentsClient = DodoPaymentsOkHttpClient.fromEnv()\n\n val params: CustomerCreateParams = CustomerCreateParams.builder()\n .email(\"email\")\n .name(\"name\")\n .build()\n val customer: Customer = client.customers().create(params)\n}"},{"lang":"Ruby","source":"require \"dodopayments\"\n\ndodo_payments = Dodopayments::Client.new(\n bearer_token: \"My Bearer Token\",\n environment: \"test_mode\" # defaults to \"live_mode\"\n)\n\ncustomer = dodo_payments.customers.create(email: \"email\", name: \"name\")\n\nputs(customer)"},{"lang":"PHP","source":"\u003c?php\n\nrequire_once dirname(__DIR__) . '/vendor/autoload.php';\n\nuse Dodopayments\\Client;\nuse Dodopayments\\Core\\Exceptions\\APIException;\n\n$client = new Client(\n bearerToken: getenv('DODO_PAYMENTS_API_KEY') ?: 'My Bearer Token',\n environment: 'test_mode',\n);\n\ntry {\n $customer = $client->customers->create(\n email: 'email',\n name: 'name',\n metadata: ['foo' => 'string'],\n phoneNumber: 'phone_number',\n );\n\n var_dump($customer);\n} catch (APIException $e) {\n echo $e->getMessage();\n}"},{"lang":"C#","source":"using System;\nusing DodoPayments.Client;\nusing DodoPayments.Client.Models.Customers;\n\nDodoPaymentsClient client = new();\n\nCustomerCreateParams parameters = new()\n{\n Email = \"email\",\n Name = \"name\",\n};\n\nvar customer = await client.Customers.Create(parameters);\n\nConsole.WriteLine(customer);"},{"lang":"Rust","source":"use dodopayments::Client;\n\n#[tokio::main]\nasync fn main() -> dodopayments::Result\u003c()> {\n let client = Client::from_env()?;\n let result = client\n .customers()\n .create()\n .body(dodopayments::models::CustomersCreateParams {\n email: Some(\"email\".to_string()),\n name: Some(\"name\".to_string()),\n ..Default::default()\n })\n .await?;\n println!(\"{result:?}\");\n Ok(())\n}"}],"method":"post","type":"path","servers":["258c6c34-2f0b-4091-a5e0-d5c0da1d0e4f","5001ffd6-aa75-47ac-b009-c76c158d0a43"],"path":"/customers","baseUrlOptions":["https://test.dodopayments.com/","https://live.dodopayments.com/"],"title":"","description":"Tạo một khách hàng mới trong tài khoản Dodo Payments của bạn.","codeSamples":[{"lang":"JavaScript","source":"import DodoPayments from 'dodopayments';\n\nconst client = new DodoPayments({\n bearerToken: process.env['DODO_PAYMENTS_API_KEY'], // This is the default and can be omitted\n});\n\nconst customer = await client.customers.create({ email: 'email', name: 'name' });\n\nconsole.log(customer.business_id);"},{"lang":"Python","source":"import os\nfrom dodopayments import DodoPayments\n\nclient = DodoPayments(\n bearer_token=os.environ.get(\"DODO_PAYMENTS_API_KEY\"), # This is the default and can be omitted\n)\ncustomer = client.customers.create(\n email=\"email\",\n name=\"name\",\n)\nprint(customer.business_id)"},{"lang":"Go","source":"package main\n\nimport (\n\t\"context\"\n\t\"fmt\"\n\n\t\"github.com/dodopayments/dodopayments-go\"\n\t\"github.com/dodopayments/dodopayments-go/option\"\n)\n\nfunc main() {\n\tclient := dodopayments.NewClient(\n\t\toption.WithBearerToken(\"My Bearer Token\"),\n\t)\n\tcustomer, err := client.Customers.New(context.TODO(), dodopayments.CustomerNewParams{\n\t\tEmail: dodopayments.F(\"email\"),\n\t\tName: dodopayments.F(\"name\"),\n\t})\n\tif err != nil {\n\t\tpanic(err.Error())\n\t}\n\tfmt.Printf(\"%+v\\n\", customer.BusinessID)\n}\n"},{"lang":"Java","source":"package com.dodopayments.api.example;\n\nimport com.dodopayments.api.client.DodoPaymentsClient;\nimport com.dodopayments.api.client.okhttp.DodoPaymentsOkHttpClient;\nimport com.dodopayments.api.models.customers.Customer;\nimport com.dodopayments.api.models.customers.CustomerCreateParams;\n\npublic final class Main {\n private Main() {}\n\n public static void main(String[] args) {\n DodoPaymentsClient client = DodoPaymentsOkHttpClient.fromEnv();\n\n CustomerCreateParams params = CustomerCreateParams.builder()\n .email(\"email\")\n .name(\"name\")\n .build();\n Customer customer = client.customers().create(params);\n }\n}"},{"lang":"Kotlin","source":"package com.dodopayments.api.example\n\nimport com.dodopayments.api.client.DodoPaymentsClient\nimport com.dodopayments.api.client.okhttp.DodoPaymentsOkHttpClient\nimport com.dodopayments.api.models.customers.Customer\nimport com.dodopayments.api.models.customers.CustomerCreateParams\n\nfun main() {\n val client: DodoPaymentsClient = DodoPaymentsOkHttpClient.fromEnv()\n\n val params: CustomerCreateParams = CustomerCreateParams.builder()\n .email(\"email\")\n .name(\"name\")\n .build()\n val customer: Customer = client.customers().create(params)\n}"},{"lang":"Ruby","source":"require \"dodopayments\"\n\ndodo_payments = Dodopayments::Client.new(\n bearer_token: \"My Bearer Token\",\n environment: \"test_mode\" # defaults to \"live_mode\"\n)\n\ncustomer = dodo_payments.customers.create(email: \"email\", name: \"name\")\n\nputs(customer)"},{"lang":"PHP","source":"\u003c?php\n\nrequire_once dirname(__DIR__) . '/vendor/autoload.php';\n\nuse Dodopayments\\Client;\nuse Dodopayments\\Core\\Exceptions\\APIException;\n\n$client = new Client(\n bearerToken: getenv('DODO_PAYMENTS_API_KEY') ?: 'My Bearer Token',\n environment: 'test_mode',\n);\n\ntry {\n $customer = $client->customers->create(\n email: 'email',\n name: 'name',\n metadata: ['foo' => 'string'],\n phoneNumber: 'phone_number',\n );\n\n var_dump($customer);\n} catch (APIException $e) {\n echo $e->getMessage();\n}"},{"lang":"C#","source":"using System;\nusing DodoPayments.Client;\nusing DodoPayments.Client.Models.Customers;\n\nDodoPaymentsClient client = new();\n\nCustomerCreateParams parameters = new()\n{\n Email = \"email\",\n Name = \"name\",\n};\n\nvar customer = await client.Customers.Create(parameters);\n\nConsole.WriteLine(customer);"},{"lang":"Rust","source":"use dodopayments::Client;\n\n#[tokio::main]\nasync fn main() -> dodopayments::Result\u003c()> {\n let client = Client::from_env()?;\n let result = client\n .customers()\n .create()\n .body(dodopayments::models::CustomersCreateParams {\n email: Some(\"email\".to_string()),\n name: Some(\"name\".to_string()),\n ..Default::default()\n })\n .await?;\n println!(\"{result:?}\");\n Ok(())\n}"}],"requiredOnlyExamples":false,"requestExampleType":"codeSamples","responseExampleType":"generated"},"dependencies":{"parameters":{},"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["name","email"],"properties":{"email":{"type":"string","isRequired":true,"uniqueKey":"email","typeLabel":"string"},"name":{"type":"string","isRequired":true,"uniqueKey":"name","typeLabel":"string"},"metadata":{"type":"object","title":"Metadata","description":"Additional metadata for the customer","additionalProperties":{"oneOf":[{"type":"string","title":"String","description":"Metadata value can be a string, integer, number, or boolean","uniqueKey":"metadata.additionalProperties.oneOf.0","typeLabel":"string"},{"type":"integer","title":"Integer","description":"Metadata value can be a string, integer, number, or boolean","format":"int64","uniqueKey":"metadata.additionalProperties.oneOf.1","typeLabel":"integer\u003cint64>"},{"type":"number","title":"Number","description":"Metadata value can be a string, integer, number, or boolean","format":"double","uniqueKey":"metadata.additionalProperties.oneOf.2","typeLabel":"number\u003cdouble>"},{"type":"boolean","title":"Boolean","description":"Metadata value can be a string, integer, number, or boolean","uniqueKey":"metadata.additionalProperties.oneOf.3","typeLabel":"boolean"}],"uniqueKey":"metadata.additionalProperties","typeLabel":"string | integer\u003cint64> | number\u003cdouble> | boolean"},"uniqueKey":"metadata","typeLabel":"Metadata · object"},"phone_number":{"oneOf":[{"type":"string","uniqueKey":"phone_number.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"phone_number.oneOf.1","typeLabel":"null"}],"uniqueKey":"phone_number","typeLabel":"string | null"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"email":"\u003cstring>","name":"\u003cstring>","metadata":{},"phone_number":"\u003cstring>"}}},"exampleType":"generated"}},"required":true,"exampleType":"generated"},"responses":{"8ba0f451-3f81-4224-b67a-5d63ff77f72a":{"description":"","content":{"application/json":{"schema":{"type":"object","required":["customer_id","business_id","name","email","created_at"],"properties":{"business_id":{"type":"string","isRequired":true,"uniqueKey":"business_id","typeLabel":"string"},"created_at":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"created_at","typeLabel":"string\u003cdate-time>"},"customer_id":{"type":"string","isRequired":true,"uniqueKey":"customer_id","typeLabel":"string"},"email":{"type":"string","isRequired":true,"uniqueKey":"email","typeLabel":"string"},"name":{"type":"string","isRequired":true,"uniqueKey":"name","typeLabel":"string"},"blocked_at":{"oneOf":[{"type":"string","format":"date-time","description":"When the merchant blocked this customer. The dashboard shows the\n\"Blocked\" badge and the unblock action from it. The list route leaves it\nempty; only the single-customer route resolves it.","uniqueKey":"blocked_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","description":"When the merchant blocked this customer. The dashboard shows the\n\"Blocked\" badge and the unblock action from it. The list route leaves it\nempty; only the single-customer route resolves it.","uniqueKey":"blocked_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"blocked_at","typeLabel":"string\u003cdate-time> | null"},"blocklist_entry_id":{"oneOf":[{"type":"string","description":"Blocklist entry behind `blocked_at`, so the dashboard can link to it.","uniqueKey":"blocklist_entry_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"Blocklist entry behind `blocked_at`, so the dashboard can link to it.","uniqueKey":"blocklist_entry_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"blocklist_entry_id","typeLabel":"string | null"},"metadata":{"type":"object","title":"Metadata","description":"Additional metadata for the customer","additionalProperties":{"oneOf":[{"type":"string","title":"String","description":"Metadata value can be a string, integer, number, or boolean","uniqueKey":"metadata.additionalProperties.oneOf.0","typeLabel":"string"},{"type":"integer","title":"Integer","description":"Metadata value can be a string, integer, number, or boolean","format":"int64","uniqueKey":"metadata.additionalProperties.oneOf.1","typeLabel":"integer\u003cint64>"},{"type":"number","title":"Number","description":"Metadata value can be a string, integer, number, or boolean","format":"double","uniqueKey":"metadata.additionalProperties.oneOf.2","typeLabel":"number\u003cdouble>"},{"type":"boolean","title":"Boolean","description":"Metadata value can be a string, integer, number, or boolean","uniqueKey":"metadata.additionalProperties.oneOf.3","typeLabel":"boolean"}],"uniqueKey":"metadata.additionalProperties","typeLabel":"string | integer\u003cint64> | number\u003cdouble> | boolean"},"uniqueKey":"metadata","typeLabel":"Metadata · object"},"phone_number":{"oneOf":[{"type":"string","uniqueKey":"phone_number.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"phone_number.oneOf.1","typeLabel":"null"}],"uniqueKey":"phone_number","typeLabel":"string | null"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"business_id":"\u003cstring>","created_at":"2023-11-07T05:31:56Z","customer_id":"\u003cstring>","email":"\u003cstring>","name":"\u003cstring>","blocked_at":"2023-11-07T05:31:56Z","blocklist_entry_id":"\u003cstring>","metadata":{},"phone_number":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"82f0e258-27f1-42c3-80e7-de8baf89ba17":{"description":"Invalid Request Object or Parameters","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}},"69a42644-73f1-4c8d-adf8-f766af6df79f":{"description":"Something went wrong :(","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}}},"security":{"4c820c7e-7d8c-47fb-a875-be7f8b2a56bc":{"API_KEY":{"type":"http","scheme":"bearer","description":"Send your API key as a bearer token: `Authorization: Bearer \u003capi_key>`. A test mode key starts with `dodo_test_`, for example `dodo_test_AbCd1234EfGh5678.\u003csecret>`. A live mode key starts with `dodo_live_`. Use a test mode key on `test.dodopayments.com` and a live mode key on `live.dodopayments.com`. Keys from before these tags have no tag and operate as before.","scopes":[],"schemeName":"API_KEY"}}},"servers":{"258c6c34-2f0b-4091-a5e0-d5c0da1d0e4f":{"url":"https://test.dodopayments.com/","description":"Test Mode Server Host"},"5001ffd6-aa75-47ac-b009-c76c158d0a43":{"url":"https://live.dodopayments.com/","description":"Live Mode Server Host"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","description":"Send your API key as a bearer token: `Authorization: Bearer \u003capi_key>`. A test mode key starts with `dodo_test_`, for example `dodo_test_AbCd1234EfGh5678.\u003csecret>`. A live mode key starts with `dodo_live_`. Use a test mode key on `test.dodopayments.com` and a live mode key on `live.dodopayments.com`. Keys from before these tags have no tag and operate as before.","scopes":[],"schemeName":"API_KEY"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"Send your API key as a bearer token: `Authorization: Bearer \u003capi_key>`. A test mode key starts with `dodo_test_`, for example `dodo_test_AbCd1234EfGh5678.\u003csecret>`. A live mode key starts with `dodo_live_`. Use a test mode key on `test.dodopayments.com` and a live mode key on `live.dodopayments.com`. Keys from before these tags have no tag and operate as before.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"API_KEY","name":"Authorization"}],"title":"API_KEY"}]},"originalFileLocation":"openapi/openapi.documented.yml"},"subdomain":"dodopayments","siteName":"Dodo Payments Documentation","title":"Tạo Khách Hàng - Dodo Payments Documentation","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{"en":{"href":"/api-reference/customers/create-customer","matchLevel":1},"es":{"href":"/es/api-reference/customers/create-customer","matchLevel":1},"ar":{"href":"/ar/api-reference/customers/create-customer","matchLevel":1},"fr":{"href":"/fr/api-reference/customers/create-customer","matchLevel":1},"de":{"href":"/de/api-reference/customers/create-customer","matchLevel":1},"id":{"href":"/id/api-reference/customers/create-customer","matchLevel":1},"ja":{"href":"/ja/api-reference/customers/create-customer","matchLevel":1},"ko":{"href":"/ko/api-reference/customers/create-customer","matchLevel":1},"pt-BR":{"href":"/pt-BR/api-reference/customers/create-customer","matchLevel":1},"vi":{"href":"/vi/api-reference/customers/create-customer","matchLevel":0},"cn":{"href":"/cn/api-reference/customers/create-customer","matchLevel":1},"hi":{"href":"/hi/api-reference/customers/create-customer","matchLevel":1},"it":{"href":"/it/api-reference/customers/create-customer","matchLevel":1},"sv":{"href":"/sv/api-reference/customers/create-customer","matchLevel":1}}},"lastModified":"2026-01-28T20:02:43.112Z","gitLastModified":"2026-04-01T20:47:39.000Z","originalFileLocation":"vi/api-reference/customers/create-customer.mdx","locale":"vi"},"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=\"Tạo một khách hàng mới trong tài khoản Dodo Payments của bạn.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Dodo Payments 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/dodopayments/KuV_TozyHuGHOyyc/_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/dodopayments/KuV_TozyHuGHOyyc/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/dodopayments/KuV_TozyHuGHOyyc/_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/dodopayments/KuV_TozyHuGHOyyc/_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/dodopayments/KuV_TozyHuGHOyyc/_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/dodopayments/KuV_TozyHuGHOyyc/_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/dodopayments/KuV_TozyHuGHOyyc/_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/dodopayments/KuV_TozyHuGHOyyc/_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/dodopayments/KuV_TozyHuGHOyyc/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Tạo Khách Hàng - Dodo Payments Documentation\">\u003cmeta data-mint-head property=\"og:description\" content=\"Tạo một khách hàng mới trong tài khoản Dodo Payments của bạn.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Dodo Payments Documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.dodopayments.com/vi/api-reference/customers/create-customer\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://dodopayments.mintlify.site/_mintlify/api/og/v2?division=Customers\u0026amp;title=T%E1%BA%A1o+Kh%C3%A1ch+H%C3%A0ng\u0026amp;description=T%E1%BA%A1o+m%E1%BB%99t+kh%C3%A1ch+h%C3%A0ng+m%E1%BB%9Bi+trong+t%C3%A0i+kho%E1%BA%A3n+Dodo+Payments+c%E1%BB%A7a+b%E1%BA%A1n.\u0026amp;theme=fcc3a546490e883f7462a320\u0026amp;signature=e9604c844f99eb4f74a9d3c7b851b303c04d2a5cb6efaaadf4aad5882121de0e\">\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=\"Tạo Khách Hàng - Dodo Payments Documentation\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Tạo một khách hàng mới trong tài khoản Dodo Payments của bạn.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://dodopayments.mintlify.site/_mintlify/api/og/v2?division=Customers\u0026amp;title=T%E1%BA%A1o+Kh%C3%A1ch+H%C3%A0ng\u0026amp;description=T%E1%BA%A1o+m%E1%BB%99t+kh%C3%A1ch+h%C3%A0ng+m%E1%BB%9Bi+trong+t%C3%A0i+kho%E1%BA%A3n+Dodo+Payments+c%E1%BB%A7a+b%E1%BA%A1n.\u0026amp;theme=fcc3a546490e883f7462a320\u0026amp;signature=e9604c844f99eb4f74a9d3c7b851b303c04d2a5cb6efaaadf4aad5882121de0e\">\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/dodopayments/KuV_TozyHuGHOyyc/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Dodo Payments Documentation\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#779812\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.dodopayments.com/vi/api-reference/customers/create-customer\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/vi/api-reference/customers/create-customer.md\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"vi\" href=\"https://docs.dodopayments.com/vi/api-reference/customers/create-customer\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"en\" href=\"https://docs.dodopayments.com/api-reference/customers/create-customer\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"es\" href=\"https://docs.dodopayments.com/es/api-reference/customers/create-customer\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"ar\" href=\"https://docs.dodopayments.com/ar/api-reference/customers/create-customer\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"fr\" href=\"https://docs.dodopayments.com/fr/api-reference/customers/create-customer\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"de\" href=\"https://docs.dodopayments.com/de/api-reference/customers/create-customer\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"id\" href=\"https://docs.dodopayments.com/id/api-reference/customers/create-customer\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"ja\" href=\"https://docs.dodopayments.com/ja/api-reference/customers/create-customer\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"ko\" href=\"https://docs.dodopayments.com/ko/api-reference/customers/create-customer\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"pt-BR\" href=\"https://docs.dodopayments.com/pt-BR/api-reference/customers/create-customer\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"zh\" href=\"https://docs.dodopayments.com/cn/api-reference/customers/create-customer\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"hi\" href=\"https://docs.dodopayments.com/hi/api-reference/customers/create-customer\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"it\" href=\"https://docs.dodopayments.com/it/api-reference/customers/create-customer\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"sv\" href=\"https://docs.dodopayments.com/sv/api-reference/customers/create-customer\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"x-default\" href=\"https://docs.dodopayments.com/api-reference/customers/create-customer\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.dodopayments.com/#organization\",\"name\":\"Dodo Payments Documentation\",\"url\":\"https://docs.dodopayments.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/dodopayments/nM_mJfYkri-OpC5M/logo/light.svg?fit=max\u0026auto=format\u0026n=nM_mJfYkri-OpC5M\u0026q=85\u0026s=23f7a052f7ecb9d6570b7c95ee359a97\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.dodopayments.com#website\",\"name\":\"Dodo Payments Documentation\",\"url\":\"https://docs.dodopayments.com\",\"publisher\":{\"@id\":\"https://docs.dodopayments.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.dodopayments.com/vi/api-reference/customers/create-customer#webpage\",\"url\":\"https://docs.dodopayments.com/vi/api-reference/customers/create-customer\",\"name\":\"Tạo Khách Hàng\",\"description\":\"Tạo một khách hàng mới trong tài khoản Dodo Payments của bạn.\",\"dateModified\":\"2026-04-01T20:47:39.000Z\",\"isPartOf\":{\"@id\":\"https://docs.dodopayments.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.dodopayments.com/vi/api-reference/customers/create-customer#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.dodopayments.com/vi/api-reference/customers/create-customer#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Dodo Payments Documentation\",\"item\":\"https://docs.dodopayments.com\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Tạo Khách Hàng\",\"item\":\"https://docs.dodopayments.com/vi/api-reference/customers/create-customer\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.dodopayments.com/vi/api-reference/customers/create-customer#apireference\",\"headline\":\"Tạo Khách Hàng\",\"name\":\"Tạo Khách Hàng\",\"description\":\"Tạo một khách hàng mới trong tài khoản Dodo Payments của bạn.\",\"url\":\"https://docs.dodopayments.com/vi/api-reference/customers/create-customer\",\"mainEntityOfPage\":{\"@id\":\"https://docs.dodopayments.com/vi/api-reference/customers/create-customer#webpage\"},\"dateModified\":\"2026-04-01T20:47:39.000Z\",\"keywords\":\"Dodo Payments, Tham khảo API, REST API, tạo khách hàng\",\"publisher\":{\"@id\":\"https://docs.dodopayments.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.dodopayments.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Dodo Payments Documentation\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Dodo Payments Documentation\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/vi/api-reference/customers/create-customer.md","siteName":"Dodo Payments Documentation","nav":{"global":null,"languages":[{"language":"en","pages":[{"title":"en","href":"/api-reference/customers/create-customer"}]},{"language":"es","pages":[{"title":"es","href":"/es/api-reference/customers/create-customer"}]},{"language":"ar","pages":[{"title":"ar","href":"/ar/api-reference/customers/create-customer"}]},{"language":"fr","pages":[{"title":"fr","href":"/fr/api-reference/customers/create-customer"}]},{"language":"de","pages":[{"title":"de","href":"/de/api-reference/customers/create-customer"}]},{"language":"id","pages":[{"title":"id","href":"/id/api-reference/customers/create-customer"}]},{"language":"ja","pages":[{"title":"ja","href":"/ja/api-reference/customers/create-customer"}]},{"language":"ko","pages":[{"title":"ko","href":"/ko/api-reference/customers/create-customer"}]},{"language":"pt-BR","pages":[{"title":"pt-BR","href":"/pt-BR/api-reference/customers/create-customer"}]},{"language":"vi","tabs":[{"tab":"Docs","icon":"book","pages":[{"title":"Docs","href":"/vi/introduction"}]},{"tab":"Guides","icon":"compass","pages":[{"title":"Guides","href":"/vi/developer-resources/integration-guide"}]},{"tab":"API Reference","icon":"rectangle-code","groups":[{"group":"API Reference","pages":[{"title":"Tài liệu tham khảo API","sidebarTitle":"Giới thiệu","icon":"book-open","href":"/vi/api-reference/introduction"},{"title":"Mã Lỗi","icon":"triangle-exclamation","href":"/vi/api-reference/error-codes"},{"title":"Lỗi Giao Dịch","icon":"circle-exclamation","href":"/vi/api-reference/transaction-failures"},{"title":"Hướng dẫn Metadata","icon":"tags","href":"/vi/api-reference/metadata"}]},{"group":"Checkout Sessions","pages":[{"openapi":"post /checkouts","title":"Tạo Phiên Thanh Toán","href":"/vi/api-reference/checkout-sessions/create"},{"openapi":"post /checkouts/preview","title":"Xem trước phiên thanh toán","href":"/vi/api-reference/checkout-sessions/preview"},{"openapi":"get /checkouts/{id}","title":"Lấy Phiên Thanh Toán","href":"/vi/api-reference/checkout-sessions/get-checkouts"}]},{"group":"Payments","pages":[{"openapi":"get /payments","title":"Danh sách thanh toán","href":"/vi/api-reference/payments/get-payments"},{"openapi":"get /payments/{payment_id}","title":"Lấy Chi Tiết Thanh Toán","href":"/vi/api-reference/payments/get-payments-1"},{"title":"Lấy Hóa Đơn","openapi":"get /invoices/payments/{payment_id}","href":"/vi/api-reference/payments/get-invoice"},{"openapi":"get /payments/{payment_id}/line-items","title":"Lấy Mục Dòng","href":"/vi/api-reference/payments/retrieve-line-items"},{"openapi":"post /payments","title":"Tạo khoản thanh toán một lần","tag":"DEPRECATED","href":"/vi/api-reference/payments/post-payments"}]},{"group":"Subscriptions","pages":[{"openapi":"get /subscriptions","title":"Danh sách Đăng ký","href":"/vi/api-reference/subscriptions/get-subscriptions-1"},{"openapi":"get /subscriptions/{subscription_id}","title":"Lấy Chi Tiết Đăng Ký","href":"/vi/api-reference/subscriptions/get-subscriptions"},{"openapi":"post /subscriptions/{subscription_id}/change-plan","title":"Thay đổi gói","href":"/vi/api-reference/subscriptions/change-plan"},{"openapi":"post /subscriptions/{subscription_id}/change-plan/preview","title":"Xem trước thay đổi gói","href":"/vi/api-reference/subscriptions/preview-change-plan"},{"openapi":"delete /subscriptions/{subscription_id}/change-plan/scheduled","title":"Hủy Thay Đổi Gói Đã Lên Lịch","href":"/vi/api-reference/subscriptions/cancel-change-plan"},{"openapi":"patch /subscriptions/{subscription_id}","title":"Cập nhật Đăng ký","href":"/vi/api-reference/subscriptions/patch-subscriptions"},{"openapi":"post /subscriptions/{subscription_id}/charge","title":"Tạo khoản thu (Theo yêu cầu)","href":"/vi/api-reference/subscriptions/create-charge"},{"openapi":"get /subscriptions/{subscription_id}/usage-history","title":"Lấy Lịch Sử Sử Dụng Đăng Ký","href":"/vi/api-reference/subscriptions/get-usage-history"},{"openapi":"get /subscriptions/{subscription_id}/credit-usage","title":"Truy xuất Sử dụng Tín dụng","href":"/vi/api-reference/subscriptions/retrieve-credit-usage"},{"openapi":"post /subscriptions/{subscription_id}/update-payment-method","title":"Cập nhật phương thức thanh toán","href":"/vi/api-reference/subscriptions/update-payment-method"},{"openapi":"post /subscriptions","title":"Tạo Đăng Ký","tag":"DEPRECATED","href":"/vi/api-reference/subscriptions/post-subscriptions"}]},{"group":"Discounts","pages":[{"openapi":"get /discounts","title":"Danh sách Giảm giá","href":"/vi/api-reference/discounts/list-discounts"},{"openapi":"post /discounts","title":"Tạo Giảm Giá","href":"/vi/api-reference/discounts/create-discount"},{"openapi":"get /discounts/{discount_id}","title":"Nhận Giảm Giá","href":"/vi/api-reference/discounts/validate-discount"},{"openapi":"get /discounts/code/{code}","title":"Lấy Giảm Giá theo Mã","href":"/vi/api-reference/discounts/get-discount-by-code"},{"openapi":"patch /discounts/{discount_id}","title":"Cập nhật Giảm giá","href":"/vi/api-reference/discounts/update-discount"},{"openapi":"delete /discounts/{discount_id}","title":"Xóa Giảm Giá","href":"/vi/api-reference/discounts/delete-discount"},{"openapi":"get /discounts/{discount_id}/customers","title":"Liệt kê khách hàng của discount","href":"/vi/api-reference/discounts/list-discount-customers"},{"openapi":"post /discounts/{discount_id}/customers","title":"Thêm khách hàng vào Discount","href":"/vi/api-reference/discounts/add-discount-customers"},{"openapi":"delete /discounts/{discount_id}/customers/{customer_id}","title":"Xóa khách hàng khỏi mã giảm giá","href":"/vi/api-reference/discounts/remove-discount-customer"}]},{"group":"Licenses","pages":[{"title":"Tạo Khóa Giấy Phép","openapi":"post /license_keys","href":"/vi/api-reference/licenses/create-license-key"},{"title":"Kích hoạt Giấy phép","openapi":"post /licenses/activate","href":"/vi/api-reference/licenses/activate-license"},{"title":"Vô hiệu hóa Giấy phép","openapi":"post /licenses/deactivate","href":"/vi/api-reference/licenses/deactivate-license"},{"title":"Xác thực Giấy phép","openapi":"post /licenses/validate","href":"/vi/api-reference/licenses/validate-license"},{"title":"Danh sách khóa bản quyền","openapi":"get /license_keys","tag":"DEPRECATED","href":"/vi/api-reference/licenses/list-license-keys"},{"title":"Lấy Khóa Bản Quyền","openapi":"get /license_keys/{id}","tag":"DEPRECATED","href":"/vi/api-reference/licenses/get-license-key"},{"title":"Cập nhật khóa giấy phép","openapi":"patch /license_keys/{id}","tag":"DEPRECATED","href":"/vi/api-reference/licenses/update-license-key"},{"title":"Danh sách các phiên bản Key bản quyền","openapi":"get /license_key_instances","href":"/vi/api-reference/licenses/get-license-key-instances"},{"title":"Lấy Thông Tin Khóa Bản Quyền","openapi":"get /license_key_instances/{id}","href":"/vi/api-reference/licenses/get-license-key-instance"},{"title":"Cập nhật Thông tin Khóa Bản quyền","openapi":"patch /license_key_instances/{id}","href":"/vi/api-reference/licenses/update-license-key-instance"}]},{"group":"Entitlements","tag":"NEW","pages":[{"title":"Liệt kê Quyền","openapi":"get /entitlements","href":"/vi/api-reference/entitlements/list-entitlements"},{"title":"Tạo Quyền Hạn","openapi":"post /entitlements","href":"/vi/api-reference/entitlements/create-entitlement"},{"title":"Nhận Quyền lợi","openapi":"get /entitlements/{id}","href":"/vi/api-reference/entitlements/get-entitlement"},{"title":"Cập nhật Quyền lợi","openapi":"patch /entitlements/{id}","href":"/vi/api-reference/entitlements/update-entitlement"},{"title":"Xóa Đặc Quyền","openapi":"delete /entitlements/{id}","href":"/vi/api-reference/entitlements/delete-entitlement"},{"title":"Tải lên Tệp","openapi":"post /entitlements/{id}/files","href":"/vi/api-reference/entitlements/upload-file"},{"title":"Xóa Tệp","openapi":"delete /entitlements/{id}/files/{file_id}","href":"/vi/api-reference/entitlements/delete-file"},{"title":"Danh sách các khoản cấp","openapi":"get /entitlements/{id}/grants","href":"/vi/api-reference/entitlements/list-grants"},{"title":"Liệt kê Quyền lợi Khách hàng","openapi":"get /customers/{customer_id}/entitlement-grants","href":"/vi/api-reference/entitlements/list-customer-grants"},{"title":"Thực Hiện Cấp Phép Khóa Bản Quyền","openapi":"post /grants/{grant_id}/license-key","href":"/vi/api-reference/entitlements/fulfill-license-key"},{"title":"Thu Hồi Cấp Quyền","description":"Thu hồi cấp quyền thủ công. Quyền truy cập nền tảng của khách hàng bị loại bỏ (đối với tích hợp OAuth/bot) và các khóa giấy phép bị vô hiệu hóa. Thu hồi thủ công sử dụng revocation_reason \"manual\" và không được cấp lại tự động khi gia hạn đăng ký.","openapi":"delete /entitlements/{id}/grants/{grant_id}","href":"/vi/api-reference/entitlements/revoke-grant"}]},{"group":"Customers","pages":[{"openapi":"post /customers","title":"Tạo Khách Hàng","href":"/vi/api-reference/customers/create-customer"},{"openapi":"get /customers","title":"Danh sách Khách hàng","description":"Lấy danh sách tất cả khách hàng liên kết với tài khoản của bạn.","href":"/vi/api-reference/customers/get-customers"},{"openapi":"get /customers/{customer_id}","title":"Lấy Chi Tiết Khách Hàng","href":"/vi/api-reference/customers/get-customers-1"},{"openapi":"patch /customers/{customer_id}","title":"Cập nhật Khách hàng","href":"/vi/api-reference/customers/patch-customer"},{"openapi":"post /customers/{customer_id}/customer-portal/session","title":"Tạo Phiên Customer Portal","href":"/vi/api-reference/customers/create-customer-portal-session"},{"openapi":"get /customers/{customer_id}/payment-methods","title":"Danh sách Phương thức Thanh toán","href":"/vi/api-reference/customers/get-customer-payment-methods"},{"openapi":"delete /customers/{customer_id}/payment-methods/{payment_method_id}","title":"Xóa Phương Thức Thanh Toán","href":"/vi/api-reference/customers/delete-payment-method"},{"openapi":"get /customers/{customer_id}/entitlements","title":"Liệt kê Entitlements của khách hàng","href":"/vi/api-reference/customers/list-customer-entitlements"},{"openapi":"get /customers/{customer_id}/credit-entitlements","title":"Liệt kê các hạn mức tín dụng của Customer","href":"/vi/api-reference/customers/list-customer-credit-entitlements"},{"openapi":"get /customers/{customer_id}/emails","title":"Liệt kê email của khách hàng","href":"/vi/api-reference/customers/list-customer-emails"},{"openapi":"get /customers/{customer_id}/emails/{email_log_id}/body","title":"Lấy nội dung email của khách hàng","href":"/vi/api-reference/customers/get-customer-email-body"}]},{"group":"Customer Wallets","pages":[{"openapi":"get /customers/{customer_id}/wallets","title":"Liệt kê ví của khách hàng","href":"/vi/api-reference/customers/get-customer-wallets"},{"openapi":"get /customers/{customer_id}/wallets/ledger-entries","title":"Danh sách mục sổ cái ví của khách hàng","href":"/vi/api-reference/customers/get-customer-wallets-ledger-entries"},{"openapi":"post /customers/{customer_id}/wallets/ledger-entries","title":"Tạo mục sổ cái ví khách hàng","href":"/vi/api-reference/customers/post-customer-wallets-ledger-entries"}]},{"group":"Products","pages":[{"openapi":"get /products","title":"Danh sách sản phẩm","href":"/vi/api-reference/products/get-products"},{"openapi":"post /products","title":"Tạo Sản Phẩm","href":"/vi/api-reference/products/post-products"},{"openapi":"get /products/{id}","title":"Lấy Chi Tiết Sản Phẩm","href":"/vi/api-reference/products/get-products-1"},{"openapi":"patch /products/{id}","title":"Cập nhật sản phẩm","href":"/vi/api-reference/products/patch-products"},{"openapi":"put /products/{id}/images","title":"Cập nhật hình ảnh sản phẩm","href":"/vi/api-reference/products/put-products-images"},{"openapi":"delete /products/{id}","title":"Lưu trữ Sản phẩm","href":"/vi/api-reference/products/archive-product"},{"openapi":"post /products/{id}/unarchive","title":"Khôi phục Sản phẩm","href":"/vi/api-reference/products/unarchive-product"},{"openapi":"put /products/{id}/files","title":"Tải lên tệp sản phẩm","href":"/vi/api-reference/products/update-files"},{"openapi":"get /products/short_links","title":"Danh sách Liên kết Ngắn","href":"/vi/api-reference/products/get-products-short-links"},{"openapi":"post /products/{id}/short_links","title":"Tạo Liên Kết Ngắn","href":"/vi/api-reference/products/post-products-id-short-links"}]},{"group":"Localized Pricing","tag":"NEW","pages":[{"openapi":"get /products/{product_id}/localized-prices","title":"Danh sách giá theo địa phương","href":"/vi/api-reference/products/get-products-localized-prices"},{"openapi":"post /products/{product_id}/localized-prices","title":"Tạo Giá Địa Phương","href":"/vi/api-reference/products/post-products-localized-prices"},{"openapi":"get /products/{product_id}/localized-prices/{id}","title":"Lấy Giá Địa Phương","href":"/vi/api-reference/products/get-products-localized-prices-id"},{"openapi":"patch /products/{product_id}/localized-prices/{id}","title":"Cập nhật Giá Địa Phương","href":"/vi/api-reference/products/patch-products-localized-prices"},{"openapi":"delete /products/{product_id}/localized-prices/{id}","title":"Lưu trữ Giá Địa Phương","href":"/vi/api-reference/products/delete-products-localized-prices"}]},{"group":"Addons","pages":[{"openapi":"post /addons","title":"Tạo Addon","href":"/vi/api-reference/addons/create-addon"},{"openapi":"get /addons","title":"Danh sách Addons","href":"/vi/api-reference/addons/list-addons"},{"openapi":"get /addons/{id}","title":"Lấy Addon","href":"/vi/api-reference/addons/get-addon"},{"openapi":"patch /addons/{id}","title":"Cập nhật Addon","href":"/vi/api-reference/addons/update-addon"},{"openapi":"put /addons/{id}/images","title":"Cập nhật hình ảnh addon","href":"/vi/api-reference/addons/update-addon-images"}]},{"group":"Credit Entitlements","tag":"NEW","pages":[{"openapi":"get /credit-entitlements","title":"Liệt kê quyền lợi tín dụng","href":"/vi/api-reference/credit-entitlements/list-credit-entitlements"},{"openapi":"post /credit-entitlements","title":"Tạo quyền lợi tín dụng","href":"/vi/api-reference/credit-entitlements/create-credit-entitlement"},{"openapi":"get /credit-entitlements/{id}","title":"Lấy quyền tín dụng","href":"/vi/api-reference/credit-entitlements/get-credit-entitlement"},{"openapi":"patch /credit-entitlements/{id}","title":"Cập nhật Quyền Tín Dụng","href":"/vi/api-reference/credit-entitlements/update-credit-entitlement"},{"openapi":"delete /credit-entitlements/{id}","title":"Xóa quyền được nhận tín dụng","href":"/vi/api-reference/credit-entitlements/delete-credit-entitlement"},{"openapi":"post /credit-entitlements/{id}/undelete","title":"Khôi phục quyền lợi tín dụng đã xóa","href":"/vi/api-reference/credit-entitlements/undelete-credit-entitlement"},{"openapi":"get /credit-entitlements/{credit_entitlement_id}/balances","title":"Liệt kê số dư","href":"/vi/api-reference/credit-entitlements/list-balances"},{"openapi":"get /credit-entitlements/{credit_entitlement_id}/balances/{customer_id}","title":"Lấy số dư khách hàng","href":"/vi/api-reference/credit-entitlements/get-customer-balance"},{"openapi":"get /credit-entitlements/{credit_entitlement_id}/balances/{customer_id}/grants","title":"Liệt kê các Tài trợ của Khách hàng","href":"/vi/api-reference/credit-entitlements/list-customer-grants"},{"openapi":"get /credit-entitlements/{credit_entitlement_id}/balances/{customer_id}/ledger","title":"Liệt kê Sổ cái Khách hàng","href":"/vi/api-reference/credit-entitlements/list-customer-ledger"},{"openapi":"post /credit-entitlements/{credit_entitlement_id}/balances/{customer_id}/ledger-entries","title":"Tạo mục sổ cái","href":"/vi/api-reference/credit-entitlements/create-ledger-entry"}]},{"group":"Meters","pages":[{"openapi":"post /meters","title":"Tạo Đồng Hồ","href":"/vi/api-reference/meters/create-meter"},{"openapi":"get /meters","title":"Danh sách Đồng hồ","href":"/vi/api-reference/meters/get-meters"},{"openapi":"get /meters/{id}","title":"Lấy Đồng Hồ","href":"/vi/api-reference/meters/retrieve-meter"},{"openapi":"delete /meters/{id}","title":"Lưu trữ Đồng hồ","href":"/vi/api-reference/meters/archive-meter"},{"openapi":"post /meters/{id}/unarchive","title":"Khôi phục đồng hồ","href":"/vi/api-reference/meters/unarchive-meter"}]},{"group":"Usage Events","pages":[{"openapi":"post /events/ingest","title":"Nhập sự kiện","href":"/vi/api-reference/usage-events/ingest-events"},{"openapi":"get /events/{event_id}","title":"Lấy Sự Kiện","href":"/vi/api-reference/usage-events/get-event"},{"openapi":"get /events","title":"Danh sách sự kiện","href":"/vi/api-reference/usage-events/list-events"}]},{"group":"Refunds","pages":[{"openapi":"get /refunds","title":"Danh sách hoàn tiền","href":"/vi/api-reference/refunds/get-refunds"},{"openapi":"post /refunds","title":"Tạo Hoàn Tiền","href":"/vi/api-reference/refunds/post-refunds"},{"openapi":"get /refunds/{refund_id}","title":"Lấy Chi Tiết Hoàn Tiền","href":"/vi/api-reference/refunds/get-refunds-1"},{"openapi":"get /invoices/refunds/{refund_id}","title":"Lấy biên nhận hoàn tiền","href":"/vi/api-reference/refunds/get-refund-receipt"}]},{"group":"Disputes","pages":[{"openapi":"get /disputes","title":"Danh sách tranh chấp","href":"/vi/api-reference/disputes/get-disputes"},{"openapi":"get /disputes/{dispute_id}","title":"Lấy Chi Tiết Tranh Chấp","href":"/vi/api-reference/disputes/get-disputes-1"}]},{"group":"Payouts","pages":[{"openapi":"get /payouts","title":"Danh sách thanh toán","href":"/vi/api-reference/payouts/get-payouts"},{"openapi":"get /payouts/{payout_id}/breakup","title":"Truy xuất Thông tin Chi tiết Thanh toán","href":"/vi/api-reference/payouts/retrieve-breakup"},{"openapi":"get /payouts/{payout_id}/breakup/details","title":"Liệt kê Chi tiết Phân chia Khoản thanh toán","href":"/vi/api-reference/payouts/list-breakup-details"},{"openapi":"get /payouts/{payout_id}/breakup/details/csv","title":"Tải xuống CSV Chi Tiết Payout","href":"/vi/api-reference/payouts/download-breakup-csv"}]},{"group":"Balance Ledger","pages":[{"openapi":"get /balances/ledger","title":"Liệt kê Các Mục Nhật Ký Số Dư","href":"/vi/api-reference/balance-ledger/list-ledger-entries"}]},{"group":"Moderation","tag":"NEW","pages":[{"openapi":"post /moderation/screen","title":"Kiểm tra Prompt","href":"/vi/api-reference/moderation/screen"},{"openapi":"get /moderation/usage","title":"Lấy thông tin sử dụng kiểm duyệt","href":"/vi/api-reference/moderation/get-usage"}]},{"group":"Brands","pages":[{"openapi":"get /brands","title":"Danh sách Thương hiệu","href":"/vi/api-reference/brands/list-brands"},{"openapi":"post /brands","title":"Tạo Thương Hiệu","href":"/vi/api-reference/brands/create-brand"},{"openapi":"get /brands/{id}","title":"Lấy Thương Hiệu","href":"/vi/api-reference/brands/get-brand"},{"openapi":"patch /brands/{id}","title":"Cập nhật Thương hiệu","href":"/vi/api-reference/brands/update-brand"},{"openapi":"put /brands/{id}/images","title":"Cập nhật hình ảnh thương hiệu","href":"/vi/api-reference/brands/update-brand-images"},{"openapi":"post /brands/{id}/archive","title":"Lưu trữ Brand","href":"/vi/api-reference/brands/archive-brand"}]},{"group":"Webhooks","pages":[{"openapi":"get /webhooks","title":"Danh sách Webhooks","href":"/vi/api-reference/webhooks/list-webhooks"},{"openapi":"post /webhooks","title":"Tạo Webhook","href":"/vi/api-reference/webhooks/create-webhook"},{"openapi":"get /webhooks/{webhook_id}","title":"Lấy chi tiết Webhook","href":"/vi/api-reference/webhooks/get-details"},{"openapi":"patch /webhooks/{webhook_id}","title":"Cập nhật Webhook","href":"/vi/api-reference/webhooks/update-webhook"},{"openapi":"delete /webhooks/{webhook_id}","title":"Xóa Webhook","href":"/vi/api-reference/webhooks/delete-webhook"},{"openapi":"get /webhooks/{webhook_id}/headers","title":"Lấy tiêu đề Webhook","href":"/vi/api-reference/webhooks/get-webhook-headers"},{"openapi":"patch /webhooks/{webhook_id}/headers","title":"Cập nhật tiêu đề Webhook","href":"/vi/api-reference/webhooks/update-webhook-headers"},{"openapi":"get /webhooks/{webhook_id}/secret","title":"Lấy Khóa Ký Webhook","href":"/vi/api-reference/webhooks/get-webhook-signing-key"}]},{"group":"Miscellaneous","pages":[{"title":"Các Quốc Gia Hỗ Trợ","openapi":"get /checkout/supported_countries","href":"/vi/api-reference/misc/supported-countries"}]},{"group":"Product Collections","tag":"NEW","pages":[{"openapi":"get /product-collections","title":"Danh sách Bộ sưu tập Sản phẩm","href":"/vi/api-reference/product-collections/list-product-collections"},{"openapi":"post /product-collections","title":"Tạo Bộ Sưu Tập Sản Phẩm","href":"/vi/api-reference/product-collections/create-product-collection"},{"openapi":"get /product-collections/{id}","title":"Lấy Bộ Sưu Tập Sản Phẩm","href":"/vi/api-reference/product-collections/get-product-collection"},{"openapi":"patch /product-collections/{id}","title":"Cập nhật Bộ sưu tập Sản phẩm","href":"/vi/api-reference/product-collections/update-product-collection"},{"openapi":"delete /product-collections/{id}","title":"Lưu trữ Bộ sưu tập Sản phẩm","href":"/vi/api-reference/product-collections/archive-product-collection"},{"openapi":"post /product-collections/{id}/unarchive","title":"Khôi phục Bộ sưu tập Sản phẩm","href":"/vi/api-reference/product-collections/unarchive-product-collection"},{"openapi":"put /product-collections/{id}/images","title":"Cập nhật hình ảnh bộ sưu tập sản phẩm","href":"/vi/api-reference/product-collections/update-product-collection-images"},{"openapi":"post /product-collections/{id}/groups","title":"Tạo Nhóm Bộ Sưu Tập Sản Phẩm","href":"/vi/api-reference/product-collections/create-group"},{"openapi":"patch /product-collections/{id}/groups/{group_id}","title":"Cập nhật Nhóm Bộ sưu tập Sản phẩm","href":"/vi/api-reference/product-collections/update-group"},{"openapi":"delete /product-collections/{id}/groups/{group_id}","title":"Xóa Nhóm Bộ Sưu Tập Sản Phẩm","href":"/vi/api-reference/product-collections/delete-group"},{"openapi":"post /product-collections/{id}/groups/{group_id}/items","title":"Thêm Sản Phẩm vào Nhóm","href":"/vi/api-reference/product-collections/add-group-items"},{"openapi":"patch /product-collections/{id}/groups/{group_id}/items/{item_id}","title":"Cập nhật Mục Nhóm","href":"/vi/api-reference/product-collections/update-group-item"},{"openapi":"delete /product-collections/{id}/groups/{group_id}/items/{item_id}","title":"Xóa Mục Nhóm","href":"/vi/api-reference/product-collections/delete-group-item"}]}]},{"tab":"External Integrations","icon":"plug","pages":[{"title":"External Integrations","href":"/vi/integrations/introduction"}]},{"tab":"Changelog","icon":"calendar-days","pages":[{"title":"Changelog","href":"/vi/changelog/introduction"}]},{"tab":"Community Projects","icon":"users","pages":[{"title":"Community Projects","href":"/vi/community/overview"}]}]},{"language":"cn","pages":[{"title":"cn","href":"/cn/api-reference/customers/create-customer"}]},{"language":"hi","pages":[{"title":"hi","href":"/hi/api-reference/customers/create-customer"}]},{"language":"it","pages":[{"title":"it","href":"/it/api-reference/customers/create-customer"}]},{"language":"sv","pages":[{"title":"sv","href":"/sv/api-reference/customers/create-customer"}]}]},"basePath":"","title":"Tạo Khách Hàng - Dodo Payments Documentation","buildId":"dpl_596ePT575z4qnAFksq1biRW97aLY","deploymentId":"dpl_596ePT575z4qnAFksq1biRW97aLY","dynamics":["c2aa737661","b0f84f53ff","a9bb46feb3","2b790eda92"],"chunks":["OpenApiReferenceProvider-C9Wu0MeN.js","utils-jWgu-6Qf.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-DBD8f9qn.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-BGuX1ui5.js","snippetPresets-Evy63nQB.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","conditional-requirements-CFM0id0Q.js","Page-D6S0Yh6q.js","ApiExamples-BQHO1lnV.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-B6C8m-t_.js","shallow-BG4cT0fH.js","getApiPlaygroundDisplay-CgEPrE-D.js","CodeSnippet-CU8JyZ9N.js","CodeSnippets-BnxHU32T.js","getPastedJson-CwiYOonh.js","icon-DYDpWmDf.js","MethodPill-C-J-l7_c.js","DuplicateIcon-B6ARwg9w.js","createIcon-Dsv4MtDq.js","DynamicMarkdown-CtasenyM.js","SectionHeading-YNcgYwjB.js","axios-vUo_bRtp.js","Markdown-CwLx6PAg.js","clsx-C3kuh_dz.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-CmKHfscc.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-U3mI6Ljh.js"]}