Skip to main content

DELETE /api/v1/internal/projects/:projectUuid/apps/:appUuid/payment-providers/mollie/accounts

Deletes an existing accounts resource.

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/mollie/accounts/delete.ts

Request Method

DELETE

Base URL

https://api.userdocks.local:5000

Endpoint

/api/v1/internal/projects/:projectUuid/apps/:appUuid/payment-providers/mollie/accounts

Path Variables

VariableTypeRequiredDescription
projectUuidstringtruePath variable from route pattern.
appUuidstringtruePath variable from route pattern.

Query Parameters

No query parameters.

HTTP Headers

VariableTypeRequiredDescription
AuthorizationstringtrueBearer token in the form Bearer <jwt>.
Content-TypestringfalseUse application/json for JSON request bodies.

Successful Response

Success status code(s): 201.

Disconnecting resets the provider to a pending state and removes the stored OAuth secrets.

{
"kind": "paymentProviders",
"totalItems": 1,
"itemsLength": 1,
"items": [
{
"id": 1,
"uuid": "pp_11111111-1111-1111-1111-111111111111",
"appUuid": "app_11111111-1111-1111-1111-111111111111",
"name": "mollie",
"account": "pending_4f4d9c49-03b8-4b26-b3d8-49e58ff48f9d",
"profileId": null,
"refreshTokenSecretPath": null,
"providerMetadata": {},
"connected": false,
"createdAt": "2026-01-01T00:00:00.000Z",
"updatedAt": "2026-01-01T00:00:00.000Z",
"deletedAt": null
}
]
}

Error Responses

HTTP StatusExample Error
401{"errors":[{"validation":"error","code":"[E4010]","message":"Unauthorized Token"}]}
403{"errors":[{"validation":"error","code":"[E4030]","message":"App Is Disabled"}]}
404{"errors":[{"validation":"error","code":"[E4040]","message":"Not Found"}]}
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/mollie/accounts`;

const response = await fetch(url, {
method: 'DELETE',
headers: {
Authorization: 'Bearer <jwt>',
},
});
const data = await response.json();
console.log(response.status, data);