Create Stripe onboarding link
POST
/v1/servers/{serverId}/payments/connect-accountCreate or continue Stripe Connect onboarding for a payments resource.
How to call this endpoint
Every ACP API request uses bearer authentication. The examples here show the actual request path, auth header, and body shape that the platform expects.
Path, query, and header parameters
These parameters control which ACP object the endpoint acts on and how the request is processed.
Path parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| serverId | path | string | Yes | Resource ID |
Query parameters
None.
Body schema
Content type: application/json · Optional
| Field | Type | Required | Description |
|---|---|---|---|
| country | string | No | ISO 3166-1 alpha-2 country code for Stripe Connect onboarding. |
| string | No | — | |
| productDescription | string | No | — |
What the API returns
Each response code below includes the documented payload shape for the ACP API.
200Payments onboarding linkapplication/json
| Field | Type | Required | Description |
|---|---|---|---|
| server | object | No | — |
| server.id | string | No | Unique identifier. |
| server.userId | string | No | User ID. |
| server.projectId | string | No | Project ID. |
| server.name | string | No | Human-readable name. |
| server.description | string | No | Human-readable description. |
| server.kind | website | web_app | api | function | auth | agent_runtime | secrets | payments | No | — |
| server.sourceType | string | No | — |
| server.sourceEnvironmentId | string | No | — |
| server.sourcePath | string | No | Workspace-relative file path. |
| server.region | string | No | — |
| server.runtime | string | No | — |
| server.authMode | public | private | No | — |
| server.serviceUrl | string | No | — |
| server.customDomain | string | No | — |
| server.cloudRunServiceName | string | No | — |
| server.imageUrl | string | No | — |
| server.status | draft | deploying | deployed | failed | inactive | No | Current lifecycle status. |
| server.lastDeployedAt | string | No | — |
| server.metadata | object | No | Free-form metadata object. |
| server.createdAt | string | No | ISO 8601 timestamp. |
| server.updatedAt | string | No | ISO 8601 timestamp. |
| payments | object | No | — |
| payments.id | string | No | Unique identifier. |
| payments.name | string | No | Human-readable name. |
| payments.kind | payments | No | — |
| payments.status | string | No | Current lifecycle status. |
| payments.provider | string | No | — |
| payments.mode | test | live | No | — |
| payments.stripeAccountId | string | No | — |
| payments.onboardingStatus | not_started | pending | complete | No | — |
| payments.chargesEnabled | boolean | No | — |
| payments.payoutsEnabled | boolean | No | — |
| payments.currency | string | No | — |
| payments.totalEarnedCents | integer | No | — |
| payments.totalPaymentCount | integer | No | — |
| payments.updatedAt | string | No | ISO 8601 timestamp. |
| url | string | No | Stripe Connect onboarding URL when a new onboarding link was requested. |