Overview
Bulk Operations APIs run one action against many items, such as SIM cards. You can activate, suspend, terminate, and update items in bulk.
Use these APIs to manage large device or SIM fleets. Bulk operations use a CSV file to change many SIMs.
Common job types update status, packages, portfolios, and customerSuspend. You can also update attributes such as friendlyName and orderId. When the job completes, download its response file for each SIM result.
When to use bulk operations
Use bulk operations to perform the same action on many items. For example:
Activate multiple SIM cards.
Suspend or terminate a batch of SIM cards.
Update attributes or configurations for a group of items.
Upload and process large datasets in one operation.
Before you start, obtain these values:
base64
Base64 encoding of clientId:clientSecret for a service account with file and job permissions.
fileUrl
Base URL of the File service.
jobUrl
Base URL of the Job service.
env
Your environment: stage or prod.
portfolioId
The portfolio that owns the files and jobs.
Workflow
Run the bulk workflow in this order:
Get Token: Mint an OAuth2 access token.
Create File: Create a file record and S3 path.
Upload or Download File: Use
action=uploadto retrieve presigned S3 upload credentials.Upload File to S3: Select and send your local CSV file.
Job Create: Start the bulk job for the uploaded CSV.
Job Update: Set the status to
queuedto trigger orchestration.Get ResponseFile: Poll until
responseFileIdis not null.Upload or Download File: Use
action=downloadto request a presigned results URL.Download via Pre-signed URL: Retrieve the results file and save it locally.
Choose a CSV template
Choose the template for your operation. Then select it during Upload File to S3.
Update ICC customerSuspend
Update ICC package
Update ICC portfolio
Update ICC status
Update ICC attribute friendlyName
Update ICC attribute orderId
For status updates, enter the status value in lowercase.
Last updated
Was this helpful?