DrayEasy API v2

DrayEasy API v2


Pickup Number Agent Search

<h2>Overview</h2> <p>The API endpoint is used to fetch pickup number agents by their names. The name parameter allows filtering by the name of the pickup number agent. Replace xx with the actual name you want to search for.</p> <h2>Request</h2> <ul> <li>Method: <strong>GET</strong></li> <li>URI: <code>/pickupNumberAgents?name=xx</code></li> </ul> <h2>Code Example</h2> <pre><code>Request: curl --location 'https://api.drayeasy.com/api/v2/pickupNumberAgents?name=test' \ --header 'Accept: application/json' \ --header 'Content-Type: application/json' \ --header 'Authorization: Bearer xxxxxxxxx' Response: HTTP/1.1 201 OK Content-Type: application/json; charset=utf-8 { &amp;quot;data&amp;quot;: [ { &amp;quot;id&amp;quot;: 1, &amp;quot;name&amp;quot;: &amp;quot;test create pu&amp;quot;, &amp;quot;emails&amp;quot;: [ &amp;quot;email1@agent.com&amp;quot; ], &amp;quot;user_id&amp;quot;: 1, &amp;quot;user&amp;quot;: { &amp;quot;id&amp;quot;: 1, &amp;quot;name&amp;quot;: &amp;quot;Name1&amp;quot;, &amp;quot;company&amp;quot;: { &amp;quot;id&amp;quot;: 1, &amp;quot;name&amp;quot;: &amp;quot;Company1&amp;quot; } } }, { &amp;quot;id&amp;quot;: 4, &amp;quot;name&amp;quot;: &amp;quot;test3&amp;quot;, &amp;quot;emails&amp;quot;: [ &amp;quot;33@q.c&amp;quot;, &amp;quot;44@q.c&amp;quot; ], &amp;quot;user_id&amp;quot;: 1, &amp;quot;user&amp;quot;: { &amp;quot;id&amp;quot;: 1, &amp;quot;name&amp;quot;: &amp;quot;Name1&amp;quot;, &amp;quot;company&amp;quot;: { &amp;quot;id&amp;quot;: 1, &amp;quot;name&amp;quot;: &amp;quot;Company1&amp;quot; } } }, { &amp;quot;id&amp;quot;: 8, &amp;quot;name&amp;quot;: &amp;quot;test Name4&amp;quot;, &amp;quot;emails&amp;quot;: [ &amp;quot;name4@gent.com&amp;quot;, &amp;quot;name4test@gent.com&amp;quot; ], &amp;quot;user_id&amp;quot;: 4, &amp;quot;user&amp;quot;: { &amp;quot;id&amp;quot;: 4, &amp;quot;name&amp;quot;: &amp;quot;Name4&amp;quot;, &amp;quot;company&amp;quot;: { &amp;quot;id&amp;quot;: 1, &amp;quot;name&amp;quot;: &amp;quot;Company1&amp;quot; } } }, { &amp;quot;id&amp;quot;: 9, &amp;quot;name&amp;quot;: &amp;quot;testAPIV2&amp;quot;, &amp;quot;emails&amp;quot;: [ &amp;quot;33@q.c&amp;quot;, &amp;quot;44@q.c&amp;quot; ], &amp;quot;user_id&amp;quot;: 1, &amp;quot;user&amp;quot;: { &amp;quot;id&amp;quot;: 1, &amp;quot;name&amp;quot;: &amp;quot;Name1&amp;quot;, &amp;quot;company&amp;quot;: { &amp;quot;id&amp;quot;: 1, &amp;quot;name&amp;quot;: &amp;quot;Company1&amp;quot; } } }, { &amp;quot;id&amp;quot;: 10, &amp;quot;name&amp;quot;: &amp;quot;test update pu agent&amp;quot;, &amp;quot;emails&amp;quot;: [ &amp;quot;pu1@agent.com&amp;quot;, &amp;quot;pu2@agent.com&amp;quot; ], &amp;quot;user_id&amp;quot;: 1, &amp;quot;user&amp;quot;: { &amp;quot;id&amp;quot;: 1, &amp;quot;name&amp;quot;: &amp;quot;Name1&amp;quot;, &amp;quot;company&amp;quot;: { &amp;quot;id&amp;quot;: 1, &amp;quot;name&amp;quot;: &amp;quot;Company1&amp;quot; } } } ], &amp;quot;links&amp;quot;: { &amp;quot;first&amp;quot;: &amp;quot;https://api.drayeasy.com/api/v2/pickupNumberAgents?page=1&amp;quot;, &amp;quot;last&amp;quot;: &amp;quot;https://api.drayeasy.com/api/v2/pickupNumberAgents?page=1&amp;quot;, &amp;quot;prev&amp;quot;: null, &amp;quot;next&amp;quot;: null }, &amp;quot;meta&amp;quot;: { &amp;quot;current_page&amp;quot;: 1, &amp;quot;from&amp;quot;: 1, &amp;quot;last_page&amp;quot;: 1, &amp;quot;path&amp;quot;: &amp;quot;https://api.drayeasy.com/api/v2/pickupNumberAgents&amp;quot;, &amp;quot;per_page&amp;quot;: 1000, &amp;quot;to&amp;quot;: 5, &amp;quot;total&amp;quot;: 5 } }</code></pre> <h2>Response Fields Description</h2> <table> <thead> <tr> <th>Field</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody> <tr> <td>id</td> <td>Integer</td> <td>The unique identifier for the pickup agent.</td> </tr> <tr> <td>name</td> <td>String</td> <td>The name of the pickup number agent.</td> </tr> <tr> <td>emails</td> <td>Array</td> <td>An array of email addresses associated with the pickup agent.</td> </tr> <tr> <td>user_id</td> <td>Integer</td> <td>The user ID associated with the pickup agent.</td> </tr> <tr> <td>user</td> <td>Object</td> <td>Information about the user associated with the pickup agent, including their ID, name, and company details.</td> </tr> <tr> <td>user.id</td> <td>Integer</td> <td>The user's unique identifier.</td> </tr> <tr> <td>user.name</td> <td>String</td> <td>The user's name.</td> </tr> <tr> <td>user.company</td> <td>Object</td> <td>Information about the company associated with the user, including its ID and name.</td> </tr> <tr> <td>user.company.id</td> <td>Integer</td> <td>The company's unique identifier.</td> </tr> <tr> <td>user.company.name</td> <td>String</td> <td>The name of the company.</td> </tr> </tbody> </table> <h2>User Object</h2> <table> <thead> <tr> <th>Field</th> <th>Description</th> </tr> </thead> <tbody> <tr> <td>name</td> <td>The name of the user.</td> </tr> <tr> <td>email</td> <td>The email address of the user.</td> </tr> <tr> <td>company</td> <td>The company associated with the user.</td> </tr> </tbody> </table>

页面列表

ITEM_HTML