Target API thru Postman

Avatar

Avatar
Validate 1
Level 1
fcen
Level 1

Likes

0 likes

Total Posts

6 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Applaud 5
View profile

Avatar
Validate 1
Level 1
fcen
Level 1

Likes

0 likes

Total Posts

6 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Applaud 5
View profile
fcen
Level 1

27-12-2018

I'm able to follow the Target API documentation and use Postman to fire API request to get Target activity details. However, when I retrieved activity details in Postman, the modifiedtime seems weird.

For example: I activated a test on 12/26 6PM CT, but the information I retrieved in postman was 12/27 0:00AM, which is 4 hours late.

"startsAt": "2018-12-27T00:00:00Z",

Can anyone shed some light on this one? How do I check the timezone settings in postman, or is this a common issue?

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Give Back 25
Employee
ryanr701
Employee

Likes

203 likes

Total Posts

224 posts

Correct reply

91 solutions
Top badges earned
Give Back 25
Give Back 10
Give Back 5
Give Back 3
Give Back
View profile

Avatar
Give Back 25
Employee
ryanr701
Employee

Likes

203 likes

Total Posts

224 posts

Correct reply

91 solutions
Top badges earned
Give Back 25
Give Back 10
Give Back 5
Give Back 3
Give Back
View profile
ryanr701
Employee

03-01-2019

Okay, it looks like the API response is actually 6 hours ahead, which makes a little more sense. The UI reflects your account time zone of CT (-06:00) but the API is reflecting UTC.

Answers (3)

Answers (3)

Avatar

Avatar
Give Back 25
Employee
ryanr701
Employee

Likes

203 likes

Total Posts

224 posts

Correct reply

91 solutions
Top badges earned
Give Back 25
Give Back 10
Give Back 5
Give Back 3
Give Back
View profile

Avatar
Give Back 25
Employee
ryanr701
Employee

Likes

203 likes

Total Posts

224 posts

Correct reply

91 solutions
Top badges earned
Give Back 25
Give Back 10
Give Back 5
Give Back 3
Give Back
View profile
ryanr701
Employee

03-01-2019

Cool. Could you DM me your postman response? I can look further into it.

Avatar

Avatar
Validate 1
Level 1
fcen
Level 1

Likes

0 likes

Total Posts

6 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Applaud 5
View profile

Avatar
Validate 1
Level 1
fcen
Level 1

Likes

0 likes

Total Posts

6 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Applaud 5
View profile
fcen
Level 1

03-01-2019

Yes, I did specific start time instead of manually activated it. And the time looks correct in the Target UI.

Avatar

Avatar
Give Back 25
Employee
ryanr701
Employee

Likes

203 likes

Total Posts

224 posts

Correct reply

91 solutions
Top badges earned
Give Back 25
Give Back 10
Give Back 5
Give Back 3
Give Back
View profile

Avatar
Give Back 25
Employee
ryanr701
Employee

Likes

203 likes

Total Posts

224 posts

Correct reply

91 solutions
Top badges earned
Give Back 25
Give Back 10
Give Back 5
Give Back 3
Give Back
View profile
ryanr701
Employee

03-01-2019

Hi fcen,

Do the times look right in the Target UI for the same activity? Also, had you explicitly set a "starts at" time for the activity or had you just manually activated it at the given time?