Skip to main content
GET
/
salesreps
/
{id}
Retrieve a Sales Rep
curl --request GET \
  --url https://commerce.driv.ly/api/salesreps/{id}
{
  "data": {
    "id": "<string>",
    "lastName": "<string>",
    "firstName": "<string>",
    "agent": "<string>",
    "address": "<string>",
    "primaryPhoneNumber": "<string>",
    "primaryEmail": "<string>",
    "emails": [
      "<string>"
    ],
    "phoneNumbers": [
      "<string>"
    ],
    "roles": [
      "<string>"
    ],
    "creditBands": [
      "<string>"
    ],
    "templates": [
      "<string>"
    ],
    "isAcceptingNewLeads": true
  },
  "success": true
}

Path Parameters

id
string
required

Contact is uniquely identified by id

Query Parameters

depth
integer

The number of levels of related objects to include in the response

Response

Sales Rep Found

data
Sales Rep · object
Example:
{
"id": "srep_8f9v2j1kd92j",
"emails": [
"[email protected]",
"[email protected]"
],
"lastName": "Smith",
"firstName": "Alice",
"templates": ["Welcome Template", "Follow-up Template"],
"creditBands": ["Prime", "Subprime"],
"primaryEmail": "[email protected]",
"phoneNumbers": ["+1-555-0123", "+1-555-0456"],
"primaryPhoneNumber": "+1-555-0123",
"isAcceptingNewLeads": true
}
success
boolean