APITatTool APIAPI reference

Read an ink bottle

Read an ink bottle

Read an ink bottle

GET /api/v1/inks/{inkId}

Read an ink bottle

API version: 1.0.0; source revision: development; SHA-256: 48cf3a12f6c45a2618345f604165f68f7efcee3648a8b923ccd02ef716aa8a9e.

Group: Inks.

Required permissions: ["inks:read"].

Authentication: Authorization: Bearer <user-owned-api-key>.

Parameters

path: inkId

Required. Resolved bottle UUID.

{
  "format": "uuid",
  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
  "type": "string"
}

Request examples

[
  {
    "name": "read",
    "request": {
      "path": {
        "inkId": "00000000-0000-4000-8000-000000000233"
      }
    }
  }
]

curl

curl --request GET \
  --header 'Authorization: Bearer <user-owned-api-key>' \
  "$TATTOOL_API_URL/api/v1/inks/00000000-0000-4000-8000-000000000233"

Responses

200

Read an ink bottle Media type: application/json

  • data
  • data.active
  • data.artist
  • data.artist.id
  • data.artist.name
  • data.batchNumber
  • data.brand
  • data.color
  • data.dataSheet
  • data.dataSheet.id
  • data.dataSheet.name
  • data.expiredAt
  • data.expiredReason
  • data.expiresAt
  • data.id
  • data.identifier
  • data.isFlagged
  • data.isOpen
  • data.location
  • data.location.id
  • data.location.name
  • data.name
  • data.notes
  • data.openedAt
  • data.retailer
  • data.retailer.id
  • data.retailer.name
  • data.version

Schema and constraints:

