Skip to main content
DELETE
/
accounts
/
{accountId}
/
documents
Delete Document
curl --request DELETE \
  --url https://api.rolla.xyz/api/v1/external/accounts/{accountId}/documents \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "relatedPersonId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
'
{
  "success": true,
  "message": "Document deleted successfully",
  "data": {
    "success": true
  }
}
Deletes an uploaded document by type. Include relatedPersonId to target a document attached to a specific related person.

Example Request

curl -X DELETE "https://api.rolla.xyz/api/v1/external/accounts/eec3cbed-79d8-4370-87a0-b6be9e287337/documents" \
  -H "X-API-Key: your_api_key_here" \
  -H "Content-Type: application/json" \
  -d '{
    "documentType": "bank_statement"
  }'

Example Response

{
  "success": true,
  "message": "Document deleted successfully",
  "data": {
    "success": true
  }
}
Deleting a document from an application that was already completed moves it back to draft, and it must be re-submitted.

Authorizations

X-API-Key
string
header
required

Your Rolla API key

Path Parameters

accountId
string<uuid>
required

Identifier of an account owned by the same user as your API key's business

Body

application/json
documentType
enum<string>
required
Available options:
certificate_of_incorporation,
articles_of_association,
proof_of_address,
director_register,
shareholder_register,
proof_of_tax_id,
bank_statement,
wolfsberg_questionnaire,
msb_flow_form,
flow_of_funds_diagram,
aml_policy_procedures,
ach_procedures,
wire_procedures,
customer_complaint_procedures,
prohibited_jurisdictions_industries

Response

Document deleted successfully

success
boolean
Example:

true

message
string
Example:

"Document deleted successfully"

data
object