Endpoint
PUT /admin/v1/billing-connections/{connectionId}/provider-credentialOperation ID: configureBillingProviderCredential
Authentication
Send a Nexus Management Key as Authorization: Bearer <management-key>. This credential is control-plane only.
Idempotency
This operation does not declare an Idempotency-Key requirement in the accepted OpenAPI contract.
Request
Parameters
| Name | Location | Required | Schema | Description |
|---|---|---|---|---|
connectionId |
path | Yes | string |
— |
application/json body
Required: Yes
Type: ConfigureBillingProviderCredentialDto
| Field | Required | Type | Description |
|---|---|---|---|
credential |
Yes | string |
— |
Responses
| Status | Description | Content type | Schema |
|---|---|---|---|
200 |
— | application/json | BillingConnectionDto |
Only responses explicitly declared by the accepted Admin OpenAPI contract are shown. The current contract does not declare operation-specific error bodies; the SDK preserves any non-success status and body in AdminApiError.
200 application/json schema
Type: BillingConnectionDto
| Field | Required | Type | Description |
|---|---|---|---|
id |
Yes | string |
— |
workspaceId |
Yes | string |
— |
kind |
Yes | string (HOSTED | APP_SYNC) |
— |
provider |
Yes | string (STRIPE | CREEM) |
— |
mode |
Yes | string |
— |
status |
Yes | string |
— |
name |
Yes | string |
— |
webhookUrl |
Yes | string / uri |
— |
credentialConfigured |
Yes | boolean |
— |
webhookSecretConfigured |
Yes | boolean |
— |
credentialVerificationStatus |
Yes | string |
— |
credentialPreview |
No | string |
— |
lastVerifiedAt |
No | string / date-time |
— |
externalAccountId |
No | string |
— |
Examples
TypeScript Management SDK
NexusAdminClient.configureBillingProviderCredential uses AdminOperationInput<"configureBillingProviderCredential"> and returns Promise<AdminOperationOutput<"configureBillingProviderCredential">>.
import { NexusAdminClient } from '@nexus/sdk-typescript';
const nexus = new NexusAdminClient({
baseUrl: 'https://nexus.microvoid.io',
managementKey: process.env.NEXUS_MANAGEMENT_KEY,
});
const result = await nexus.configureBillingProviderCredential({
path: {
connectionId: '533c4e1e-2823-4349-86b9-d6f1a869a2ca',
},
body: {
credential: '<secret-from-environment>',
},
});Fetch
const response = await fetch(
'https://nexus.microvoid.io/admin/v1/billing-connections/533c4e1e-2823-4349-86b9-d6f1a869a2ca/provider-credential',
{
method: 'PUT',
headers: {
Authorization: `Bearer ${process.env.NEXUS_MANAGEMENT_KEY}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
credential: '<secret-from-environment>',
}),
},
);
if (!response.ok) throw new Error(`Nexus request failed: ${response.status}`);curl
curl --request PUT \
"https://nexus.microvoid.io/admin/v1/billing-connections/533c4e1e-2823-4349-86b9-d6f1a869a2ca/provider-credential" \
--header "Authorization: Bearer ${NEXUS_MANAGEMENT_KEY}" \
--header "Content-Type: application/json" \
--data "{\"credential\":\"<secret-from-environment>\"}"