End-point Overview #

URL:

https://crm-api-test.10npay.com/api/v1/enrollment/document


Method: PUT

Headers #

accept: application/json
Authorization: Bearer <your_access_token>
Content-Type: application/json

Request Body #

{
	"correlationId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
	"fileName": "string",
	"fileData": "string",
	"type": "string"
}

Replace “string” placeholders with actual values:

“fileName”: The name of the file you’re uploading.

“fileData”: The actual content of the file, encoded as a string, possibly base64.

“type”: The type of document you’re uploading.

For example

{
	"correlationId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
	"fileName": "passport.jpg",
	"fileData": "base64encodeddata==",
	"type": "passport"
}

Ensure to replace <your_access_token> with your actual access token.

Responses #

If the request is successful, you should receive a response with a status code of 200 and an empty body.

If there’s an error, you’ll receive a response with a status code of 400 (Bad Request) and an error message.

Bad Request

{
	"type": "https://tools.ietf.org/html/rfc7231#section-6.5.1",
	"title": "Bad Request",
	"status": 400,
	"traceId": "00-b5ce0f0b613e6437673b6528376e40fe-82c3d57625cbc2ea-01"
}

Snippet #

API Properties
Header parameters
Result of the call

Powered by BetterDocs