Skip to content

API reference

Take back the answer to one of your codes

Mappings API

DELETE/v1/mappings/codes/{list}/{code}

The answer is taken back for invoices made from now on. The book keeps its history: nothing is removed, a change is added.

Path parameters

  • liststringRequired
  • codestringRequired

Status codes

Status Meaning
200 {version}: the book’s new version.
401 No usable credential was sent (invalid_credentials).
404 Your code book has no answer for that code on that list (unknown_code_book_entry).
501 This deployment keeps no database, so nothing can be changed (no_database).
DELETE/v1/mappings/codes/{list}/{code}
Example
curl -X DELETE https://api.certinvo.com/v1/mappings/codes/$CODE_LIST/${LIST}_CODE \
  -H "Authorization: Bearer $CERTINVO_API_KEY"
const codeList = 'value'
const {list}Code = 'value'

const response = await fetch(`https://api.certinvo.com/v1/mappings/codes/${codeList}/${{list}Code}`, {
  method: 'DELETE',
  headers: {
    Authorization: `Bearer ${process.env.CERTINVO_API_KEY}`,
  },
})
console.log(response.status, await response.json())
import os

import requests

code_list = "value"
{list}_code = "value"

response = requests.delete(
    f"https://api.certinvo.com/v1/mappings/codes/{code_list}/{{list}_code}",
    headers={"Authorization": f"Bearer {os.environ['CERTINVO_API_KEY']}"},
)
print(response.status_code, response.text)
200
No response body.
Success response
DELETE
/v1/mappings/codes/{list}/{code}
Take back the answer to one of your codes
All
›AuthenticationRequiredBearerAuth

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

›Variables2
›Headers2
›Code Snippet
curl -X DELETE "https://api.certinvo.com/v1/mappings/codes/{list}/{code}" \
  -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