Retrieve agent profiles for merchant boarding based on API user's ISO

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

Get Agent Profiles

Returns a list of all agent profiles belonging to the ISO associated with the authenticated API user. Each profile represents an agent who can be assigned to merchant applications during the boarding process. This is typically the first call made when setting up a new merchant, as the returned id values are required when creating merchant applications.

Endpoint

GET /api/v1/agentProfiles

Authentication

Basic HTTP Authentication required.
Encode username:password in Base64 and pass in the Authorization header:

Authorization: Basic {base64(username:password)}

When to use

Call this endpoint at the start of the merchant boarding flow to populate the agent selection list in your boarding UI or to determine valid agentProfileId values before calling POST /api/v1/merchant/create. The results are automatically scoped to the ISO tied to your API credentials — no filter parameters are needed. Results should be cached in your application between sessions to reduce unnecessary API calls, but should be refreshed periodically as agents may be added or modified.

Response

200 OK

FieldTypeDescription
dataarrayList of AgentProfile objects for the authenticated ISO
data[].idintegerAgent profile ID — use this as agentProfileId when creating a merchant
data[].namestringCombined display name (typically payoutNumber + agentName)
data[].payoutNumberstringAgent's payout number for commission tracking
data[].agentIdintegerUnique identifier of the underlying agent record
data[].agentNamestringAgent's full name
data[].agentOfficeIdintegerID of the agent's office/branch
data[].agentOfficeNamestringName of the agent's office/branch
data[].agentUserNamestringSystem username for the agent
data[].emailstringAgent's email address
data[].phonestringAgent's phone number (may be null)
statusstringHTTP status label (e.g., OK)
errorstringError message if the request failed
warningstringNon-fatal warning message, if any
validationResultsarrayList of validation errors
requestIdintegerUnique identifier for this API request
{
  "data": [
    {
      "id": 4264,
      "name": "1354275284 Maria Santos",
      "payoutNumber": "1354275284",
      "agentId": 63018,
      "agentName": "Maria Santos",
      "agentOfficeId": 1074,
      "agentOfficeName": "Southwest Regional Office",
      "agentUserName": "iso01074-63018",
      "email": "[email protected]",
      "phone": "305-555-0182"
    },
    {
      "id": 4391,
      "name": "1354275301 James Okafor",
      "payoutNumber": "1354275301",
      "agentId": 63041,
      "agentName": "James Okafor",
      "agentOfficeId": 1074,
      "agentOfficeName": "Southwest Regional Office",
      "agentUserName": "iso01074-63041",
      "email": "[email protected]",
      "phone": null
    }
  ],
  "status": "OK",
  "error": null,
  "warning": null,
  "validationResults": [],
  "requestId": 91648
}

Error Codes

CodeWhen it happens
401Invalid or missing Basic Auth credentials
403User does not have permission to access agent profiles for this ISO
404No agent profiles found for the ISO associated with this API user
500Internal server error

Common Mistakes

  • Hard-coding agent profile IDs — these IDs are environment-specific and will differ between staging and production; always fetch them dynamically.
  • Not checking for an empty data array — if no agents are configured under the ISO, the array will be empty rather than returning a 404.
  • Using agentId instead of id when creating a merchant — the id field (not agentId) is the value to pass as agentProfileId in the create merchant request.
  • Calling this endpoint on every merchant create request without caching — the profile list changes infrequently; cache the results and refresh periodically.

Related Endpoints

  • GET /api/v1/agent/profile — retrieve the full detail record for a single agent by profile ID
  • GET /api/v1/GetBoardingSettings — retrieve boarding settings (always call alongside this endpoint before creating a merchant)
  • POST /api/v1/merchant/create — create a merchant using the agentProfileId returned here

Example

curl -X GET "https://hq.staging.netevia.dev/api/v1/agentProfiles" \
  -H "Authorization: Basic $(echo -n 'username:password' | base64)"
Headers
string
enum
Defaults to application/json

Generated from available response content types

Allowed:
Response

Language
Credentials
Basic
base64
:
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json
text/json