Skip to main content

Publisher call samples

Use the Varicent Incentives API to perform actions related to publishing, such as running a saved publication and retrieving published files.

Retrieve one published file

Use this call to retrieve information about one published file in Varicent Incentives. For example, if you have published a .csv file for your downstream system to use and you do not want to FTP the file, you use this call to download the file to your downstream system.

Request

GET - api/v1/publishedfiles/{uuid}

Note

The uuid can be obtained from the GET - api/v1/publishedfiles call response in the uuid field.

Sample call

curl -X GET -H "Authorization: Bearer API_KEY" 
-H "Model: YOUR_CLIENT_MODEL” 
-H "Content-Type: application/json"
https:// YOUR_ICM10_API_SERVER_ADDRESS/api/v1/publishedfiles/{YOUR_PUBLISH_uuid}

Sample response

{
"filename": "Account.csv",
    "data64": <string>
}

What to do next

To download this information to your downstream system, decode the data64 string from base64 and copy the content into a file.