---
title: "Turn a file into your own JSON"
description: "Mappings API"
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.certinvo.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Turn a file into your own JSON

{/* Generated by apps/docs/scripts/generate.ts from contracts/api/openapi.yaml. Do not edit. */}
<div class="cvo-op">
<div class="cvo-op-main">

<div class="cvo-op-header">
<div class="cvo-op-path-row">
<span class="cvo-method" data-method="post">POST</span>
<code class="cvo-op-path-code">/v1/mappings/transformations</code>
</div>
</div>

Reads a file through an activated mapping card that names one of your target models, and answers your JSON: one document per invoice in the file. The whole file is refused when any document cannot be filled, naming each field, as a batch is. Nothing is stored and nothing is validated: your model is yours to check.

## Request body

`application/json`, required

## Status codes

| Status | Meaning |
|---|---|
| `200` | `{documents}`, in your model. |
| `400` | The body is not a transformation (`invalid_json`), the file does not read the card's way (`unreadable_file`), fields cannot be filled (`unmappable_payload`), the card reads no file (`config_reads_no_file`), the card names no target model of yours (`not_a_target_mapping`), or the model it names is not registered (`unknown_target_model`). |
| `401` | No usable credential was sent (`invalid_credentials`). |
| `404` | This company activated no such card (`unknown_mapping_config`). |
| `413` | The file, once read, holds more than one request may carry (`file_too_large_to_read`). Nothing was transformed. |

</div>
<div class="cvo-op-aside">

</div>
</div>

Source: https://docs.certinvo.com/reference/api/mappings/turn-a-file-into-your-own-json/index.mdx