{
  "properties": {
    "data": {
      "additionalProperties": false,
      "properties": {
        "active": {
          "description": "Recorded active state.",
          "type": "boolean"
        },
        "artist": {
          "anyOf": [
            {
              "properties": {
                "id": {
                  "description": "Stable record ID.",
                  "type": "string"
                },
                "name": {
                  "description": "Display name.",
                  "type": [
                    "string",
                    "null"
                  ]
                }
              },
              "required": [
                "id",
                "name"
              ],
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "description": "Assigned artist or null for shared inventory."
        },
        "batchNumber": {
          "description": "Manufacturer batch number.",
          "type": "string"
        },
        "brand": {
          "description": "Recorded manufacturer.",
          "type": "string"
        },
        "color": {
          "description": "Recorded ink colour.",
          "type": "string"
        },
        "dataSheet": {
          "anyOf": [
            {
              "properties": {
                "id": {
                  "description": "Stable record ID.",
                  "type": "string"
                },
                "name": {
                  "description": "Display name.",
                  "type": [
                    "string",
                    "null"
                  ]
                }
              },
              "required": [
                "id",
                "name"
              ],
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "description": "Safe existing datasheet reference without file access."
        },
        "expiredAt": {
          "anyOf": [
            {
              "format": "date-time",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "description": "Recorded expiration time."
        },
        "expiredReason": {
          "description": "Recorded expiration reason.",
          "type": [
            "string",
            "null"
          ]
        },
        "expiresAt": {
          "anyOf": [
            {
              "format": "date-time",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "description": "Recorded label expiry."
        },
        "id": {
          "description": "Database-generated record UUID.",
          "format": "uuid",
          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
          "type": "string"
        },
        "identifier": {
          "description": "Printed numeric bottle identifier.",
          "maximum": 9007199254740991,
          "minimum": -9007199254740991,
          "type": "integer"
        },
        "isFlagged": {
          "description": "Visible flagged batch match.",
          "type": "boolean"
        },
        "isOpen": {
          "description": "Recorded opening state.",
          "type": "boolean"
        },
        "location": {
          "anyOf": [
            {
              "properties": {
                "id": {
                  "description": "Stable record ID.",
                  "type": "string"
                },
                "name": {
                  "description": "Display name.",
                  "type": [
                    "string",
                    "null"
                  ]
                }
              },
              "required": [
                "id",
                "name"
              ],
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "description": "Assigned location or null for shared inventory."
        },
        "name": {
          "description": "Display name.",
          "type": "string"
        },
        "notes": {
          "description": "Permitted inventory notes.",
          "type": [
            "string",
            "null"
          ]
        },
        "openedAt": {
          "anyOf": [
            {
              "format": "date-time",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "description": "Recorded opening time."
        },
        "retailer": {
          "anyOf": [
            {
              "properties": {
                "id": {
                  "description": "Stable record ID.",
                  "type": "string"
                },
                "name": {
                  "description": "Display name.",
                  "type": [
                    "string",
                    "null"
                  ]
                }
              },
              "required": [
                "id",
                "name"
              ],
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "description": "Safe existing retailer reference."
        },
        "version": {
          "description": "Opaque persisted record version.",
          "type": "string"
        }
      },
      "required": [
        "id",
        "identifier",
        "name",
        "brand",
        "color",
        "batchNumber",
        "artist",
        "location",
        "active",
        "isOpen",
        "expiresAt",
        "expiredAt",
        "expiredReason",
        "isFlagged",
        "notes",
        "openedAt",
        "retailer",
        "dataSheet",
        "version"
      ],
      "type": "object"
    }
  },
  "required": [
    "data"
  ],
  "type": "object"
}

Synthetic example:

{
  "data": {
    "active": true,
    "artist": null,
    "batchNumber": "A42",
    "brand": "Example",
    "color": "black",
    "dataSheet": null,
    "expiredAt": null,
    "expiredReason": null,
    "expiresAt": null,
    "id": "00000000-0000-4000-8000-000000000233",
    "identifier": 12,
    "isFlagged": false,
    "isOpen": false,
    "location": null,
    "name": "Example bottle",
    "notes": null,
    "openedAt": null,
    "retailer": null,
    "version": "opaque-example-version"
  }
}

401

Authentication is required. Media type: application/json

  • error
  • error.code
  • error.fieldErrors
  • error.message
  • error.operationId
  • error.reason
  • error.retryable
  • error.retryAfterSeconds

Schema and constraints:

{
  "properties": {
    "error": {
      "properties": {
        "code": {
          "description": "Stable safe failure code.",
          "enum": [
            "INVALID_INPUT",
            "UNAUTHENTICATED",
            "FORBIDDEN",
            "NOT_FOUND",
            "CONFLICT",
            "RATE_LIMITED",
            "CAPABILITY_UNAVAILABLE",
            "PROVIDER_UNAVAILABLE"
          ],
          "type": "string"
        },
        "fieldErrors": {
          "additionalProperties": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "description": "Safe field-level validation details.",
          "propertyNames": {
            "type": "string"
          },
          "type": "object"
        },
        "message": {
          "description": "Fixed public failure message, without provider or private details.",
          "type": "string"
        },
        "operationId": {
          "description": "Original domain recovery operation ID when available.",
          "type": "string"
        },
        "reason": {
          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
          "enum": [
            "STALE_VERSION",
            "EDIT_SESSION_EXPIRED",
            "IDEMPOTENCY_MISMATCH",
            "DOMAIN_CONFLICT",
            "SLOT_UNAVAILABLE",
            "INCOMPLETE_AVAILABILITY",
            "MISSING_OPENING_HOURS"
          ],
          "type": "string"
        },
        "retryable": {
          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
          "type": "boolean"
        },
        "retryAfterSeconds": {
          "description": "Seconds before retry or reconciliation.",
          "exclusiveMinimum": 0,
          "maximum": 9007199254740991,
          "type": "integer"
        }
      },
      "required": [
        "code",
        "message",
        "retryable"
      ],
      "type": "object"
    }
  },
  "required": [
    "error"
  ],
  "type": "object"
}

Synthetic example:

{
  "error": {
    "code": "UNAUTHENTICATED",
    "message": "Authentication is required.",
    "retryable": false
  }
}

403

Access denied. Media type: application/json

  • error
  • error.code
  • error.fieldErrors
  • error.message
  • error.operationId
  • error.reason
  • error.retryable
  • error.retryAfterSeconds

Schema and constraints:

{
  "properties": {
    "error": {
      "properties": {
        "code": {
          "description": "Stable safe failure code.",
          "enum": [
            "INVALID_INPUT",
            "UNAUTHENTICATED",
            "FORBIDDEN",
            "NOT_FOUND",
            "CONFLICT",
            "RATE_LIMITED",
            "CAPABILITY_UNAVAILABLE",
            "PROVIDER_UNAVAILABLE"
          ],
          "type": "string"
        },
        "fieldErrors": {
          "additionalProperties": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "description": "Safe field-level validation details.",
          "propertyNames": {
            "type": "string"
          },
          "type": "object"
        },
        "message": {
          "description": "Fixed public failure message, without provider or private details.",
          "type": "string"
        },
        "operationId": {
          "description": "Original domain recovery operation ID when available.",
          "type": "string"
        },
        "reason": {
          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
          "enum": [
            "STALE_VERSION",
            "EDIT_SESSION_EXPIRED",
            "IDEMPOTENCY_MISMATCH",
            "DOMAIN_CONFLICT",
            "SLOT_UNAVAILABLE",
            "INCOMPLETE_AVAILABILITY",
            "MISSING_OPENING_HOURS"
          ],
          "type": "string"
        },
        "retryable": {
          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
          "type": "boolean"
        },
        "retryAfterSeconds": {
          "description": "Seconds before retry or reconciliation.",
          "exclusiveMinimum": 0,
          "maximum": 9007199254740991,
          "type": "integer"
        }
      },
      "required": [
        "code",
        "message",
        "retryable"
      ],
      "type": "object"
    }
  },
  "required": [
    "error"
  ],
  "type": "object"
}

Synthetic example:

{
  "error": {
    "code": "FORBIDDEN",
    "message": "Access denied.",
    "retryable": false
  }
}

404

Record not found. Media type: application/json

  • error
  • error.code
  • error.fieldErrors
  • error.message
  • error.operationId
  • error.reason
  • error.retryable
  • error.retryAfterSeconds

Schema and constraints:

{
  "properties": {
    "error": {
      "properties": {
        "code": {
          "description": "Stable safe failure code.",
          "enum": [
            "INVALID_INPUT",
            "UNAUTHENTICATED",
            "FORBIDDEN",
            "NOT_FOUND",
            "CONFLICT",
            "RATE_LIMITED",
            "CAPABILITY_UNAVAILABLE",
            "PROVIDER_UNAVAILABLE"
          ],
          "type": "string"
        },
        "fieldErrors": {
          "additionalProperties": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "description": "Safe field-level validation details.",
          "propertyNames": {
            "type": "string"
          },
          "type": "object"
        },
        "message": {
          "description": "Fixed public failure message, without provider or private details.",
          "type": "string"
        },
        "operationId": {
          "description": "Original domain recovery operation ID when available.",
          "type": "string"
        },
        "reason": {
          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
          "enum": [
            "STALE_VERSION",
            "EDIT_SESSION_EXPIRED",
            "IDEMPOTENCY_MISMATCH",
            "DOMAIN_CONFLICT",
            "SLOT_UNAVAILABLE",
            "INCOMPLETE_AVAILABILITY",
            "MISSING_OPENING_HOURS"
          ],
          "type": "string"
        },
        "retryable": {
          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
          "type": "boolean"
        },
        "retryAfterSeconds": {
          "description": "Seconds before retry or reconciliation.",
          "exclusiveMinimum": 0,
          "maximum": 9007199254740991,
          "type": "integer"
        }
      },
      "required": [
        "code",
        "message",
        "retryable"
      ],
      "type": "object"
    }
  },
  "required": [
    "error"
  ],
  "type": "object"
}

Synthetic example:

{
  "error": {
    "code": "NOT_FOUND",
    "message": "Record not found.",
    "retryable": false
  }
}

409

The operation conflicts with the current state. Media type: application/json

  • error
  • error.code
  • error.fieldErrors
  • error.message
  • error.operationId
  • error.reason
  • error.retryable
  • error.retryAfterSeconds

Schema and constraints:

{
  "properties": {
    "error": {
      "properties": {
        "code": {
          "description": "Stable safe failure code.",
          "enum": [
            "INVALID_INPUT",
            "UNAUTHENTICATED",
            "FORBIDDEN",
            "NOT_FOUND",
            "CONFLICT",
            "RATE_LIMITED",
            "CAPABILITY_UNAVAILABLE",
            "PROVIDER_UNAVAILABLE"
          ],
          "type": "string"
        },
        "fieldErrors": {
          "additionalProperties": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "description": "Safe field-level validation details.",
          "propertyNames": {
            "type": "string"
          },
          "type": "object"
        },
        "message": {
          "description": "Fixed public failure message, without provider or private details.",
          "type": "string"
        },
        "operationId": {
          "description": "Original domain recovery operation ID when available.",
          "type": "string"
        },
        "reason": {
          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
          "enum": [
            "STALE_VERSION",
            "EDIT_SESSION_EXPIRED",
            "IDEMPOTENCY_MISMATCH",
            "DOMAIN_CONFLICT",
            "SLOT_UNAVAILABLE",
            "INCOMPLETE_AVAILABILITY",
            "MISSING_OPENING_HOURS"
          ],
          "type": "string"
        },
        "retryable": {
          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
          "type": "boolean"
        },
        "retryAfterSeconds": {
          "description": "Seconds before retry or reconciliation.",
          "exclusiveMinimum": 0,
          "maximum": 9007199254740991,
          "type": "integer"
        }
      },
      "required": [
        "code",
        "message",
        "retryable"
      ],
      "type": "object"
    }
  },
  "required": [
    "error"
  ],
  "type": "object"
}

Synthetic example:

{
  "error": {
    "code": "CONFLICT",
    "message": "The operation conflicts with the current state.",
    "reason": "DOMAIN_CONFLICT",
    "retryable": false
  }
}

422

Invalid operation input. Media type: application/json

  • error
  • error.code
  • error.fieldErrors
  • error.message
  • error.operationId
  • error.reason
  • error.retryable
  • error.retryAfterSeconds

Schema and constraints:

{
  "properties": {
    "error": {
      "properties": {
        "code": {
          "description": "Stable safe failure code.",
          "enum": [
            "INVALID_INPUT",
            "UNAUTHENTICATED",
            "FORBIDDEN",
            "NOT_FOUND",
            "CONFLICT",
            "RATE_LIMITED",
            "CAPABILITY_UNAVAILABLE",
            "PROVIDER_UNAVAILABLE"
          ],
          "type": "string"
        },
        "fieldErrors": {
          "additionalProperties": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "description": "Safe field-level validation details.",
          "propertyNames": {
            "type": "string"
          },
          "type": "object"
        },
        "message": {
          "description": "Fixed public failure message, without provider or private details.",
          "type": "string"
        },
        "operationId": {
          "description": "Original domain recovery operation ID when available.",
          "type": "string"
        },
        "reason": {
          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
          "enum": [
            "STALE_VERSION",
            "EDIT_SESSION_EXPIRED",
            "IDEMPOTENCY_MISMATCH",
            "DOMAIN_CONFLICT",
            "SLOT_UNAVAILABLE",
            "INCOMPLETE_AVAILABILITY",
            "MISSING_OPENING_HOURS"
          ],
          "type": "string"
        },
        "retryable": {
          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
          "type": "boolean"
        },
        "retryAfterSeconds": {
          "description": "Seconds before retry or reconciliation.",
          "exclusiveMinimum": 0,
          "maximum": 9007199254740991,
          "type": "integer"
        }
      },
      "required": [
        "code",
        "message",
        "retryable"
      ],
      "type": "object"
    }
  },
  "required": [
    "error"
  ],
  "type": "object"
}

Synthetic example:

{
  "error": {
    "code": "INVALID_INPUT",
    "message": "Invalid operation input.",
    "retryable": false
  }
}

429

Request limit reached. Media type: application/json

  • error
  • error.code
  • error.fieldErrors
  • error.message
  • error.operationId
  • error.reason
  • error.retryable
  • error.retryAfterSeconds

Schema and constraints:

{
  "properties": {
    "error": {
      "properties": {
        "code": {
          "description": "Stable safe failure code.",
          "enum": [
            "INVALID_INPUT",
            "UNAUTHENTICATED",
            "FORBIDDEN",
            "NOT_FOUND",
            "CONFLICT",
            "RATE_LIMITED",
            "CAPABILITY_UNAVAILABLE",
            "PROVIDER_UNAVAILABLE"
          ],
          "type": "string"
        },
        "fieldErrors": {
          "additionalProperties": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "description": "Safe field-level validation details.",
          "propertyNames": {
            "type": "string"
          },
          "type": "object"
        },
        "message": {
          "description": "Fixed public failure message, without provider or private details.",
          "type": "string"
        },
        "operationId": {
          "description": "Original domain recovery operation ID when available.",
          "type": "string"
        },
        "reason": {
          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
          "enum": [
            "STALE_VERSION",
            "EDIT_SESSION_EXPIRED",
            "IDEMPOTENCY_MISMATCH",
            "DOMAIN_CONFLICT",
            "SLOT_UNAVAILABLE",
            "INCOMPLETE_AVAILABILITY",
            "MISSING_OPENING_HOURS"
          ],
          "type": "string"
        },
        "retryable": {
          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
          "type": "boolean"
        },
        "retryAfterSeconds": {
          "description": "Seconds before retry or reconciliation.",
          "exclusiveMinimum": 0,
          "maximum": 9007199254740991,
          "type": "integer"
        }
      },
      "required": [
        "code",
        "message",
        "retryable"
      ],
      "type": "object"
    }
  },
  "required": [
    "error"
  ],
  "type": "object"
}

Synthetic example:

{
  "error": {
    "code": "RATE_LIMITED",
    "message": "Request limit reached.",
    "retryable": true,
    "retryAfterSeconds": 60
  }
}

503

The provider is unavailable. Media type: application/json

  • error
  • error.code
  • error.fieldErrors
  • error.message
  • error.operationId
  • error.reason
  • error.retryable
  • error.retryAfterSeconds

Schema and constraints:

{
  "properties": {
    "error": {
      "properties": {
        "code": {
          "description": "Stable safe failure code.",
          "enum": [
            "INVALID_INPUT",
            "UNAUTHENTICATED",
            "FORBIDDEN",
            "NOT_FOUND",
            "CONFLICT",
            "RATE_LIMITED",
            "CAPABILITY_UNAVAILABLE",
            "PROVIDER_UNAVAILABLE"
          ],
          "type": "string"
        },
        "fieldErrors": {
          "additionalProperties": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "description": "Safe field-level validation details.",
          "propertyNames": {
            "type": "string"
          },
          "type": "object"
        },
        "message": {
          "description": "Fixed public failure message, without provider or private details.",
          "type": "string"
        },
        "operationId": {
          "description": "Original domain recovery operation ID when available.",
          "type": "string"
        },
        "reason": {
          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
          "enum": [
            "STALE_VERSION",
            "EDIT_SESSION_EXPIRED",
            "IDEMPOTENCY_MISMATCH",
            "DOMAIN_CONFLICT",
            "SLOT_UNAVAILABLE",
            "INCOMPLETE_AVAILABILITY",
            "MISSING_OPENING_HOURS"
          ],
          "type": "string"
        },
        "retryable": {
          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
          "type": "boolean"
        },
        "retryAfterSeconds": {
          "description": "Seconds before retry or reconciliation.",
          "exclusiveMinimum": 0,
          "maximum": 9007199254740991,
          "type": "integer"
        }
      },
      "required": [
        "code",
        "message",
        "retryable"
      ],
      "type": "object"
    }
  },
  "required": [
    "error"
  ],
  "type": "object"
}

Synthetic example:

{
  "error": {
    "code": "PROVIDER_UNAVAILABLE",
    "message": "The provider is unavailable.",
    "retryable": false
  }
}