> For the complete documentation index, see [llms.txt](https://help.openloyalty.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.openloyalty.io/api-reference/export.md).

# Export

These endpoints will allow you to export data.

## Get export details

> \<label style="background-color: #D4EDBC;padding:5px;">Management\</label>\<br>\<br><br>

````json
{"openapi":"3.0.0","info":{"title":"Open Loyalty","version":"0.0.1"},"tags":[{"name":"Export","description":"These endpoints will allow you to export data."}],"servers":[{"url":"http://openloyalty.localhost"}],"security":[{"Bearer":[]},{"token":[]}],"components":{"securitySchemes":{"Bearer":{"type":"apiKey","description":"Open Loyalty has the JWT authorization.\nTo learn what a JSON Web Token is and how it works, check out Introduction to JSON Web Tokens <https://jwt.io/introduction/>\n\n### Obtain an access token\n\nSend a request with the parameters username and password\n\n#### Definition\n\n`POST /api/admin/login_check` [Go to definition](#operation/adminLoginCheck)\\\n`POST /api/{storeCode}/member/login_check` [Go to definition](#operation/memberLoginCheck)\n\n#### Example\n\n```bash\ncurl {HOST}/api/admin/login_check\n    -H 'Content-Type: application/json;charset=UTF-8'\n    -H 'Accept: application/json, text/plain, */*'\n    --data-binary '{\"username\":\"admin\",\"password\":\"password\"}'\n```\n\n#### Example Response\n\n```json\n{\n    \"token\":\"eyJhbGciOiJSUzI1NiIsInR5cCI6...\",\n    \"refresh_token\":\"0558f8bb29948c4e54c443f...\"\n}\n```\n\n### Using JSON Web Token\n\nAdd authorization header to each request\\\n`Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6...`\\\nYou can now access any API method you want under the /api prefix.\n\n#### Example\n```bash\ncurl {HOST}/api/{storeCode}/analytics/members\n    -H 'Accept: application/json'\n    -H 'Content-type: application/x-www-form-urlencoded'\n    -H 'Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6...'\n```\n\n### Refresh JSON Web Token\nYou can refresh token using refresh_token that was given during login.\\\nThere are two endpoints\\\nTo refresh admin token `POST /api/token/refresh` [Go to definition](#operation/tokenRefresh)\\\nTo refresh member token `POST /api/{storeCode}/token/refresh` [Go to definition](#operation/tokenRefreshMember)\n","name":"Authorization","in":"header","bearerFormat":"JWT","scheme":"bearer"},"token":{"type":"apiKey","name":"X-AUTH-TOKEN","in":"header"}},"parameters":{"storeCode":{"name":"storeCode","in":"path","description":"Store code","required":true,"schema":{"type":"string"}},"export":{"name":"export","in":"path","description":"Export ID","required":true,"schema":{"type":"string","format":"uuid"}}},"schemas":{"Export":{"properties":{"exportId":{"type":"string","format":"uuid"},"type":{"type":"string","enum":["campaignCode","member","memberTier","memberSegment","rewardFulfillment"]},"status":{"type":"string","enum":["pending","done","failed","error"]},"createdAt":{"type":"string","format":"date-time"},"finishedAt":{"type":"string","format":"date-time"},"criteria":{"type":"string"},"exportedRows":{"type":"integer"},"message":{"type":"string"}},"type":"object"},"ExpiredToken":{"required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}},"type":"object"},"InvalidToken":{"required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}},"type":"object"},"Unauthorized":{"required":["message"],"properties":{"message":{"type":"string"}},"type":"object"}},"responses":{"AccessDenied":{"description":"Forbidden.","content":{"application/json":{"schema":{"required":["code","message"],"properties":{"code":{"type":"integer"},"message":{"type":"string"}},"type":"object"}}}},"NotFound":{"description":"Not found.","content":{"application/json":{"schema":{"required":["code","message"],"properties":{"code":{"type":"integer"},"message":{"type":"string"}},"type":"object"}}}}}},"paths":{"/api/{storeCode}/export/{export}":{"get":{"tags":["Export"],"summary":"Get export details","description":"<label style=\"background-color: #D4EDBC;padding:5px;\">Management</label><br><br>\n","operationId":"exportGet","parameters":[{"$ref":"#/components/parameters/storeCode"},{"$ref":"#/components/parameters/export"}],"responses":{"200":{"description":"Export details","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Export"}}}},"401":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ExpiredToken"},{"$ref":"#/components/schemas/InvalidToken"},{"$ref":"#/components/schemas/Unauthorized"}]}}}},"403":{"$ref":"#/components/responses/AccessDenied"},"404":{"$ref":"#/components/responses/NotFound"}}}}}}
````

## Download an export

> \<label style="background-color: #D4EDBC;padding:5px;">Management\</label>\<br>\<br><br>

````json
{"openapi":"3.0.0","info":{"title":"Open Loyalty","version":"0.0.1"},"tags":[{"name":"Export","description":"These endpoints will allow you to export data."}],"servers":[{"url":"http://openloyalty.localhost"}],"security":[{"Bearer":[]},{"token":[]}],"components":{"securitySchemes":{"Bearer":{"type":"apiKey","description":"Open Loyalty has the JWT authorization.\nTo learn what a JSON Web Token is and how it works, check out Introduction to JSON Web Tokens <https://jwt.io/introduction/>\n\n### Obtain an access token\n\nSend a request with the parameters username and password\n\n#### Definition\n\n`POST /api/admin/login_check` [Go to definition](#operation/adminLoginCheck)\\\n`POST /api/{storeCode}/member/login_check` [Go to definition](#operation/memberLoginCheck)\n\n#### Example\n\n```bash\ncurl {HOST}/api/admin/login_check\n    -H 'Content-Type: application/json;charset=UTF-8'\n    -H 'Accept: application/json, text/plain, */*'\n    --data-binary '{\"username\":\"admin\",\"password\":\"password\"}'\n```\n\n#### Example Response\n\n```json\n{\n    \"token\":\"eyJhbGciOiJSUzI1NiIsInR5cCI6...\",\n    \"refresh_token\":\"0558f8bb29948c4e54c443f...\"\n}\n```\n\n### Using JSON Web Token\n\nAdd authorization header to each request\\\n`Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6...`\\\nYou can now access any API method you want under the /api prefix.\n\n#### Example\n```bash\ncurl {HOST}/api/{storeCode}/analytics/members\n    -H 'Accept: application/json'\n    -H 'Content-type: application/x-www-form-urlencoded'\n    -H 'Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6...'\n```\n\n### Refresh JSON Web Token\nYou can refresh token using refresh_token that was given during login.\\\nThere are two endpoints\\\nTo refresh admin token `POST /api/token/refresh` [Go to definition](#operation/tokenRefresh)\\\nTo refresh member token `POST /api/{storeCode}/token/refresh` [Go to definition](#operation/tokenRefreshMember)\n","name":"Authorization","in":"header","bearerFormat":"JWT","scheme":"bearer"},"token":{"type":"apiKey","name":"X-AUTH-TOKEN","in":"header"}},"parameters":{"storeCode":{"name":"storeCode","in":"path","description":"Store code","required":true,"schema":{"type":"string"}},"export":{"name":"export","in":"path","description":"Export ID","required":true,"schema":{"type":"string","format":"uuid"}}},"schemas":{"ExpiredToken":{"required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}},"type":"object"},"InvalidToken":{"required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}},"type":"object"},"Unauthorized":{"required":["message"],"properties":{"message":{"type":"string"}},"type":"object"}},"responses":{"AccessDenied":{"description":"Forbidden.","content":{"application/json":{"schema":{"required":["code","message"],"properties":{"code":{"type":"integer"},"message":{"type":"string"}},"type":"object"}}}}}},"paths":{"/api/{storeCode}/export/{export}/download":{"get":{"tags":["Export"],"summary":"Download an export","description":"<label style=\"background-color: #D4EDBC;padding:5px;\">Management</label><br><br>\n","operationId":"exportGetDownload","parameters":[{"$ref":"#/components/parameters/storeCode"},{"$ref":"#/components/parameters/export"}],"responses":{"200":{"description":"CSV File","content":{"text/csv":{"schema":{"type":"string"}}}},"401":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ExpiredToken"},{"$ref":"#/components/schemas/InvalidToken"},{"$ref":"#/components/schemas/Unauthorized"}]}}}},"403":{"$ref":"#/components/responses/AccessDenied"}}}}}}
````

## Get exports lists

> \<label style="background-color: #D4EDBC;padding:5px;">Management\</label>\<br>\<br><br>

````json
{"openapi":"3.0.0","info":{"title":"Open Loyalty","version":"0.0.1"},"tags":[{"name":"Export","description":"These endpoints will allow you to export data."}],"servers":[{"url":"http://openloyalty.localhost"}],"security":[{"Bearer":[]},{"token":[]}],"components":{"securitySchemes":{"Bearer":{"type":"apiKey","description":"Open Loyalty has the JWT authorization.\nTo learn what a JSON Web Token is and how it works, check out Introduction to JSON Web Tokens <https://jwt.io/introduction/>\n\n### Obtain an access token\n\nSend a request with the parameters username and password\n\n#### Definition\n\n`POST /api/admin/login_check` [Go to definition](#operation/adminLoginCheck)\\\n`POST /api/{storeCode}/member/login_check` [Go to definition](#operation/memberLoginCheck)\n\n#### Example\n\n```bash\ncurl {HOST}/api/admin/login_check\n    -H 'Content-Type: application/json;charset=UTF-8'\n    -H 'Accept: application/json, text/plain, */*'\n    --data-binary '{\"username\":\"admin\",\"password\":\"password\"}'\n```\n\n#### Example Response\n\n```json\n{\n    \"token\":\"eyJhbGciOiJSUzI1NiIsInR5cCI6...\",\n    \"refresh_token\":\"0558f8bb29948c4e54c443f...\"\n}\n```\n\n### Using JSON Web Token\n\nAdd authorization header to each request\\\n`Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6...`\\\nYou can now access any API method you want under the /api prefix.\n\n#### Example\n```bash\ncurl {HOST}/api/{storeCode}/analytics/members\n    -H 'Accept: application/json'\n    -H 'Content-type: application/x-www-form-urlencoded'\n    -H 'Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6...'\n```\n\n### Refresh JSON Web Token\nYou can refresh token using refresh_token that was given during login.\\\nThere are two endpoints\\\nTo refresh admin token `POST /api/token/refresh` [Go to definition](#operation/tokenRefresh)\\\nTo refresh member token `POST /api/{storeCode}/token/refresh` [Go to definition](#operation/tokenRefreshMember)\n","name":"Authorization","in":"header","bearerFormat":"JWT","scheme":"bearer"},"token":{"type":"apiKey","name":"X-AUTH-TOKEN","in":"header"}},"parameters":{"storeCode":{"name":"storeCode","in":"path","description":"Store code","required":true,"schema":{"type":"string"}},"page":{"name":"_page","in":"query","description":"Number of page with results, starts from 1","required":false,"schema":{"type":"integer","default":1,"minimum":1}},"itemsOnPage":{"name":"_itemsOnPage","in":"query","description":"Items on one page","required":false,"schema":{"type":"integer","default":10,"maximum":50,"minimum":1}},"orderBy":{"name":"_orderBy","in":"query","description":"Sorting order. If sorting is not chosen, the rows will be returned in an unspecified order. Sort order: * `asc` - Ascending, from A to Z * `desc` - Descending, from Z to A","required":false,"style":"deepObject","explode":true,"schema":{"type":"object","additionalProperties":{"type":"string","enum":["asc","desc"]}}}},"schemas":{"ExportBasicData":{"properties":{"exportId":{"type":"string","format":"uuid"},"type":{"type":"string","enum":["campaignCode","member","memberTier","memberSegment","rewardFulfillment"]},"status":{"type":"string","enum":["pending","done","failed","error"]},"createdAt":{"type":"string","format":"date-time"},"finishedAt":{"type":"string","format":"date-time"},"criteria":{"type":"string"},"exportedRows":{"type":"integer"},"message":{"type":"string"}},"type":"object"},"SearchableTotalResponse2":{"properties":{"all":{"type":"integer","deprecated":true},"filtered":{"type":"integer","deprecated":true},"estimated":{"description":"Field estimated is used to show that the results are estimated. It might happen when there are more than 5000 results due to performance optimization.","type":"boolean","deprecated":true}},"type":"object","deprecated":true},"ExpiredToken":{"required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}},"type":"object"},"InvalidToken":{"required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}},"type":"object"},"Unauthorized":{"required":["message"],"properties":{"message":{"type":"string"}},"type":"object"}},"responses":{"AccessDenied":{"description":"Forbidden.","content":{"application/json":{"schema":{"required":["code","message"],"properties":{"code":{"type":"integer"},"message":{"type":"string"}},"type":"object"}}}}}},"paths":{"/api/{storeCode}/export":{"get":{"tags":["Export"],"summary":"Get exports lists","description":"<label style=\"background-color: #D4EDBC;padding:5px;\">Management</label><br><br>\n","operationId":"exportGetList","parameters":[{"$ref":"#/components/parameters/storeCode"},{"name":"exportId","in":"query","required":false,"schema":{"type":"string","format":"uuid"}},{"name":"type","in":"query","required":false,"schema":{"type":"string","enum":["campaignCode","member","memberTier","memberSegment","rewardFulfillment"]}},{"name":"status","in":"query","required":false,"schema":{"type":"string","enum":["pending","done","failed","error"]}},{"name":"message","in":"query","required":false,"schema":{"type":"string"}},{"name":"createdAt","in":"query","required":false,"schema":{"type":"string","format":"date-time"}},{"$ref":"#/components/parameters/page"},{"$ref":"#/components/parameters/itemsOnPage"},{"$ref":"#/components/parameters/orderBy"}],"responses":{"200":{"description":"List of exports","content":{"application/json":{"schema":{"properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ExportBasicData"}},"total":{"$ref":"#/components/schemas/SearchableTotalResponse2"}},"type":"object"}}}},"401":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ExpiredToken"},{"$ref":"#/components/schemas/InvalidToken"},{"$ref":"#/components/schemas/Unauthorized"}]}}}},"403":{"$ref":"#/components/responses/AccessDenied"}}}}}}
````

## Create an export

> \<label style="background-color: #D4EDBC;padding:5px;">Management\</label>\<br>\<br><br>

````json
{"openapi":"3.0.0","info":{"title":"Open Loyalty","version":"0.0.1"},"tags":[{"name":"Export","description":"These endpoints will allow you to export data."}],"servers":[{"url":"http://openloyalty.localhost"}],"security":[{"Bearer":[]},{"token":[]}],"components":{"securitySchemes":{"Bearer":{"type":"apiKey","description":"Open Loyalty has the JWT authorization.\nTo learn what a JSON Web Token is and how it works, check out Introduction to JSON Web Tokens <https://jwt.io/introduction/>\n\n### Obtain an access token\n\nSend a request with the parameters username and password\n\n#### Definition\n\n`POST /api/admin/login_check` [Go to definition](#operation/adminLoginCheck)\\\n`POST /api/{storeCode}/member/login_check` [Go to definition](#operation/memberLoginCheck)\n\n#### Example\n\n```bash\ncurl {HOST}/api/admin/login_check\n    -H 'Content-Type: application/json;charset=UTF-8'\n    -H 'Accept: application/json, text/plain, */*'\n    --data-binary '{\"username\":\"admin\",\"password\":\"password\"}'\n```\n\n#### Example Response\n\n```json\n{\n    \"token\":\"eyJhbGciOiJSUzI1NiIsInR5cCI6...\",\n    \"refresh_token\":\"0558f8bb29948c4e54c443f...\"\n}\n```\n\n### Using JSON Web Token\n\nAdd authorization header to each request\\\n`Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6...`\\\nYou can now access any API method you want under the /api prefix.\n\n#### Example\n```bash\ncurl {HOST}/api/{storeCode}/analytics/members\n    -H 'Accept: application/json'\n    -H 'Content-type: application/x-www-form-urlencoded'\n    -H 'Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6...'\n```\n\n### Refresh JSON Web Token\nYou can refresh token using refresh_token that was given during login.\\\nThere are two endpoints\\\nTo refresh admin token `POST /api/token/refresh` [Go to definition](#operation/tokenRefresh)\\\nTo refresh member token `POST /api/{storeCode}/token/refresh` [Go to definition](#operation/tokenRefreshMember)\n","name":"Authorization","in":"header","bearerFormat":"JWT","scheme":"bearer"},"token":{"type":"apiKey","name":"X-AUTH-TOKEN","in":"header"}},"parameters":{"storeCode":{"name":"storeCode","in":"path","description":"Store code","required":true,"schema":{"type":"string"}}},"schemas":{"ExportCampaignCodeTypeRequestBody":{"title":"campaignCode","properties":{"campaignCode":{"required":["campaignId"],"properties":{"campaignId":{"type":"string","format":"uuid"},"code":{"type":"string"},"status":{"type":"string","enum":["unused","used"]},"codeId":{"type":"string","format":"uuid"},"usedByMemberId":{"type":"string","format":"uuid"},"createdAt":{"allOf":[{"$ref":"#/components/schemas/DateTimeCriteriaField"},{"description":"Date and time when the member was registered"}]},"usedAt":{"allOf":[{"$ref":"#/components/schemas/DateTimeCriteriaField"},{"description":"Date and time when the member was registered"}]},"_page":{"$ref":"#/components/schemas/ExportPage"},"_itemsOnPage":{"$ref":"#/components/schemas/ExportItemsOnPage"},"_orderBy":{"$ref":"#/components/schemas/ExportOrderBy"}},"type":"object"}},"type":"object","additionalProperties":false},"DateTimeCriteriaField":{"oneOf":[{"description":"Date and time value","type":"string","format":"date-time"},{"description":"Date and time value with optional comparison operators like lt (less than), gt (greater than), etc.","properties":{"lt":{"description":"Less than the specified date-time","type":"string","format":"date-time"},"lte":{"description":"Less than or equal to the specified date-time","type":"string","format":"date-time"},"gt":{"description":"Greater than the specified date-time","type":"string","format":"date-time"},"gte":{"description":"Greater than or equal to the specified date-time","type":"string","format":"date-time"},"eq":{"description":"Equal to the specified date-time","type":"string","format":"date-time"}},"type":"object"}]},"ExportPage":{"description":"Number of page with results, starts from 1","type":"integer","default":1,"minimum":1},"ExportItemsOnPage":{"description":"Items on one page","type":"integer","default":10,"maximum":50,"minimum":1},"ExportOrderBy":{"description":"Sorting order. If sorting is not chosen, the rows will be returned in an unspecified order. Sort order: * `asc` - Ascending, from A to Z * `desc` - Descending, from Z to A","type":"object","additionalProperties":{"type":"string","enum":["asc","desc"]}},"ExportMemberTypeRequestBody":{"title":"member","properties":{"member":{"properties":{"customerId":{"type":"string","format":"uuid"},"active":{"type":"boolean"},"firstName":{"type":"string"},"lastName":{"type":"string"},"gender":{"type":"string","enum":["female","male","not_disclosed"]},"phone":{"type":"string"},"email":{"type":"string","format":"email"},"loyaltyCardNumber":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"birthDate":{"type":"string","format":"date-time"},"agreement1":{"type":"boolean"},"agreement2":{"type":"boolean"},"agreement3":{"type":"boolean"},"updatedAt":{"type":"string","format":"date-time"},"transactionsCount":{"type":"integer"},"transactionsAmount":{"type":"number","format":"float"},"transactionsAmountWithoutDeliveryCosts":{"type":"number","format":"float"},"amountExcludedForLevel":{"type":"number","format":"float"},"averageTransactionAmount":{"type":"number","format":"float"},"levelAchievementDate":{"type":"string","format":"date-time"},"labels":{"type":"array","items":{"type":"string"}},"lastTransactionDate":{"type":"string","format":"date-time"},"registeredAt":{"allOf":[{"$ref":"#/components/schemas/DateTimeCriteriaField"},{"description":"Date and time when the member was registered"}]},"firstTransactionDate":{"type":"string","format":"date-time"},"levelId":{"type":"string","format":"uuid"},"manuallyAssignedLevelId":{"type":"string","format":"uuid"},"referralToken":{"type":"string"},"address:street":{"type":"string"},"address:address1":{"type":"string"},"address:address2":{"type":"string"},"address:province":{"type":"string"},"address:city":{"type":"string"},"address:postal":{"type":"string"},"address:country":{"type":"string"},"defaultAccount:activePoints":{"type":"number","format":"float"},"defaultAccount:transferredPoints":{"type":"number","format":"float"},"defaultAccount:lockedPoints":{"type":"number","format":"float"},"defaultAccount:expiredPoints":{"type":"number","format":"float"},"defaultAccount:spentPoints":{"type":"number","format":"float"},"defaultAccount:earnedPoints":{"type":"number","format":"float"},"defaultAccount:blockedPoints":{"type":"number","format":"float"},"emailOrPhone":{"type":"string"},"_page":{"$ref":"#/components/schemas/ExportPage"},"_itemsOnPage":{"$ref":"#/components/schemas/ExportItemsOnPage"},"_orderBy":{"$ref":"#/components/schemas/ExportOrderBy"}},"type":"object"}},"type":"object","additionalProperties":false},"ExportMemberTierTypeRequestBody":{"title":"memberTier","properties":{"memberTier":{"required":["tierId"],"properties":{"tierId":{"type":"string","format":"uuid"},"_page":{"$ref":"#/components/schemas/ExportPage"},"_itemsOnPage":{"$ref":"#/components/schemas/ExportItemsOnPage"},"_orderBy":{"$ref":"#/components/schemas/ExportOrderBy"}},"type":"object"}},"type":"object","additionalProperties":false},"ExportMemberSegmentTypeRequestBody":{"title":"memberSegment","properties":{"memberSegment":{"required":["segmentId"],"properties":{"segmentId":{"type":"string","format":"uuid"},"_page":{"$ref":"#/components/schemas/ExportPage"},"_itemsOnPage":{"$ref":"#/components/schemas/ExportItemsOnPage"},"_orderBy":{"$ref":"#/components/schemas/ExportOrderBy"}},"type":"object"}},"type":"object","additionalProperties":false},"ExportRewardFulfillmentTypeRequestBody":{"title":"rewardFulfillment","properties":{"rewardFulfillment":{"properties":{"rewardId":{"type":"string","format":"uuid"},"name":{"type":"string"},"rewardType":{"type":"string"},"token":{"type":"string"},"status":{"type":"array","items":{"type":"string"}},"costInPoints":{"type":"number","format":"float"},"redemptionDate":{"type":"string","format":"date-time"},"customerId":{"type":"string","format":"uuid"},"customerData:email":{"type":"string"},"customerData:firstName":{"type":"string"},"customerData:lastName":{"type":"string"},"customerData:phone":{"type":"string"},"customerData:loyaltyCardNumber":{"type":"string"},"_page":{"$ref":"#/components/schemas/ExportPage"},"_itemsOnPage":{"$ref":"#/components/schemas/ExportItemsOnPage"},"_orderBy":{"$ref":"#/components/schemas/ExportOrderBy"}},"type":"object"}},"type":"object","additionalProperties":false},"ExportId":{"required":["exportId"],"properties":{"exportId":{"type":"string","format":"uuid"}},"type":"object"}},"responses":{"BadRequest":{"description":"Bad request.","content":{"application/json":{"schema":{"required":["code","message","errors"],"properties":{"code":{"type":"integer"},"message":{"type":"string"},"errors":{"type":"array","items":{"required":["message","parameters","plural","code","path"],"properties":{"message":{"type":"string"},"parameters":{},"plural":{"type":"integer","nullable":true},"code":{"type":"string"},"path":{"type":"string"}},"type":"object"}}},"type":"object"}}}},"AccessDenied":{"description":"Forbidden.","content":{"application/json":{"schema":{"required":["code","message"],"properties":{"code":{"type":"integer"},"message":{"type":"string"}},"type":"object"}}}},"NotFound":{"description":"Not found.","content":{"application/json":{"schema":{"required":["code","message"],"properties":{"code":{"type":"integer"},"message":{"type":"string"}},"type":"object"}}}}}},"paths":{"/api/{storeCode}/export/{type}":{"post":{"tags":["Export"],"summary":"Create an export","description":"<label style=\"background-color: #D4EDBC;padding:5px;\">Management</label><br><br>\n","operationId":"postExport","parameters":[{"$ref":"#/components/parameters/storeCode"},{"name":"type","in":"path","description":"Export type","required":true,"schema":{"type":"string","enum":["campaignCode","member","memberTier","memberSegment","rewardFulfillment"]}}],"requestBody":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ExportCampaignCodeTypeRequestBody"},{"$ref":"#/components/schemas/ExportMemberTypeRequestBody"},{"$ref":"#/components/schemas/ExportMemberTierTypeRequestBody"},{"$ref":"#/components/schemas/ExportMemberSegmentTypeRequestBody"},{"$ref":"#/components/schemas/ExportRewardFulfillmentTypeRequestBody"}]}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExportId"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"403":{"$ref":"#/components/responses/AccessDenied"},"404":{"$ref":"#/components/responses/NotFound"}}}}}}
````


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://help.openloyalty.io/api-reference/export.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
