---
updatedAt: 2026-11-02T10:47:50.000Z
agentTools:
  projectIndex: https://docs-cpm.dataguard.com/llms.txt
---

# Imports Citizens, Transactions, Preferences and Email Addresses.

Imports citizens with optional Transactions, Preferences and Email Addresses.
Returns details about an import Job which can be used to check on the progress of the import.
Upload files should be CSV files with the structure show in the example below, where the first row is column titles.
Columns can appear in any order.

Example table with required columns to create a citizen, transaction and preference.
The following column headers can be added which specify additional optional fields on a transaction:

`emailAddress, validFrom, validUntil, obtainedAt, source, campaign, channel, sourceSystem, sourceSystemReference`

<table border=1>
<tr><th>uniqueReference</th><th>privacyPolicyId</th><th>permissionStatementId</th><th>optionId</th><th>optionType</th><th>justification</th><th>state</th><th>reference</th><th>values</th></tr>
<tr><td>uniqueRef-001</td><td>prPol-01</td><td>permStat-01</td><td>opt-01</td><td>group</td><td>consent</td><td>GRANTED</td><td>contact-channels-preference</td><td>phone|post</td></tr>
</table>

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "servers": [
    {
      "url": "api.consentric.io"
    }
  ],
  "info": {
    "version": "1.0",
    "title": "Imports, exports and syncing",
    "license": {
      "name": "(c) 2026 DataGuard. All Rights Reserved."
    }
  },
  "components": {
    "securitySchemes": {
      "api_key": {
        "type": "apiKey",
        "name": "api_key",
        "in": "header"
      },
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "JWT"
      }
    }
  },
  "security": [
    {
      "api_key": []
    },
    {
      "bearerAuth": []
    }
  ],
  "paths": {
    "/captured-transactions-import": {
      "post": {
        "description": "Imports citizens with optional Transactions, Preferences and Email Addresses.\nReturns details about an import Job which can be used to check on the progress of the import.\nUpload files should be CSV files with the structure show in the example below, where the first row is column titles.\nColumns can appear in any order.\n\nExample table with required columns to create a citizen, transaction and preference.\nThe following column headers can be added which specify additional optional fields on a transaction:\n\n`emailAddress, validFrom, validUntil, obtainedAt, source, campaign, channel, sourceSystem, sourceSystemReference`\n\n<table border=1>\n<tr><th>uniqueReference</th><th>privacyPolicyId</th><th>permissionStatementId</th><th>optionId</th><th>optionType</th><th>justification</th><th>state</th><th>reference</th><th>values</th></tr>\n<tr><td>uniqueRef-001</td><td>prPol-01</td><td>permStat-01</td><td>opt-01</td><td>group</td><td>consent</td><td>GRANTED</td><td>contact-channels-preference</td><td>phone|post</td></tr>\n</table>",
        "operationId": "importCapturedTransactions",
        "parameters": [
          {
            "description": "The ID associated with the target Application.",
            "example": "d8BNrPqsgRZ",
            "in": "query",
            "name": "applicationId",
            "required": true,
            "schema": {
              "maxLength": 50,
              "minLength": 1,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "example": "uniqueReference,privacyPolicyId,permissionStatementId,optionId,optionType,justification,state,reference,values\nuniqueRef-001,prPol-01,permStat-01,opt-01,group,consent,GRANTED,contact-channels-preference,phone|post\n",
              "schema": {
                "type": "string"
              }
            }
          },
          "description": "The file to be uploaded as part of the request.",
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "The response containing information representing the newly created Job.",
                  "properties": {
                    "createdAt": {
                      "description": "An ISO 8601 date (and time) specifying the time the resource was created.",
                      "example": "2018-04-24T11:58:14.687Z",
                      "format": "date-time",
                      "type": "string"
                    },
                    "fileName": {
                      "description": "The name of the file uploaded.",
                      "example": "import.csv",
                      "type": "string"
                    },
                    "jobId": {
                      "description": "The ID associated with the target Job.",
                      "example": "GStC35G5j7Y",
                      "type": "string"
                    }
                  },
                  "required": [
                    "createdAt",
                    "fileName",
                    "jobId"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "Describes an error with the request",
                  "properties": {
                    "cause": {
                      "description": "The general cause of the error.",
                      "example": "Duplicated value detected.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The code associated with the error.",
                      "example": "DuplicateValue",
                      "type": "string"
                    },
                    "detail": {
                      "description": "Further description of the error.",
                      "example": "The request contains a value which already exists within Consentric.",
                      "type": "string"
                    },
                    "fieldErrors": {
                      "description": "List of specific field errors for the request.",
                      "items": {
                        "description": "Describes an error relating to a specific field in the request",
                        "properties": {
                          "errorCode": {
                            "description": "The code associated with the error.",
                            "example": "NotFound",
                            "type": "string"
                          },
                          "errorDescription": {
                            "description": "The description for the corresponding errorCode",
                            "example": "Option Id oB3Rps could not be found.",
                            "type": "string"
                          },
                          "field": {
                            "description": "The field that generated the error.",
                            "example": "request[0].changes[0].optionId",
                            "type": "string"
                          },
                          "rejectedValue": {
                            "description": "The value of the field that was rejected.",
                            "example": "oB3Rps",
                            "type": "object"
                          }
                        },
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "globalErrors": {
                      "description": "List of general errors for the request.",
                      "items": {
                        "description": "Describes a general error with the request",
                        "properties": {
                          "errorCode": {
                            "description": "The code associated with the error.",
                            "example": "DuplicateValue",
                            "type": "string"
                          },
                          "errorDescription": {
                            "description": "The description for the corresponding errorCode",
                            "example": "Duplicate Data Ids: dts1.",
                            "type": "string"
                          }
                        },
                        "type": "object"
                      },
                      "type": "array"
                    }
                  },
                  "type": "object"
                }
              }
            },
            "description": "Bad Request"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "Describes an error with the request",
                  "properties": {
                    "cause": {
                      "description": "The general cause of the error.",
                      "example": "Duplicated value detected.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The code associated with the error.",
                      "example": "DuplicateValue",
                      "type": "string"
                    },
                    "detail": {
                      "description": "Further description of the error.",
                      "example": "The request contains a value which already exists within Consentric.",
                      "type": "string"
                    },
                    "fieldErrors": {
                      "description": "List of specific field errors for the request.",
                      "items": {
                        "description": "Describes an error relating to a specific field in the request",
                        "properties": {
                          "errorCode": {
                            "description": "The code associated with the error.",
                            "example": "NotFound",
                            "type": "string"
                          },
                          "errorDescription": {
                            "description": "The description for the corresponding errorCode",
                            "example": "Option Id oB3Rps could not be found.",
                            "type": "string"
                          },
                          "field": {
                            "description": "The field that generated the error.",
                            "example": "request[0].changes[0].optionId",
                            "type": "string"
                          },
                          "rejectedValue": {
                            "description": "The value of the field that was rejected.",
                            "example": "oB3Rps",
                            "type": "object"
                          }
                        },
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "globalErrors": {
                      "description": "List of general errors for the request.",
                      "items": {
                        "description": "Describes a general error with the request",
                        "properties": {
                          "errorCode": {
                            "description": "The code associated with the error.",
                            "example": "DuplicateValue",
                            "type": "string"
                          },
                          "errorDescription": {
                            "description": "The description for the corresponding errorCode",
                            "example": "Duplicate Data Ids: dts1.",
                            "type": "string"
                          }
                        },
                        "type": "object"
                      },
                      "type": "array"
                    }
                  },
                  "type": "object"
                }
              }
            },
            "description": "Forbidden"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "Describes an error with the request",
                  "properties": {
                    "cause": {
                      "description": "The general cause of the error.",
                      "example": "Duplicated value detected.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The code associated with the error.",
                      "example": "DuplicateValue",
                      "type": "string"
                    },
                    "detail": {
                      "description": "Further description of the error.",
                      "example": "The request contains a value which already exists within Consentric.",
                      "type": "string"
                    },
                    "fieldErrors": {
                      "description": "List of specific field errors for the request.",
                      "items": {
                        "description": "Describes an error relating to a specific field in the request",
                        "properties": {
                          "errorCode": {
                            "description": "The code associated with the error.",
                            "example": "NotFound",
                            "type": "string"
                          },
                          "errorDescription": {
                            "description": "The description for the corresponding errorCode",
                            "example": "Option Id oB3Rps could not be found.",
                            "type": "string"
                          },
                          "field": {
                            "description": "The field that generated the error.",
                            "example": "request[0].changes[0].optionId",
                            "type": "string"
                          },
                          "rejectedValue": {
                            "description": "The value of the field that was rejected.",
                            "example": "oB3Rps",
                            "type": "object"
                          }
                        },
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "globalErrors": {
                      "description": "List of general errors for the request.",
                      "items": {
                        "description": "Describes a general error with the request",
                        "properties": {
                          "errorCode": {
                            "description": "The code associated with the error.",
                            "example": "DuplicateValue",
                            "type": "string"
                          },
                          "errorDescription": {
                            "description": "The description for the corresponding errorCode",
                            "example": "Duplicate Data Ids: dts1.",
                            "type": "string"
                          }
                        },
                        "type": "object"
                      },
                      "type": "array"
                    }
                  },
                  "type": "object"
                }
              }
            },
            "description": "Internal Server Error"
          },
          "501": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "Describes an error with the request",
                  "properties": {
                    "cause": {
                      "description": "The general cause of the error.",
                      "example": "Duplicated value detected.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The code associated with the error.",
                      "example": "DuplicateValue",
                      "type": "string"
                    },
                    "detail": {
                      "description": "Further description of the error.",
                      "example": "The request contains a value which already exists within Consentric.",
                      "type": "string"
                    },
                    "fieldErrors": {
                      "description": "List of specific field errors for the request.",
                      "items": {
                        "description": "Describes an error relating to a specific field in the request",
                        "properties": {
                          "errorCode": {
                            "description": "The code associated with the error.",
                            "example": "NotFound",
                            "type": "string"
                          },
                          "errorDescription": {
                            "description": "The description for the corresponding errorCode",
                            "example": "Option Id oB3Rps could not be found.",
                            "type": "string"
                          },
                          "field": {
                            "description": "The field that generated the error.",
                            "example": "request[0].changes[0].optionId",
                            "type": "string"
                          },
                          "rejectedValue": {
                            "description": "The value of the field that was rejected.",
                            "example": "oB3Rps",
                            "type": "object"
                          }
                        },
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "globalErrors": {
                      "description": "List of general errors for the request.",
                      "items": {
                        "description": "Describes a general error with the request",
                        "properties": {
                          "errorCode": {
                            "description": "The code associated with the error.",
                            "example": "DuplicateValue",
                            "type": "string"
                          },
                          "errorDescription": {
                            "description": "The description for the corresponding errorCode",
                            "example": "Duplicate Data Ids: dts1.",
                            "type": "string"
                          }
                        },
                        "type": "object"
                      },
                      "type": "array"
                    }
                  },
                  "type": "object"
                }
              }
            },
            "description": "Not Implemented"
          }
        },
        "summary": "Imports Citizens, Transactions, Preferences and Email Addresses.",
        "tags": [
          "Captured Transactions Import"
        ]
      }
    }
  }
}
```