POST /v1/customers
TenantService_CreateCustomerAccount
The server validates credentials, tenant, environment and permissions. This page does not send requests. Replace example values; deployed server validation remains authoritative.
Parameters
No path or query parameters.
Request body
account_typestringcodestringemailstringenvironment_idstringexternal_refstringidempotency_keystringmetadata_jsonstringnamestring
cURL
curl --request POST 'https://nexus-api.rainlib.com/v1/customers' \
--header 'Authorization: Bearer <NEXUS_ACCESS_TOKEN>' \
--header 'Content-Type: application/json' \
--data '{
"account_type": "<value>",
"code": "<value>",
"email": "<value>",
"environment_id": "<value>",
"external_ref": "<value>",
"idempotency_key": "<value>",
"metadata_json": "<value>",
"name": "<value>"
}'Response contract
200 · OK
account_typestringavailable_creditsstringcodestringcreated_atstringemailstringenvironment_idstringexternal_refstringidstringmetadata_jsonstringnamestringreserved_creditsstringstatusstringupdated_atstringversionstring
Generated responses do not enumerate every runtime error. See the integration guide for authentication, conflicts and retries.