POST /api/v1/internal/projects/:projectUuid/apps/:appUuid/payment-providers/stripe/accounts
available for apps that use Stripe billing. For Mollie provider setup, see POST /api/v1/internal/projects/:projectUuid/apps/:appUuid/payment-providers/mollie/accounts.
Creates a new Stripe payment provider account record, or returns the existing Stripe payment provider for the app.
This endpoint documentation is generated from the current Fastify route implementation and should be treated as the implementation-level contract for this version of the API.
Source route file:
src/api/routes/internal/private/bearer/projects/apps/payment-providers/stripe/accounts/post.ts
Request Method
POST
Base URL
https://api.userdocks.local:5000
Endpoint
/api/v1/internal/projects/:projectUuid/apps/:appUuid/payment-providers/stripe/accounts
Path Variables
| Variable | Type | Required | Description |
|---|---|---|---|
projectUuid | string | true | Path variable from route pattern. |
appUuid | string | true | Path variable from route pattern. |
Query Parameters
No query parameters.
HTTP Headers
| Variable | Type | Required | Description |
|---|---|---|---|
Authorization | string | true | Bearer token in the form Bearer <jwt>. |
Content-Type | string | false | Optional because this route does not consume a request body. |
Request Body
No request body.
Successful Response
Success status code(s): 201.
{
"kind": "paymentProviders",
"totalItems": 1,
"itemsLength": 1,
"items": [
{
"uuid": "d559e8a1-eeee-4a2d-9f1a-eeeeeeeeeeee",
"name": "stripe",
"account": "acct_123",
"connected": false
}
]
}
Error Responses
| HTTP Status | Example Error |
|---|---|
401 | {"errors":[{"validation":"error","code":"[E4010]","message":"Unauthorized Token"}]} |
403 | {"errors":[{"validation":"error","code":"[E4030]","message":"App Is Disabled"}]} |
400 | {"errors":[{"validation":"error","code":"[E4000]","message":"Bad Request / validation error"}]} |
500 | {"errors":[{"validation":"error","code":"[E0000]","message":"Internal Server Error"}]} |
Example
const url = `https://api.userdocks.local:5000/api/v1/internal/projects/projectUuid-value/apps/appUuid-value/payment-providers/stripe/accounts`;
const response = await fetch(url, {
method: 'POST',
headers: {
Authorization: 'Bearer <jwt>',
},
});
const data = await response.json();
console.log(response.status, data);