Get member details
Endpoint
Section titled “Endpoint”GET /api/memberReturns the account details of the currently authenticated member. This is useful for verifying your API credentials and retrieving your account information.
Request
Section titled “Request”curl -X GET \ -H "Api-key: YOUR_API_KEY" \ -H "Content-Type: application/json" \ https://www.transdirect.com.au/api/memberResponse
Section titled “Response”A successful response returns a 200 status code with the member’s details.
{ "id": 12345, "company_name": "Example Pty Ltd", "email": "admin@example.com.au", "first_name": "Jane", "last_name": "Smith", "phone": "0412345678", "suburb": "SYDNEY", "postcode": "2000", "state": "NSW", "country": "AU"}Response fields
Section titled “Response fields”| Field | Type | Description |
|---|---|---|
id | integer | Unique member ID |
company_name | string | Company or business name |
email | string | Member’s email address |
first_name | string | First name |
last_name | string | Last name |
phone | string | Contact phone number |
suburb | string | Suburb |
postcode | string | Postcode |
state | string | State or territory (e.g. NSW, VIC, QLD) |
country | string | Country code (e.g. AU) |
Error responses
Section titled “Error responses”| Status code | Meaning |
|---|---|
401 | Unauthorised — invalid credentials or API key |