Sync payments resource

POST/v1/servers/{serverId}/payments/sync

Refresh Stripe Connect status and payment totals 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
NameLocationTypeRequiredDescription
serverIdpathstringYesResource ID
Query parameters
None.

Body schema

This endpoint does not require a request body.

None.

What the API returns

Each response code below includes the documented payload shape for the ACP API.

200Payments resource syncedapplication/json
FieldTypeRequiredDescription
serverobjectNo—
server.idstringNoUnique identifier.
server.userIdstringNoUser ID.
server.organizationIdstringNo—
server.createdByUserIdstringNo—
server.projectIdstringNoProject ID.
server.namestringNoHuman-readable name.
server.descriptionstringNoHuman-readable description.
server.kindwebsite | web_app | api | function | auth | agent_runtime | secrets | paymentsNo—
server.sourceTypestringNo—
server.sourceEnvironmentIdstringNo—
server.sourcePathstringNoWorkspace-relative file path.
server.regionstringNo—
server.runtimestringNo—
server.authModepublic | privateNo—
server.serviceUrlstringNo—
server.customDomainstringNo—
server.cloudRunServiceNamestringNo—
server.imageUrlstringNo—
server.statusdraft | deploying | deployed | failed | inactiveNoCurrent lifecycle status.
server.lastDeployedAtstringNo—
server.metadataobjectNoFree-form metadata object.
server.createdAtstringNoISO 8601 timestamp.
server.updatedAtstringNoISO 8601 timestamp.
paymentsobjectNo—
payments.idstringNoUnique identifier.
payments.namestringNoHuman-readable name.
payments.kindpaymentsNo—
payments.statusstringNoCurrent lifecycle status.
payments.providerstringNo—
payments.modetest | liveNo—
payments.stripeAccountIdstringNo—
payments.onboardingStatusnot_started | pending | completeNo—
payments.chargesEnabledbooleanNo—
payments.payoutsEnabledbooleanNo—
payments.currencystringNo—
payments.totalEarnedCentsintegerNo—
payments.totalPaymentCountintegerNo—
payments.updatedAtstringNoISO 8601 timestamp.
urlstringNoStripe Connect onboarding URL when a new onboarding link was requested.
Sync payments resource
Loading...
Response 200
Loading...
See the ACP quickstart and SDK flow