This section provides the Sender endpoints required to manage and operate the full lifecycle of resources within the ViaBlocks platform.
These endpoints are designed for secure, auditable, and scalable server-to-server integrations, and support core business operations and compliance workflows.
Upload sender identification document images (front and optionally back) for KYC processing.
Use this endpoint when you need to:
- Upload the sender's ID document image after creating a transaction
- Submit both front and back images of the identification document
- Fulfill KYC requirements for sender verification
Requires x-client-id and x-secret-key headers for partner authentication.
- The
uuidfield identifies the sender (idSenderGlobal) — the same UUID returned when creating the sender - The sender is validated against the Customer DynamoDB table
documentType+documentCountryare validated against the KYC identifications catalog to confirm the document is accepted and to determine whether the back image is required- Images are forwarded to the Viacheck processing Lambda for storage and verification
- On success, returns a confirmation message
documentTypemust be a code accepted fordocumentCountry(e.g., DL, PA, CL)documentCountryis the document's issuing country in ISO 3166-1 alpha-3 format (e.g., USA, MEX)frontImageis always required;backImageis required only when the document type/country requires the back side (per the identifications catalog)- Images can be sent as raw base64 or data URI format (data:image/png;base64,...)
- 400000 - Invalid JSON format or image upload failed
- 400001 - Missing required field (uuid, documentType, documentCountry, documentNumber, frontImage, or backImage when required)
- 400010 - documentType is not accepted for the given documentCountry
- 401000 - Invalid credentials
- 403001 - Partner not authorized for this endpoint
- 404002 - Sender not found for the given UUID
- 500000 - Internal server error
Sender's unique identifier (idSenderGlobal). This is the same UUID returned when the sender was created via transaction/create. The sender is validated against the Customer table before processing.
Error codes: required=400001, type=400002, minLength=400003, maxLength=400004
Identification document type code (e.g., DL, PA, CL). Must be a document type accepted for the given documentCountry according to the KYC identifications catalog. Determines whether the back image is required.
Error codes: required=400001, type=400002, minLength=400003, maxLength=400004, pattern=400009
Document country in ISO 3166-1 alpha-3 format (e.g., USA, MEX, COL). Used together with documentType to validate the document and resolve image requirements.
Error codes: required=400001, type=400002, minLength=400003, maxLength=400004, pattern=400009
Sender's identification document number (e.g., driver's license, passport, national ID). Must match the documentNumber used in transaction/create.
Error codes: required=400001, type=400002, minLength=400003, maxLength=400004, pattern=400009
Front image of the identification document encoded in base64. Accepts raw base64 or data URI (data:image/png;base64,...).
Error codes: required=400001, type=400002, minLength=400003, pattern=400009
Back image of the identification document encoded in base64. Optional — required only for document types that need back side capture (e.g., driver's license). Accepts raw base64 or data URI (data:image/png;base64,...).
Error codes: type=400002, minLength=400003, pattern=400009
- Upload sender ID document (front only)
- Upload sender ID document (front and back)
curl -i -X POST \
https://sandbox-viablocks.viamericas.io/sender/id-upload \
-H 'Content-Type: application/json' \
-H 'x-client-id: string' \
-H 'x-secret-key: string' \
-d '{
"uuid": "4ed19e29-5a6a-433d-908d-23377fabb617",
"documentType": "PA",
"documentCountry": "MEX",
"documentNumber": "PA12345678",
"frontImage": "data:image/jpeg;base64,/9j/4AAQSkZJRg..."
}'{ "status": "success", "message": "The ID has been successfully uploaded" }