Get member details
Endpoint
Section titled “Endpoint”GET /api/memberReturns the account details of the currently authenticated member. Useful for verifying credentials and reading credit settings.
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", "contact_name": "Jane Smith", "address": "123 George Street", "suburb": "SYDNEY", "postcode": 2000, "state": "NSW", "phone": "0412345678", "discount_factor": 0, "credit_limit": 0, "credit_limit_available": 0, "charge_type": null, "last_invoice_timestamp": null, "terms": null, "active": 1}Response fields
Section titled “Response fields”| Field | Type | Description |
|---|---|---|
id | integer | Unique member ID |
company_name | string | Company or business name |
contact_name | string | Primary contact name |
address | string | Street address |
suburb | string | Suburb |
postcode | integer | Postcode |
state | string | State or territory (e.g. NSW, VIC, QLD) |
phone | string | Contact phone number |
discount_factor | number | Account discount factor |
credit_limit | number | Credit account limit (0 if none) |
credit_limit_available | number | Remaining credit available |
charge_type | string | null | Charge / billing type when set |
last_invoice_timestamp | string | number | null | Last invoice marker when set |
terms | string | number | null | Payment terms when set |
active | number | string | Account active flag |
Error responses
Section titled “Error responses”| Status code | Meaning |
|---|---|
401 | Unauthorised — invalid credentials or API key |