using Prove.Proveapi;
using Prove.Proveapi.Models.Components;
using System.Collections.Generic;
var sdk = new ProveAPI(auth: "<YOUR_AUTH_HERE>");
V3BatchEnrollIdentitiesRequest req = new V3BatchEnrollIdentitiesRequest() {
ClientRequestId = "71010d88-d0e7-4a24-9297-d1be6fefde81",
Items = new List<IdentityItem>() {
new IdentityItem() {
ClientCustomerId = "e0f78bc2-f748-4eda-9d29-d756844507fc",
DeviceId = "bf9ea15d-7dfa-4bb4-a64c-6c26b53472fc",
PhoneNumber = "2001001695",
},
new IdentityItem() {
ClientCustomerId = "e0f78bc2-f748-4eda-9d29-d756844507fc",
DeviceId = "bf9ea15d-7dfa-4bb4-a64c-6c26b53472fc",
PhoneNumber = "2001001695",
},
},
};
var res = await sdk.Identity.V3BatchEnrollIdentitiesAsync(req);
// handle response
{
"results": [
{
"identityId": "e0f78bc2-f748-4eda-9d29-d756844507fc"
},
{
"error": "Invalid Phone Number"
}
]
}
Enrolls multiple customers in a single request for efficient bulk operations (up to 100).
using Prove.Proveapi;
using Prove.Proveapi.Models.Components;
using System.Collections.Generic;
var sdk = new ProveAPI(auth: "<YOUR_AUTH_HERE>");
V3BatchEnrollIdentitiesRequest req = new V3BatchEnrollIdentitiesRequest() {
ClientRequestId = "71010d88-d0e7-4a24-9297-d1be6fefde81",
Items = new List<IdentityItem>() {
new IdentityItem() {
ClientCustomerId = "e0f78bc2-f748-4eda-9d29-d756844507fc",
DeviceId = "bf9ea15d-7dfa-4bb4-a64c-6c26b53472fc",
PhoneNumber = "2001001695",
},
new IdentityItem() {
ClientCustomerId = "e0f78bc2-f748-4eda-9d29-d756844507fc",
DeviceId = "bf9ea15d-7dfa-4bb4-a64c-6c26b53472fc",
PhoneNumber = "2001001695",
},
},
};
var res = await sdk.Identity.V3BatchEnrollIdentitiesAsync(req);
// handle response
{
"results": [
{
"identityId": "e0f78bc2-f748-4eda-9d29-d756844507fc"
},
{
"error": "Invalid Phone Number"
}
]
}
The access token received from the /token endpoint. Refer to the Authentication page for more details.
Request body for the V3 Batch Enroll Identities API.
V3BatchEnrollIdentitiesResponse
Response body for the V3 Batch Enroll Identities API.
Was this page helpful?