ishant.kesar

Bulk API using Apex SDK

0 votes

I want to understand the bulk API return value.

{{baseUrl}}/api/packages/:templateId/bulk_send

How can we use the returned value to retrieve all the transactions created by above API call? 


Reply to: Bulk API using Apex SDK

0 votes

Hi ishant.kesar,

 

A batch UID (typically in UUID format) will be returned by this API, which can be used to identify transactions created by this batch. This value will be stored at package JSON > "data" > "bulkSendBatchUid" 

Therefore, you should be able to retrieve the transactions if you follow below steps:

(1)Modify the APEX SDK class OneSpanAPIObjects.cls > line 238, internal class Data > add an additional attribute "String bulkSendBatchUid;"

(2)Retrieving a list of transactions by following this guide

(3)Loop through the returned transactions and filter by the "pkg.data.bulkSendBatchUid"

 

Duo

Duo Liang OneSpan Evangelism and Partner Integrations Developer


Hello! Looks like you're enjoying the discussion, but haven't signed up for an account.

When you create an account, we remember exactly what you've read, so you always come right back where you left off