/v1/mappings/drafts/{id}The draft whole. from is the version it starts from and carried the fields carried over from it unchanged, when it is a new version. card is the profiler’s draft with every decision applied in order; decisions are the ones kept, and notApplied names any that no longer apply to the draft made from today’s samples. samples are the kept files, each with its sha256 and its bytes. test is the last test, current saying whether it ran on the card as it is now. finalized names the frozen version once there is one. fromSettings names each seller field your company’s details hold, with its value, when the details are used on invoices: a field the card does not write is filled from them. readiness is everything left of the draft, counted once: columnsToDecide (each column nobody mapped or left out), fieldsToDecide (each field an open column is proposed for), missing (each required field nothing fills), codes and paymentKeys (each of your codes and payment keys nobody gave a meaning yet), test (untested, passed or failed for the card as it is now, with the policy check the test ran), fields (each field’s state: mapped, decide, missing or empty) and blockedBy, the first thing that keeps the draft from being saved, or null. Finalize refuses by the same count.
Path parameters
- idstring (uuid)Required
The draft's id, as
POST /v1/mappings/draftsanswered it.
Status codes
| Status | Meaning |
|---|---|
200 |
{id, target, card, decisions, notApplied, from, carried, profile, targets, unmapped, corpus, samples, test, finalized, fromSettings, readiness}. |
401 |
No usable credential was sent (invalid_credentials). |
404 |
This company has no such draft (unknown_mapping_draft). |
/v1/mappings/drafts/{id}curl https://api.certinvo.com/v1/mappings/drafts/$DRAFT_ID \
-H "Authorization: Bearer $CERTINVO_API_KEY"const draftId = '3f0c2a5e-8d1b-4c7a-9e2f-6b5d4a3c2b1a'
const response = await fetch(`https://api.certinvo.com/v1/mappings/drafts/${draftId}`, {
headers: {
Authorization: `Bearer ${process.env.CERTINVO_API_KEY}`,
},
})
console.log(response.status, await response.json())import os
import requests
draft_id = "3f0c2a5e-8d1b-4c7a-9e2f-6b5d4a3c2b1a"
response = requests.get(
f"https://api.certinvo.com/v1/mappings/drafts/{draft_id}",
headers={"Authorization": f"Bearer {os.environ['CERTINVO_API_KEY']}"},
)
print(response.status_code, response.text)