Leave 1

PATCH /trip/leave

Query parameters

  • id string Required

Responses

PATCH /trip/leave
curl \
 --request PATCH 'https://sandbox.serchservice.com/api/v1/trip/leave?id=string'
Response examples (200)
{
  "status": "100 CONTINUE",
  "code": 42,
  "message": "string",
  "data": [
    {
      "id": "string",
      "mode": "string",
      "snt": "string",
      "skill": "string",
      "car": "string",
      "category": "string",
      "image": "string",
      "audio": "string",
      "problem": "string",
      "amount": "string",
      "address": "string",
      "placeId": "string",
      "latitude": 42.0,
      "longitude": 42.0,
      "label": "string",
      "status": "ACTIVE",
      "type": "REQUEST",
      "provider": {
        "id": "string",
        "name": "string",
        "avatar": "string",
        "role": "string",
        "category": "string",
        "image": "string",
        "rating": 42.0,
        "phone": "string",
        "bookmark": "string",
        "trip_rating": 42.0
      },
      "user": {
        "id": "string",
        "name": "string",
        "avatar": "string",
        "role": "string",
        "category": "string",
        "image": "string",
        "rating": 42.0,
        "phone": "string",
        "bookmark": "string",
        "trip_rating": 42.0
      },
      "shared": {
        "id": 42,
        "category": "string",
        "status": "ACTIVE",
        "authentication": "string",
        "profile": {
          "id": "string",
          "name": "string",
          "avatar": "string",
          "role": "string",
          "category": "string",
          "image": "string",
          "rating": 42.0,
          "phone": "string",
          "bookmark": "string",
          "trip_rating": 42.0
        },
        "timelines": [
          {
            "status": "REQUESTED",
            "header": "string",
            "description": "string",
            "label": "string",
            "is_over": true,
            "created_at": "2025-05-04T09:42:00Z",
            "updated_at": "2025-05-04T09:42:00Z"
          }
        ],
        "location": {
          "latitude": 42.0,
          "longitude": 42.0,
          "bearing": 42.0,
          "place": "string"
        },
        "show_cancel": true,
        "show_auth": true,
        "show_end": true,
        "show_share": true,
        "show_grant": true,
        "show_deny": true,
        "show_leave": true,
        "show_notify_on_my_way": true,
        "show_notify_arrival": true,
        "phone_number": "string",
        "first_name": "string",
        "last_name": "string",
        "cancel_reason": "string",
        "is_provider": true
      },
      "timelines": [
        {
          "status": "REQUESTED",
          "header": "string",
          "description": "string",
          "label": "string",
          "is_over": true,
          "created_at": "2025-05-04T09:42:00Z",
          "updated_at": "2025-05-04T09:42:00Z"
        }
      ],
      "quotations": [
        {
          "id": 42,
          "amount": "string",
          "account": "string",
          "name": "string",
          "avatar": "string",
          "rating": 42.0,
          "distance": "string"
        }
      ],
      "authentication": "string",
      "location": {
        "latitude": 42.0,
        "longitude": 42.0,
        "bearing": 42.0,
        "place": "string"
      },
      "show_cancel": true,
      "show_auth": true,
      "show_end": true,
      "show_share": true,
      "show_grant": true,
      "show_deny": true,
      "show_leave": true,
      "show_notify_on_my_way": true,
      "show_notify_arrival": true,
      "requested_id": "string",
      "is_provider": true,
      "waiting_for_quotation_response": true,
      "try_service_payment_again": true,
      "service_fee": "string",
      "user_share_fee": "string",
      "pending_payment_data": {
        "authorization_url": "string",
        "access_code": "string",
        "reference": "string"
      },
      "try_payment_again": true,
      "shopping_location": {
        "address": "string",
        "latitude": 42.0,
        "longitude": 42.0,
        "place_id": "string"
      },
      "shopping_items": [
        {
          "id": 42,
          "item": "string",
          "quantity": 42,
          "amount": "string",
          "slip": "string"
        }
      ],
      "total_amount": 42,
      "total_shopping_amount": "string",
      "total_amount_spent_in_shopping": "string",
      "created_at": "2025-05-04T09:42:00Z",
      "updated_at": "2025-05-04T09:42:00Z"
    }
  ]
}