Reg: Visa Offer Platform -> MerchantGroup Details API.

Solved! Go to solution
Tousif112
Helper

Reg: Visa Offer Platform -> MerchantGroup Details API.

Hi Team,

 

In Vis Offer Platform -> Get Community MerchantGroup Details -> fromDateTime is mandatory.

 

Can some one confirm which format it has to be ? As we checked the "Sample Data" and API documents there is no clarity on the date time format we need to use.

 

example provided:  ?fromDateTime=632252972006700000&pageSize=5000&startIndex=0&communityCode=PB29CLIENT2&merchantGroupName=VMIDVSIDUI

 

I have already provided details, Don't respond back to ask more details.

9 REPLIES 9
Visa_Dev_Team
Community Manager

Re: Reg: Visa Offer Platform -> MerchantGroup Details API.

Hey @Tousif112  - it needs to be in Unix format. 

 

Thanks for pointing this out, we should update docs to clarify. 

 

Let me know if you have any further questions, thanks for including all the details 🙂

 

 

Tousif112
Helper

Re: Reg: Visa Offer Platform -> MerchantGroup Details API.

Hi Team,

 

Doesn't look like the string "632252972006700000" is unix time stamp, Can you clarify what Date/Time it will get converted to?

Tousif112
Helper

Re: Reg: Visa Offer Platform -> MerchantGroup Details API.

Hi Team,

 

One more clarity needed.

Visa Offer Platform -> Users -> UnEnroll user.

As per API reference only communityCode is required everything else is optional.

As per Test Data Request should include communityCode and  userProfileId which is returned at time of enrolling, Where as we did not received any field as userProfileId.

Now with above confusing information, Tried with Sandbox and its always returning with below error. Please correct the request payload.

 

Tried passing the userId, but same result, Can you please provide more details on it?

 

 

Tousif112
Helper

Re: Reg: Visa Offer Platform -> MerchantGroup Details API.

Hi Team / Diana,

 

Any update on this thread?

ricardo_visa
Community Scholar

Re: Reg: Visa Offer Platform -> MerchantGroup Details API.

Hi @Tousif112 - should have an update to you shortly. Our product team is looking into this. 

 

Thanks,

Ricardo 




Was your question answered? Don't forget to click on "Accept as Solution" to help other devs find the answer to the same question.
ricardo_visa
Community Scholar

Re: Reg: Visa Offer Platform -> MerchantGroup Details API.

@Tousif112 -  can you please provide the full payload of both the request and response you are testing? 

 




Was your question answered? Don't forget to click on "Accept as Solution" to help other devs find the answer to the same question.
Tousif112
Helper

Re: Reg: Visa Offer Platform -> MerchantGroup Details API.

Hi Ricardo,

 

Issue 1:

Please clarify on  below, it has been asked in thread too but no answer yet.

"Doesn't look like the string "632252972006700000" is unix time stamp, Can you clarify what Date/Time it will get converted to?"

 

Issue 2:

API Ref: https://developer.visa.com/capabilities/vop/reference#vop__vop_users__v1__unenroll_user

API: https://sandbox.api.visa.com/vop/v1/users/unenroll

Method: POST

Payload:

{"correlationId": "ce708e6a-fd5f-48cc-b9ff-ce518a6fda1a",
"CommunityCode": "SANDBOX",
"UserKey": "9722108549"}

Response:

{"correlationId":"c1691712-496a-4ce6-b1f5-3915a61c9a5c","responseDateTime":"Tue Jun 02 02:11:35 GMT 2020","responseStatus":{"code":"FAILED","message":"Request Failed","responseStatusDetails":[{"code":"400.","message":"Please correct the request payload."}]}}

As per the API reference only "communityCode" is required in Payload all other fields are optional, As per the Dashboard-> Project-> Test Data "userProfileId" is been listed to include which has no traces in API reference. [Screenshots attached]

Screen Shot 2020-06-02 at 7.45.34 AM.pngScreen Shot 2020-06-02 at 7.45.53 AM.png

 

ricardo_visa
Community Scholar

Re: Reg: Visa Offer Platform -> MerchantGroup Details API.

Hi @Tousif112  - thanks for your patience. 

 

For the fromDateTime question, it is an optional field and takes Unix Epoch format w/ nanoseconds, so 1567689700152114000 = 9/5/2019 1:21:40.152 PM GMT. Hope that helps.

 

For issue 2:

 

Since you are testing in the VDP SANDBOX, you need to stay within the test cases provided on VDP in order to result in a successful response (i.e. VDP is not linked to an actual VOP community). The sandbox is just used for simple format testing. The test data uses UserID (userProfileId from the Enroll response) and not UserKey which is likely why this request is failing. Let me know if you continue to run into issue.

 

Once you have been promoted to certification you will have full access to an assigned set of APIs within a designated community for the program you are launching, giving you more breadth in testing.

 

Does this help?

 

 




Was your question answered? Don't forget to click on "Accept as Solution" to help other devs find the answer to the same question.
Tousif112
Helper

Re: Reg: Visa Offer Platform -> MerchantGroup Details API.

Hi Ricardo,

 

 

For the fromDateTime question, it is an optional field and takes Unix Epoch format w/ nanoseconds, so 1567689700152114000 = 9/5/2019 1:21:40.152 PM GMT. Hope that helps.

----> This clarify the doubt as the Sandbox "Test Data" timestamp looks invalid.

 

Once you have been promoted to certification you will have full access to an assigned set of APIs within a designated community for the program you are launching, giving you more breadth in testing.

-----> Sure, we will wait for the next steps.