Skip to content

Partner Details

Retrieve detailed information about a specific partner.

WARNING

Requires super-admin role.

Endpoint

INFO

GET /api/v1/dashboard/partners/{partner}

Headers

HeaderValueRequired
Acceptapplication/jsonYes
AuthorizationBearer {token}Yes

Path Parameters

ParameterTypeDescription
partnerintegerPartner ID

Example Request

bash
curl -X GET https://api.daakey.com/api/v1/dashboard/partners/1 \
  -H "Accept: application/json" \
  -H "Authorization: Bearer {token}"

Response

Success (200)

json
{
  "success": true,
  "message": "Partner retrieved",
  "data": {
    "id": 1,
    "name": "Acme Car Rentals",
    "code": "ACME001",
    "email": "contact@acme.com",
    "phone": "+1234567890",
    "address": "123 Business Ave, New York, NY",
    "logo_url": "https://api.daakey.com/storage/partners/1/logo.png",
    "status": "active",
    "settings": {
      "max_agencies": 10,
      "features": ["bookings", "payments", "damage_reports"]
    },
    "stats": {
      "agencies_count": 5,
      "vehicles_count": 120,
      "clients_count": 2500,
      "active_bookings": 45
    },
    "created_at": "2024-01-01T00:00:00Z",
    "updated_at": "2024-01-15T00:00:00Z"
  },
  "request_id": "uuid",
  "timestamp": "2024-01-01T00:00:00.000Z"
}

Error (404)

json
{
  "success": false,
  "message": "Partner not found",
  "data": null,
  "request_id": "uuid",
  "timestamp": "2024-01-01T00:00:00.000Z"
}

Daakey Car Sharing Platform