Skip to main content

Catalog API Reference

Backoffice APIs

DomainEndpoints
CarsGET /cars, GET /cars/{id}, PUT /cars/{id}, GET /cars/attributes
BranchesGET /branches, GET /branches/{id}, PUT /branches/{id}
Add-onsGET /add-ons, GET /add-ons/{id}, PUT /add-ons/{id}, sort insurance/extra endpoints
FuelGET /fuels, GET /fuels/{id}, PUT /fuels/{id}
PromotionGET /promotions, GET /promotions/{id}, PUT /promotions/{id}, DELETE /promotions/{id}, upload/sort endpoints
OWRGET /oneway-rentals, POST /oneway-rentals, PUT /oneway-rentals/{id}, DELETE /oneway-rentals/{id}
Images/images/branch/upload, /images/car/upload, /images/promotion/upload, /images/signed-url

Public APIs

MethodPathรายละเอียด
GET/public/page-banner-imagesBanner หน้า public
GET/public/carousel-imagesCarousel หน้าแรก
GET/public/promotionsPromotion public
GET/public/branchesBranch public
GET/public/search-attributesAttribute สำหรับ search
POST/public/searchSearch car availability
GET/public/add-onsAdd-on public
POST/public/signed-urlSigned URL สำหรับอ่านไฟล์
POST/public/price/quoteQuote ราคา
POST/public/request-carRequest car จาก customer

Add-on sorting APIs

MethodPathรายละเอียด
GET/add-ons/sort/insurancesดึงลำดับ insurance add-ons
PUT/add-ons/sort/insurancesอัปเดตลำดับ insurance add-ons
GET/add-ons/sort/extrasดึงลำดับ extra add-ons
PUT/add-ons/sort/extrasอัปเดตลำดับ extra add-ons

OWR APIs

MethodPathรายละเอียด
GET/oneway-rentalsList OWR
POST/oneway-rentalsCreate OWR
GET/oneway-rentals/branchesBranch list สำหรับ OWR
GET/oneway-rentals/pickup-locationsPickup location filter/list
GET/oneway-rentals/{id}OWR detail
PUT/oneway-rentals/{id}Update OWR
DELETE/oneway-rentals/{id}Delete OWR

Image APIs

MethodPathรายละเอียด
POST/images/branch/uploadUpload branch image
POST/images/car/uploadUpload car image
POST/images/promotion/uploadUpload promotion image
POST/images/terms-and-policy-for-register/uploadUpload image ใน register policy body
POST/images/signed-urlSigned URL สำหรับ private image
POST/public/signed-urlSigned URL สำหรับ public image