Axiym
Implementation guidesPrepare payment data

Supporting documents

View Markdown

Documents are embedded in the payout request as base64 and attached to the thing they evidence. There is one document structure, used in three places:

LocationWhat it evidencesExample
supportingDocuments[] on the payoutThe payment itselfInvoice, contract, purchase order
sender.documents[], recipient.documents[]The party, without a specific identificationProof of address, financial statement
sender.identification.documents[], recipient.identification.documents[], relationships[].identification.documents[]A specific identificationRegistry extract for a registration number, passport scan for a passport

Corridor rules decide which documents are required. Retrieve corridor details before creating the payout and include all documents in the initial request; confirmation does not accept additional evidence.

Smart Payload Mapping helps you connect documents from your records to the appropriate Axiym document locations. See How it works for preparing and reviewing those connections.

Document fields

FieldType or formatRequirednessDescription
documentTypeAxiym enumRequiredType of evidence. Use an exact Axiym code; other labels need a saved value translation on the mapped endpoint.
nameStringRequiredFile name, including the extension.
dataBase64 stringRequiredComplete file encoded as base64 from its raw bytes.

Encode the raw file bytes once. Do not include a data-URL prefix such as data:application/pdf;base64,. Axiym detects the media type from the content; there is no separate content-type field. A two-sided document is one file.

Example

Replace the placeholder with the base64 encoding of a complete sandbox fixture. The placeholder is not valid document content.

{
  "documentType": "REGISTRY_EXTRACT",
  "name": "acme-registry-extract.pdf",
  "data": "REPLACE_WITH_BASE64_ENCODED_REGISTRY_EXTRACT"
}

Use an exact documentType code, such as REGISTRY_EXTRACT, in direct requests. Other labels require a saved value translation on the mapped endpoint. See Controlled values.

What the response returns

The payment does not echo base64 data. Each accepted document is returned in the same place with its metadata:

{
  "documentType": "REGISTRY_EXTRACT",
  "fileId": "6c1d0e42-8b7a-4f39-9d21-3a5e7c9b1f08",
  "name": "acme-registry-extract.pdf",
  "contentType": "application/pdf",
  "size": 96311
}

Use fileId to correlate the stored file with your own records.