Get agent details

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

Get Agent Details

Returns an array of agent profile records matching the supplied query criteria. Each profile includes the agent's name, payout number, office affiliation, and contact details. This endpoint is typically the first call made in the V2 boarding workflow — the returned id field (agent profile ID) is required when creating or submitting a merchant application.

Endpoint

GET /api/v2/agent/profile

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 boarding flow to look up the agent profile ID that will be associated with a new merchant. You can search by either agentId (the internal user ID of the agent) or payoutNumber (the agent's payout/commission identifier). If both are omitted, the API returns all profiles accessible to the authenticated user.

Query Parameters

ParameterTypeRequiredDescription
agentIdinteger (int32)NoInternal agent user ID to filter results
payoutNumberstringNoAgent's payout number to filter results

Response

200 OK

FieldTypeDescription
dataarray of AgentProfileList of matching agent profiles
data[].idintegerAgent profile ID — use as agentProfileId when creating a merchant
data[].namestringDisplay name of the agent profile
data[].payoutNumberstringPayout/commission number for the agent
data[].agentIdintegerInternal agent user ID
data[].agentNamestringFull name of the agent
data[].agentOfficeIdintegerID of the agent's office/branch
data[].agentOfficeNamestringName of the agent's office/branch
data[].agentUserNamestringLogin username of the agent
data[].emailstringAgent's email address
data[].phonestringAgent's contact phone number
requestIdintegerEcho of the internal request ID
successbooleantrue if the call succeeded
errorstringError message if success is false
validationErrorsarrayField-level validation errors if any
{
  "data": [
    {
      "id": 204,
      "name": "Southwest Sales Profile",
      "payoutNumber": "PAY-00441",
      "agentId": 88,
      "agentName": "David Chen",
      "agentOfficeId": 12,
      "agentOfficeName": "Phoenix Regional Office",
      "agentUserName": "dchen",
      "email": "[email protected]",
      "phone": "6025550311"
    }
  ],
  "requestId": 10042,
  "success": true,
  "error": null,
  "validationErrors": []
}

Error Codes

CodeWhen it happens
400Query parameter values are malformed (e.g., non-integer agentId)
401Invalid or missing Basic Auth credentials
403User does not have permission to view the requested agent profile
404No agent profiles found matching the supplied criteria
500Internal server error

Common Mistakes

  • Confusing data[].id (the agent profile ID used in agentProfileId) with data[].agentId (the agent user ID) — only data[].id is the correct value to pass as agentProfileId when creating a merchant.
  • Not filtering by agentId or payoutNumber when the authenticated user has access to many profiles — an unfiltered call may return a large list and cause confusion.
  • Calling this endpoint with a V1 path (/api/v1/agent/profile) — ensure you are using the V2 endpoint when working in the V2 boarding workflow.

Related Endpoints

  • POST /api/v2/merchant/create — Create a new merchant using the agentProfileId returned here
  • POST /api/v2/merchant/submit — Submit the full merchant application
  • GET /api/v2/merchant/info — Retrieve current merchant profile information

Example

curl -X GET "https://hq.staging.netevia.dev/api/v2/agent/profile?agentId=88" \
  -H "Authorization: Basic $(echo -n 'username:password' | base64)" \
  -H "Accept: application/json"
Query Params
int32
string
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