Skip to content

API reference

Read a kept mapping draft

Mappings API

GET/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/drafts answered 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).
GET/v1/mappings/drafts/{id}
Example
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)
200
No response body.
Success response
GET
/v1/mappings/drafts/{id}
Read a kept mapping draft
All
›AuthenticationRequiredBearerAuth

Provide your API key in the Authorization: Bearer <key> header. Keys are stored locally in your browser.

›Variables1
›Headers2
›Code Snippet
curl -X GET "https://api.certinvo.com/v1/mappings/drafts/{id}" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json"
Response

No request sent yet

Configure parameters and click Send to view the response.

Navigation

Type to search…

↑↓ navigate↵ selectEsc close