post https://penny-api-restricted-dev.alfredpay.io/api/v1/third-party-service/penny/customers//kyc//files
Submit KYC files
This endpoint accepts multipart/form-data to upload a KYC document for an individual customer’s submission. It requires both the binary file and a valid file type identifier.
Form Fields
| Field | Type | Description | Required |
|---|---|---|---|
fileBody | file | Binary file to upload (e.g., PDF, JPEG, PNG). | ✅ Required |
fileType | string | Type of file being uploaded. Must match one of the allowed values below. | ✅ Required |
🧾 Allowed fileType Values
- National ID Front
- National ID Back
- Driver Licence Front
- Driver Licence Back
- Selfie
✅ Validation Rules
- The request must include the file under the field name fileBody.
- fileType must be one of the allowed enum values listed above.
- Invalid file types or missing file fields will result in validation errors.
curl --location --request POST 'https://api.example.com/v1/customers/kyc/upload' \
--header 'accept: */*' \
--form 'fileBody=@"/path/to/id_front.jpeg"' \
--form 'fileType="National ID Front"'
