POST
Accept legal documents

Authorizations

Authorization
string
header
required

The user's access_token from authentication. The program and environment (sandbox/prod) are read from the token.

Path Parameters

applicationId
string
required

The application id from create / get.

Query Parameters

programId
string

Required on the Management API, where the token carries no program — omitting it returns 400. Customer API callers resolve the program from their token and should omit it; a value sent there is ignored.

Body

application/json

Unrecognised fields are ignored rather than rejected.

documentSetVersion
string
required

Must match the current program document set version returned by the legal-document GET endpoint.

Example:

"1.0.0"

acceptedDocuments
object[]
required

Accepted documents copied from the legal-document GET response. Must include every required document for the account type.

Minimum array length: 1

Response

Legal documents accepted and persisted

success
boolean
Example:

true

data
object