Introduction
Comprehensive API documentation for the AutoConnect platform. This documentation covers all REST API endpoints, integration flows with CRM/DMS systems (Keyloop, Zoho, SAP), vehicle synchronization, payment gateways, and lead management.
Welcome to AutoConnect API
This documentation provides all the information you need to integrate with the AutoConnect platform.
Architecture Overview
AutoConnect uses a strategy-based architecture for all external integrations. Each integration type (CRM, DMS, Payment, SMS) follows the same pattern:
- Strategy Interface — Defines the contract for all providers
- Strategy Factory — Resolves the correct provider based on client configuration
- Strategy Implementations — Provider-specific logic (Keyloop, Zoho, SAP, etc.)
Supported Integrations
| Integration | Supported Providers |
|---|---|
| CRM / DMS | Keyloop, Zoho, MYNM, HConnect, SAP (planned) |
| Vehicle Sync | Keyloop (API), Excel (FTP/Google Drive), SAP (planned) |
| Payment Gateway | Fawry, AlRajhi, HyperPay |
| SMS | Dewan, Mobishatra, Taqnyat, Unifconic, Vodafone |
Integration Lifecycle
- Lead Created → Synced to CRM via
syncLead() - User Registered → Synced to CRM via
createCustomer() - Order Confirmed → Synced to DMS via
createSalesOrder()+reserveVehicle() - Order Cancelled → Synced to DMS via
cancelSalesOrder()+cancelVehicleReservation() - Vehicles → Synced from DMS via scheduled
syncVehicles()command
Authenticating requests
To authenticate requests, include an Authorization header with the value "Bearer {YOUR_AUTH_TOKEN}".
All authenticated endpoints are marked with a requires authentication badge in the documentation below.
AutoConnect uses Bearer Token authentication (Laravel Sanctum). Admin endpoints require admin authentication. Public endpoints are marked as unauthenticated.
Vehicle Sync
Vehicle Synchronization
AutoConnect supports automatic vehicle synchronization from external DMS (Dealer Management Systems). The sync is triggered via scheduled Artisan commands and follows a strategy pattern based on client configuration.
Supported Strategies
| Strategy | Provider | Method |
|---|---|---|
keyloop |
Keyloop DMS | API-based, fetches vehicles in paginated batches |
excel |
FTP / SFTP / Google Drive | Reads Excel file with vehicle hierarchy |
sap |
SAP | Planned — not yet implemented |
Sync Flow
- Authenticate with the external system (OAuth2 for Keyloop)
- Fetch vehicles in batches (paginated for Keyloop, full file for Excel)
- Sync hierarchy: Make → Model → Variant → Vehicle
- Sync colors: Exterior and Interior colors are matched by code
- Post-sync cleanup: Vehicles not found in the latest fetch are marked unavailable
Artisan Commands
php artisan sync:keyloop-vehicles— Sync from Keyloop APIphp artisan sync:showrooms-vehicles— Sync from Excel/FTP source
Configuration
Vehicle sync is configured per-client in the client config under integration:
{
"integration": {
"provider": "keyloop",
"config": {
"base_url": "https://api.keyloop.com",
"enterprise_id": "your-enterprise-id",
"store_id": "your-store-id",
"username": "api-user",
"password": "api-password",
"sync_prices": true,
"request_delay_ms": 200
}
}
}
Keyloop Vehicle Sync
Syncs vehicles from Keyloop DMS API. The process fetches all vehicles, syncs the complete hierarchy (Make → Model → Variant → Vehicle → Colors), and handles post-sync cleanup.
Authentication: OAuth2 with username/password credentials, token cached for reuse.
Batch Processing: Vehicles are processed in chunks to avoid memory issues and API rate limits.
Example request:
curl --request POST \
"http://localhost/internal/integration/sync-vehicles" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"enterprise_id\": \"ent-12345\",
\"store_id\": \"store-001\"
}"
const url = new URL(
"http://localhost/internal/integration/sync-vehicles"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"enterprise_id": "ent-12345",
"store_id": "store-001"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200, Successful sync response):
{
"success": true,
"message": "Keyloop vehicle sync completed successfully",
"data": {
"synced_count": 150,
"created": 12,
"updated": 138,
"errors": 0
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Excel Vehicle Sync (FTP/Google Drive)
Syncs vehicles from an Excel file hosted on FTP, SFTP, or Google Drive.
Supported Drivers: ftp, sftp, google (Google Drive)
Excel File Format
The Excel file must follow this column structure:
| Column | Index | Description |
|---|---|---|
| Make Code | 0 | Vehicle make code |
| Make Name | 1 | Vehicle make name |
| Model Code | 2 | Vehicle model code |
| Model Name | 3 | Vehicle model name |
| Variant Code | 4 | Vehicle variant code |
| Variant Name | 5 | Vehicle variant description |
| VIN | 6 | Vehicle VIN |
| Chassis | 7 | Chassis number |
| Model Year | 8 | Manufacturing year |
| Exterior Code | 9 | Exterior color code |
| Exterior Name | 10 | Exterior color name |
| Interior Code | 11 | Interior color code |
| Interior Name | 12 | Interior color name |
| Price | 13 | Vehicle price |
Configuration
{
"integration": {
"provider": "excel",
"config": {
"driver": "ftp",
"host": "ftp.example.com",
"username": "user",
"password": "pass",
"file_name": "vehicle-hierarchy-import.xlsx",
"sync_prices": true
}
}
}
Example request:
curl --request POST \
"http://localhost/internal/integration/sync-vehicles-excel" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/internal/integration/sync-vehicles-excel"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Example response (200, Successful sync response):
{
"success": true,
"message": "Excel vehicle hierarchy synced successfully",
"data": {
"synced_count": 200,
"created": 50,
"updated": 150
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
CRM Lead Sync
CRM Lead Synchronization
When a lead is created in AutoConnect (via form submission), it is automatically synced to the configured CRM system. The CRM provider is resolved from client configuration using the Strategy Factory pattern.
Supported CRM Strategies for Leads
| Strategy | Provider | Endpoint |
|---|---|---|
zoho |
Zoho CRM | crm/v5/Leads (sales) or Zoho Desk (tickets) |
keyloop |
Keyloop DMS | v1/leads/sales-lead |
mynm |
MYNM Lead API | Custom lead API with city/form type mapping |
hconnect |
HConnect Lead Basket | Lead Basket API with X-API-Key auth |
Lead Creation Flow
- Lead submitted via form (General Form or Variant Form)
- Lead saved to local database via
LeadService::create() - If no
provider_lead_idexists, sync to primary CRM viasyncToPrimaryCrm() - If client is an Analytics Hub, also sync to sub-clients via
syncToSubClients()
CRM Configuration
{
"crm": {
"provider": "zoho",
"config": {
"base_url": "https://www.zohoapis.com",
"client_id": "your-client-id",
"client_secret": "your-client-secret",
"refresh_token": "your-refresh-token",
"layout_id": "layout-id"
}
}
}
Zoho CRM Lead Sync
Syncs leads to Zoho CRM. Sales-related forms are sent to the Zoho CRM Leads API (crm/v5/Leads),
while non-sales forms (complaints, service requests) are routed to Zoho Desk as support tickets.
Authentication: OAuth2 with refresh token, cached access token with auto-retry on expiry.
Form Routing Logic
| Form Type | Destination | Enquiry Type |
|---|---|---|
| Test Drive, Quote, Offer | Zoho CRM Leads | Sales Lead |
| Complaint, Service Request | Zoho Desk Tickets | Support Ticket |
| Newsletter, Career | Skipped | — |
Example request:
curl --request POST \
"http://localhost/internal/crm/sync-lead" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"first_name\": \"Ahmed\",
\"last_name\": \"Al-Rashid\",
\"email\": \"ahmed@example.com\",
\"mobile\": \"+966501234567\",
\"type\": 1,
\"model\": \"Tucson\",
\"city\": \"Riyadh\",
\"message\": \"I\'m interested in a test drive\"
}"
const url = new URL(
"http://localhost/internal/crm/sync-lead"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"first_name": "Ahmed",
"last_name": "Al-Rashid",
"email": "ahmed@example.com",
"mobile": "+966501234567",
"type": 1,
"model": "Tucson",
"city": "Riyadh",
"message": "I'm interested in a test drive"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200, Successful Zoho CRM lead sync):
{
"error": false,
"data": {
"data": [
{
"status": "success",
"details": {
"id": "5842000000123456"
}
}
],
"leadId": "5842000000123456"
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Keyloop Lead Sync
Syncs leads to Keyloop DMS via the v1/leads/sales-lead endpoint.
Authentication: OAuth2 with username/password, token cached with auto-retry.
Lead Payload Mapping
The lead data is mapped to Keyloop's expected format including:
- Customer information (name, email, phone)
- Vehicle interest (make, model, variant)
- Lead source and request type
- Showroom/location data
Example request:
curl --request POST \
"http://localhost/internal/crm/sync-lead-keyloop" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"first_name\": \"Ahmed\",
\"last_name\": \"Al-Rashid\",
\"email\": \"ahmed@example.com\",
\"mobile\": \"+966501234567\",
\"vehicle_model_id\": 5
}"
const url = new URL(
"http://localhost/internal/crm/sync-lead-keyloop"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"first_name": "Ahmed",
"last_name": "Al-Rashid",
"email": "ahmed@example.com",
"mobile": "+966501234567",
"vehicle_model_id": 5
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200, Successful Keyloop lead sync):
{
"error": false,
"data": {
"leadId": "KL-LEAD-12345",
"status": "created"
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
MYNM Lead Sync
Syncs leads to the MYNM (Mohammed Yousuf Naghi Motors) Lead API.
Authentication: API token-based.
Special Mappings
- Page Type: Form types are mapped to MYNM-specific page types (e.g., "Request a Test Drive", "Request a Quote", "Fleet Sales")
- City Mapping: Cities are mapped to MYNM-accepted values (e.g., "Jeddah", "Makkah", "Medina")
- Mobile Format: Phone numbers are formatted with country code validation
- Page Sub: Determined by priority:
utm_campaign> offer category >lead_enquiry_sub_source
Example request:
curl --request POST \
"http://localhost/internal/crm/sync-lead-mynm" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"first_name\": \"Ahmed\",
\"last_name\": \"\",
\"email\": \"ahmed@example.com\",
\"mobile\": \"0501234567\"
}"
const url = new URL(
"http://localhost/internal/crm/sync-lead-mynm"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"first_name": "Ahmed",
"last_name": "",
"email": "ahmed@example.com",
"mobile": "0501234567"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200, Successful MYNM lead sync):
{
"error": false,
"data": {
"leadId": "MYNM-12345"
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
HConnect Lead Basket Sync
Syncs leads to HConnect Lead Basket API for sub-client lead distribution.
Authentication: X-API-Key header
Payload Fields
| Field | Source | Required |
|---|---|---|
firstName |
first_name or name |
Yes |
lastName |
last_name |
Yes |
phone |
mobile or phone |
Yes |
email |
email |
Yes |
city |
city.name.en or city (string) |
Yes |
model |
vehicle_model.display_name.en or model |
No |
source |
lead_enquiry_source |
No |
utm_source |
From request input | No |
utm_medium |
From request input | No |
utm_campaign |
From request input | No |
Configuration
{
"crm": {
"provider": "hconnect",
"config": {
"url": "https://api.hconnect.com/lead-basket",
"api_key": "your-api-key"
}
}
}
Example request:
curl --request POST \
"http://localhost/internal/crm/sync-lead-hconnect" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"firstName\": \"Ahmed\",
\"lastName\": \"Al-Rashid\",
\"phone\": \"+966501234567\",
\"email\": \"ahmed@example.com\",
\"city\": \"Riyadh\",
\"model\": \"Tucson\"
}"
const url = new URL(
"http://localhost/internal/crm/sync-lead-hconnect"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"firstName": "Ahmed",
"lastName": "Al-Rashid",
"phone": "+966501234567",
"email": "ahmed@example.com",
"city": "Riyadh",
"model": "Tucson"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200, Successful HConnect lead sync):
{
"error": false,
"data": {
"leadId": "HC-12345",
"response": {
"id": "HC-12345",
"status": "received"
}
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Catalogue Discovery
Catalogue Information Architecture
The discovery experience allows users to browse the complete vehicle catalogue with a structured hierarchical approach: Brand → Model → Variant → Configuration.
User Journey: Rich Exploration
- Landing: Featured models across different categories (SUV, Sedan, Electric).
- Model List: Browse available models with "Price From" and standard features.
- Model Detail: High-definition rich media, 360 views (if available), and comprehensive technical specifications.
- CTA Strategy: Dynamic CTAs ("Configur & Buy", "Enquire", "Test Drive") based on inventory availability.
List Vehicle Models
Retrieves all available vehicle models with starting prices, high-res images, and summary metadata.
Example request:
curl --request GET \
--get "http://localhost/api/vehicle-models" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/vehicle-models"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200, Success):
{
"data": [
{
"id": 1,
"name": "Model X",
"slug": "model-x",
"price_from": 120000,
"currency": "EGP",
"media": {
"thumbnail": "https://cdn.autoconnect.io/media/models/x_thumb.jpg",
"hero": "https://cdn.autoconnect.io/media/models/x_hero.jpg",
"gallery": [
"https://cdn.autoconnect.io/media/models/x_ext_1.jpg",
"https://cdn.autoconnect.io/media/models/x_int_1.jpg"
]
},
"key_specs": [
{
"label": "Engine",
"value": "1.6L Turbo"
},
{
"label": "Power",
"value": "180 HP"
}
]
}
]
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Vehicle Configurator
Guided Step-by-Step Configurator
The configurator allows for deep personalization of the chosen variant, validating every choice against live stock and business rules.
Configuration Steps
- Step 1: Exterior: High-resolution paint selection.
- Step 2: Interior: Upholstery, trim materials, and cabin tech options.
- Step 3: Accessories & Protection:
- Genuine Accessories: Floor mats, roof racks, styling kits.
- Protection Plans: Ceramic coating, tinting, paint protection film.
- Service Packages: Extended maintenance and warranty extensions.
- Step 4: Insurance: (Optional) Preliminary insurance quote based on vehicle value.
Stock Validation & Lead Times
The system distinguishes between In-Stock (available at specific showrooms) and Custom Order (factory lead times).
Validate/Save Configuration
Processes selections for colors, accessories, and protection plans, returning a final price and stock status.
Example request:
curl --request POST \
"http://localhost/api/variants/25/configure" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"exterior_color_id\": 5,
\"interior_color_id\": 3,
\"accessories\": [
101,
102
],
\"protection_plans\": [
201
],
\"insurance_opt_in\": true
}"
const url = new URL(
"http://localhost/api/variants/25/configure"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"exterior_color_id": 5,
"interior_color_id": 3,
"accessories": [
101,
102
],
"protection_plans": [
201
],
"insurance_opt_in": true
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200, Configuration valid):
{
"success": true,
"data": {
"configuration_id": "CFG_99827",
"stock_status": "In-Stock",
"availability_node": "Cairo North Showroom",
"estimated_delivery": "3-5 Working Days",
"pricing": {
"base_price": 1150000,
"color_premium": 15000,
"accessories_total": 8500,
"protection_total": 12000,
"insurance_estimate": 4500,
"total_order_value": 1190000,
"currency": "EGP"
}
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Test Drive Booking
Comprehensive Booking Lifecycle
A digitized engine for scheduling vehicle experiences with location intelligence and secure verification.
Booking Types
- Branch-Based: Experience the vehicle at a specific showroom.
- Home Delivery: Geofenced service where the vehicle is brought to the customer's doorstep.
Strategic Workflow
- Selection: Choose preferred model/variant and location.
- Verification (OTP): Customers verify their identity via OTP during the booking flow.
- Real-Time Slots: Direct integration with showroom staff and demonstrator vehicle availability.
- Lifecycle Management:
- Reminders: Automated SMS/Email alerts (24h and 1h before).
- Self-Service: Dedicated portal for cancelling or rescheduling without agent intervention.
- Status Tracking: "Booking Request" → "Confirmed" → "Demonstrator Assigned" → "In-Progress" → "Completed".
Create Booking
requires authentication
Initiates a test drive request, handles document verification, and triggers identity OTP.
Example request:
curl --request POST \
"http://localhost/api/test-drive/book" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"variant_id\": 25,
\"mode\": \"home\",
\"location_id\": 102,
\"preferred_slot\": {
\"date\": \"2025-04-15\",
\"time\": \"10:30\"
},
\"otp_code\": \"9827\"
}"
const url = new URL(
"http://localhost/api/test-drive/book"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"variant_id": 25,
"mode": "home",
"location_id": 102,
"preferred_slot": {
"date": "2025-04-15",
"time": "10:30"
},
"otp_code": "9827"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200, Booking successful):
{
"success": true,
"data": {
"booking_reference": "TDX-2025-001",
"status": "Confirmed",
"management_url": "https://autoconnect.io/my-bookings/TDX-2025-001",
"demonstrator_info": {
"name": "John Doe",
"contact": "+201002223344"
}
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Reschedule/Cancel Booking
requires authentication
Updates the date/time or cancels an existing booking through the self-service lifecycle.
Example request:
curl --request PUT \
"http://localhost/api/test-drive/bookings/TDX-2025-001/manage" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"action\": \"reschedule\",
\"new_slot\": {
\"date\": \"2025-04-16\",
\"time\": \"11:00\"
}
}"
const url = new URL(
"http://localhost/api/test-drive/bookings/TDX-2025-001/manage"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"action": "reschedule",
"new_slot": {
"date": "2025-04-16",
"time": "11:00"
}
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200, Update processed):
{
"success": true,
"message": "Booking successfully rescheduled."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Leads
APIs for managing leads, assigning sales staff, and exporting lead data. Leads are automatically synced to the configured CRM system upon creation.
Export leads
requires authentication
Exports all leads as a CSV file download.
Example request:
curl --request GET \
--get "http://localhost/api/admin/leads/export" \
--header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/leads/export"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
List all leads
requires authentication
Returns a paginated list of all leads with assigned sales information.
Example request:
curl --request GET \
--get "http://localhost/api/admin/leads" \
--header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/leads"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200, Success):
{
"data": [
{
"id": 1,
"first_name": "Ahmed",
"last_name": "Al-Rashid",
"email": "ahmed@example.com",
"mobile": "+966501234567",
"provider_lead_id": "ZOHO-12345",
"assigned_sales": {
"id": 2,
"name": "Sales Rep"
}
}
]
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Create a new lead
requires authentication
Creates a lead and automatically syncs it to the configured CRM (Zoho/Keyloop/MYNM/HConnect).
Example request:
curl --request POST \
"http://localhost/api/admin/leads" \
--header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"first_name\": \"b\",
\"last_name\": \"n\",
\"email\": \"ashly64@example.com\",
\"mobile\": \"architecto\"
}"
const url = new URL(
"http://localhost/api/admin/leads"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"first_name": "b",
"last_name": "n",
"email": "ashly64@example.com",
"mobile": "architecto"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200, Success):
{
"data": {
"id": 1,
"first_name": "Ahmed",
"last_name": "Al-Rashid",
"email": "ahmed@example.com",
"mobile": "+966501234567",
"provider_lead_id": "ZOHO-12345",
"assigned_sales": null
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get lead details
requires authentication
Example request:
curl --request GET \
--get "http://localhost/api/admin/leads/architecto" \
--header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/leads/architecto"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200, Success):
{
"data": {
"id": 1,
"first_name": "Ahmed",
"last_name": "Al-Rashid",
"email": "ahmed@example.com",
"mobile": "+966501234567",
"provider_lead_id": "ZOHO-12345",
"assigned_sales": {
"id": 2,
"name": "Sales Rep"
}
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update a lead
requires authentication
Example request:
curl --request PUT \
"http://localhost/api/admin/leads/architecto" \
--header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"first_name\": \"b\",
\"last_name\": \"n\",
\"email\": \"ashly64@example.com\",
\"mobile\": \"architecto\"
}"
const url = new URL(
"http://localhost/api/admin/leads/architecto"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"first_name": "b",
"last_name": "n",
"email": "ashly64@example.com",
"mobile": "architecto"
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200, Success):
{
"data": {
"id": 1,
"first_name": "Ahmed",
"last_name": "Al-Rashid",
"email": "ahmed@example.com",
"mobile": "+966501234567",
"provider_lead_id": "ZOHO-12345",
"assigned_sales": {
"id": 2,
"name": "Sales Rep"
}
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Delete a lead
requires authentication
Example request:
curl --request DELETE \
"http://localhost/api/admin/leads/architecto" \
--header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/leads/architecto"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Example response (200, Success):
{
"message": "Deleted successfully"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/admin/sales-assigned-leads/{salesId}
Example request:
curl --request GET \
--get "http://localhost/api/admin/sales-assigned-leads/architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/sales-assigned-leads/architecto"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Assign leads to sales staff
requires authentication
Assigns one or more leads to a sales representative.
Example request:
curl --request POST \
"http://localhost/api/admin/assign-leads-to-sales" \
--header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"leads_ids\": [
\"architecto\"
],
\"sales_id\": \"architecto\"
}"
const url = new URL(
"http://localhost/api/admin/assign-leads-to-sales"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"leads_ids": [
"architecto"
],
"sales_id": "architecto"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200, Success):
{
"message": "Updated successfully",
"data": [
{
"id": 1,
"first_name": "Ahmed",
"last_name": "Al-Rashid",
"email": "ahmed@example.com",
"mobile": "+966501234567",
"provider_lead_id": "ZOHO-12345",
"assigned_sales": {
"id": 2,
"name": "Sales Rep"
}
}
]
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/admin/remove-leeds-assigned-sales
Example request:
curl --request POST \
"http://localhost/api/admin/remove-leeds-assigned-sales" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"leads_ids\": [
\"architecto\"
]
}"
const url = new URL(
"http://localhost/api/admin/remove-leeds-assigned-sales"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"leads_ids": [
"architecto"
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Checkout & Onboarding
Checkout & Sales-Assisted deals
Seamlessly transitioning customers from a physical showroom experience to a digital checkout.
Sales-Assisted Workflow
- Deal Generation: Sales consultants configure the vehicle, discounts (Stacked Deal), and finance options.
- Digital Deal Link: A secure, unique link is generated and dispatched via SMS/WhatsApp.
- OTP-Secured Access: Upon clicking the link, the customer must verify their identity via OTP to access their personalized deal summary and checkout portal.
Onboarding & KYC Gate
- Profile Completion: Mandatory data capture (National ID, Date of Birth, Address) is enforced before payment can be initiated.
- Identity Verification: Real-time validation of customer information against integration sources (CRM/Government APIs).
Create Personalized Deal Link
requires authentication
Generates a secure deal link for a customer based on a sales-side configuration.
Example request:
curl --request POST \
"http://localhost/api/admin/orders/create-deal-link" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"customer_phone\": \"+201009998877\",
\"configuration_details\": {
\"variant_id\": 25,
\"exterior_color_id\": 5,
\"accessories\": [
101
],
\"discount_amount\": 5000
},
\"deal_notes\": \"Includes free ceramic coating as discussed.\"
}"
const url = new URL(
"http://localhost/api/admin/orders/create-deal-link"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"customer_phone": "+201009998877",
"configuration_details": {
"variant_id": 25,
"exterior_color_id": 5,
"accessories": [
101
],
"discount_amount": 5000
},
"deal_notes": "Includes free ceramic coating as discussed."
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200, Deal link dispatched):
{
"success": true,
"data": {
"deal_id": "DEAL-XA-992",
"link": "https://autoconnect.io/deal/XA992",
"status": "Dispatched"
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Verify Deal & Access Checkout
Verifies the OTP sent to the customer to unlock their personalized deal link.
Example request:
curl --request POST \
"http://localhost/api/checkout/verify-deal" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"deal_id\": \"DEAL-XA-992\",
\"otp_code\": \"1234\"
}"
const url = new URL(
"http://localhost/api/checkout/verify-deal"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"deal_id": "DEAL-XA-992",
"otp_code": "1234"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200, Deal unlocked):
{
"success": true,
"data": {
"token": "deal_access_token_xyz",
"redirect_url": "/checkout/summary"
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Profile Onboarding Gate
requires authentication
Enforces mandatory KYC data capture for the customer profile.
Example request:
curl --request POST \
"http://localhost/api/auth/onboard" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"full_name_en\": \"John Doe\",
\"national_id\": \"29001011234567\",
\"date_of_birth\": \"1990-01-01\",
\"address\": \"Heliopolis, Cairo, Egypt\"
}"
const url = new URL(
"http://localhost/api/auth/onboard"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"full_name_en": "John Doe",
"national_id": "29001011234567",
"date_of_birth": "1990-01-01",
"address": "Heliopolis, Cairo, Egypt"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200, Onboarding complete):
{
"success": true,
"message": "Onboarding successful. Proceed to payment selection.",
"is_ready_for_checkout": true
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Orders
APIs for creating and managing vehicle orders, including user orders, admin orders, payments, and order steps.
List all orders (Admin)
requires authentication
Returns a paginated list of all orders for admin view.
Example request:
curl --request GET \
--get "http://localhost/api/admin/orders" \
--header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/orders"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200, Success):
{
"data": [
{
"id": 1,
"order_value": 115000,
"paid_amount": 5000,
"vehicle_price": 100000,
"status": "Confirmed",
"status_message": "Order confirmed",
"date": "Saturday, March 1, 2025",
"is_payable": false,
"trans_id": "TXN-12345",
"full_or_partial": "partial",
"amount": 5000,
"delivery_fees": 500,
"vat": 15000,
"fees_breakdown": {
"vehicle_price": 100000,
"vat": 15000,
"delivery": 500
},
"user": {
"id": 1,
"first_name": "Ahmed",
"last_name": "Al-Rashid",
"email": "ahmed@example.com"
}
}
]
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get order details (Admin)
requires authentication
Returns full order details for admin view, including user, vehicle, payments, accessories, and assigned sales.
Example request:
curl --request GET \
--get "http://localhost/api/admin/orders/architecto" \
--header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/orders/architecto"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200, Success):
{
"data": {
"id": 1,
"order_value": 115000,
"paid_amount": 5000,
"vehicle_price": 100000,
"status": "Confirmed",
"status_message": "Order confirmed",
"date": "Saturday 1st of March 2025",
"is_payable": false,
"trans_id": "TXN-12345",
"full_or_partial": "partial",
"amount": 5000,
"delivery_fees": 500,
"city": {
"id": 1,
"name": "Riyadh"
},
"address": "123 Main St",
"warranty": {
"id": 1,
"name": "Extended Warranty",
"price": 5000
},
"warranty_price": 5000,
"user": {
"id": 1,
"first_name": "Ahmed",
"last_name": "Al-Rashid",
"email": "ahmed@example.com",
"mobile": "+966501234567"
},
"vehicle": {
"id": 10,
"chassis": "VIN123456",
"model_year": 2025,
"price": 100000
},
"payments": [
{
"id": 1,
"amount": 5000,
"type": "online",
"status": "success",
"transaction_id": "TXN-12345"
}
],
"accessories": [
{
"id": 1,
"name": "Floor Mats",
"price": 500
}
],
"assigned_sales": {
"id": 2,
"name": "Sales Rep"
},
"fees_breakdown": {
"vehicle_price": 100000,
"vat": 15000,
"delivery": 500
},
"addon_prices_breakdown": []
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Create admin order
requires authentication
Creates an order from the admin panel by assigning a lead to a vehicle. Triggers DMS sync if configured.
Example request:
curl --request POST \
"http://localhost/api/admin/orders" \
--header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"lead_id\": 16,
\"chassis\": \"architecto\",
\"sales_id\": 16,
\"vehicle_price\": 4326.41688,
\"address\": \"architecto\"
}"
const url = new URL(
"http://localhost/api/admin/orders"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"lead_id": 16,
"chassis": "architecto",
"sales_id": 16,
"vehicle_price": 4326.41688,
"address": "architecto"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200, Success):
{
"message": "Vehicle order confirmed successfully",
"data": {
"customer": {
"id": 1,
"first_name": "Ahmed",
"last_name": "Al-Rashid",
"email": "ahmed@example.com"
},
"order": {
"id": 1,
"order_value": 115000,
"status": "Confirmed",
"vehicle_price": 100000
},
"vehicle": {
"id": 10,
"chassis": "VIN123456",
"model_year": 2025
}
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
PUT api/admin/orders/{id}
Example request:
curl --request PUT \
"http://localhost/api/admin/orders/architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"chassis\": \"architecto\",
\"sales_id\": 16,
\"vehicle_price\": 4326.41688,
\"address\": \"architecto\"
}"
const url = new URL(
"http://localhost/api/admin/orders/architecto"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"chassis": "architecto",
"sales_id": 16,
"vehicle_price": 4326.41688,
"address": "architecto"
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Cancel order
requires authentication
Cancels an order and triggers DMS cancellation (cancelSalesOrder() + cancelVehicleReservation()) if configured.
Example request:
curl --request POST \
"http://localhost/api/admin/orders/architecto/cancel" \
--header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/orders/architecto/cancel"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Example response (200, Success):
{
"message": "Vehicle order cancelled successfully"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get reservation amount
Returns the configured reservation (deposit) amount for orders.
Example request:
curl --request GET \
--get "http://localhost/api/orders/reservation-amount" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/orders/reservation-amount"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200, Success):
{
"data": 5000
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Calculate order fees
Calculates the breakdown of fees for a specific variant, including base price, VAT, addon prices, and delivery.
Example request:
curl --request POST \
"http://localhost/api/orders/order-fees-calculates/architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/orders/order-fees-calculates/architecto"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Example response (200, Success):
{
"message": "Order fees calculated successfully",
"data": {
"vehicle_price": 100000,
"vat_rate": 15,
"vat_amount": 15000,
"total": 115000,
"addon_prices": [
{
"name": "Metallic Paint",
"price": 2000
}
],
"delivery_fees": 500
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/orders/{id}/payments
Example request:
curl --request GET \
--get "http://localhost/api/orders/architecto/payments" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/orders/architecto/payments"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/orders/{id}/receipt-pdf
Example request:
curl --request GET \
--get "http://localhost/api/orders/architecto/receipt-pdf" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/orders/architecto/receipt-pdf"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Create a new order
requires authentication
Creates a vehicle order. Returns a payment gateway URL for online payments, or the order resource for bank transfers.
After order creation, the system automatically syncs to the configured DMS (Keyloop/Zoho) via createCustomer() and createSalesOrder().
Example request:
curl --request POST \
"http://localhost/api/orders" \
--header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--form "variant_id=architecto"\
--form "exterior_color_id=architecto"\
--form "interior_color_id=architecto"\
--form "full_or_partial=1"\
--form "type=1"\
--form "user[gender]=architecto"\
--form "user[marital_status]=architecto"\
--form "user[date_of_birth]=2026-03-02"\
--form "user[zip_code]=architecto"\
--form "user[profession]=architecto"\
--form "user[national_id]=architecto"\
--form "address=architecto"\
--form "proof_of_payment=@/private/var/folders/nb/j1p5drzn0jxdjmx_yrrlr7sr0000gn/T/phpku14rqvpur82dBFyD3f" \
--form "national_id_file[]=@/private/var/folders/nb/j1p5drzn0jxdjmx_yrrlr7sr0000gn/T/php53ce1124m4m2euCSYnj" \
--form "national_id_file_back[]=@/private/var/folders/nb/j1p5drzn0jxdjmx_yrrlr7sr0000gn/T/phpisa27du2f43t64VrhQC" \
--form "driving_license[]=@/private/var/folders/nb/j1p5drzn0jxdjmx_yrrlr7sr0000gn/T/php266kjaq1i72i8oiLGXE" \
--form "driving_license_back[]=@/private/var/folders/nb/j1p5drzn0jxdjmx_yrrlr7sr0000gn/T/phpi8641io5vrid3ZGqz6i" const url = new URL(
"http://localhost/api/orders"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
};
const body = new FormData();
body.append('variant_id', 'architecto');
body.append('exterior_color_id', 'architecto');
body.append('interior_color_id', 'architecto');
body.append('full_or_partial', '1');
body.append('type', '1');
body.append('user[gender]', 'architecto');
body.append('user[marital_status]', 'architecto');
body.append('user[date_of_birth]', '2026-03-02');
body.append('user[zip_code]', 'architecto');
body.append('user[profession]', 'architecto');
body.append('user[national_id]', 'architecto');
body.append('address', 'architecto');
body.append('proof_of_payment', document.querySelector('input[name="proof_of_payment"]').files[0]);
body.append('national_id_file[]', document.querySelector('input[name="national_id_file[]"]').files[0]);
body.append('national_id_file_back[]', document.querySelector('input[name="national_id_file_back[]"]').files[0]);
body.append('driving_license[]', document.querySelector('input[name="driving_license[]"]').files[0]);
body.append('driving_license_back[]', document.querySelector('input[name="driving_license_back[]"]').files[0]);
fetch(url, {
method: "POST",
headers,
body,
}).then(response => response.json());Example response (200, Online Payment):
{
"data": {
"payment_link": "https://gateway.example.com/pay/session-12345"
}
}
Example response (200, Bank Transfer):
{
"data": {
"id": 1,
"order_value": 115000,
"paid_amount": 0,
"vehicle_price": 100000,
"status": "Pending Payment",
"status_message": "Awaiting bank transfer confirmation",
"date": "Saturday, March 1, 2025",
"is_payable": true,
"encrypted": "eyJpdiI6...",
"full_or_partial": "full",
"amount": 115000,
"delivery_fees": 500,
"vat": 15000,
"warranty": {
"id": 1,
"name": "Extended Warranty",
"price": 5000
},
"vehicle": {
"id": 10,
"chassis": "VIN123456",
"model_year": 2025
}
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/orders/{id}
Example request:
curl --request GET \
--get "http://localhost/api/orders/architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/orders/architecto"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/orders/{id}/payment
Example request:
curl --request POST \
"http://localhost/api/orders/architecto/payment" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--form "amount=95"\
--form "type=2"\
--form "proof_of_payment=@/private/var/folders/nb/j1p5drzn0jxdjmx_yrrlr7sr0000gn/T/phptq8a0q29872q9ZCky2j" const url = new URL(
"http://localhost/api/orders/architecto/payment"
);
const headers = {
"Content-Type": "multipart/form-data",
"Accept": "application/json",
};
const body = new FormData();
body.append('amount', '95');
body.append('type', '2');
body.append('proof_of_payment', document.querySelector('input[name="proof_of_payment"]').files[0]);
fetch(url, {
method: "POST",
headers,
body,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Payment
Payment Gateways
AutoConnect supports multiple payment gateways for order payments. The gateway is configured per-client.
Supported Payment Gateways
| Gateway | Provider | Region |
|---|---|---|
fawry |
Fawry | Egypt |
alrajhi |
Al Rajhi Bank | Saudi Arabia |
hyperpay |
HyperPay | MENA Region |
Payment Flow
- User creates order with payment type (online or bank transfer)
- System calculates fees (base price + accessories + warranty + delivery - discounts + VAT)
- Payment gateway URL is generated and returned to the frontend
- User is redirected to the gateway to complete payment
- Gateway callback notifies AutoConnect of payment result
- Order status updated based on payment result (confirmed or failed)
Payment Types
| Type | Description |
|---|---|
online |
Redirect to payment gateway (Fawry/AlRajhi/HyperPay) |
bank_transfer |
User uploads proof of bank transfer, admin reviews |
Configuration
{
"payment": {
"provider": "hyperpay",
"config": {
"entity_id": "your-entity-id",
"access_token": "your-access-token",
"base_url": "https://eu-test.oppwa.com"
}
}
}
Initiate Payment
Creates a payment session with the configured gateway and returns a redirect URL for the customer.
Example request:
curl --request POST \
"http://localhost/internal/payment/initiate" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"order_id\": 123,
\"amount\": 115000,
\"type\": \"online\"
}"
const url = new URL(
"http://localhost/internal/payment/initiate"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"order_id": 123,
"amount": 115000,
"type": "online"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200, Payment gateway URL returned):
{
"success": true,
"data": {
"payment_link": "https://gateway.example.com/pay/session-12345"
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
CRM Order Sync
CRM Order Synchronization
When an order is confirmed in AutoConnect, it triggers a series of CRM/DMS sync operations:
- Create Customer →
createCustomer($user)— Registers the customer on the DMS - Create Sales Order →
createSalesOrder($order)— Creates the sales order with vehicle and pricing details - Reserve Vehicle →
reserveVehicle($vehicleId)— Marks the vehicle as reserved on the DMS
When an order is cancelled:
- Cancel Sales Order →
cancelSalesOrder($orderSyncCode)— Cancels the order on the DMS - Release Vehicle →
cancelVehicleReservation($vehicleId)— Releases the vehicle reservation
Strategy Support
| Operation | Keyloop | Zoho | MYNM | HConnect |
|---|---|---|---|---|
createCustomer() |
✅ Full | ⏳ Planned | ❌ N/A | ❌ N/A |
createSalesOrder() |
✅ Full | ⏳ Planned | ❌ N/A | ❌ N/A |
cancelSalesOrder() |
✅ Full | ⏳ Planned | ❌ N/A | ❌ N/A |
reserveVehicle() |
✅ Full | ⏳ Planned | ❌ N/A | ❌ N/A |
cancelVehicleReservation() |
✅ Full | ⏳ Planned | ❌ N/A | ❌ N/A |
getVehicleDetails() |
✅ Full | ⏳ Planned | ❌ N/A | ❌ N/A |
Create Customer on DMS (Keyloop)
Creates a customer record on Keyloop DMS via POST v3/customers.
This is automatically called when a user places an order. The customer record includes:
- Personal details (name, email, phone)
- National ID / Driving License
- Gender, marital status, date of birth
The returned customerId is stored locally as customer_key for future reference.
Example request:
curl --request POST \
"http://localhost/internal/crm/create-customer" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"first_name\": \"Ahmed\",
\"last_name\": \"Al-Rashid\",
\"email\": \"ahmed@example.com\",
\"mobile\": \"+966501234567\",
\"national_id\": \"1234567890\"
}"
const url = new URL(
"http://localhost/internal/crm/create-customer"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"first_name": "Ahmed",
"last_name": "Al-Rashid",
"email": "ahmed@example.com",
"mobile": "+966501234567",
"national_id": "1234567890"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200, Successful customer creation):
{
"error": false,
"data": {
"customer": {
"customerId": "CUST-KL-12345"
}
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Create Sales Order on DMS (Keyloop)
Creates a sales order on Keyloop DMS via POST v1/sales-orders.
Payload Structure
The sales order payload includes:
- Order Information: External reference, order date, sales person, sales type
- Invoice Parties: Main invoice party (customer), payee details
- Contact Parties: Sales contact information
- Vehicles: Vehicle ID, pricing (net, gross, tax), specification (exterior/interior colors)
Price Calculation
- Net Value: Vehicle price
- Tax Rate: 15% (VAT)
- Tax Value: Net × 0.15
- Gross Value: Net + Tax
- Currency: SAR
Example Payload (sent to Keyloop)
{
"orderInformation": {
"externalSalesOrderReference": 123,
"orderDate": "2025-03-02T10:30:00",
"salesPerson": { "salesPersonId": "sp-001", "name": "Sales Rep" },
"salesType": "RETAIL"
},
"invoiceParties": {
"mainInvoiceParty": {
"payeeType": "INDIVIDUAL",
"payee": { "customerId": "CUST-KL-12345", "payeeName": "Ahmed Al-Rashid" }
}
},
"vehicles": [
{
"vehicleId": "VEH-001",
"prices": {
"listPrice": {
"netValue": 100000,
"grossValue": 115000,
"taxValue": 15000,
"taxRate": 15.0,
"currencyCode": "SAR"
}
},
"specification": {
"primaryExteriorColor": { "code": "EXT-BLK" },
"primaryInteriorColor": { "code": "INT-BLK" }
}
}
]
}
Example request:
curl --request POST \
"http://localhost/internal/crm/create-sales-order" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"order_id\": 123,
\"customer_key\": \"CUST-KL-12345\",
\"vehicle_code\": \"VEH-001\"
}"
const url = new URL(
"http://localhost/internal/crm/create-sales-order"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"order_id": 123,
"customer_key": "CUST-KL-12345",
"vehicle_code": "VEH-001"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200, Successful sales order creation):
{
"error": false,
"data": {
"salesOrderId": "SO-KL-67890",
"status": "created"
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Reserve Vehicle on DMS
Reserves a vehicle on the DMS when an order is confirmed. This prevents the vehicle from being sold to another customer.
Keyloop: Sends reservation payload to the vehicle management API.
When withoutRelease is true, the vehicle is reserved without releasing any previous reservation.
Cancel Reservation
When an order is cancelled, cancelVehicleReservation() is called to release the vehicle back to available stock.
Example request:
curl --request POST \
"http://localhost/internal/crm/reserve-vehicle" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"vehicle_id\": \"VEH-001\",
\"without_release\": false
}"
const url = new URL(
"http://localhost/internal/crm/reserve-vehicle"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"vehicle_id": "VEH-001",
"without_release": false
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200, Successful vehicle reservation):
{
"error": false,
"data": {
"vehicleId": "VEH-001",
"status": "reserved"
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Financing (Panel Banks)
Financing Module
The financing module provides a fully digitized end-to-end journey for both Panel (API-integrated) and Non-Panel banks.
Panel Banks (Digital Scoring)
- Offer Configuration: Banks provide dynamic risk-aware offers based on salary, sector (Military/Civil), and nationality.
- Digital Scoring: System performs pre-check scoring to filter ineligible profiles.
- Status Tracking: Real-time updates from bank servers (Under Review, Credit assessment, LPO Issued).
- Vehicle Change Loop: If a customer changes the vehicle after approval, the system manages the additional approval loop with the bank.
Post-Approval Actions
- LPO Verification: User reviews the Letter of Purchase Intent.
- Digital Signatures: Customer completes closing tasks (LPO sign, Cheque upload) without visiting the branch.
Submit Finance Application (Panel Bank)
requires authentication
Submit a full finance application to an integrated panel bank for real-time scoring.
Example request:
curl --request POST \
"http://localhost/api/financing/application/apply" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"order_id\": 123,
\"bank_id\": 5,
\"employment_sector\": \"Public\",
\"monthly_salary\": 15000,
\"down_payment\": 20000
}"
const url = new URL(
"http://localhost/api/financing/application/apply"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"order_id": 123,
"bank_id": 5,
"employment_sector": "Public",
"monthly_salary": 15000,
"down_payment": 20000
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200, Application submitted):
{
"success": true,
"data": {
"application_id": "FIN-5544",
"current_status": "Scoring in Progress",
"estimated_decision_time": "15 minutes"
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Financing (Non-Panel Banks)
Non-Panel Banks (Manual)
Allows users who prefer banks not yet integrated via API to remain within the digital journey.
The Hybrid Journey
- User selects "Personal Loan / Non-Panel Bank".
- User generates a Digital Quotation (Proforma Invoice) to take to their bank.
- After offline approval, user returns to the portal to upload the Approval Document.
- Verification Gate: Admin verifies the document, then releases the Sales Order creation.
Upload Non-Panel Approval
requires authentication
Uploads the approval document obtained from an offline bank to resume the AutoConnect journey.
Example request:
curl --request POST \
"http://localhost/api/financing/non-panel/upload-approval" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
const url = new URL(
"http://localhost/api/financing/non-panel/upload-approval"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Example response (201, Document uploaded):
{
"success": true,
"message": "Approval document submitted for verification.",
"data": {
"status": "Pending Admin Verification"
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Enterprise Trade-In
Enterprise Trade-In Engine
Automates the trade-in experience, allowing customers to offset the cost of their new car using their current vehicle as a single transaction (Key-for-Key swap).
The Evaluation Journey
- Self-Serve Initiation: Customer enters VIN and captures photos via mobile.
- Sales-Assisted: Showroom staff perform a professional evaluation.
- 99-Point Inspection: Visual, structured capture of engine, chassis, and body condition.
- Body Damage Documentation: Identification of scratches/dents on a 3D car map with linked photos.
Valuation & Intelligence
- Service History Intelligence: Instant valuation uplift if verified brand-loyal history is found in the DMS.
- Price Agreement: User reviews the inspection report and digitally "Accepts" the offer.
Start Trade-In Request
requires authentication
Initiates a trade-in evaluation request for a specific VIN.
Example request:
curl --request POST \
"http://localhost/api/trade-in/request" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"vin\": \"WBA1234567890\",
\"mileage\": 45000,
\"brand\": \"Toyota\",
\"model_year\": 2021
}"
const url = new URL(
"http://localhost/api/trade-in/request"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"vin": "WBA1234567890",
"mileage": 45000,
"brand": "Toyota",
"model_year": 2021
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200, Request started):
{
"success": true,
"data": {
"evaluation_id": "EVAL-1122",
"next_step": "capture_photos"
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Submit 99-Point Inspection
requires authentication
Structured submission of vehicle condition data after professional inspection.
Example request:
curl --request POST \
"http://localhost/api/trade-in/evaluation/submit-inspection" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"evaluation_id\": \"EVAL-1122\",
\"engine_score\": 95,
\"body_damage\": [
{
\"panel\": \"front_left_door\",
\"damage\": \"scratch\",
\"severity\": \"low\"
}
],
\"photos\": [
\"https:\\/\\/cdn.com\\/eval\\/p1.jpg\",
\"https:\\/\\/cdn.com\\/eval\\/p2.jpg\"
]
}"
const url = new URL(
"http://localhost/api/trade-in/evaluation/submit-inspection"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"evaluation_id": "EVAL-1122",
"engine_score": 95,
"body_damage": [
{
"panel": "front_left_door",
"damage": "scratch",
"severity": "low"
}
],
"photos": [
"https:\/\/cdn.com\/eval\/p1.jpg",
"https:\/\/cdn.com\/eval\/p2.jpg"
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200, Inspection submitted):
{
"success": true,
"data": {
"preliminary_value": 75000,
"offer_status": "Awaiting Final Review"
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Mechanical & GR Journey
Service Operations & Approval Lifecycle
Digitizing the aftersales journey to ensure transparency, speed, and real-time customer involvement.
Mechanical & General Repair (GR)
- Pre-Visit Parts Sync: Real-time DMS check ensures parts are on-shelf before the appointment is confirmed.
- Digital Walk-Around: Service advisors document vehicle condition (scratches, fuel level, tires) via the mobile app upon arrival.
- Real-Time Tracker: Proactive status updates (Under Diagnosis → Work in Progress → Final Wash).
- Estimate Approval Engine:
- Mandatory Items: Required for vehicle safety/reliability.
- Optional Items: Upsell items (e.g., fuel treatment) that the customer can selectively decline.
- E-Gate Pass: Once the invoice is paid online, a digital QR code is issued for showroom exit.
Body & Paint (BP) Workflow
- Insurance Gateway: Journey pauses for external insurance approval.
- Hidden Damage (Supplements): Recursive approval flows for damage discovered after disassembly.
- Co-Pay Calculation: Automatically splits the bill between the customer (deductibles) and the insurance company.
Submit Digital Walk-Around
requires authentication
Captures initial vehicle condition data and media upon arrival at the service center.
Example request:
curl --request POST \
"http://localhost/api/service/check-in/walk-around" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"appointment_id\": \"APT-8821\",
\"fuel_level\": \"3\\/4\",
\"damage_spots\": [
{
\"area\": \"front_bumper\",
\"severity\": \"minor\"
}
],
\"photos\": [
\"data:image\\/jpeg;base64,...\"
]
}"
const url = new URL(
"http://localhost/api/service/check-in/walk-around"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"appointment_id": "APT-8821",
"fuel_level": "3\/4",
"damage_spots": [
{
"area": "front_bumper",
"severity": "minor"
}
],
"photos": [
"data:image\/jpeg;base64,..."
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200, Check-in complete):
{
"success": true,
"message": "Vehicle checked in. Technician assignment pending.",
"check_in_time": "2025-04-15 09:12:00"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Selective Estimate Approval
requires authentication
Allows the customer to review a detailed quote and selectively approve/decline specific line items.
Example request:
curl --request POST \
"http://localhost/api/service/estimates/QUO-9912/approve" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"selections\": [
{
\"item_id\": 1,
\"action\": \"approve\"
},
{
\"item_id\": 2,
\"action\": \"approve\"
},
{
\"item_id\": 3,
\"action\": \"decline\",
\"reason\": \"Too expensive\"
}
]
}"
const url = new URL(
"http://localhost/api/service/estimates/QUO-9912/approve"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"selections": [
{
"item_id": 1,
"action": "approve"
},
{
"item_id": 2,
"action": "approve"
},
{
"item_id": 3,
"action": "decline",
"reason": "Too expensive"
}
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200, Work authorized):
{
"success": true,
"new_total": 4500,
"status": "APPROVED_PARTIAL",
"next_step": "work_starts"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Real-Time Progress Tracker
requires authentication
Fetches the current live status of the vehicle in the workshop (Diagnosis, Parts, Labor, Washing).
Example request:
curl --request GET \
--get "http://localhost/api/service/status/progress?vin=WBA12345678" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/service/status/progress"
);
const params = {
"vin": "WBA12345678",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200, Status snapshot):
{
"success": true,
"status": "PARTS_FETCHING",
"completion_estimate": "16:30 today",
"live_media": [
"https://cdn.autoconnect.io/workshop/cam1.jpg"
]
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Sales Intelligence
Lead & Sales Intelligence
Consolidated analytics reporting for executive oversight and sales team management.
Reporting Pillars
- Executive Overview: Real-time snapshots of KPI (Gross Orders, Conversion Rate, ATV, Net Sales).
- Lead Funnel (Progression): End-to-end visibility of conversion: Lead → Qualified → Opportunity → Customer.
- Sales Table Fact: A consolidated "Single Source of Truth" deal table containing Price, Interest, Trade-in Credit, and Payout status.
- Performance Tracker: Real-time leaderboards by period, branch, and individual consultant.
- Experience Signals: Customer sentiment and feedback signals across touchpoints.
Executive KPI Dashboard
requires authentication
Retrieves high-level performance metrics for the selected period.
Example request:
curl --request GET \
--get "http://localhost/api/analytics/executive-overview?period=monthly" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/analytics/executive-overview"
);
const params = {
"period": "monthly",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200, KPI Data):
{
"success": true,
"data": {
"gross_orders": 150,
"conversion_rate": 12.5,
"avg_transaction_value": 115000,
"net_sales": 17250000,
"trends": {
"orders": "up",
"revenue": "up"
}
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Used Cars Module
Used Cars Inventory & Discovery
Handles the unique lifecycle of Certified Pre-Owned (CPO) and non-CPO used vehicles.
Features
- Used Ingestion: Creation of unique digital SKUs for used cars, including odometer, wear level, and history.
- 360° Studio Integration: Capture and consistency management for actual vehicle photos (vs stock images).
- Imperfection Mapping: Visual photos linked to specific body damage reports for transparent buying.
- New-to-Used Cross-Linking: Intelligent recommendations for used alternatives based on budget constraints during new car discovery.
Used Car Inventory Ingestion
requires authentication
Creates a unique trackable digital asset for a used vehicle.
Example request:
curl --request POST \
"http://localhost/api/admin/used-cars/ingest" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"vin\": \"WBA778899\",
\"mileage\": 22000,
\"condition_grade\": \"A+\"
}"
const url = new URL(
"http://localhost/api/admin/used-cars/ingest"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"vin": "WBA778899",
"mileage": 22000,
"condition_grade": "A+"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (201, Asset created):
{
"success": true,
"data": {
"sku": "USED-HY-001",
"status": "Awaiting Photography"
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Forms
APIs for managing general forms (inquiries, test drives, complaints, etc.) and retrieving available form types.
List all forms
requires authentication
Returns a paginated list of submitted general forms.
Example request:
curl --request GET \
--get "http://localhost/api/admin/general-forms" \
--header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
const url = new URL(
"http://localhost/api/admin/general-forms"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200, Success):
{
"data": [
{
"id": 1,
"type": "Test Drive",
"form_name": "Request a Test Drive",
"first_name": "Ahmed",
"last_name": "Al-Rashid",
"email": "ahmed@example.com",
"phone": "+966501234567",
"message": "I want to test drive the Tucson",
"enquiry_type": "Sales Lead",
"purchase_plan": "Cash",
"manufacturing_year": "2025",
"vehicleModel": {
"id": 1,
"name": "Tucson"
},
"city": {
"id": 1,
"name": "Riyadh"
},
"created_at": "2025-03-01T10:30:00Z"
}
]
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Export general forms to CSV.
Example request:
curl --request GET \
--get "http://localhost/api/admin/general-forms/export" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/general-forms/export"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get available form types
requires authentication
Returns the list of supported form types for the current client.
Example request:
curl --request GET \
--get "http://localhost/api/admin/general-form-types" \
--header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/general-form-types"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200, Success):
{
"data": [
{
"value": 1,
"label": "Test Drive"
},
{
"value": 2,
"label": "Request a Quote"
},
{
"value": 3,
"label": "Service"
},
{
"value": 4,
"label": "Complaint"
},
{
"value": 5,
"label": "Newsletter"
}
]
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get available form types
requires authentication
Returns the list of supported form types for the current client.
Example request:
curl --request GET \
--get "http://localhost/api/general-form-types" \
--header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/general-form-types"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200, Success):
{
"data": [
{
"value": 1,
"label": "Test Drive"
},
{
"value": 2,
"label": "Request a Quote"
},
{
"value": 3,
"label": "Service"
},
{
"value": 4,
"label": "Complaint"
},
{
"value": 5,
"label": "Newsletter"
}
]
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Submit a general form
requires authentication
Creates a new form submission. The form data is processed and synced to CRM if applicable.
Example request:
curl --request POST \
"http://localhost/api/general-forms" \
--header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--form "type=11"\
--form "first_name=b"\
--form "last_name=n"\
--form "email=ashly64@example.com"\
--form "phone=architecto"\
--form "form_name=architecto"\
--form "message=architecto"\
--form "enquiry_type=architecto"\
--form "category=architecto"\
--form "sub_category=architecto"\
--form "salutation=Mrs"\
--form "subscribe_to_newsletter=1"\
--form "preferred_time_to_call=architecto"\
--form "preferred_contact_method=architecto"\
--form "date=2026-03-02T22:08:08"\
--form "time=22:08:08"\
--form "national_id=architecto"\
--form "manufacturing_year=architecto"\
--form "vin_number=architecto"\
--form "plate_number=architecto"\
--form "plate_alphabets=architecto"\
--form "mileage=architecto"\
--form "purchase_plan=architecto"\
--form "monthly_salary=n"\
--form "service_title=architecto"\
--form "utm_source=b"\
--form "utm_campaign=n"\
--form "utm_medium=g"\
--form "cta_type=z"\
--form "gender=architecto"\
--form "attachments[]=@/private/var/folders/nb/j1p5drzn0jxdjmx_yrrlr7sr0000gn/T/phpb7dfl1c4g855dTyNvvS" const url = new URL(
"http://localhost/api/general-forms"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
};
const body = new FormData();
body.append('type', '11');
body.append('first_name', 'b');
body.append('last_name', 'n');
body.append('email', 'ashly64@example.com');
body.append('phone', 'architecto');
body.append('form_name', 'architecto');
body.append('message', 'architecto');
body.append('enquiry_type', 'architecto');
body.append('category', 'architecto');
body.append('sub_category', 'architecto');
body.append('salutation', 'Mrs');
body.append('subscribe_to_newsletter', '1');
body.append('preferred_time_to_call', 'architecto');
body.append('preferred_contact_method', 'architecto');
body.append('date', '2026-03-02T22:08:08');
body.append('time', '22:08:08');
body.append('national_id', 'architecto');
body.append('manufacturing_year', 'architecto');
body.append('vin_number', 'architecto');
body.append('plate_number', 'architecto');
body.append('plate_alphabets', 'architecto');
body.append('mileage', 'architecto');
body.append('purchase_plan', 'architecto');
body.append('monthly_salary', 'n');
body.append('service_title', 'architecto');
body.append('utm_source', 'b');
body.append('utm_campaign', 'n');
body.append('utm_medium', 'g');
body.append('cta_type', 'z');
body.append('gender', 'architecto');
body.append('attachments[]', document.querySelector('input[name="attachments[]"]').files[0]);
fetch(url, {
method: "POST",
headers,
body,
}).then(response => response.json());Example response (200, Success):
{
"data": {
"id": 1,
"type": "Test Drive",
"form_name": "Request a Test Drive",
"first_name": "Ahmed",
"last_name": "Al-Rashid",
"email": "ahmed@example.com",
"phone": "+966501234567",
"message": "I want to test drive the Tucson",
"enquiry_type": "Sales Lead",
"vehicleModel": {
"id": 1,
"name": "Tucson"
},
"city": {
"id": 1,
"name": "Riyadh"
},
"created_at": "2025-03-01T10:30:00Z"
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Other Endpoints
POST api/admin/download-file
Example request:
curl --request POST \
"http://localhost/api/admin/download-file" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"url\": \"http:\\/\\/www.bailey.biz\\/quos-velit-et-fugiat-sunt-nihil-accusantium-harum.html\"
}"
const url = new URL(
"http://localhost/api/admin/download-file"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"url": "http:\/\/www.bailey.biz\/quos-velit-et-fugiat-sunt-nihil-accusantium-harum.html"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Check the status of a batch job.
Example request:
curl --request GET \
--get "http://localhost/api/admin/jobs/status/architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/jobs/status/architecto"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get all clients with their available environments
Example request:
curl --request GET \
--get "http://localhost/api/admin/clients/available/clients" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/clients/available/clients"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/admin/clients/sub-clients
Example request:
curl --request GET \
--get "http://localhost/api/admin/clients/sub-clients" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/clients/sub-clients"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Resolve and return the current client based on request headers
Example request:
curl --request GET \
--get "http://localhost/api/clients/resolve-client" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/clients/resolve-client"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get all clients with their simple data
Example request:
curl --request GET \
--get "http://localhost/api/clients" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/clients"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get all clients for a specific domain
Example request:
curl --request GET \
--get "http://localhost/api/clients/by-domain" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"domain\": \"architecto\"
}"
const url = new URL(
"http://localhost/api/clients/by-domain"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"domain": "architecto"
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get client data by code
Example request:
curl --request GET \
--get "http://localhost/api/clients/16" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/clients/16"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update client Supports updating multiple sections (information, settings, etc.)
Example request:
curl --request PUT \
"http://localhost/api/clients/16" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"b\",
\"logo\": \"architecto\",
\"social_media\": [
\"http:\\/\\/bailey.com\\/\"
],
\"phone_numbers\": [
{
\"label\": {
\"en\": \"m\",
\"ar\": \"i\"
},
\"number\": \"y\"
}
],
\"addresses\": [
{
\"label\": {
\"en\": \"v\",
\"ar\": \"d\"
},
\"value\": \"architecto\",
\"coordinates\": {
\"latitude\": 4326.41688,
\"longitude\": 4326.41688
}
}
]
}"
const url = new URL(
"http://localhost/api/clients/16"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "b",
"logo": "architecto",
"social_media": [
"http:\/\/bailey.com\/"
],
"phone_numbers": [
{
"label": {
"en": "m",
"ar": "i"
},
"number": "y"
}
],
"addresses": [
{
"label": {
"en": "v",
"ar": "d"
},
"value": "architecto",
"coordinates": {
"latitude": 4326.41688,
"longitude": 4326.41688
}
}
]
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/clients/sub-clients/{clientCode}
Example request:
curl --request GET \
--get "http://localhost/api/clients/sub-clients/architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/clients/sub-clients/architecto"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get both zones and cities for a specific domain
Example request:
curl --request GET \
--get "http://localhost/api/geofencing/zones-and-cities" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"domain\": \"architecto\"
}"
const url = new URL(
"http://localhost/api/geofencing/zones-and-cities"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"domain": "architecto"
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get geo zones for a specific domain
Example request:
curl --request GET \
--get "http://localhost/api/geofencing/zones" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"domain\": \"architecto\"
}"
const url = new URL(
"http://localhost/api/geofencing/zones"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"domain": "architecto"
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get cities for a specific domain
Example request:
curl --request GET \
--get "http://localhost/api/geofencing/cities" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"domain\": \"architecto\"
}"
const url = new URL(
"http://localhost/api/geofencing/cities"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"domain": "architecto"
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Validate if a point is within service area for a domain
Example request:
curl --request POST \
"http://localhost/api/geofencing/validate-location" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"domain\": \"architecto\",
\"latitude\": -89,
\"longitude\": -180
}"
const url = new URL(
"http://localhost/api/geofencing/validate-location"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"domain": "architecto",
"latitude": -89,
"longitude": -180
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Validate if a city code is valid for a domain
Example request:
curl --request POST \
"http://localhost/api/geofencing/validate-city" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"domain\": \"architecto\",
\"city_code\": \"architecto\"
}"
const url = new URL(
"http://localhost/api/geofencing/validate-city"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"domain": "architecto",
"city_code": "architecto"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Validate polygon overlapping or intersection
Example request:
curl --request POST \
"http://localhost/api/geofencing/validate-polygons" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"polygons\": [
{
\"name\": \"architecto\",
\"coordinates\": [
[
4326.41688
]
]
}
]
}"
const url = new URL(
"http://localhost/api/geofencing/validate-polygons"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"polygons": [
{
"name": "architecto",
"coordinates": [
[
4326.41688
]
]
}
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update geo zones for a client
Example request:
curl --request PUT \
"http://localhost/api/geofencing/zones" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"client_code\": \"architecto\",
\"geo_zones\": [
{
\"name\": \"architecto\",
\"type\": \"architecto\",
\"coordinates\": [
[
4326.41688
]
]
}
]
}"
const url = new URL(
"http://localhost/api/geofencing/zones"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"client_code": "architecto",
"geo_zones": [
{
"name": "architecto",
"type": "architecto",
"coordinates": [
[
4326.41688
]
]
}
]
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update cities for a client
Example request:
curl --request PUT \
"http://localhost/api/geofencing/cities" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"client_code\": \"architecto\",
\"cities\": [
{
\"name\": {
\"en\": \"architecto\",
\"ar\": \"architecto\"
},
\"code\": \"architecto\",
\"coordinates\": {
\"latitude\": 4326.41688,
\"longitude\": 4326.41688
},
\"addon_price\": 4326.41688,
\"geo_zones\": [
{
\"name\": \"architecto\",
\"type\": \"architecto\",
\"coordinates\": []
}
]
}
]
}"
const url = new URL(
"http://localhost/api/geofencing/cities"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"client_code": "architecto",
"cities": [
{
"name": {
"en": "architecto",
"ar": "architecto"
},
"code": "architecto",
"coordinates": {
"latitude": 4326.41688,
"longitude": 4326.41688
},
"addon_price": 4326.41688,
"geo_zones": [
{
"name": "architecto",
"type": "architecto",
"coordinates": []
}
]
}
]
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get all analytics data in a single response.
Example request:
curl --request GET \
--get "http://localhost/api/admin/analytics" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"start_date\": \"2026-03-02T22:08:08\",
\"end_date\": \"2026-03-02T22:08:08\",
\"markets\": [
\"architecto\"
],
\"campaign\": \"architecto\",
\"model_name\": \"architecto\",
\"model_family\": \"architecto\",
\"source\": \"architecto\",
\"cta_type\": \"architecto\",
\"form_type\": \"architecto\",
\"offer\": \"architecto\",
\"offer_category\": \"architecto\",
\"lead_channel\": \"architecto\",
\"per_page\": 22,
\"page\": 67
}"
const url = new URL(
"http://localhost/api/admin/analytics"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"start_date": "2026-03-02T22:08:08",
"end_date": "2026-03-02T22:08:08",
"markets": [
"architecto"
],
"campaign": "architecto",
"model_name": "architecto",
"model_family": "architecto",
"source": "architecto",
"cta_type": "architecto",
"form_type": "architecto",
"offer": "architecto",
"offer_category": "architecto",
"lead_channel": "architecto",
"per_page": 22,
"page": 67
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get lead report.
Example request:
curl --request GET \
--get "http://localhost/api/admin/analytics/leads" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"start_date\": \"2026-03-02T22:08:08\",
\"end_date\": \"2026-03-02T22:08:08\",
\"markets\": [
\"architecto\"
],
\"campaign\": \"architecto\",
\"model_name\": \"architecto\",
\"model_family\": \"architecto\",
\"source\": \"architecto\",
\"cta_type\": \"architecto\",
\"form_type\": \"architecto\",
\"offer\": \"architecto\",
\"offer_category\": \"architecto\",
\"lead_channel\": \"architecto\",
\"per_page\": 22,
\"page\": 67
}"
const url = new URL(
"http://localhost/api/admin/analytics/leads"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"start_date": "2026-03-02T22:08:08",
"end_date": "2026-03-02T22:08:08",
"markets": [
"architecto"
],
"campaign": "architecto",
"model_name": "architecto",
"model_family": "architecto",
"source": "architecto",
"cta_type": "architecto",
"form_type": "architecto",
"offer": "architecto",
"offer_category": "architecto",
"lead_channel": "architecto",
"per_page": 22,
"page": 67
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Export lead report.
Example request:
curl --request GET \
--get "http://localhost/api/admin/analytics/leads/export" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"start_date\": \"2026-03-02T22:08:08\",
\"end_date\": \"2026-03-02T22:08:08\",
\"markets\": [
\"architecto\"
],
\"campaign\": \"architecto\",
\"model_name\": \"architecto\",
\"model_family\": \"architecto\",
\"source\": \"architecto\",
\"cta_type\": \"architecto\",
\"form_type\": \"architecto\",
\"offer\": \"architecto\",
\"offer_category\": \"architecto\",
\"lead_channel\": \"architecto\",
\"per_page\": 22,
\"page\": 67
}"
const url = new URL(
"http://localhost/api/admin/analytics/leads/export"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"start_date": "2026-03-02T22:08:08",
"end_date": "2026-03-02T22:08:08",
"markets": [
"architecto"
],
"campaign": "architecto",
"model_name": "architecto",
"model_family": "architecto",
"source": "architecto",
"cta_type": "architecto",
"form_type": "architecto",
"offer": "architecto",
"offer_category": "architecto",
"lead_channel": "architecto",
"per_page": 22,
"page": 67
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get filter options for analytics (markets, campaigns, models, etc.).
Filtered by admin's allowed markets and app locale.
Example request:
curl --request GET \
--get "http://localhost/api/admin/analytics/filter-options" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/analytics/filter-options"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get admin's allowed markets.
Example request:
curl --request GET \
--get "http://localhost/api/admin/analytics/admins/architecto/markets" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/analytics/admins/architecto/markets"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Assign markets to admin.
Example request:
curl --request POST \
"http://localhost/api/admin/analytics/admins/architecto/markets" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"markets\": [
\"b\"
]
}"
const url = new URL(
"http://localhost/api/admin/analytics/admins/architecto/markets"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"markets": [
"b"
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update admin's markets (replace all).
Example request:
curl --request PUT \
"http://localhost/api/admin/analytics/admins/architecto/markets" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"markets\": [
\"b\"
]
}"
const url = new URL(
"http://localhost/api/admin/analytics/admins/architecto/markets"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"markets": [
"b"
]
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Remove specific market from admin.
Example request:
curl --request DELETE \
"http://localhost/api/admin/analytics/admins/architecto/markets/architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/analytics/admins/architecto/markets/architecto"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Display a listing of the resource.
Example request:
curl --request GET \
--get "http://localhost/api/admin/article/articles" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/article/articles"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Store a newly created resource in storage.
Example request:
curl --request POST \
"http://localhost/api/admin/article/articles" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"type\": \"b\",
\"category\": \"n\",
\"date\": \"2026-03-02T22:08:08\",
\"title\": {
\"ar\": \"b\",
\"en\": \"n\"
},
\"summary\": {
\"en\": \"architecto\",
\"ar\": \"architecto\"
},
\"short_description\": {
\"ar\": \"architecto\",
\"en\": \"architecto\"
},
\"description\": {
\"ar\": \"architecto\",
\"en\": \"architecto\"
},
\"reading_time\": {
\"ar\": \"n\",
\"en\": \"g\"
},
\"hidden\": false,
\"show_in_popup\": true,
\"all_brands_popup\": false,
\"vehicle_make_id\": 16,
\"vehicle_model_id\": 16,
\"tags\": [
16
]
}"
const url = new URL(
"http://localhost/api/admin/article/articles"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"type": "b",
"category": "n",
"date": "2026-03-02T22:08:08",
"title": {
"ar": "b",
"en": "n"
},
"summary": {
"en": "architecto",
"ar": "architecto"
},
"short_description": {
"ar": "architecto",
"en": "architecto"
},
"description": {
"ar": "architecto",
"en": "architecto"
},
"reading_time": {
"ar": "n",
"en": "g"
},
"hidden": false,
"show_in_popup": true,
"all_brands_popup": false,
"vehicle_make_id": 16,
"vehicle_model_id": 16,
"tags": [
16
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Show the specified resource.
Example request:
curl --request GET \
--get "http://localhost/api/admin/article/articles/architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/article/articles/architecto"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update the specified resource in storage.
Example request:
curl --request PUT \
"http://localhost/api/admin/article/articles/architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"type\": \"b\",
\"category\": \"n\",
\"date\": \"2026-03-02T22:08:08\",
\"title\": {
\"ar\": \"b\",
\"en\": \"n\"
},
\"summary\": {
\"en\": \"architecto\",
\"ar\": \"architecto\"
},
\"short_description\": {
\"ar\": \"architecto\",
\"en\": \"architecto\"
},
\"description\": {
\"ar\": \"architecto\",
\"en\": \"architecto\"
},
\"reading_time\": {
\"ar\": \"n\",
\"en\": \"g\"
},
\"hidden\": true,
\"show_in_popup\": true,
\"all_brands_popup\": false,
\"vehicle_make_id\": 16,
\"vehicle_model_id\": 16,
\"tags\": [
16
]
}"
const url = new URL(
"http://localhost/api/admin/article/articles/architecto"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"type": "b",
"category": "n",
"date": "2026-03-02T22:08:08",
"title": {
"ar": "b",
"en": "n"
},
"summary": {
"en": "architecto",
"ar": "architecto"
},
"short_description": {
"ar": "architecto",
"en": "architecto"
},
"description": {
"ar": "architecto",
"en": "architecto"
},
"reading_time": {
"ar": "n",
"en": "g"
},
"hidden": true,
"show_in_popup": true,
"all_brands_popup": false,
"vehicle_make_id": 16,
"vehicle_model_id": 16,
"tags": [
16
]
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Remove the specified resource from storage.
Example request:
curl --request DELETE \
"http://localhost/api/admin/article/articles/architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/article/articles/architecto"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Display a listing of the resource.
Example request:
curl --request GET \
--get "http://localhost/api/article/articles" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/article/articles"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Display a single of the resource.
Example request:
curl --request GET \
--get "http://localhost/api/article/articles/architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/article/articles/architecto"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Display the specified resource by slug.
Example request:
curl --request GET \
--get "http://localhost/api/article/articles/show-by-slug/architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/article/articles/show-by-slug/architecto"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/admin/cms/pages
Example request:
curl --request GET \
--get "http://localhost/api/admin/cms/pages" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/cms/pages"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/admin/cms/pages
Example request:
curl --request POST \
"http://localhost/api/admin/cms/pages" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"b\",
\"meta_title\": {
\"en\": \"b\"
},
\"meta_description\": {
\"ar\": \"architecto\"
}
}"
const url = new URL(
"http://localhost/api/admin/cms/pages"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "b",
"meta_title": {
"en": "b"
},
"meta_description": {
"ar": "architecto"
}
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Show the specified resource.
Example request:
curl --request GET \
--get "http://localhost/api/admin/cms/pages/16" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/cms/pages/16"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update the specified resource in storage.
Example request:
curl --request PUT \
"http://localhost/api/admin/cms/pages/architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"b\",
\"meta_title\": {
\"en\": \"b\"
},
\"meta_description\": {
\"ar\": \"architecto\"
}
}"
const url = new URL(
"http://localhost/api/admin/cms/pages/architecto"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "b",
"meta_title": {
"en": "b"
},
"meta_description": {
"ar": "architecto"
}
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Remove the specified resource from storage.
Example request:
curl --request DELETE \
"http://localhost/api/admin/cms/pages/architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/cms/pages/architecto"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Store a newly created resource in storage.
Example request:
curl --request POST \
"http://localhost/api/admin/cms/architecto/architecto/sections" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/cms/architecto/architecto/sections"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update the specified resource in storage.
Example request:
curl --request PUT \
"http://localhost/api/admin/cms/sections/architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/cms/sections/architecto"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "PUT",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Remove the specified resource from storage.
Example request:
curl --request DELETE \
"http://localhost/api/admin/cms/sections/architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/cms/sections/architecto"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/admin/cms/sections/group
Example request:
curl --request POST \
"http://localhost/api/admin/cms/sections/group" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/cms/sections/group"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/admin/cms/sections/types
Example request:
curl --request GET \
--get "http://localhost/api/admin/cms/sections/types" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/cms/sections/types"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/admin/cms/terms-and-conditions
Example request:
curl --request GET \
--get "http://localhost/api/admin/cms/terms-and-conditions" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/cms/terms-and-conditions"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/admin/cms/terms-and-conditions
Example request:
curl --request POST \
"http://localhost/api/admin/cms/terms-and-conditions" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"body\": {
\"en\": \"architecto\",
\"ar\": \"architecto\"
},
\"type\": \"legal\"
}"
const url = new URL(
"http://localhost/api/admin/cms/terms-and-conditions"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"body": {
"en": "architecto",
"ar": "architecto"
},
"type": "legal"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Show the specified resource.
Example request:
curl --request GET \
--get "http://localhost/api/admin/cms/terms-and-conditions/architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/cms/terms-and-conditions/architecto"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
PUT api/admin/cms/terms-and-conditions/{id}
Example request:
curl --request PUT \
"http://localhost/api/admin/cms/terms-and-conditions/architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"body\": {
\"en\": \"architecto\",
\"ar\": \"architecto\"
},
\"type\": \"cookies\"
}"
const url = new URL(
"http://localhost/api/admin/cms/terms-and-conditions/architecto"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"body": {
"en": "architecto",
"ar": "architecto"
},
"type": "cookies"
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Remove the specified resource from storage.
Example request:
curl --request DELETE \
"http://localhost/api/admin/cms/terms-and-conditions/architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/cms/terms-and-conditions/architecto"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/admin/cms/faqs
Example request:
curl --request GET \
--get "http://localhost/api/admin/cms/faqs" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/cms/faqs"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/admin/cms/faqs
Example request:
curl --request POST \
"http://localhost/api/admin/cms/faqs" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/cms/faqs"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Show the specified resource.
Example request:
curl --request GET \
--get "http://localhost/api/admin/cms/faqs/architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/cms/faqs/architecto"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
PUT api/admin/cms/faqs/{id}
Example request:
curl --request PUT \
"http://localhost/api/admin/cms/faqs/architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/cms/faqs/architecto"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "PUT",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Remove the specified resource from storage.
Example request:
curl --request DELETE \
"http://localhost/api/admin/cms/faqs/architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/cms/faqs/architecto"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/admin/cms/career-jobs
Example request:
curl --request GET \
--get "http://localhost/api/admin/cms/career-jobs" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/cms/career-jobs"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/admin/cms/career-jobs
Example request:
curl --request POST \
"http://localhost/api/admin/cms/career-jobs" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"title\": {
\"en\": \"b\",
\"ar\": \"n\"
},
\"description\": {
\"en\": \"architecto\",
\"ar\": \"architecto\"
},
\"content\": {
\"en\": \"architecto\",
\"ar\": \"architecto\"
}
}"
const url = new URL(
"http://localhost/api/admin/cms/career-jobs"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"title": {
"en": "b",
"ar": "n"
},
"description": {
"en": "architecto",
"ar": "architecto"
},
"content": {
"en": "architecto",
"ar": "architecto"
}
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Show the specified resource.
Example request:
curl --request GET \
--get "http://localhost/api/admin/cms/career-jobs/architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/cms/career-jobs/architecto"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
PUT api/admin/cms/career-jobs/{id}
Example request:
curl --request PUT \
"http://localhost/api/admin/cms/career-jobs/architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"title\": {
\"en\": \"b\",
\"ar\": \"n\"
},
\"description\": {
\"en\": \"architecto\",
\"ar\": \"architecto\"
},
\"content\": {
\"en\": \"architecto\",
\"ar\": \"architecto\"
}
}"
const url = new URL(
"http://localhost/api/admin/cms/career-jobs/architecto"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"title": {
"en": "b",
"ar": "n"
},
"description": {
"en": "architecto",
"ar": "architecto"
},
"content": {
"en": "architecto",
"ar": "architecto"
}
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Remove the specified resource from storage.
Example request:
curl --request DELETE \
"http://localhost/api/admin/cms/career-jobs/architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/cms/career-jobs/architecto"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Display a listing of the resource.
Example request:
curl --request GET \
--get "http://localhost/api/admin/cms/categories" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/cms/categories"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Store a newly created resource in storage.
Example request:
curl --request POST \
"http://localhost/api/admin/cms/categories" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--form "name[en]=architecto"\
--form "name[ar]=architecto"\
--form "slug=architecto"\
--form "is_active="\
--form "order=16"\
--form "image=@/private/var/folders/nb/j1p5drzn0jxdjmx_yrrlr7sr0000gn/T/php36jch2g9137e2b8mPc9" const url = new URL(
"http://localhost/api/admin/cms/categories"
);
const headers = {
"Content-Type": "multipart/form-data",
"Accept": "application/json",
};
const body = new FormData();
body.append('name[en]', 'architecto');
body.append('name[ar]', 'architecto');
body.append('slug', 'architecto');
body.append('is_active', '');
body.append('order', '16');
body.append('image', document.querySelector('input[name="image"]').files[0]);
fetch(url, {
method: "POST",
headers,
body,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Display the specified resource.
Example request:
curl --request GET \
--get "http://localhost/api/admin/cms/categories/architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/cms/categories/architecto"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update the specified resource in storage.
Example request:
curl --request PUT \
"http://localhost/api/admin/cms/categories/architecto" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--form "name[en]=architecto"\
--form "name[ar]=architecto"\
--form "slug=architecto"\
--form "is_active="\
--form "order=16"\
--form "image=@/private/var/folders/nb/j1p5drzn0jxdjmx_yrrlr7sr0000gn/T/phpq47imvfmjr8k649bfaf" const url = new URL(
"http://localhost/api/admin/cms/categories/architecto"
);
const headers = {
"Content-Type": "multipart/form-data",
"Accept": "application/json",
};
const body = new FormData();
body.append('name[en]', 'architecto');
body.append('name[ar]', 'architecto');
body.append('slug', 'architecto');
body.append('is_active', '');
body.append('order', '16');
body.append('image', document.querySelector('input[name="image"]').files[0]);
fetch(url, {
method: "PUT",
headers,
body,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Remove the specified resource from storage.
Example request:
curl --request DELETE \
"http://localhost/api/admin/cms/categories/architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/cms/categories/architecto"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Display a listing of the resource.
Store a newly created resource in storage.
Display the specified resource.
Update the specified resource in storage.
Remove the specified resource from storage.
GET api/cms/pages
Example request:
curl --request GET \
--get "http://localhost/api/cms/pages" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/cms/pages"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Show the specified resource.
Example request:
curl --request GET \
--get "http://localhost/api/cms/pages/architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/cms/pages/architecto"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/cms/pages/{page_slug}/{section_name}
Example request:
curl --request GET \
--get "http://localhost/api/cms/pages/architecto/architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/cms/pages/architecto/architecto"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/cms/sections-names
Example request:
curl --request GET \
--get "http://localhost/api/cms/sections-names" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/cms/sections-names"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/cms/career-jobs
Example request:
curl --request GET \
--get "http://localhost/api/cms/career-jobs" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/cms/career-jobs"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Show the specified resource.
Example request:
curl --request GET \
--get "http://localhost/api/cms/career-jobs/architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/cms/career-jobs/architecto"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/cms/terms-and-conditions
Example request:
curl --request GET \
--get "http://localhost/api/cms/terms-and-conditions" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/cms/terms-and-conditions"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Show the specified resource.
Example request:
curl --request GET \
--get "http://localhost/api/cms/terms-and-conditions/architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/cms/terms-and-conditions/architecto"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/cms/categories
Example request:
curl --request GET \
--get "http://localhost/api/cms/categories" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/cms/categories"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/cms/categories/{id}
Example request:
curl --request GET \
--get "http://localhost/api/cms/categories/architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/cms/categories/architecto"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/cms/menu-items
GET api/cms/menu-items/{id}
Display a listing of the resource.
Example request:
curl --request GET \
--get "http://localhost/api/admin/nationalities" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/nationalities"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Store a newly created resource in storage.
Example request:
curl --request POST \
"http://localhost/api/admin/nationalities" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": {
\"en\": \"architecto\",
\"ar\": \"architecto\"
}
}"
const url = new URL(
"http://localhost/api/admin/nationalities"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": {
"en": "architecto",
"ar": "architecto"
}
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Show the specified resource.
Example request:
curl --request GET \
--get "http://localhost/api/admin/nationalities/architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/nationalities/architecto"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update the specified resource in storage.
Example request:
curl --request PUT \
"http://localhost/api/admin/nationalities/architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": {
\"en\": \"architecto\",
\"ar\": \"architecto\"
},
\"code\": \"ngzmiy\"
}"
const url = new URL(
"http://localhost/api/admin/nationalities/architecto"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": {
"en": "architecto",
"ar": "architecto"
},
"code": "ngzmiy"
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
DELETE api/admin/nationalities/{id}
Example request:
curl --request DELETE \
"http://localhost/api/admin/nationalities/16" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/nationalities/16"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/admin/applicable-fs-fees
Example request:
curl --request GET \
--get "http://localhost/api/admin/applicable-fs-fees" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/applicable-fs-fees"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Store a newly created resource in storage.
Example request:
curl --request POST \
"http://localhost/api/admin/work-sectors" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": {
\"en\": \"architecto\",
\"ar\": \"architecto\"
}
}"
const url = new URL(
"http://localhost/api/admin/work-sectors"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": {
"en": "architecto",
"ar": "architecto"
}
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update the specified resource in storage.
Example request:
curl --request PUT \
"http://localhost/api/admin/work-sectors/16" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": {
\"en\": \"architecto\",
\"ar\": \"architecto\"
}
}"
const url = new URL(
"http://localhost/api/admin/work-sectors/16"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": {
"en": "architecto",
"ar": "architecto"
}
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Remove the specified resource from storage.
Example request:
curl --request DELETE \
"http://localhost/api/admin/work-sectors/architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/work-sectors/architecto"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Store a newly created product.
Example request:
curl --request POST \
"http://localhost/api/admin/products" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"service_provider_id\": \"architecto\",
\"name\": {
\"en\": \"b\",
\"ar\": \"n\"
},
\"is_hidden\": true,
\"minimum_age\": 4326.41688,
\"maximum_age\": 4326.41688,
\"duration_from\": 27,
\"duration_to\": 35,
\"admin_fee\": 4326.41688,
\"insurance_fee\": 4326.41688,
\"disclaimer\": [],
\"support_percentage\": 17,
\"conditions\": [
{
\"nationalities\": [
\"architecto\"
],
\"salary_transferred_to\": \"non-payroll\",
\"minimum_salary\": 4326.41688,
\"service_period\": 4326.41688,
\"work_sectors\": [
\"architecto\"
],
\"down_payment_percentage\": 4326.41688,
\"balloon_percentage\": 4326.41688,
\"profit_rate\": 4326.41688
}
]
}"
const url = new URL(
"http://localhost/api/admin/products"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"service_provider_id": "architecto",
"name": {
"en": "b",
"ar": "n"
},
"is_hidden": true,
"minimum_age": 4326.41688,
"maximum_age": 4326.41688,
"duration_from": 27,
"duration_to": 35,
"admin_fee": 4326.41688,
"insurance_fee": 4326.41688,
"disclaimer": [],
"support_percentage": 17,
"conditions": [
{
"nationalities": [
"architecto"
],
"salary_transferred_to": "non-payroll",
"minimum_salary": 4326.41688,
"service_period": 4326.41688,
"work_sectors": [
"architecto"
],
"down_payment_percentage": 4326.41688,
"balloon_percentage": 4326.41688,
"profit_rate": 4326.41688
}
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update the specified product.
Example request:
curl --request PUT \
"http://localhost/api/admin/products/16" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": {
\"en\": \"b\",
\"ar\": \"n\"
},
\"minimum_age\": 4326.41688,
\"maximum_age\": 4326.41688,
\"duration_from\": 27,
\"duration_to\": 35,
\"down_payment\": 4326.41688,
\"is_hidden\": true,
\"support_percentage\": 17,
\"admin_fee\": 4326.41688,
\"insurance_fee\": 4326.41688,
\"disclaimer\": [],
\"conditions\": [
{
\"nationalities\": [
\"architecto\"
],
\"salary_transferred_to\": \"non-payroll\",
\"minimum_salary\": 4326.41688,
\"service_period\": 4326.41688,
\"work_sectors\": [
\"architecto\"
],
\"profit_rate\": 4326.41688,
\"down_payment_percentage\": 4326.41688,
\"balloon_percentage\": 4326.41688
}
]
}"
const url = new URL(
"http://localhost/api/admin/products/16"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": {
"en": "b",
"ar": "n"
},
"minimum_age": 4326.41688,
"maximum_age": 4326.41688,
"duration_from": 27,
"duration_to": 35,
"down_payment": 4326.41688,
"is_hidden": true,
"support_percentage": 17,
"admin_fee": 4326.41688,
"insurance_fee": 4326.41688,
"disclaimer": [],
"conditions": [
{
"nationalities": [
"architecto"
],
"salary_transferred_to": "non-payroll",
"minimum_salary": 4326.41688,
"service_period": 4326.41688,
"work_sectors": [
"architecto"
],
"profit_rate": 4326.41688,
"down_payment_percentage": 4326.41688,
"balloon_percentage": 4326.41688
}
]
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Remove the specified product from storage.
Example request:
curl --request DELETE \
"http://localhost/api/admin/products/16" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/products/16"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/admin/products/clone
Example request:
curl --request POST \
"http://localhost/api/admin/products/clone" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"product_id\": \"architecto\",
\"service_provider_id\": \"architecto\"
}"
const url = new URL(
"http://localhost/api/admin/products/clone"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"product_id": "architecto",
"service_provider_id": "architecto"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Store a newly created resource in storage.
Example request:
curl --request POST \
"http://localhost/api/admin/offers" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": {
\"en\": \"b\",
\"ar\": \"n\"
},
\"code\": \"g\",
\"start_date\": \"2026-03-02T22:08:08\",
\"end_date\": \"2052-03-25\",
\"product_id\": \"architecto\",
\"is_active\": true,
\"has_models\": true,
\"finance_duration\": 22,
\"conditions\": [
{
\"minimum_age\": 84,
\"maximum_age\": 12,
\"admin_fee\": 77,
\"support_percentage\": 0,
\"is_salary_transfered\": false,
\"minimum_salary\": 76,
\"nationality_ids\": [
\"architecto\"
],
\"service_period\": 39,
\"insurance_fee\": 84,
\"profit_rates\": [
{
\"work_sector_id\": \"architecto\",
\"profit_percentage\": 39
}
],
\"down_payment_percentage\": 7,
\"balloon_payment_percentage\": 16
}
]
}"
const url = new URL(
"http://localhost/api/admin/offers"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": {
"en": "b",
"ar": "n"
},
"code": "g",
"start_date": "2026-03-02T22:08:08",
"end_date": "2052-03-25",
"product_id": "architecto",
"is_active": true,
"has_models": true,
"finance_duration": 22,
"conditions": [
{
"minimum_age": 84,
"maximum_age": 12,
"admin_fee": 77,
"support_percentage": 0,
"is_salary_transfered": false,
"minimum_salary": 76,
"nationality_ids": [
"architecto"
],
"service_period": 39,
"insurance_fee": 84,
"profit_rates": [
{
"work_sector_id": "architecto",
"profit_percentage": 39
}
],
"down_payment_percentage": 7,
"balloon_payment_percentage": 16
}
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update the specified resource in storage.
Example request:
curl --request PUT \
"http://localhost/api/admin/offers/16" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": {
\"en\": \"b\",
\"ar\": \"n\"
},
\"code\": \"g\",
\"start_date\": \"2026-03-02T22:08:08\",
\"end_date\": \"2052-03-25\",
\"product_id\": \"architecto\",
\"is_active\": true,
\"has_models\": true,
\"finance_duration\": 22,
\"conditions\": [
{
\"minimum_age\": 84,
\"maximum_age\": 12,
\"admin_fee\": 77,
\"support_percentage\": 0,
\"is_salary_transfered\": false,
\"minimum_salary\": 76,
\"nationality_ids\": [
\"architecto\"
],
\"service_period\": 39,
\"insurance_fee\": 84,
\"profit_rates\": [
{
\"work_sector_id\": \"architecto\",
\"profit_percentage\": 39
}
],
\"down_payment_percentage\": 7,
\"balloon_payment_percentage\": 16
}
]
}"
const url = new URL(
"http://localhost/api/admin/offers/16"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": {
"en": "b",
"ar": "n"
},
"code": "g",
"start_date": "2026-03-02T22:08:08",
"end_date": "2052-03-25",
"product_id": "architecto",
"is_active": true,
"has_models": true,
"finance_duration": 22,
"conditions": [
{
"minimum_age": 84,
"maximum_age": 12,
"admin_fee": 77,
"support_percentage": 0,
"is_salary_transfered": false,
"minimum_salary": 76,
"nationality_ids": [
"architecto"
],
"service_period": 39,
"insurance_fee": 84,
"profit_rates": [
{
"work_sector_id": "architecto",
"profit_percentage": 39
}
],
"down_payment_percentage": 7,
"balloon_payment_percentage": 16
}
]
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Remove the specified resource from storage.
Example request:
curl --request DELETE \
"http://localhost/api/admin/offers/16" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/offers/16"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Display a listing of the resource.
Example request:
curl --request GET \
--get "http://localhost/api/admin/offers" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/offers"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Display the specified offer.
Example request:
curl --request GET \
--get "http://localhost/api/admin/offers/16" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/offers/16"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Display a listing of the resource.
Example request:
curl --request GET \
--get "http://localhost/api/admin/finance-applications" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/finance-applications"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Show the specified resource.
Example request:
curl --request GET \
--get "http://localhost/api/admin/finance-applications/architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/finance-applications/architecto"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
PUT api/admin/finance-applications/{id}/status
Example request:
curl --request PUT \
"http://localhost/api/admin/finance-applications/architecto/status" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"status\": 3
}"
const url = new URL(
"http://localhost/api/admin/finance-applications/architecto/status"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"status": 3
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Display a listing of the resource.
Example request:
curl --request GET \
--get "http://localhost/api/admin/fs-fees" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/fs-fees"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Store a newly created resource in storage.
Example request:
curl --request POST \
"http://localhost/api/admin/fs-fees" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"vehicle_make_id\": \"architecto\",
\"vehicle_model_id\": \"architecto\",
\"vehicle_model_group_id\": \"architecto\",
\"model_year\": 1901,
\"fee\": 84
}"
const url = new URL(
"http://localhost/api/admin/fs-fees"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"vehicle_make_id": "architecto",
"vehicle_model_id": "architecto",
"vehicle_model_group_id": "architecto",
"model_year": 1901,
"fee": 84
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Display the specified resource.
Example request:
curl --request GET \
--get "http://localhost/api/admin/fs-fees/16" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/fs-fees/16"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update the specified resource in storage.
Example request:
curl --request PUT \
"http://localhost/api/admin/fs-fees/16" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"vehicle_make_id\": \"architecto\",
\"vehicle_model_id\": \"architecto\",
\"vehicle_model_group_id\": \"architecto\",
\"model_year\": 1901,
\"fee\": 84
}"
const url = new URL(
"http://localhost/api/admin/fs-fees/16"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"vehicle_make_id": "architecto",
"vehicle_model_id": "architecto",
"vehicle_model_group_id": "architecto",
"model_year": 1901,
"fee": 84
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Remove the specified resource from storage.
Example request:
curl --request DELETE \
"http://localhost/api/admin/fs-fees/16" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/fs-fees/16"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Display the specified resource.
Example request:
curl --request GET \
--get "http://localhost/api/admin/quotations/architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/quotations/architecto"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Remove the specified resource from storage.
Example request:
curl --request DELETE \
"http://localhost/api/admin/quotations/16" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/quotations/16"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Display a listing of the resource.
Example request:
curl --request GET \
--get "http://localhost/api/admin/quotations" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/quotations"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Store a newly created resource in storage.
Example request:
curl --request POST \
"http://localhost/api/admin/quotations" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"vehicle_id\": 4326.41688,
\"product_id\": 4326.41688,
\"service_provider_id\": 4326.41688,
\"offer_id\": 4326.41688,
\"sales_type\": \"iir\",
\"created_by\": 4326.41688,
\"finance_duration\": 16,
\"internal_notes\": \"architecto\",
\"validity_date\": \"2026-03-02T22:08:08\",
\"registration_fee\": 4326.41688,
\"fuel_efficiency_fee\": 4326.41688,
\"plate_fee\": 4326.41688,
\"transportation_fee\": 4326.41688,
\"customer\": {
\"full_name\": {
\"en\": \"architecto\",
\"ar\": \"architecto\"
},
\"address\": {
\"city\": \"architecto\",
\"street\": \"architecto\",
\"apartment_no\": \"architecto\"
},
\"email\": \"zbailey@example.net\",
\"mobile\": \"5642559314\",
\"nationality\": \"architecto\",
\"national_id\": \"ngzmiyvdljnikhwa\",
\"dob\": \"2026-03-02\",
\"gender\": \"female\",
\"zip_code\": \"ykcmyu\",
\"job_title\": \"w\",
\"salary\": 4326.41688,
\"salary_transfer_to\": \"architecto\",
\"service_period\": 4326.41688,
\"salary_transferred_to_id\": \"architecto\",
\"work_sector_id\": \"architecto\",
\"nationality_id\": \"architecto\"
},
\"vehicle_price\": 4326.41688,
\"factory_warranty\": \"architecto\",
\"additional_specs\": \"architecto\"
}"
const url = new URL(
"http://localhost/api/admin/quotations"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"vehicle_id": 4326.41688,
"product_id": 4326.41688,
"service_provider_id": 4326.41688,
"offer_id": 4326.41688,
"sales_type": "iir",
"created_by": 4326.41688,
"finance_duration": 16,
"internal_notes": "architecto",
"validity_date": "2026-03-02T22:08:08",
"registration_fee": 4326.41688,
"fuel_efficiency_fee": 4326.41688,
"plate_fee": 4326.41688,
"transportation_fee": 4326.41688,
"customer": {
"full_name": {
"en": "architecto",
"ar": "architecto"
},
"address": {
"city": "architecto",
"street": "architecto",
"apartment_no": "architecto"
},
"email": "zbailey@example.net",
"mobile": "5642559314",
"nationality": "architecto",
"national_id": "ngzmiyvdljnikhwa",
"dob": "2026-03-02",
"gender": "female",
"zip_code": "ykcmyu",
"job_title": "w",
"salary": 4326.41688,
"salary_transfer_to": "architecto",
"service_period": 4326.41688,
"salary_transferred_to_id": "architecto",
"work_sector_id": "architecto",
"nationality_id": "architecto"
},
"vehicle_price": 4326.41688,
"factory_warranty": "architecto",
"additional_specs": "architecto"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/admin/quotations/{quotation}/download-pdf
Example request:
curl --request GET \
--get "http://localhost/api/admin/quotations/architecto/download-pdf" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/quotations/architecto/download-pdf"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/admin/quotations/{quotation}/upload-signed
Example request:
curl --request POST \
"http://localhost/api/admin/quotations/architecto/upload-signed" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--form "signed_pdf=@/private/var/folders/nb/j1p5drzn0jxdjmx_yrrlr7sr0000gn/T/phpnrhjvcquis3geOopuqW" const url = new URL(
"http://localhost/api/admin/quotations/architecto/upload-signed"
);
const headers = {
"Content-Type": "multipart/form-data",
"Accept": "application/json",
};
const body = new FormData();
body.append('signed_pdf', document.querySelector('input[name="signed_pdf"]').files[0]);
fetch(url, {
method: "POST",
headers,
body,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Display a listing of templates
Example request:
curl --request GET \
--get "http://localhost/api/admin/templates" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/templates"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Store a newly created template
Example request:
curl --request POST \
"http://localhost/api/admin/templates" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"b\",
\"type\": \"quotation\",
\"service_provider_id\": 16,
\"html_content\": \"architecto\",
\"is_active\": true
}"
const url = new URL(
"http://localhost/api/admin/templates"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "b",
"type": "quotation",
"service_provider_id": 16,
"html_content": "architecto",
"is_active": true
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Display the specified template
Example request:
curl --request GET \
--get "http://localhost/api/admin/templates/architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/templates/architecto"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update the specified template
Example request:
curl --request PUT \
"http://localhost/api/admin/templates/architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"b\",
\"type\": \"quotation\",
\"service_provider_id\": 16,
\"html_content\": \"architecto\",
\"is_active\": false
}"
const url = new URL(
"http://localhost/api/admin/templates/architecto"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "b",
"type": "quotation",
"service_provider_id": 16,
"html_content": "architecto",
"is_active": false
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Remove the specified template
Example request:
curl --request DELETE \
"http://localhost/api/admin/templates/architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/templates/architecto"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get available variables for template type
Example request:
curl --request GET \
--get "http://localhost/api/admin/templates/variables/available" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/templates/variables/available"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Generate documents for a quotation
Example request:
curl --request POST \
"http://localhost/api/admin/documents/architecto/generate" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/documents/architecto/generate"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get documents for a quotation
Example request:
curl --request GET \
--get "http://localhost/api/admin/documents/architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/documents/architecto"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Download a specific document
Example request:
curl --request GET \
--get "http://localhost/api/admin/documents/architecto/architecto/download" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/documents/architecto/architecto/download"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Display a listing of the resource.
Example request:
curl --request GET \
--get "http://localhost/api/work-sectors" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/work-sectors"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Display the specified resource.
Example request:
curl --request GET \
--get "http://localhost/api/work-sectors/16" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/work-sectors/16"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Display a paginated listing of products.
Example request:
curl --request GET \
--get "http://localhost/api/products" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/products"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Display the specified product with related data.
Example request:
curl --request GET \
--get "http://localhost/api/products/16" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/products/16"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get count and details of filtered products.
Example request:
curl --request GET \
--get "http://localhost/api/products/filter-details" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"filters\": {
\"is_active\": false,
\"nationality\": \"saudi\",
\"service_period\": 4326.41688,
\"age\": 4326.41688,
\"salary\": 4326.41688,
\"down_payment\": 77,
\"finance_duration\": 8,
\"price\": 4326.41688
}
}"
const url = new URL(
"http://localhost/api/products/filter-details"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"filters": {
"is_active": false,
"nationality": "saudi",
"service_period": 4326.41688,
"age": 4326.41688,
"salary": 4326.41688,
"down_payment": 77,
"finance_duration": 8,
"price": 4326.41688
}
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get offers by product ID.
Example request:
curl --request GET \
--get "http://localhost/api/products/16/offers" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/products/16/offers"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Search products based on provided criteria.
Example request:
curl --request GET \
--get "http://localhost/api/search/products" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"variant_id\": \"architecto\",
\"price\": 4326.41688,
\"nationality_id\": \"architecto\",
\"work_sector_id\": \"architecto\",
\"service_period\": 4326.41688,
\"down_payment\": 4326.41688,
\"finance_duration\": 4326.41688,
\"salary_transfer_to\": \"architecto\",
\"age\": 4326.41688,
\"salary\": 4326.41688,
\"balloon_percentage\": 77,
\"final_payment\": 4326.41688,
\"sales_type\": \"retail\",
\"filters\": {
\"down_payment\": [
77
],
\"down_payment_range\": [
8
],
\"balloon_payment\": [
76
],
\"admin_fees\": [
60
],
\"insurance_fees\": [
42
],
\"profit_rate\": 37,
\"total_price_range\": [
9
],
\"nationality\": \"saudi\",
\"service_period\": 4326.41688,
\"age\": 4326.41688,
\"salary\": 4326.41688,
\"finance_duration\": [
77
],
\"finance_duration_range\": [
8
]
}
}"
const url = new URL(
"http://localhost/api/search/products"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"variant_id": "architecto",
"price": 4326.41688,
"nationality_id": "architecto",
"work_sector_id": "architecto",
"service_period": 4326.41688,
"down_payment": 4326.41688,
"finance_duration": 4326.41688,
"salary_transfer_to": "architecto",
"age": 4326.41688,
"salary": 4326.41688,
"balloon_percentage": 77,
"final_payment": 4326.41688,
"sales_type": "retail",
"filters": {
"down_payment": [
77
],
"down_payment_range": [
8
],
"balloon_payment": [
76
],
"admin_fees": [
60
],
"insurance_fees": [
42
],
"profit_rate": 37,
"total_price_range": [
9
],
"nationality": "saudi",
"service_period": 4326.41688,
"age": 4326.41688,
"salary": 4326.41688,
"finance_duration": [
77
],
"finance_duration_range": [
8
]
}
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/dashboard/min-applications-year
Example request:
curl --request GET \
--get "http://localhost/api/dashboard/min-applications-year" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/dashboard/min-applications-year"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/dashboard/sales-analysis
Example request:
curl --request GET \
--get "http://localhost/api/dashboard/sales-analysis" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"start_date\": \"2022-03-27\",
\"end_date\": \"2052-03-25\"
}"
const url = new URL(
"http://localhost/api/dashboard/sales-analysis"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"start_date": "2022-03-27",
"end_date": "2052-03-25"
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/dashboard/vehicles-analysis
Example request:
curl --request GET \
--get "http://localhost/api/dashboard/vehicles-analysis" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"start_date\": \"2022-03-27\",
\"end_date\": \"2052-03-25\"
}"
const url = new URL(
"http://localhost/api/dashboard/vehicles-analysis"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"start_date": "2022-03-27",
"end_date": "2052-03-25"
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/dashboard/brand-analysis/{vehicle_make}
Example request:
curl --request GET \
--get "http://localhost/api/dashboard/brand-analysis/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"start_date\": \"2022-03-27\",
\"end_date\": \"2052-03-25\"
}"
const url = new URL(
"http://localhost/api/dashboard/brand-analysis/1"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"start_date": "2022-03-27",
"end_date": "2052-03-25"
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/dashboard/providers-analysis
Example request:
curl --request GET \
--get "http://localhost/api/dashboard/providers-analysis" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"start_date\": \"2022-03-27\",
\"end_date\": \"2052-03-25\"
}"
const url = new URL(
"http://localhost/api/dashboard/providers-analysis"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"start_date": "2022-03-27",
"end_date": "2052-03-25"
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/dashboard/single-provider-analysis/{service_provider_id}
Example request:
curl --request GET \
--get "http://localhost/api/dashboard/single-provider-analysis/architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"start_date\": \"2022-03-27\",
\"end_date\": \"2052-03-25\"
}"
const url = new URL(
"http://localhost/api/dashboard/single-provider-analysis/architecto"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"start_date": "2022-03-27",
"end_date": "2052-03-25"
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/dashboard/distributors-analysis
Example request:
curl --request GET \
--get "http://localhost/api/dashboard/distributors-analysis" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"start_date\": \"2022-03-27\",
\"end_date\": \"2052-03-25\"
}"
const url = new URL(
"http://localhost/api/dashboard/distributors-analysis"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"start_date": "2022-03-27",
"end_date": "2052-03-25"
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/dashboard/customers-analysis
Example request:
curl --request GET \
--get "http://localhost/api/dashboard/customers-analysis" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"start_date\": \"2022-03-27\",
\"end_date\": \"2052-03-25\"
}"
const url = new URL(
"http://localhost/api/dashboard/customers-analysis"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"start_date": "2022-03-27",
"end_date": "2052-03-25"
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/vehicles
Example request:
curl --request GET \
--get "http://localhost/api/vehicles" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"chassis\": \"architecto\",
\"variant_id\": \"architecto\"
}"
const url = new URL(
"http://localhost/api/vehicles"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"chassis": "architecto",
"variant_id": "architecto"
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Display a listing of the resource.
Example request:
curl --request GET \
--get "http://localhost/api/distributors" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/distributors"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Store a newly created resource in storage.
Example request:
curl --request POST \
"http://localhost/api/distributors" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--form "name[en]=architecto"\
--form "name[ar]=architecto"\
--form "address[city]=architecto"\
--form "address[street]=architecto"\
--form "phone=architecto"\
--form "vat_number=architecto"\
--form "registration_number=architecto"\
--form "contacts[][name]=architecto"\
--form "contacts[][email]=zbailey@example.net"\
--form "contacts[][mobile]=4326.41688"\
--form "logo=@/private/var/folders/nb/j1p5drzn0jxdjmx_yrrlr7sr0000gn/T/php1ciqjhfh6ugo4G0N9Bl" const url = new URL(
"http://localhost/api/distributors"
);
const headers = {
"Content-Type": "multipart/form-data",
"Accept": "application/json",
};
const body = new FormData();
body.append('name[en]', 'architecto');
body.append('name[ar]', 'architecto');
body.append('address[city]', 'architecto');
body.append('address[street]', 'architecto');
body.append('phone', 'architecto');
body.append('vat_number', 'architecto');
body.append('registration_number', 'architecto');
body.append('contacts[][name]', 'architecto');
body.append('contacts[][email]', 'zbailey@example.net');
body.append('contacts[][mobile]', '4326.41688');
body.append('logo', document.querySelector('input[name="logo"]').files[0]);
fetch(url, {
method: "POST",
headers,
body,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Display the specified resource.
Example request:
curl --request GET \
--get "http://localhost/api/distributors/architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/distributors/architecto"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update the specified resource in storage.
Example request:
curl --request PUT \
"http://localhost/api/distributors/architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": {
\"en\": \"architecto\",
\"ar\": \"architecto\"
},
\"address\": {
\"city\": \"architecto\",
\"street\": \"architecto\"
},
\"phone\": \"architecto\",
\"vat_number\": \"architecto\",
\"registration_number\": \"architecto\",
\"contacts\": [
{
\"name\": \"architecto\",
\"email\": \"zbailey@example.net\",
\"mobile\": 4326.41688
}
]
}"
const url = new URL(
"http://localhost/api/distributors/architecto"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": {
"en": "architecto",
"ar": "architecto"
},
"address": {
"city": "architecto",
"street": "architecto"
},
"phone": "architecto",
"vat_number": "architecto",
"registration_number": "architecto",
"contacts": [
{
"name": "architecto",
"email": "zbailey@example.net",
"mobile": 4326.41688
}
]
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Remove the specified resource from storage.
Example request:
curl --request DELETE \
"http://localhost/api/distributors/16" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/distributors/16"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
PATCH api/distributors/{distributor_id}/toggle-active
Example request:
curl --request PATCH \
"http://localhost/api/distributors/16/toggle-active" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/distributors/16/toggle-active"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "PATCH",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
PUT api/distributors/{distributor_id}/update-contacts
Example request:
curl --request PUT \
"http://localhost/api/distributors/16/update-contacts" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"contact_information\": [
{
\"id\": 16,
\"name\": \"n\",
\"email\": \"ashly64@example.com\",
\"mobile\": 4326.41688,
\"profession\": \"m\"
}
]
}"
const url = new URL(
"http://localhost/api/distributors/16/update-contacts"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"contact_information": [
{
"id": 16,
"name": "n",
"email": "ashly64@example.com",
"mobile": 4326.41688,
"profession": "m"
}
]
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/distributors/{distributor_id}/add-contact
Example request:
curl --request POST \
"http://localhost/api/distributors/16/add-contact" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"architecto\",
\"email\": \"zbailey@example.net\",
\"mobile\": 4326.41688,
\"profession\": \"architecto\"
}"
const url = new URL(
"http://localhost/api/distributors/16/add-contact"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "architecto",
"email": "zbailey@example.net",
"mobile": 4326.41688,
"profession": "architecto"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
PUT api/distributors/update-contact/{distributor_contact_id}
Example request:
curl --request PUT \
"http://localhost/api/distributors/update-contact/architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"architecto\",
\"email\": \"zbailey@example.net\",
\"mobile\": 4326.41688,
\"profession\": \"architecto\"
}"
const url = new URL(
"http://localhost/api/distributors/update-contact/architecto"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "architecto",
"email": "zbailey@example.net",
"mobile": 4326.41688,
"profession": "architecto"
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
DELETE api/distributors/distributor-contact/{distributor_contact_id}
Example request:
curl --request DELETE \
"http://localhost/api/distributors/distributor-contact/architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/distributors/distributor-contact/architecto"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/distributors/{distributor_id}/add-admins
Example request:
curl --request POST \
"http://localhost/api/distributors/16/add-admins" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"admins\": [
{
\"first_name\": \"n\",
\"last_name\": \"g\",
\"email\": \"rowan.gulgowski@example.com\",
\"mobile\": \"architecto\",
\"password\": \"]|{+-0pBNvYg\",
\"city\": \"h\",
\"profession\": \"w\"
}
],
\"role_id\": 16
}"
const url = new URL(
"http://localhost/api/distributors/16/add-admins"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"admins": [
{
"first_name": "n",
"last_name": "g",
"email": "rowan.gulgowski@example.com",
"mobile": "architecto",
"password": "]|{+-0pBNvYg",
"city": "h",
"profession": "w"
}
],
"role_id": 16
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Display a listing of the resource.
Example request:
curl --request GET \
--get "http://localhost/api/applications" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/applications"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Store a newly created resource in storage.
Example request:
curl --request POST \
"http://localhost/api/applications" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"full_name\": {
\"en\": \"architecto\",
\"ar\": \"architecto\"
},
\"address\": {
\"city\": \"architecto\",
\"street\": \"architecto\",
\"apartment_no\": \"architecto\"
},
\"email\": \"zbailey@example.net\",
\"mobile\": \"5642559314\",
\"nationality_id\": \"architecto\",
\"products\": [
\"architecto\"
],
\"finance_duration\": 4326.41688,
\"dob\": \"2026-03-02\",
\"age\": 4326.41688,
\"gender\": \"female\",
\"zip_code\": \"miyvdl\",
\"job_title\": \"j\",
\"salary\": 4326.41688,
\"national_id\": 4326.41688,
\"service_period\": 4326.41688,
\"salary_transferred_to_id\": \"architecto\",
\"vehicle_id\": \"architecto\",
\"vehicle_price\": 4326.41688,
\"work_sector_id\": \"architecto\",
\"down_payment\": 4326.41688,
\"balloon_percentage\": 4326.41688,
\"final_payment\": 4326.41688,
\"fuel_fee\": 77,
\"plate_fee\": 8,
\"sales_type\": \"iir\",
\"factory_warranty\": \"architecto\",
\"additional_specs\": \"architecto\",
\"offers\": [
{
\"id\": \"architecto\",
\"duration\": 4326.41688
}
]
}"
const url = new URL(
"http://localhost/api/applications"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"full_name": {
"en": "architecto",
"ar": "architecto"
},
"address": {
"city": "architecto",
"street": "architecto",
"apartment_no": "architecto"
},
"email": "zbailey@example.net",
"mobile": "5642559314",
"nationality_id": "architecto",
"products": [
"architecto"
],
"finance_duration": 4326.41688,
"dob": "2026-03-02",
"age": 4326.41688,
"gender": "female",
"zip_code": "miyvdl",
"job_title": "j",
"salary": 4326.41688,
"national_id": 4326.41688,
"service_period": 4326.41688,
"salary_transferred_to_id": "architecto",
"vehicle_id": "architecto",
"vehicle_price": 4326.41688,
"work_sector_id": "architecto",
"down_payment": 4326.41688,
"balloon_percentage": 4326.41688,
"final_payment": 4326.41688,
"fuel_fee": 77,
"plate_fee": 8,
"sales_type": "iir",
"factory_warranty": "architecto",
"additional_specs": "architecto",
"offers": [
{
"id": "architecto",
"duration": 4326.41688
}
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Display the specified resource.
Example request:
curl --request GET \
--get "http://localhost/api/applications/architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/applications/architecto"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
PUT api/applications/{application_request}/update-status
Example request:
curl --request PUT \
"http://localhost/api/applications/architecto/update-status" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"status\": 3
}"
const url = new URL(
"http://localhost/api/applications/architecto/update-status"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"status": 3
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Display the specified resource.
Example request:
curl --request GET \
--get "http://localhost/api/application-products/steps" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/application-products/steps"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/application-products/steps
Example request:
curl --request POST \
"http://localhost/api/application-products/steps" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/application-products/steps"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Display the specified resource.
Example request:
curl --request GET \
--get "http://localhost/api/application-products/steps/architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/application-products/steps/architecto"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update the specified resource in storage.
Example request:
curl --request PUT \
"http://localhost/api/application-products/steps/architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/application-products/steps/architecto"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "PUT",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Remove the specified resource from storage.
Example request:
curl --request DELETE \
"http://localhost/api/application-products/steps/architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/application-products/steps/architecto"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/application-products/{application_product_id}
Example request:
curl --request GET \
--get "http://localhost/api/application-products/architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/application-products/architecto"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/application-products/{application_product_id}/steps
Example request:
curl --request GET \
--get "http://localhost/api/application-products/architecto/steps" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/application-products/architecto/steps"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/application-products/{application_product_id}/steps/{step_id}
Example request:
curl --request GET \
--get "http://localhost/api/application-products/architecto/steps/16" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/application-products/architecto/steps/16"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/application-products/{application_product_id}/entities
Example request:
curl --request POST \
"http://localhost/api/application-products/architecto/entities" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/application-products/architecto/entities"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/application-products/{application_product_id}/update-status
Example request:
curl --request POST \
"http://localhost/api/application-products/architecto/update-status" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"status\": 5
}"
const url = new URL(
"http://localhost/api/application-products/architecto/update-status"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"status": 5
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
PUT api/application-products/{application_product_id}/change-status
Example request:
curl --request PUT \
"http://localhost/api/application-products/architecto/change-status" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"status\": 4
}"
const url = new URL(
"http://localhost/api/application-products/architecto/change-status"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"status": 4
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/{commentable_type}/{commentable_id}/comments/{applications_products_id}
Example request:
curl --request GET \
--get "http://localhost/api/architecto/architecto/comments/architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/architecto/architecto/comments/architecto"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/{commentable_type}/{commentable_id}/comments
Example request:
curl --request POST \
"http://localhost/api/architecto/architecto/comments" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"body\": \"b\",
\"application_product_id\": \"architecto\"
}"
const url = new URL(
"http://localhost/api/architecto/architecto/comments"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"body": "b",
"application_product_id": "architecto"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/comments
Example request:
curl --request GET \
--get "http://localhost/api/comments" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/comments"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/comments
Example request:
curl --request POST \
"http://localhost/api/comments" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"body\": \"b\",
\"application_product_id\": \"architecto\"
}"
const url = new URL(
"http://localhost/api/comments"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"body": "b",
"application_product_id": "architecto"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/comments/{id}
Example request:
curl --request GET \
--get "http://localhost/api/comments/16" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/comments/16"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
PUT api/comments/{id}
Example request:
curl --request PUT \
"http://localhost/api/comments/16" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"body\": \"b\",
\"is_resolved\": true
}"
const url = new URL(
"http://localhost/api/comments/16"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"body": "b",
"is_resolved": true
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
DELETE api/comments/{id}
Example request:
curl --request DELETE \
"http://localhost/api/comments/16" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/comments/16"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Display a listing of the resource.
Example request:
curl --request GET \
--get "http://localhost/api/service-providers" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"page\": 16,
\"sort_by\": \"asc\",
\"limit\": 22,
\"q\": \"g\"
}"
const url = new URL(
"http://localhost/api/service-providers"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"page": 16,
"sort_by": "asc",
"limit": 22,
"q": "g"
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Display the specified resource.
Example request:
curl --request GET \
--get "http://localhost/api/service-providers/architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/service-providers/architecto"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Store a newly created resource in storage.
Example request:
curl --request POST \
"http://localhost/api/service-providers" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--form "name[en]=architecto"\
--form "name[ar]=architecto"\
--form "address[]=architecto"\
--form "limit=4326.41688"\
--form "logo=@/private/var/folders/nb/j1p5drzn0jxdjmx_yrrlr7sr0000gn/T/phpt4jtivg97ll07SyHIIH" const url = new URL(
"http://localhost/api/service-providers"
);
const headers = {
"Content-Type": "multipart/form-data",
"Accept": "application/json",
};
const body = new FormData();
body.append('name[en]', 'architecto');
body.append('name[ar]', 'architecto');
body.append('address[]', 'architecto');
body.append('limit', '4326.41688');
body.append('logo', document.querySelector('input[name="logo"]').files[0]);
fetch(url, {
method: "POST",
headers,
body,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update the contacts of the service provider.
Example request:
curl --request PUT \
"http://localhost/api/service-providers/architecto/update-contacts" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"contact_information\": [
{
\"id\": 16,
\"name\": \"n\",
\"email\": \"ashly64@example.com\",
\"mobile\": 4326.41688,
\"profession\": \"m\"
}
]
}"
const url = new URL(
"http://localhost/api/service-providers/architecto/update-contacts"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"contact_information": [
{
"id": 16,
"name": "n",
"email": "ashly64@example.com",
"mobile": 4326.41688,
"profession": "m"
}
]
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Adds a new contact for the specified service provider.
Example request:
curl --request POST \
"http://localhost/api/service-providers/architecto/add-contact" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"architecto\",
\"email\": \"zbailey@example.net\",
\"profession\": \"architecto\",
\"mobile\": \"architecto\"
}"
const url = new URL(
"http://localhost/api/service-providers/architecto/add-contact"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "architecto",
"email": "zbailey@example.net",
"profession": "architecto",
"mobile": "architecto"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
PUT api/service-providers/update-contact/{service_provider_contact_id}
Example request:
curl --request PUT \
"http://localhost/api/service-providers/update-contact/architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"architecto\",
\"email\": \"zbailey@example.net\",
\"mobile\": \"architecto\",
\"profession\": \"n\"
}"
const url = new URL(
"http://localhost/api/service-providers/update-contact/architecto"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "architecto",
"email": "zbailey@example.net",
"mobile": "architecto",
"profession": "n"
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
DELETE api/service-providers/service-provider-contact/{service_provider_contact_id}
Example request:
curl --request DELETE \
"http://localhost/api/service-providers/service-provider-contact/architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/service-providers/service-provider-contact/architecto"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Add admins to a service provider and assign roles.
Example request:
curl --request POST \
"http://localhost/api/service-providers/architecto/add-admins" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"admins\": [
{
\"first_name\": \"architecto\",
\"last_name\": \"architecto\",
\"email\": \"zbailey@example.net\",
\"profession\": \"architecto\",
\"mobile\": \"architecto\",
\"city\": \"architecto\"
}
],
\"role_id\": \"architecto\"
}"
const url = new URL(
"http://localhost/api/service-providers/architecto/add-admins"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"admins": [
{
"first_name": "architecto",
"last_name": "architecto",
"email": "zbailey@example.net",
"profession": "architecto",
"mobile": "architecto",
"city": "architecto"
}
],
"role_id": "architecto"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Remove the specified resource from storage.
Example request:
curl --request DELETE \
"http://localhost/api/service-providers/architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/service-providers/architecto"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
PATCH api/service-providers/{service_provider_id}/toggle-active
Example request:
curl --request PATCH \
"http://localhost/api/service-providers/architecto/toggle-active" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/service-providers/architecto/toggle-active"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "PATCH",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/service-providers/{service_provider_id}/products
Example request:
curl --request GET \
--get "http://localhost/api/service-providers/architecto/products" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/service-providers/architecto/products"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Store a newly created resource in storage.
Example request:
curl --request POST \
"http://localhost/api/finance-applications" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/finance-applications"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/admin/banks
Example request:
curl --request GET \
--get "http://localhost/api/admin/banks" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/banks"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/admin/banks
Example request:
curl --request POST \
"http://localhost/api/admin/banks" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/banks"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/admin/banks/{id}
Example request:
curl --request GET \
--get "http://localhost/api/admin/banks/architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/banks/architecto"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
PUT api/admin/banks/{id}
Example request:
curl --request PUT \
"http://localhost/api/admin/banks/architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/banks/architecto"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "PUT",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
DELETE api/admin/banks/{id}
Example request:
curl --request DELETE \
"http://localhost/api/admin/banks/architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/banks/architecto"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Store a newly created resource in storage.
Example request:
curl --request POST \
"http://localhost/api/variant-forms" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"type\": 1,
\"first_name\": \"b\",
\"last_name\": \"n\",
\"email\": \"ashly64@example.com\",
\"mobile\": \"architecto\",
\"message\": \"architecto\",
\"date\": \"2026-03-02T22:08:08\",
\"model_year\": 16
}"
const url = new URL(
"http://localhost/api/variant-forms"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"type": 1,
"first_name": "b",
"last_name": "n",
"email": "ashly64@example.com",
"mobile": "architecto",
"message": "architecto",
"date": "2026-03-02T22:08:08",
"model_year": 16
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/banks
Example request:
curl --request GET \
--get "http://localhost/api/banks" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/banks"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Display a listing of the resource.
Example request:
curl --request GET \
--get "http://localhost/api/admin/notification/notifications" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/notification/notifications"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update the specified resource in storage.
Example request:
curl --request PUT \
"http://localhost/api/admin/notification/notifications/architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/notification/notifications/architecto"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "PUT",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Remove the specified resource from storage.
Example request:
curl --request DELETE \
"http://localhost/api/admin/notification/notifications/architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/notification/notifications/architecto"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/admin/notification/test
Example request:
curl --request POST \
"http://localhost/api/admin/notification/test" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"notification_id\": \"architecto\",
\"trigger_id\": \"architecto\",
\"channel\": \"email\",
\"recipient\": \"architecto\",
\"use_notifiable\": false
}"
const url = new URL(
"http://localhost/api/admin/notification/test"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"notification_id": "architecto",
"trigger_id": "architecto",
"channel": "email",
"recipient": "architecto",
"use_notifiable": false
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Display a listing of the resource.
Example request:
curl --request GET \
--get "http://localhost/api/admin/notification/triggers" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/notification/triggers"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Show the specified resource.
Example request:
curl --request GET \
--get "http://localhost/api/admin/notification/triggers/architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/notification/triggers/architecto"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/admin/notification/templates
Example request:
curl --request GET \
--get "http://localhost/api/admin/notification/templates" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/notification/templates"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Store a newly created resource in storage.
Example request:
curl --request POST \
"http://localhost/api/admin/notification/templates" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"b\",
\"locale\": \"en\",
\"subject\": \"n\",
\"body\": \"architecto\",
\"notification_route\": \"architecto\",
\"trigger_ids\": [
16
],
\"test_recipient\": \"architecto\"
}"
const url = new URL(
"http://localhost/api/admin/notification/templates"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "b",
"locale": "en",
"subject": "n",
"body": "architecto",
"notification_route": "architecto",
"trigger_ids": [
16
],
"test_recipient": "architecto"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Show the specified resource.
Example request:
curl --request GET \
--get "http://localhost/api/admin/notification/templates/architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/notification/templates/architecto"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update the specified resource in storage.
Example request:
curl --request PUT \
"http://localhost/api/admin/notification/templates/architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"b\",
\"locale\": \"en\",
\"subject\": \"n\",
\"body\": \"architecto\",
\"notification_route\": \"architecto\",
\"trigger_ids\": [
16
],
\"test_recipient\": \"architecto\"
}"
const url = new URL(
"http://localhost/api/admin/notification/templates/architecto"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "b",
"locale": "en",
"subject": "n",
"body": "architecto",
"notification_route": "architecto",
"trigger_ids": [
16
],
"test_recipient": "architecto"
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Remove the specified resource from storage.
Example request:
curl --request DELETE \
"http://localhost/api/admin/notification/templates/architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/notification/templates/architecto"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/admin/notification/event
Example request:
curl --request GET \
--get "http://localhost/api/admin/notification/event" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/notification/event"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Store a newly created resource in storage.
Example request:
curl --request POST \
"http://localhost/api/admin/notification/event" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"b\",
\"channel\": \"sms\",
\"triggers\": [
16
],
\"test_recipient\": \"architecto\",
\"template_ids\": [
16
]
}"
const url = new URL(
"http://localhost/api/admin/notification/event"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "b",
"channel": "sms",
"triggers": [
16
],
"test_recipient": "architecto",
"template_ids": [
16
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Show the specified resource.
Example request:
curl --request GET \
--get "http://localhost/api/admin/notification/event/architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/notification/event/architecto"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update the specified resource in storage.
Example request:
curl --request PUT \
"http://localhost/api/admin/notification/event/architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"b\",
\"channel\": \"sms\",
\"triggers\": [
16
],
\"test_recipient\": \"architecto\",
\"template_ids\": [
16
]
}"
const url = new URL(
"http://localhost/api/admin/notification/event/architecto"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "b",
"channel": "sms",
"triggers": [
16
],
"test_recipient": "architecto",
"template_ids": [
16
]
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
DELETE api/admin/notification/event/{id}
Example request:
curl --request DELETE \
"http://localhost/api/admin/notification/event/architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/notification/event/architecto"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Display a listing of the resource.
Example request:
curl --request GET \
--get "http://localhost/api/admin/pdf/trigger" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/pdf/trigger"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Show the specified resource.
Example request:
curl --request GET \
--get "http://localhost/api/admin/pdf/trigger/architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/pdf/trigger/architecto"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Store a newly created resource in storage.
Example request:
curl --request POST \
"http://localhost/api/admin/pdf" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--form "name=architecto"\
--form "pdf_trigger_id=architecto"\
--form "is_attachment="\
--form "boxes[][variable]=architecto"\
--form "boxes[][is_rtl]="\
--form "boxes[][is_variable]="\
--form "boxes[][x]=39"\
--form "boxes[][y]=84"\
--form "image=@/private/var/folders/nb/j1p5drzn0jxdjmx_yrrlr7sr0000gn/T/phptmkvj8cpjt7e9R4bQXA" const url = new URL(
"http://localhost/api/admin/pdf"
);
const headers = {
"Content-Type": "multipart/form-data",
"Accept": "application/json",
};
const body = new FormData();
body.append('name', 'architecto');
body.append('pdf_trigger_id', 'architecto');
body.append('is_attachment', '');
body.append('boxes[][variable]', 'architecto');
body.append('boxes[][is_rtl]', '');
body.append('boxes[][is_variable]', '');
body.append('boxes[][x]', '39');
body.append('boxes[][y]', '84');
body.append('image', document.querySelector('input[name="image"]').files[0]);
fetch(url, {
method: "POST",
headers,
body,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Display a listing of the resource.
Example request:
curl --request GET \
--get "http://localhost/api/admin/pdf" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/pdf"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Show the specified resource.
Example request:
curl --request GET \
--get "http://localhost/api/admin/pdf/architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/pdf/architecto"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update the specified resource in storage.
Example request:
curl --request PUT \
"http://localhost/api/admin/pdf/architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"architecto\",
\"image\": \"architecto\",
\"pdf_trigger_id\": \"architecto\",
\"is_attachment\": true,
\"boxes\": [
{
\"variable\": \"architecto\",
\"is_rtl\": true,
\"is_variable\": false,
\"x\": 39,
\"y\": 84
}
]
}"
const url = new URL(
"http://localhost/api/admin/pdf/architecto"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "architecto",
"image": "architecto",
"pdf_trigger_id": "architecto",
"is_attachment": true,
"boxes": [
{
"variable": "architecto",
"is_rtl": true,
"is_variable": false,
"x": 39,
"y": 84
}
]
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Remove the specified resource from storage.
Example request:
curl --request DELETE \
"http://localhost/api/admin/pdf/architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/pdf/architecto"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/admin/pdf/download/{templateId}/{modelId}
Example request:
curl --request GET \
--get "http://localhost/api/admin/pdf/download/architecto/architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/pdf/download/architecto/architecto"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Display a listing of the resource.
Example request:
curl --request GET \
--get "http://localhost/api/admin/notifications" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/notifications"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/admin/notifications/{id}
Example request:
curl --request GET \
--get "http://localhost/api/admin/notifications/architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/notifications/architecto"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Remove the specified resource from storage.
Example request:
curl --request DELETE \
"http://localhost/api/admin/notifications/architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/notifications/architecto"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Mark all notifications as read.
Example request:
curl --request PUT \
"http://localhost/api/admin/notifications/mark-all-as-read" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/notifications/mark-all-as-read"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "PUT",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Display a listing of the resource.
Example request:
curl --request GET \
--get "http://localhost/api/admin/vehicle_offers" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/vehicle_offers"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Store a newly created resource in storage.
Example request:
curl --request POST \
"http://localhost/api/admin/vehicle_offers" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"title\": [
\"b\"
],
\"sub_title\": [
\"n\"
],
\"long_description\": [
\"architecto\"
],
\"short_description\": [
\"architecto\"
],
\"slug\": \"n\",
\"admin_fee\": 84,
\"down_payment\": 12,
\"final_payment\": 77,
\"amount\": 8,
\"amount_type\": \"fixed\",
\"valid_from\": \"2026-03-02T22:08:08\",
\"valid_to\": \"2052-03-25\",
\"is_applied_to_used_cars\": true,
\"is_applied_for_financing\": true,
\"finance_duration\": [
39
],
\"tags\": [
16
],
\"categories\": [
16
],
\"offerable\": [
{
\"offerable_name\": \"model\",
\"offerable_id\": [
22
]
}
]
}"
const url = new URL(
"http://localhost/api/admin/vehicle_offers"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"title": [
"b"
],
"sub_title": [
"n"
],
"long_description": [
"architecto"
],
"short_description": [
"architecto"
],
"slug": "n",
"admin_fee": 84,
"down_payment": 12,
"final_payment": 77,
"amount": 8,
"amount_type": "fixed",
"valid_from": "2026-03-02T22:08:08",
"valid_to": "2052-03-25",
"is_applied_to_used_cars": true,
"is_applied_for_financing": true,
"finance_duration": [
39
],
"tags": [
16
],
"categories": [
16
],
"offerable": [
{
"offerable_name": "model",
"offerable_id": [
22
]
}
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Show the specified resource.
Example request:
curl --request GET \
--get "http://localhost/api/admin/vehicle_offers/architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/vehicle_offers/architecto"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update the specified resource in storage.
Example request:
curl --request PUT \
"http://localhost/api/admin/vehicle_offers/architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"title\": [
\"b\"
],
\"sub_title\": [
\"n\"
],
\"long_description\": [
\"architecto\"
],
\"short_description\": [
\"architecto\"
],
\"slug\": \"n\",
\"admin_fee\": 84,
\"down_payment\": 12,
\"final_payment\": 77,
\"amount\": 8,
\"amount_type\": \"fixed\",
\"valid_from\": \"2026-03-02T22:08:08\",
\"valid_to\": \"2052-03-25\",
\"is_applied_to_used_cars\": true,
\"is_applied_for_financing\": true,
\"finance_duration\": [
39
],
\"tags\": [
16
],
\"categories\": [
16
],
\"offerable\": [
{
\"offerable_name\": \"variant\",
\"offerable_id\": [
22
]
}
]
}"
const url = new URL(
"http://localhost/api/admin/vehicle_offers/architecto"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"title": [
"b"
],
"sub_title": [
"n"
],
"long_description": [
"architecto"
],
"short_description": [
"architecto"
],
"slug": "n",
"admin_fee": 84,
"down_payment": 12,
"final_payment": 77,
"amount": 8,
"amount_type": "fixed",
"valid_from": "2026-03-02T22:08:08",
"valid_to": "2052-03-25",
"is_applied_to_used_cars": true,
"is_applied_for_financing": true,
"finance_duration": [
39
],
"tags": [
16
],
"categories": [
16
],
"offerable": [
{
"offerable_name": "variant",
"offerable_id": [
22
]
}
]
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Remove the specified resource from storage.
Example request:
curl --request DELETE \
"http://localhost/api/admin/vehicle_offers/architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/vehicle_offers/architecto"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Display a listing of the resource.
Example request:
curl --request GET \
--get "http://localhost/api/admin/categories" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/categories"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Store a newly created resource in storage.
Example request:
curl --request POST \
"http://localhost/api/admin/categories" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"badge_text\": [
\"b\"
],
\"title\": [
\"n\"
],
\"description\": [
\"architecto\"
],
\"slug\": \"n\",
\"type\": \"sales\"
}"
const url = new URL(
"http://localhost/api/admin/categories"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"badge_text": [
"b"
],
"title": [
"n"
],
"description": [
"architecto"
],
"slug": "n",
"type": "sales"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Show the specified resource.
Example request:
curl --request GET \
--get "http://localhost/api/admin/categories/architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/categories/architecto"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update the specified resource in storage.
Example request:
curl --request PUT \
"http://localhost/api/admin/categories/architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"badge_text\": [
\"b\"
],
\"title\": [
\"n\"
],
\"description\": [
\"architecto\"
],
\"slug\": \"n\",
\"type\": \"after_sales\"
}"
const url = new URL(
"http://localhost/api/admin/categories/architecto"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"badge_text": [
"b"
],
"title": [
"n"
],
"description": [
"architecto"
],
"slug": "n",
"type": "after_sales"
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Remove the specified resource from storage.
Example request:
curl --request DELETE \
"http://localhost/api/admin/categories/architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/categories/architecto"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Display a listing of the resource.
Store a newly created resource in storage.
Show the specified resource.
Update the specified resource in storage.
Remove the specified resource from storage.
Display a listing of the resource.
Example request:
curl --request GET \
--get "http://localhost/api/vehicle_offers" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/vehicle_offers"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Store a newly created resource in storage.
Example request:
curl --request POST \
"http://localhost/api/vehicle_offers" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"title\": [
\"b\"
],
\"sub_title\": [
\"n\"
],
\"long_description\": [
\"architecto\"
],
\"short_description\": [
\"architecto\"
],
\"slug\": \"n\",
\"admin_fee\": 84,
\"down_payment\": 12,
\"final_payment\": 77,
\"amount\": 8,
\"amount_type\": \"percentage\",
\"valid_from\": \"2026-03-02T22:08:08\",
\"valid_to\": \"2052-03-25\",
\"is_applied_to_used_cars\": true,
\"is_applied_for_financing\": false,
\"finance_duration\": [
39
],
\"tags\": [
16
],
\"categories\": [
16
],
\"offerable\": [
{
\"offerable_name\": \"model\",
\"offerable_id\": [
22
]
}
]
}"
const url = new URL(
"http://localhost/api/vehicle_offers"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"title": [
"b"
],
"sub_title": [
"n"
],
"long_description": [
"architecto"
],
"short_description": [
"architecto"
],
"slug": "n",
"admin_fee": 84,
"down_payment": 12,
"final_payment": 77,
"amount": 8,
"amount_type": "percentage",
"valid_from": "2026-03-02T22:08:08",
"valid_to": "2052-03-25",
"is_applied_to_used_cars": true,
"is_applied_for_financing": false,
"finance_duration": [
39
],
"tags": [
16
],
"categories": [
16
],
"offerable": [
{
"offerable_name": "model",
"offerable_id": [
22
]
}
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Show the specified resource.
Example request:
curl --request GET \
--get "http://localhost/api/vehicle_offers/architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/vehicle_offers/architecto"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update the specified resource in storage.
Example request:
curl --request PUT \
"http://localhost/api/vehicle_offers/architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"title\": [
\"b\"
],
\"sub_title\": [
\"n\"
],
\"long_description\": [
\"architecto\"
],
\"short_description\": [
\"architecto\"
],
\"slug\": \"n\",
\"admin_fee\": 84,
\"down_payment\": 12,
\"final_payment\": 77,
\"amount\": 8,
\"amount_type\": \"fixed\",
\"valid_from\": \"2026-03-02T22:08:08\",
\"valid_to\": \"2052-03-25\",
\"is_applied_to_used_cars\": true,
\"is_applied_for_financing\": true,
\"finance_duration\": [
39
],
\"tags\": [
16
],
\"categories\": [
16
],
\"offerable\": [
{
\"offerable_name\": \"model\",
\"offerable_id\": [
22
]
}
]
}"
const url = new URL(
"http://localhost/api/vehicle_offers/architecto"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"title": [
"b"
],
"sub_title": [
"n"
],
"long_description": [
"architecto"
],
"short_description": [
"architecto"
],
"slug": "n",
"admin_fee": 84,
"down_payment": 12,
"final_payment": 77,
"amount": 8,
"amount_type": "fixed",
"valid_from": "2026-03-02T22:08:08",
"valid_to": "2052-03-25",
"is_applied_to_used_cars": true,
"is_applied_for_financing": true,
"finance_duration": [
39
],
"tags": [
16
],
"categories": [
16
],
"offerable": [
{
"offerable_name": "model",
"offerable_id": [
22
]
}
]
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Remove the specified resource from storage.
Example request:
curl --request DELETE \
"http://localhost/api/vehicle_offers/architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/vehicle_offers/architecto"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Show the specified resource.
Example request:
curl --request GET \
--get "http://localhost/api/vehicle_offers/category/architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/vehicle_offers/category/architecto"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Display the specified resource by slug.
Example request:
curl --request GET \
--get "http://localhost/api/vehicle_offers/show-by-slug/architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/vehicle_offers/show-by-slug/architecto"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/vehicle_offers/category/show-by-slug/{slug}
Example request:
curl --request GET \
--get "http://localhost/api/vehicle_offers/category/show-by-slug/architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/vehicle_offers/category/show-by-slug/architecto"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/vehicle_offers/client/{clientCode?}
Example request:
curl --request GET \
--get "http://localhost/api/vehicle_offers/client/architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/vehicle_offers/client/architecto"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Display a listing of the resource.
Example request:
curl --request GET \
--get "http://localhost/api/categories" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/categories"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Store a newly created resource in storage.
Example request:
curl --request POST \
"http://localhost/api/categories" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"badge_text\": [
\"b\"
],
\"title\": [
\"n\"
],
\"description\": [
\"architecto\"
],
\"slug\": \"n\",
\"type\": \"after_sales\"
}"
const url = new URL(
"http://localhost/api/categories"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"badge_text": [
"b"
],
"title": [
"n"
],
"description": [
"architecto"
],
"slug": "n",
"type": "after_sales"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Show the specified resource.
Example request:
curl --request GET \
--get "http://localhost/api/categories/architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/categories/architecto"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update the specified resource in storage.
Example request:
curl --request PUT \
"http://localhost/api/categories/architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"badge_text\": [
\"b\"
],
\"title\": [
\"n\"
],
\"description\": [
\"architecto\"
],
\"slug\": \"n\",
\"type\": \"after_sales\"
}"
const url = new URL(
"http://localhost/api/categories/architecto"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"badge_text": [
"b"
],
"title": [
"n"
],
"description": [
"architecto"
],
"slug": "n",
"type": "after_sales"
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Remove the specified resource from storage.
Example request:
curl --request DELETE \
"http://localhost/api/categories/architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/categories/architecto"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Display the specified resource by slug.
Example request:
curl --request GET \
--get "http://localhost/api/categories/show-by-slug/architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/categories/show-by-slug/architecto"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Display a listing of the resource.
Show the specified resource.
GET api/admin/orders/{order}/steps
Example request:
curl --request GET \
--get "http://localhost/api/admin/orders/architecto/steps" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/orders/architecto/steps"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/admin/orders/{orderId}/steps/save-values
Example request:
curl --request POST \
"http://localhost/api/admin/orders/architecto/steps/save-values" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
const url = new URL(
"http://localhost/api/admin/orders/architecto/steps/save-values"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/admin/orders/{orderId}/steps/submit
Example request:
curl --request POST \
"http://localhost/api/admin/orders/architecto/steps/submit" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"status\": \"rejected\",
\"comments\": [
\"architecto\"
]
}"
const url = new URL(
"http://localhost/api/admin/orders/architecto/steps/submit"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"status": "rejected",
"comments": [
"architecto"
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/admin/orders/steps/comments/{commentId}/reply
Example request:
curl --request POST \
"http://localhost/api/admin/orders/steps/comments/architecto/reply" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/orders/steps/comments/architecto/reply"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/admin/order-steps
Example request:
curl --request GET \
--get "http://localhost/api/admin/order-steps" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/order-steps"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/admin/order-steps
Example request:
curl --request POST \
"http://localhost/api/admin/order-steps" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": {
\"en\": \"architecto\",
\"ar\": \"architecto\"
},
\"message\": {
\"en\": \"architecto\",
\"ar\": \"architecto\"
},
\"lead_time\": {
\"en\": \"architecto\",
\"ar\": \"architecto\"
},
\"order\": 4326.41688,
\"visible_to_customer\": false,
\"customer_responsible\": true,
\"online_order_step\": true,
\"offline_order_step\": true,
\"auto_generate_documents\": true,
\"auto_submitted\": true,
\"user_notified_on_approve\": true,
\"entities\": [
{
\"name\": {
\"ar\": \"architecto\",
\"en\": \"architecto\"
},
\"editable_by_customer\": true,
\"auto_generate_documents\": false,
\"is_user_notified\": true,
\"fields\": [
{
\"name\": \"architecto\",
\"type\": \"architecto\",
\"label\": {
\"ar\": \"architecto\",
\"en\": \"architecto\"
},
\"template_id\": 16
}
]
}
]
}"
const url = new URL(
"http://localhost/api/admin/order-steps"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": {
"en": "architecto",
"ar": "architecto"
},
"message": {
"en": "architecto",
"ar": "architecto"
},
"lead_time": {
"en": "architecto",
"ar": "architecto"
},
"order": 4326.41688,
"visible_to_customer": false,
"customer_responsible": true,
"online_order_step": true,
"offline_order_step": true,
"auto_generate_documents": true,
"auto_submitted": true,
"user_notified_on_approve": true,
"entities": [
{
"name": {
"ar": "architecto",
"en": "architecto"
},
"editable_by_customer": true,
"auto_generate_documents": false,
"is_user_notified": true,
"fields": [
{
"name": "architecto",
"type": "architecto",
"label": {
"ar": "architecto",
"en": "architecto"
},
"template_id": 16
}
]
}
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/admin/order-steps/{id}
Example request:
curl --request GET \
--get "http://localhost/api/admin/order-steps/architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/order-steps/architecto"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
PUT api/admin/order-steps/{id}
Example request:
curl --request PUT \
"http://localhost/api/admin/order-steps/architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": {
\"en\": \"architecto\",
\"ar\": \"architecto\"
},
\"message\": {
\"en\": \"architecto\",
\"ar\": \"architecto\"
},
\"lead_time\": {
\"en\": \"architecto\",
\"ar\": \"architecto\"
},
\"order\": 4326.41688,
\"visible_to_customer\": false,
\"customer_responsible\": false,
\"online_order_step\": false,
\"offline_order_step\": false,
\"auto_generate_documents\": false,
\"auto_submitted\": false,
\"user_notified_on_approve\": true,
\"entities\": [
{
\"name\": {
\"ar\": \"architecto\",
\"en\": \"architecto\"
},
\"editable_by_customer\": false,
\"auto_generate_documents\": false,
\"is_user_notified\": true,
\"fields\": [
{
\"name\": \"architecto\",
\"type\": \"architecto\",
\"label\": {
\"ar\": \"architecto\",
\"en\": \"architecto\"
},
\"template_id\": 16
}
]
}
]
}"
const url = new URL(
"http://localhost/api/admin/order-steps/architecto"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": {
"en": "architecto",
"ar": "architecto"
},
"message": {
"en": "architecto",
"ar": "architecto"
},
"lead_time": {
"en": "architecto",
"ar": "architecto"
},
"order": 4326.41688,
"visible_to_customer": false,
"customer_responsible": false,
"online_order_step": false,
"offline_order_step": false,
"auto_generate_documents": false,
"auto_submitted": false,
"user_notified_on_approve": true,
"entities": [
{
"name": {
"ar": "architecto",
"en": "architecto"
},
"editable_by_customer": false,
"auto_generate_documents": false,
"is_user_notified": true,
"fields": [
{
"name": "architecto",
"type": "architecto",
"label": {
"ar": "architecto",
"en": "architecto"
},
"template_id": 16
}
]
}
]
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
DELETE api/admin/order-steps/{id}
Example request:
curl --request DELETE \
"http://localhost/api/admin/order-steps/architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/order-steps/architecto"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/admin/order-steps-field-types
Example request:
curl --request GET \
--get "http://localhost/api/admin/order-steps-field-types" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/order-steps-field-types"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Display a listing of templates
Example request:
curl --request GET \
--get "http://localhost/api/admin/auto-generated-document-templates" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/auto-generated-document-templates"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Store a newly created template
Example request:
curl --request POST \
"http://localhost/api/admin/auto-generated-document-templates" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"b\",
\"templatable_type\": \"order_entity_field\",
\"html_content\": \"architecto\",
\"css_styles\": \"architecto\",
\"version\": \"n\",
\"order_id\": 16
}"
const url = new URL(
"http://localhost/api/admin/auto-generated-document-templates"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "b",
"templatable_type": "order_entity_field",
"html_content": "architecto",
"css_styles": "architecto",
"version": "n",
"order_id": 16
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get available templatable types
Example request:
curl --request GET \
--get "http://localhost/api/admin/auto-generated-document-templates/types" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/auto-generated-document-templates/types"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get available PDF variable keys for Order model Includes order relations and step entity field values
Example request:
curl --request GET \
--get "http://localhost/api/admin/auto-generated-document-templates/variables/available" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/auto-generated-document-templates/variables/available"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Display the specified template
Example request:
curl --request GET \
--get "http://localhost/api/admin/auto-generated-document-templates/architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/auto-generated-document-templates/architecto"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update the specified template
Example request:
curl --request PUT \
"http://localhost/api/admin/auto-generated-document-templates/architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"b\",
\"templatable_type\": \"order_entity_field\",
\"html_content\": \"architecto\",
\"css_styles\": \"architecto\",
\"version\": \"n\",
\"order_id\": 16
}"
const url = new URL(
"http://localhost/api/admin/auto-generated-document-templates/architecto"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "b",
"templatable_type": "order_entity_field",
"html_content": "architecto",
"css_styles": "architecto",
"version": "n",
"order_id": 16
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Remove the specified template
Example request:
curl --request DELETE \
"http://localhost/api/admin/auto-generated-document-templates/architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/auto-generated-document-templates/architecto"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Test render a template with order data
Example request:
curl --request POST \
"http://localhost/api/admin/auto-generated-document-templates/render-test" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"template_id\": 16,
\"html_content\": \"architecto\",
\"css_styles\": \"architecto\",
\"order_id\": 16
}"
const url = new URL(
"http://localhost/api/admin/auto-generated-document-templates/render-test"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"template_id": 16,
"html_content": "architecto",
"css_styles": "architecto",
"order_id": 16
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Validate template HTML without rendering
Example request:
curl --request POST \
"http://localhost/api/admin/auto-generated-document-templates/validate" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"html_content\": \"architecto\"
}"
const url = new URL(
"http://localhost/api/admin/auto-generated-document-templates/validate"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"html_content": "architecto"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Display a listing of notification templates
Example request:
curl --request GET \
--get "http://localhost/api/admin/order-step-notification-templates" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/order-step-notification-templates"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Store a newly created template
Example request:
curl --request POST \
"http://localhost/api/admin/order-step-notification-templates" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"b\",
\"subject\": \"n\",
\"locale\": \"ar\",
\"template_type\": \"admin\",
\"html_content\": \"architecto\",
\"css_styles\": \"architecto\",
\"version\": \"n\"
}"
const url = new URL(
"http://localhost/api/admin/order-step-notification-templates"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "b",
"subject": "n",
"locale": "ar",
"template_type": "admin",
"html_content": "architecto",
"css_styles": "architecto",
"version": "n"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get available variables for notification templates
Example request:
curl --request GET \
--get "http://localhost/api/admin/order-step-notification-templates/variables/available" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/order-step-notification-templates/variables/available"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get available templateable types for form selection
Example request:
curl --request GET \
--get "http://localhost/api/admin/order-step-notification-templates/templateable-types" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/order-step-notification-templates/templateable-types"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Render template preview with order data and optionally send test email If order_id and step_id are not provided, they will be automatically fetched from the database
Example request:
curl --request POST \
"http://localhost/api/admin/order-step-notification-templates/render-preview" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"template_id\": \"architecto\",
\"send_email\": false,
\"test_email\": \"zbailey@example.net\"
}"
const url = new URL(
"http://localhost/api/admin/order-step-notification-templates/render-preview"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"template_id": "architecto",
"send_email": false,
"test_email": "zbailey@example.net"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Attach template to OrderStep or OrderEntityField
Example request:
curl --request POST \
"http://localhost/api/admin/order-step-notification-templates/attach" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"template_id\": \"architecto\",
\"templateable_type\": \"order_step\",
\"templateable_id\": 16,
\"notification_type\": \"updated\"
}"
const url = new URL(
"http://localhost/api/admin/order-step-notification-templates/attach"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"template_id": "architecto",
"templateable_type": "order_step",
"templateable_id": 16,
"notification_type": "updated"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Detach template from OrderStep or OrderEntityField
Example request:
curl --request POST \
"http://localhost/api/admin/order-step-notification-templates/detach" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"template_id\": \"architecto\",
\"templateable_type\": \"order_step\",
\"templateable_id\": 16,
\"notification_type\": \"rejected\"
}"
const url = new URL(
"http://localhost/api/admin/order-step-notification-templates/detach"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"template_id": "architecto",
"templateable_type": "order_step",
"templateable_id": 16,
"notification_type": "rejected"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get templates attached to a specific OrderStep or OrderEntityField
Example request:
curl --request GET \
--get "http://localhost/api/admin/order-step-notification-templates/attached" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"templateable_type\": \"order_step\",
\"templateable_id\": 16
}"
const url = new URL(
"http://localhost/api/admin/order-step-notification-templates/attached"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"templateable_type": "order_step",
"templateable_id": 16
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Display the specified template
Example request:
curl --request GET \
--get "http://localhost/api/admin/order-step-notification-templates/architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/order-step-notification-templates/architecto"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update the specified template
Example request:
curl --request PUT \
"http://localhost/api/admin/order-step-notification-templates/architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"b\",
\"subject\": \"n\",
\"locale\": \"en\",
\"template_type\": \"user\",
\"html_content\": \"architecto\",
\"css_styles\": \"architecto\",
\"version\": \"n\"
}"
const url = new URL(
"http://localhost/api/admin/order-step-notification-templates/architecto"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "b",
"subject": "n",
"locale": "en",
"template_type": "user",
"html_content": "architecto",
"css_styles": "architecto",
"version": "n"
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Remove the specified template
Example request:
curl --request DELETE \
"http://localhost/api/admin/order-step-notification-templates/architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/order-step-notification-templates/architecto"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get fee associations
Example request:
curl --request GET \
--get "http://localhost/api/admin/additional-fees/architecto/associations" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/additional-fees/architecto/associations"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Attach fee to vehicle model
Example request:
curl --request POST \
"http://localhost/api/admin/additional-fees/architecto/attach-model" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"vehicle_model_id\": \"architecto\",
\"amount\": 39
}"
const url = new URL(
"http://localhost/api/admin/additional-fees/architecto/attach-model"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"vehicle_model_id": "architecto",
"amount": 39
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Attach fee to vehicle make
Example request:
curl --request POST \
"http://localhost/api/admin/additional-fees/architecto/attach-make" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"vehicle_make_id\": \"architecto\",
\"amount\": 39
}"
const url = new URL(
"http://localhost/api/admin/additional-fees/architecto/attach-make"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"vehicle_make_id": "architecto",
"amount": 39
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Detach fee from vehicle model
Example request:
curl --request DELETE \
"http://localhost/api/admin/additional-fees/architecto/detach-model/architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/additional-fees/architecto/detach-model/architecto"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Detach fee from vehicle make
Example request:
curl --request DELETE \
"http://localhost/api/admin/additional-fees/architecto/detach-make/architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/additional-fees/architecto/detach-make/architecto"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Display a listing of the resource.
Example request:
curl --request GET \
--get "http://localhost/api/admin/additional-fees" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/additional-fees"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Store a newly created resource in storage.
Example request:
curl --request POST \
"http://localhost/api/admin/additional-fees" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": {
\"en\": \"b\",
\"ar\": \"n\"
},
\"slug\": \"g\",
\"amount\": 12,
\"type\": \"percentage\",
\"is_taxable\": true,
\"active\": false
}"
const url = new URL(
"http://localhost/api/admin/additional-fees"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": {
"en": "b",
"ar": "n"
},
"slug": "g",
"amount": 12,
"type": "percentage",
"is_taxable": true,
"active": false
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Display the specified resource.
Example request:
curl --request GET \
--get "http://localhost/api/admin/additional-fees/16" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/additional-fees/16"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update the specified resource in storage.
Example request:
curl --request PUT \
"http://localhost/api/admin/additional-fees/16" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": {
\"en\": \"b\",
\"ar\": \"n\"
},
\"slug\": \"g\",
\"amount\": 12,
\"type\": \"fixed\",
\"is_taxable\": true,
\"active\": false
}"
const url = new URL(
"http://localhost/api/admin/additional-fees/16"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": {
"en": "b",
"ar": "n"
},
"slug": "g",
"amount": 12,
"type": "fixed",
"is_taxable": true,
"active": false
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Remove the specified resource from storage.
Example request:
curl --request DELETE \
"http://localhost/api/admin/additional-fees/16" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/additional-fees/16"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/orders/{order}/steps
Example request:
curl --request GET \
--get "http://localhost/api/orders/architecto/steps" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/orders/architecto/steps"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/orders/{orderId}/steps/save-values
Example request:
curl --request POST \
"http://localhost/api/orders/architecto/steps/save-values" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
const url = new URL(
"http://localhost/api/orders/architecto/steps/save-values"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/orders/{orderId}/steps/submit
Example request:
curl --request POST \
"http://localhost/api/orders/architecto/steps/submit" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"status\": \"approved\",
\"comments\": [
\"architecto\"
]
}"
const url = new URL(
"http://localhost/api/orders/architecto/steps/submit"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"status": "approved",
"comments": [
"architecto"
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/orders/steps/comments/{commentId}/reply
Example request:
curl --request POST \
"http://localhost/api/orders/steps/comments/architecto/reply" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/orders/steps/comments/architecto/reply"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
PATCH api/admin/payments/{id}
Example request:
curl --request PATCH \
"http://localhost/api/admin/payments/architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"status\": 1,
\"comment\": \"architecto\"
}"
const url = new URL(
"http://localhost/api/admin/payments/architecto"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"status": 1,
"comment": "architecto"
};
fetch(url, {
method: "PATCH",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/admin/auth/login
Example request:
curl --request POST \
"http://localhost/api/admin/auth/login" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"email\": \"gbailey@example.net\",
\"password\": \"architecto\"
}"
const url = new URL(
"http://localhost/api/admin/auth/login"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"email": "gbailey@example.net",
"password": "architecto"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/admin/auth/logout
Example request:
curl --request POST \
"http://localhost/api/admin/auth/logout" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/auth/logout"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/admin/auth/reset-password/{admin}
Example request:
curl --request POST \
"http://localhost/api/admin/auth/reset-password/architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"password\": \"|]|{+-\"
}"
const url = new URL(
"http://localhost/api/admin/auth/reset-password/architecto"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"password": "|]|{+-"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/admin/auth/my-leads
Example request:
curl --request GET \
--get "http://localhost/api/admin/auth/my-leads" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/auth/my-leads"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/admin/admins/send-verification-code
Example request:
curl --request POST \
"http://localhost/api/admin/admins/send-verification-code" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"email\": \"gbailey@example.net\"
}"
const url = new URL(
"http://localhost/api/admin/admins/send-verification-code"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"email": "gbailey@example.net"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/admin/admins/verify
Example request:
curl --request POST \
"http://localhost/api/admin/admins/verify" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"email\": \"gbailey@example.net\",
\"code\": \"569775\"
}"
const url = new URL(
"http://localhost/api/admin/admins/verify"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"email": "gbailey@example.net",
"code": "569775"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/admin/admins
Example request:
curl --request GET \
--get "http://localhost/api/admin/admins" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"sales_type\": \"iir\",
\"type\": \"sales\"
}"
const url = new URL(
"http://localhost/api/admin/admins"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"sales_type": "iir",
"type": "sales"
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/admin/admins
Example request:
curl --request POST \
"http://localhost/api/admin/admins" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"first_name\": \"b\",
\"last_name\": \"n\",
\"email\": \"ashly64@example.com\",
\"mobile\": \"v\",
\"password\": \"BNvYgxwmi\\/#iw\\/kX\",
\"address\": {
\"region\": \"w\",
\"street\": \"l\"
},
\"sales_type\": \"iir\",
\"type\": \"sales\"
}"
const url = new URL(
"http://localhost/api/admin/admins"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"first_name": "b",
"last_name": "n",
"email": "ashly64@example.com",
"mobile": "v",
"password": "BNvYgxwmi\/#iw\/kX",
"address": {
"region": "w",
"street": "l"
},
"sales_type": "iir",
"type": "sales"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/admin/admins/{id}
Example request:
curl --request GET \
--get "http://localhost/api/admin/admins/architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/admins/architecto"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
DELETE api/admin/admins/{id}
Example request:
curl --request DELETE \
"http://localhost/api/admin/admins/architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/admins/architecto"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/admin/admins/{id}/statistics
Example request:
curl --request GET \
--get "http://localhost/api/admin/admins/architecto/statistics" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"statistics\": []
}"
const url = new URL(
"http://localhost/api/admin/admins/architecto/statistics"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"statistics": []
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/admin/admins/change-status/{id}
Example request:
curl --request POST \
"http://localhost/api/admin/admins/change-status/architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"status\": 2
}"
const url = new URL(
"http://localhost/api/admin/admins/change-status/architecto"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"status": 2
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/admin/change-password
Example request:
curl --request POST \
"http://localhost/api/admin/change-password" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"old_password\": \"architecto\",
\"password\": \"]|{+-0pBNvYg\"
}"
const url = new URL(
"http://localhost/api/admin/change-password"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"old_password": "architecto",
"password": "]|{+-0pBNvYg"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/admin/roles
Example request:
curl --request GET \
--get "http://localhost/api/admin/roles" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/roles"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/admin/roles
Example request:
curl --request POST \
"http://localhost/api/admin/roles" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"b\",
\"permissions\": [
\"architecto\"
]
}"
const url = new URL(
"http://localhost/api/admin/roles"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "b",
"permissions": [
"architecto"
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/admin/roles/{id}
Example request:
curl --request GET \
--get "http://localhost/api/admin/roles/architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/roles/architecto"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
PUT api/admin/roles/{id}
Example request:
curl --request PUT \
"http://localhost/api/admin/roles/architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"b\",
\"permissions\": [
\"architecto\"
]
}"
const url = new URL(
"http://localhost/api/admin/roles/architecto"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "b",
"permissions": [
"architecto"
]
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
DELETE api/admin/roles/{id}
Example request:
curl --request DELETE \
"http://localhost/api/admin/roles/architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/roles/architecto"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/select/roles
Example request:
curl --request GET \
--get "http://localhost/api/select/roles" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/select/roles"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/select/permissions
Example request:
curl --request GET \
--get "http://localhost/api/select/permissions" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/select/permissions"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Handle user registration.
Example request:
curl --request POST \
"http://localhost/api/users/register" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/users/register"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/users/login
Example request:
curl --request POST \
"http://localhost/api/users/login" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/users/login"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/users/callback-url/{driver}
Example request:
curl --request GET \
--get "http://localhost/api/users/callback-url/architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/users/callback-url/architecto"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/users/exchange-code
Example request:
curl --request GET \
--get "http://localhost/api/users/exchange-code" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"code\": \"architecto\"
}"
const url = new URL(
"http://localhost/api/users/exchange-code"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"code": "architecto"
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/users/forgot-password
Example request:
curl --request POST \
"http://localhost/api/users/forgot-password" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"email\": \"gbailey@example.net\",
\"method\": \"email\"
}"
const url = new URL(
"http://localhost/api/users/forgot-password"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"email": "gbailey@example.net",
"method": "email"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/users/verify-reset-code
Example request:
curl --request POST \
"http://localhost/api/users/verify-reset-code" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"code\": \"bngzm\",
\"method\": \"mobile\"
}"
const url = new URL(
"http://localhost/api/users/verify-reset-code"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"code": "bngzm",
"method": "mobile"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/users/reset-password
Example request:
curl --request POST \
"http://localhost/api/users/reset-password" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"password\": \"|]|{+-\",
\"token\": \"architecto\",
\"method\": \"mobile\"
}"
const url = new URL(
"http://localhost/api/users/reset-password"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"password": "|]|{+-",
"token": "architecto",
"method": "mobile"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/users/send-verify-email
Example request:
curl --request POST \
"http://localhost/api/users/send-verify-email" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"email\": \"gbailey@example.net\"
}"
const url = new URL(
"http://localhost/api/users/send-verify-email"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"email": "gbailey@example.net"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/users/verify-email
Example request:
curl --request POST \
"http://localhost/api/users/verify-email" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"code\": \"architecto\",
\"email\": \"zbailey@example.net\"
}"
const url = new URL(
"http://localhost/api/users/verify-email"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"code": "architecto",
"email": "zbailey@example.net"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/users/refresh
Example request:
curl --request POST \
"http://localhost/api/users/refresh" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/users/refresh"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/users
Example request:
curl --request GET \
--get "http://localhost/api/users" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/users"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/users/logout
Example request:
curl --request POST \
"http://localhost/api/users/logout" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/users/logout"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update the specified resource in storage.
Example request:
curl --request PUT \
"http://localhost/api/users" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"preferred_language\": \"ar\",
\"first_name\": \"b\",
\"last_name\": \"n\",
\"email\": \"ashly64@example.com\",
\"secondary_email\": \"justina.gaylord@example.org\",
\"mobile\": \"ikhwaykcmyuwpwlv\",
\"secondary_mobile\": \"qwrsitcpscqldzsn\",
\"country_code\": \"r\",
\"address\": {
\"region\": \"w\",
\"country\": \"t\",
\"city\": \"u\",
\"street\": \"j\",
\"area\": \"w\"
}
}"
const url = new URL(
"http://localhost/api/users"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"preferred_language": "ar",
"first_name": "b",
"last_name": "n",
"email": "ashly64@example.com",
"secondary_email": "justina.gaylord@example.org",
"mobile": "ikhwaykcmyuwpwlv",
"secondary_mobile": "qwrsitcpscqldzsn",
"country_code": "r",
"address": {
"region": "w",
"country": "t",
"city": "u",
"street": "j",
"area": "w"
}
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
PATCH api/users/preferred-language
Example request:
curl --request PATCH \
"http://localhost/api/users/preferred-language" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"preferred_language\": null
}"
const url = new URL(
"http://localhost/api/users/preferred-language"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"preferred_language": null
};
fetch(url, {
method: "PATCH",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/users/vehicles
Example request:
curl --request GET \
--get "http://localhost/api/users/vehicles" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/users/vehicles"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/users/orders
Example request:
curl --request GET \
--get "http://localhost/api/users/orders" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/users/orders"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/users/change-password
Example request:
curl --request POST \
"http://localhost/api/users/change-password" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/users/change-password"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Display a listing of the resource.
Example request:
curl --request GET \
--get "http://localhost/api/users/notifications" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/users/notifications"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update the specified resource in storage.
Example request:
curl --request PATCH \
"http://localhost/api/users/notifications/mark-all-as-read" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/users/notifications/mark-all-as-read"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "PATCH",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update the specified resource in storage.
Example request:
curl --request PATCH \
"http://localhost/api/users/notifications/mark-many-as-read" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/users/notifications/mark-many-as-read"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "PATCH",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
PATCH api/users/notifications/{id}
Example request:
curl --request PATCH \
"http://localhost/api/users/notifications/architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/users/notifications/architecto"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "PATCH",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Remove the specified resource from storage.
Example request:
curl --request DELETE \
"http://localhost/api/users/notifications/architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/users/notifications/architecto"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/users/send-verify-mobile
Example request:
curl --request POST \
"http://localhost/api/users/send-verify-mobile" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"mobile\": \"architecto\",
\"country_code\": \"architecto\"
}"
const url = new URL(
"http://localhost/api/users/send-verify-mobile"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"mobile": "architecto",
"country_code": "architecto"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/users/verify-mobile
Example request:
curl --request POST \
"http://localhost/api/users/verify-mobile" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/users/verify-mobile"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/users/financing-applications
Example request:
curl --request GET \
--get "http://localhost/api/users/financing-applications" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/users/financing-applications"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/users/financing-applications/{id}
Example request:
curl --request GET \
--get "http://localhost/api/users/financing-applications/architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/users/financing-applications/architecto"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Store a newly created resource in storage.
Example request:
curl --request POST \
"http://localhost/api/users/favorites" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"variant_id\": \"architecto\",
\"exterior_color_id\": \"architecto\",
\"interior_color_id\": \"architecto\"
}"
const url = new URL(
"http://localhost/api/users/favorites"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"variant_id": "architecto",
"exterior_color_id": "architecto",
"interior_color_id": "architecto"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Display a listing of the resource.
Example request:
curl --request GET \
--get "http://localhost/api/users/favorites" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/users/favorites"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Remove the specified resource from storage.
Example request:
curl --request DELETE \
"http://localhost/api/users/favorites/architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/users/favorites/architecto"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Display a listing of the resource.
Example request:
curl --request GET \
--get "http://localhost/api/admin/makes" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/makes"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Store a newly created resource in storage.
Example request:
curl --request POST \
"http://localhost/api/admin/makes" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"b\",
\"code\": \"n\",
\"slug\": \"g\",
\"hidden\": true,
\"is_service_booking_enabled\": true,
\"is_location_checkout_enabled\": true,
\"primary_color_hex\": \"zmiyvd\",
\"secondary_color_hex\": \"ljnikh\",
\"hotline_number\": \"waykcmyuwpwlvqwr\",
\"explore_button\": \"request_quote\",
\"whats_app_number\": \"sitcpscqldzsnrwt\",
\"code_id\": 16
}"
const url = new URL(
"http://localhost/api/admin/makes"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "b",
"code": "n",
"slug": "g",
"hidden": true,
"is_service_booking_enabled": true,
"is_location_checkout_enabled": true,
"primary_color_hex": "zmiyvd",
"secondary_color_hex": "ljnikh",
"hotline_number": "waykcmyuwpwlvqwr",
"explore_button": "request_quote",
"whats_app_number": "sitcpscqldzsnrwt",
"code_id": 16
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Show the specified resource.
Example request:
curl --request GET \
--get "http://localhost/api/admin/makes/architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/makes/architecto"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
PUT api/admin/makes/{id}
Example request:
curl --request PUT \
"http://localhost/api/admin/makes/architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"b\",
\"code\": \"n\",
\"slug\": \"g\",
\"hidden\": false,
\"is_service_booking_enabled\": true,
\"is_location_checkout_enabled\": true,
\"primary_color_hex\": \"zmiyvd\",
\"secondary_color_hex\": \"ljnikh\",
\"hotline_number\": \"waykcmyuwpwlvqwr\",
\"explore_button\": \"call_us\",
\"whats_app_number\": \"sitcpscqldzsnrwt\",
\"code_id\": 16
}"
const url = new URL(
"http://localhost/api/admin/makes/architecto"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "b",
"code": "n",
"slug": "g",
"hidden": false,
"is_service_booking_enabled": true,
"is_location_checkout_enabled": true,
"primary_color_hex": "zmiyvd",
"secondary_color_hex": "ljnikh",
"hotline_number": "waykcmyuwpwlvqwr",
"explore_button": "call_us",
"whats_app_number": "sitcpscqldzsnrwt",
"code_id": 16
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Remove the specified resource from storage.
Example request:
curl --request DELETE \
"http://localhost/api/admin/makes/architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/makes/architecto"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Store a newly created resource in storage.
Example request:
curl --request POST \
"http://localhost/api/admin/models" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": {
\"ar\": \"b\",
\"en\": \"n\"
},
\"vehicle_make_id\": \"architecto\",
\"description\": {
\"ar\": \"b\",
\"en\": \"n\"
},
\"code\": \"g\",
\"slug\": \"z\",
\"hidden\": true,
\"featured\": true,
\"long_description\": {
\"ar\": \"architecto\",
\"en\": \"architecto\"
},
\"order\": 16,
\"body_type_ids\": [
\"architecto\"
],
\"hex_code\": \"ngzmiy\",
\"year\": \"v\",
\"max_speed\": \"d\",
\"engine_power\": \"l\",
\"drive_train\": \"j\",
\"is_old\": false
}"
const url = new URL(
"http://localhost/api/admin/models"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": {
"ar": "b",
"en": "n"
},
"vehicle_make_id": "architecto",
"description": {
"ar": "b",
"en": "n"
},
"code": "g",
"slug": "z",
"hidden": true,
"featured": true,
"long_description": {
"ar": "architecto",
"en": "architecto"
},
"order": 16,
"body_type_ids": [
"architecto"
],
"hex_code": "ngzmiy",
"year": "v",
"max_speed": "d",
"engine_power": "l",
"drive_train": "j",
"is_old": false
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Show the specified resource.
Example request:
curl --request GET \
--get "http://localhost/api/admin/models/architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/models/architecto"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
PUT api/admin/models/{id}
Example request:
curl --request PUT \
"http://localhost/api/admin/models/architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": {
\"ar\": \"b\",
\"en\": \"n\"
},
\"vehicle_make_id\": \"architecto\",
\"description\": {
\"ar\": \"b\",
\"en\": \"n\"
},
\"code\": \"g\",
\"slug\": \"z\",
\"hidden\": true,
\"featured\": false,
\"long_description\": {
\"ar\": \"architecto\",
\"en\": \"architecto\"
},
\"order\": 16,
\"body_type_ids\": [
\"architecto\"
],
\"hex_code\": \"ngzmiy\",
\"year\": \"v\",
\"max_speed\": \"d\",
\"engine_power\": \"l\",
\"drive_train\": \"j\",
\"is_old\": false
}"
const url = new URL(
"http://localhost/api/admin/models/architecto"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": {
"ar": "b",
"en": "n"
},
"vehicle_make_id": "architecto",
"description": {
"ar": "b",
"en": "n"
},
"code": "g",
"slug": "z",
"hidden": true,
"featured": false,
"long_description": {
"ar": "architecto",
"en": "architecto"
},
"order": 16,
"body_type_ids": [
"architecto"
],
"hex_code": "ngzmiy",
"year": "v",
"max_speed": "d",
"engine_power": "l",
"drive_train": "j",
"is_old": false
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Remove the specified resource from storage.
Example request:
curl --request DELETE \
"http://localhost/api/admin/models/architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/models/architecto"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/admin/models/{model_id}/exterior_colors
Example request:
curl --request POST \
"http://localhost/api/admin/models/architecto/exterior_colors" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/models/architecto/exterior_colors"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/admin/models/{model_id}/interior_colors
Example request:
curl --request POST \
"http://localhost/api/admin/models/architecto/interior_colors" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/models/architecto/interior_colors"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
DELETE api/admin/models/{model_id}/exterior_colors/{exterior_color_id}
Example request:
curl --request DELETE \
"http://localhost/api/admin/models/architecto/exterior_colors/architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/models/architecto/exterior_colors/architecto"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
DELETE api/admin/models/{model_id}/interior_colors/{interior_color_id}
Example request:
curl --request DELETE \
"http://localhost/api/admin/models/architecto/interior_colors/architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/models/architecto/interior_colors/architecto"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
PATCH api/admin/variants/{variant_id}/addon-prices
Example request:
curl --request PATCH \
"http://localhost/api/admin/variants/architecto/addon-prices" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"addon_prices\": [
{
\"resource_id\": 16,
\"resource_type\": \"exterior_color\",
\"price\": 39
}
]
}"
const url = new URL(
"http://localhost/api/admin/variants/architecto/addon-prices"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"addon_prices": [
{
"resource_id": 16,
"resource_type": "exterior_color",
"price": 39
}
]
};
fetch(url, {
method: "PATCH",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Display a listing of the resource.
Example request:
curl --request GET \
--get "http://localhost/api/admin/makes/architecto/models" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/makes/architecto/models"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Show the specified resource.
Example request:
curl --request GET \
--get "http://localhost/api/admin/makes/architecto/models/architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/makes/architecto/models/architecto"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Store a newly created resource in storage.
Example request:
curl --request POST \
"http://localhost/api/admin/variants" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": {
\"ar\": \"architecto\",
\"en\": \"architecto\"
},
\"display_name\": {
\"ar\": \"architecto\",
\"en\": \"architecto\"
},
\"code\": \"n\",
\"transmission_id\": \"architecto\",
\"body_type_id\": \"architecto\",
\"vehicle_model_id\": \"architecto\",
\"fuel_type_id\": \"architecto\",
\"warranty_months\": \"n\",
\"warranty_mileage\": \"g\",
\"price\": 12,
\"hidden\": false,
\"featured\": false,
\"financing_price\": 77,
\"retail_price\": 8,
\"model_year\": \"yvdl\",
\"addon_price\": 9,
\"is_parent\": false
}"
const url = new URL(
"http://localhost/api/admin/variants"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": {
"ar": "architecto",
"en": "architecto"
},
"display_name": {
"ar": "architecto",
"en": "architecto"
},
"code": "n",
"transmission_id": "architecto",
"body_type_id": "architecto",
"vehicle_model_id": "architecto",
"fuel_type_id": "architecto",
"warranty_months": "n",
"warranty_mileage": "g",
"price": 12,
"hidden": false,
"featured": false,
"financing_price": 77,
"retail_price": 8,
"model_year": "yvdl",
"addon_price": 9,
"is_parent": false
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Show the specified resource.
Example request:
curl --request GET \
--get "http://localhost/api/admin/variants/architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/variants/architecto"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
PUT api/admin/variants/{id}
Example request:
curl --request PUT \
"http://localhost/api/admin/variants/architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": {
\"ar\": \"architecto\",
\"en\": \"architecto\"
},
\"display_name\": {
\"ar\": \"architecto\",
\"en\": \"architecto\"
},
\"code\": \"n\",
\"transmission_id\": \"architecto\",
\"body_type_id\": \"architecto\",
\"vehicle_model_id\": \"architecto\",
\"fuel_type_id\": \"architecto\",
\"warranty_months\": \"n\",
\"warranty_mileage\": \"g\",
\"price\": 12,
\"hidden\": true,
\"featured\": true,
\"financing_price\": 77,
\"retail_price\": 8,
\"model_year\": \"yvdl\",
\"addon_price\": 9,
\"is_parent\": false
}"
const url = new URL(
"http://localhost/api/admin/variants/architecto"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": {
"ar": "architecto",
"en": "architecto"
},
"display_name": {
"ar": "architecto",
"en": "architecto"
},
"code": "n",
"transmission_id": "architecto",
"body_type_id": "architecto",
"vehicle_model_id": "architecto",
"fuel_type_id": "architecto",
"warranty_months": "n",
"warranty_mileage": "g",
"price": 12,
"hidden": true,
"featured": true,
"financing_price": 77,
"retail_price": 8,
"model_year": "yvdl",
"addon_price": 9,
"is_parent": false
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Remove the specified resource from storage.
Example request:
curl --request DELETE \
"http://localhost/api/admin/variants/architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/variants/architecto"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/admin/variants/{variant_id}/exterior_colors
Example request:
curl --request POST \
"http://localhost/api/admin/variants/architecto/exterior_colors" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/variants/architecto/exterior_colors"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/admin/variants/{variant_id}/interior_colors
Example request:
curl --request POST \
"http://localhost/api/admin/variants/architecto/interior_colors" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/variants/architecto/interior_colors"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
DELETE api/admin/variants/{variant_id}/exterior_colors/{exterior_color_id}
Example request:
curl --request DELETE \
"http://localhost/api/admin/variants/architecto/exterior_colors/architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/variants/architecto/exterior_colors/architecto"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
DELETE api/admin/variants/{variant_id}/interior_colors/{interior_color_id}
Example request:
curl --request DELETE \
"http://localhost/api/admin/variants/architecto/interior_colors/architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/variants/architecto/interior_colors/architecto"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/admin/variants/{variant_id}/all-available-colors
Example request:
curl --request GET \
--get "http://localhost/api/admin/variants/architecto/all-available-colors" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/variants/architecto/all-available-colors"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get variants that can be attached as children to this variant (same model, not self, not parents).
Example request:
curl --request GET \
--get "http://localhost/api/admin/variants/architecto/eligible-children" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/variants/architecto/eligible-children"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Display a listing of the resource.
Example request:
curl --request GET \
--get "http://localhost/api/admin/models/architecto/variants" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/models/architecto/variants"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/admin/vehicles/filter
Example request:
curl --request GET \
--get "http://localhost/api/admin/vehicles/filter" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/vehicles/filter"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/admin/vehicles/chassis/{chassis}
Example request:
curl --request GET \
--get "http://localhost/api/admin/vehicles/chassis/architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/vehicles/chassis/architecto"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Display a listing of the resource.
Example request:
curl --request GET \
--get "http://localhost/api/admin/vehicles" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"used\": true
}"
const url = new URL(
"http://localhost/api/admin/vehicles"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"used": true
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Store a newly created resource in storage.
Example request:
curl --request POST \
"http://localhost/api/admin/vehicles" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"variant_id\": \"architecto\",
\"model_year\": \"2026\",
\"price\": 16,
\"used\": false,
\"stockbook_number\": 16,
\"interior_color_id\": 16,
\"user_id\": 16,
\"chassis\": \"n\",
\"vehicle_code\": \"g\",
\"ownership_type\": 16,
\"location_id\": 16,
\"mileage\": \"architecto\",
\"transmission_id\": 16,
\"exterior_color_id\": 16,
\"state\": \"ngzmiyvdljnikhwa\",
\"reserved\": false,
\"reserved_date\": \"2026-03-02T22:08:08\",
\"financing_price\": \"architecto\",
\"last_synced\": \"2026-03-02T22:08:08\",
\"retail_price\": \"architecto\",
\"make_model\": \"n\",
\"type\": \"customer\",
\"hidden\": true,
\"plate_no\": \"g\"
}"
const url = new URL(
"http://localhost/api/admin/vehicles"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"variant_id": "architecto",
"model_year": "2026",
"price": 16,
"used": false,
"stockbook_number": 16,
"interior_color_id": 16,
"user_id": 16,
"chassis": "n",
"vehicle_code": "g",
"ownership_type": 16,
"location_id": 16,
"mileage": "architecto",
"transmission_id": 16,
"exterior_color_id": 16,
"state": "ngzmiyvdljnikhwa",
"reserved": false,
"reserved_date": "2026-03-02T22:08:08",
"financing_price": "architecto",
"last_synced": "2026-03-02T22:08:08",
"retail_price": "architecto",
"make_model": "n",
"type": "customer",
"hidden": true,
"plate_no": "g"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Show the specified resource.
Example request:
curl --request GET \
--get "http://localhost/api/admin/vehicles/architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/vehicles/architecto"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
PUT api/admin/vehicles/{id}
Example request:
curl --request PUT \
"http://localhost/api/admin/vehicles/architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"variant_id\": \"architecto\",
\"model_year\": \"2026\",
\"price\": 16,
\"used\": true,
\"stockbook_number\": 16,
\"interior_color_id\": 16,
\"user_id\": 16,
\"chassis\": \"n\",
\"vehicle_code\": \"g\",
\"ownership_type\": 16,
\"location_id\": 16,
\"mileage\": \"architecto\",
\"transmission_id\": 16,
\"exterior_color_id\": 16,
\"state\": \"ngzmiyvdljnikhwa\",
\"reserved\": true,
\"reserved_date\": \"2026-03-02T22:08:08\",
\"financing_price\": \"architecto\",
\"last_synced\": \"2026-03-02T22:08:08\",
\"retail_price\": \"architecto\",
\"make_model\": \"n\",
\"type\": \"customer\",
\"hidden\": true,
\"plate_no\": \"g\"
}"
const url = new URL(
"http://localhost/api/admin/vehicles/architecto"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"variant_id": "architecto",
"model_year": "2026",
"price": 16,
"used": true,
"stockbook_number": 16,
"interior_color_id": 16,
"user_id": 16,
"chassis": "n",
"vehicle_code": "g",
"ownership_type": 16,
"location_id": 16,
"mileage": "architecto",
"transmission_id": 16,
"exterior_color_id": 16,
"state": "ngzmiyvdljnikhwa",
"reserved": true,
"reserved_date": "2026-03-02T22:08:08",
"financing_price": "architecto",
"last_synced": "2026-03-02T22:08:08",
"retail_price": "architecto",
"make_model": "n",
"type": "customer",
"hidden": true,
"plate_no": "g"
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Remove the specified resource from storage.
Example request:
curl --request DELETE \
"http://localhost/api/admin/vehicles/architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/vehicles/architecto"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/admin/vehicles/generate
Example request:
curl --request POST \
"http://localhost/api/admin/vehicles/generate" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/vehicles/generate"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Display a listing of the resource.
Example request:
curl --request GET \
--get "http://localhost/api/admin/body-types" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/body-types"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Store a newly created resource in storage.
Example request:
curl --request POST \
"http://localhost/api/admin/body-types" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/body-types"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Show the specified resource.
Example request:
curl --request GET \
--get "http://localhost/api/admin/body-types/architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/body-types/architecto"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update the specified resource in storage.
Example request:
curl --request PUT \
"http://localhost/api/admin/body-types/architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/body-types/architecto"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "PUT",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Remove the specified resource from storage.
Example request:
curl --request DELETE \
"http://localhost/api/admin/body-types/architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/body-types/architecto"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Display a listing of the resource.
Example request:
curl --request GET \
--get "http://localhost/api/admin/colors" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/colors"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Store a newly created resource in storage.
Example request:
curl --request POST \
"http://localhost/api/admin/colors" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/colors"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Show the specified resource.
Example request:
curl --request GET \
--get "http://localhost/api/admin/colors/architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/colors/architecto"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update the specified resource in storage.
Example request:
curl --request PUT \
"http://localhost/api/admin/colors/architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/colors/architecto"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "PUT",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Remove the specified resource from storage.
Example request:
curl --request DELETE \
"http://localhost/api/admin/colors/architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/colors/architecto"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Display a listing of the resource.
Example request:
curl --request GET \
--get "http://localhost/api/admin/specs-groups" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/specs-groups"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Store a newly created resource in storage.
Example request:
curl --request POST \
"http://localhost/api/admin/specs-groups" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": {
\"en\": \"architecto\",
\"ar\": \"architecto\"
}
}"
const url = new URL(
"http://localhost/api/admin/specs-groups"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": {
"en": "architecto",
"ar": "architecto"
}
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Show the specified resource.
Example request:
curl --request GET \
--get "http://localhost/api/admin/specs-groups/architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/specs-groups/architecto"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
PUT api/admin/specs-groups/{id}
Example request:
curl --request PUT \
"http://localhost/api/admin/specs-groups/architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": {
\"en\": \"architecto\",
\"ar\": \"architecto\"
}
}"
const url = new URL(
"http://localhost/api/admin/specs-groups/architecto"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": {
"en": "architecto",
"ar": "architecto"
}
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Remove the specified resource from storage.
Example request:
curl --request DELETE \
"http://localhost/api/admin/specs-groups/architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/specs-groups/architecto"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Display a listing of the resource.
Example request:
curl --request GET \
--get "http://localhost/api/admin/specs" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/specs"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Store a newly created resource in storage.
Example request:
curl --request POST \
"http://localhost/api/admin/specs" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": {
\"ar\": \"architecto\",
\"en\": \"architecto\"
},
\"type\": \"checkbox\",
\"specs_group_id\": \"architecto\"
}"
const url = new URL(
"http://localhost/api/admin/specs"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": {
"ar": "architecto",
"en": "architecto"
},
"type": "checkbox",
"specs_group_id": "architecto"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Show the specified resource.
Example request:
curl --request GET \
--get "http://localhost/api/admin/specs/architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/specs/architecto"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
PUT api/admin/specs/{id}
Example request:
curl --request PUT \
"http://localhost/api/admin/specs/architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": {
\"ar\": \"architecto\",
\"en\": \"architecto\"
},
\"type\": \"checkbox\",
\"specs_group_id\": \"architecto\"
}"
const url = new URL(
"http://localhost/api/admin/specs/architecto"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": {
"ar": "architecto",
"en": "architecto"
},
"type": "checkbox",
"specs_group_id": "architecto"
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Remove the specified resource from storage.
Example request:
curl --request DELETE \
"http://localhost/api/admin/specs/architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/specs/architecto"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Store a newly created resource in storage.
Example request:
curl --request GET \
--get "http://localhost/api/admin/variants/architecto/spec-value" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/variants/architecto/spec-value"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/admin/models/{model_id}/spec-value
Example request:
curl --request GET \
--get "http://localhost/api/admin/models/architecto/spec-value" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/models/architecto/spec-value"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
PUT api/admin/variants/{variant_id}/spec-value
Example request:
curl --request PUT \
"http://localhost/api/admin/variants/architecto/spec-value" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"specs\": [
{
\"featured\": false
}
]
}"
const url = new URL(
"http://localhost/api/admin/variants/architecto/spec-value"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"specs": [
{
"featured": false
}
]
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
PUT api/admin/models/{model_id}/spec-value
Example request:
curl --request PUT \
"http://localhost/api/admin/models/architecto/spec-value" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"specs\": [
{
\"featured\": true
}
]
}"
const url = new URL(
"http://localhost/api/admin/models/architecto/spec-value"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"specs": [
{
"featured": true
}
]
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/admin/models/{model_id}/warranties
Example request:
curl --request GET \
--get "http://localhost/api/admin/models/architecto/warranties" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/models/architecto/warranties"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/admin/specs/import
Example request:
curl --request POST \
"http://localhost/api/admin/specs/import" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/specs/import"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Display a listing of the resource.
Example request:
curl --request GET \
--get "http://localhost/api/admin/exterior-colors" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/exterior-colors"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Store a newly created resource in storage.
Example request:
curl --request POST \
"http://localhost/api/admin/exterior-colors" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"code\": \"b\",
\"name\": \"architecto\",
\"display_name\": {
\"en\": \"architecto\",
\"ar\": \"architecto\"
},
\"hexcode\": \"architecto\",
\"has_addon\": true,
\"vehicle_make_id\": \"architecto\"
}"
const url = new URL(
"http://localhost/api/admin/exterior-colors"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"code": "b",
"name": "architecto",
"display_name": {
"en": "architecto",
"ar": "architecto"
},
"hexcode": "architecto",
"has_addon": true,
"vehicle_make_id": "architecto"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Show the specified resource.
Example request:
curl --request GET \
--get "http://localhost/api/admin/exterior-colors/architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/exterior-colors/architecto"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update the specified resource in storage.
Example request:
curl --request PUT \
"http://localhost/api/admin/exterior-colors/architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"code\": \"b\",
\"name\": \"architecto\",
\"display_name\": {
\"en\": \"architecto\",
\"ar\": \"architecto\"
},
\"hexcode\": \"architecto\",
\"has_addon\": true,
\"vehicle_make_id\": \"architecto\"
}"
const url = new URL(
"http://localhost/api/admin/exterior-colors/architecto"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"code": "b",
"name": "architecto",
"display_name": {
"en": "architecto",
"ar": "architecto"
},
"hexcode": "architecto",
"has_addon": true,
"vehicle_make_id": "architecto"
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Remove the specified resource from storage.
Example request:
curl --request DELETE \
"http://localhost/api/admin/exterior-colors/architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/exterior-colors/architecto"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Display a listing of the resource.
Example request:
curl --request GET \
--get "http://localhost/api/admin/interior-colors" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/interior-colors"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Store a newly created resource in storage.
Example request:
curl --request POST \
"http://localhost/api/admin/interior-colors" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"code\": \"b\",
\"name\": \"architecto\",
\"display_name\": {
\"en\": \"architecto\",
\"ar\": \"architecto\"
},
\"hexcode\": \"architecto\"
}"
const url = new URL(
"http://localhost/api/admin/interior-colors"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"code": "b",
"name": "architecto",
"display_name": {
"en": "architecto",
"ar": "architecto"
},
"hexcode": "architecto"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Show the specified resource.
Example request:
curl --request GET \
--get "http://localhost/api/admin/interior-colors/architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/interior-colors/architecto"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update the specified resource in storage.
Example request:
curl --request PUT \
"http://localhost/api/admin/interior-colors/architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"code\": \"b\",
\"name\": \"architecto\",
\"display_name\": {
\"en\": \"architecto\",
\"ar\": \"architecto\"
},
\"hexcode\": \"architecto\"
}"
const url = new URL(
"http://localhost/api/admin/interior-colors/architecto"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"code": "b",
"name": "architecto",
"display_name": {
"en": "architecto",
"ar": "architecto"
},
"hexcode": "architecto"
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Remove the specified resource from storage.
Example request:
curl --request DELETE \
"http://localhost/api/admin/interior-colors/architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/interior-colors/architecto"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Display a listing of the resource.
Example request:
curl --request GET \
--get "http://localhost/api/admin/fuel-types" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/fuel-types"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Store a newly created resource in storage.
Example request:
curl --request POST \
"http://localhost/api/admin/fuel-types" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/fuel-types"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Show the specified resource.
Example request:
curl --request GET \
--get "http://localhost/api/admin/fuel-types/architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/fuel-types/architecto"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update the specified resource in storage.
Example request:
curl --request PUT \
"http://localhost/api/admin/fuel-types/architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/fuel-types/architecto"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "PUT",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Remove the specified resource from storage.
Example request:
curl --request DELETE \
"http://localhost/api/admin/fuel-types/architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/fuel-types/architecto"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Display a listing of the resource.
Example request:
curl --request GET \
--get "http://localhost/api/admin/transmissions" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/transmissions"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Store a newly created resource in storage.
Example request:
curl --request POST \
"http://localhost/api/admin/transmissions" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/transmissions"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Show the specified resource.
Example request:
curl --request GET \
--get "http://localhost/api/admin/transmissions/architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/transmissions/architecto"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update the specified resource in storage.
Example request:
curl --request PUT \
"http://localhost/api/admin/transmissions/architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/transmissions/architecto"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "PUT",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Remove the specified resource from storage.
Example request:
curl --request DELETE \
"http://localhost/api/admin/transmissions/architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/transmissions/architecto"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Display a listing of the resource.
Example request:
curl --request GET \
--get "http://localhost/api/admin/accessories" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/accessories"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Store a newly created resource in storage.
Example request:
curl --request POST \
"http://localhost/api/admin/accessories" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"code\": \"architecto\",
\"new_or_used\": \"used\",
\"price\": 39,
\"hidden\": true,
\"name\": {
\"en\": \"b\",
\"ar\": \"n\"
},
\"display_name\": {
\"en\": \"g\",
\"ar\": \"z\"
},
\"description\": {
\"en\": \"m\",
\"ar\": \"i\"
}
}"
const url = new URL(
"http://localhost/api/admin/accessories"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"code": "architecto",
"new_or_used": "used",
"price": 39,
"hidden": true,
"name": {
"en": "b",
"ar": "n"
},
"display_name": {
"en": "g",
"ar": "z"
},
"description": {
"en": "m",
"ar": "i"
}
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Show the specified resource.
Example request:
curl --request GET \
--get "http://localhost/api/admin/accessories/architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/accessories/architecto"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update the specified resource in storage.
Example request:
curl --request PUT \
"http://localhost/api/admin/accessories/architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"code\": \"architecto\",
\"new_or_used\": \"used\",
\"price\": 39,
\"hidden\": true,
\"name\": {
\"en\": \"b\",
\"ar\": \"n\"
},
\"display_name\": {
\"en\": \"g\",
\"ar\": \"z\"
},
\"description\": {
\"en\": \"m\",
\"ar\": \"i\"
}
}"
const url = new URL(
"http://localhost/api/admin/accessories/architecto"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"code": "architecto",
"new_or_used": "used",
"price": 39,
"hidden": true,
"name": {
"en": "b",
"ar": "n"
},
"display_name": {
"en": "g",
"ar": "z"
},
"description": {
"en": "m",
"ar": "i"
}
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Remove the specified resource from storage.
Example request:
curl --request DELETE \
"http://localhost/api/admin/accessories/architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/accessories/architecto"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Display a listing of the resource.
Example request:
curl --request GET \
--get "http://localhost/api/admin/cities" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/cities"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Store a newly created resource in storage.
Example request:
curl --request POST \
"http://localhost/api/admin/cities" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/cities"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Show the specified resource.
Example request:
curl --request GET \
--get "http://localhost/api/admin/cities/architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/cities/architecto"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update the specified resource in storage.
Example request:
curl --request PUT \
"http://localhost/api/admin/cities/architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/cities/architecto"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "PUT",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Remove the specified resource from storage.
Example request:
curl --request DELETE \
"http://localhost/api/admin/cities/architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/cities/architecto"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/admin/cities/{city_id}/locations
Example request:
curl --request GET \
--get "http://localhost/api/admin/cities/architecto/locations" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/cities/architecto/locations"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/admin/cities/{cityId}/delivery-options
Example request:
curl --request GET \
--get "http://localhost/api/admin/cities/architecto/delivery-options" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/cities/architecto/delivery-options"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Display a listing of the resource.
Example request:
curl --request GET \
--get "http://localhost/api/admin/locations" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"location_type\": \"service_center\"
}"
const url = new URL(
"http://localhost/api/admin/locations"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"location_type": "service_center"
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Store a newly created resource in storage.
Example request:
curl --request POST \
"http://localhost/api/admin/locations" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/locations"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Show the specified resource.
Example request:
curl --request GET \
--get "http://localhost/api/admin/locations/architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/locations/architecto"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update the specified resource in storage.
Example request:
curl --request PUT \
"http://localhost/api/admin/locations/architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/locations/architecto"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "PUT",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Remove the specified resource from storage.
Example request:
curl --request DELETE \
"http://localhost/api/admin/locations/architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/locations/architecto"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Display a listing of the resource.
Example request:
curl --request GET \
--get "http://localhost/api/admin/vehicle-groups" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/vehicle-groups"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Store a newly created resource in storage.
Example request:
curl --request POST \
"http://localhost/api/admin/vehicle-groups" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": {
\"en\": \"architecto\",
\"ar\": \"architecto\"
},
\"vehicle_models\": [
4326.41688
]
}"
const url = new URL(
"http://localhost/api/admin/vehicle-groups"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": {
"en": "architecto",
"ar": "architecto"
},
"vehicle_models": [
4326.41688
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Show the specified resource.
Example request:
curl --request GET \
--get "http://localhost/api/admin/vehicle-groups/architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/vehicle-groups/architecto"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
PUT api/admin/vehicle-groups/{id}
Example request:
curl --request PUT \
"http://localhost/api/admin/vehicle-groups/architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": {
\"en\": \"architecto\",
\"ar\": \"architecto\"
},
\"vehicle_models\": [
4326.41688
]
}"
const url = new URL(
"http://localhost/api/admin/vehicle-groups/architecto"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": {
"en": "architecto",
"ar": "architecto"
},
"vehicle_models": [
4326.41688
]
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Remove the specified resource from storage.
Example request:
curl --request DELETE \
"http://localhost/api/admin/vehicle-groups/architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/vehicle-groups/architecto"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Display a listing of the resource.
Example request:
curl --request GET \
--get "http://localhost/api/admin/warranties" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/warranties"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Store a newly created resource in storage.
Example request:
curl --request POST \
"http://localhost/api/admin/warranties" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"code\": \"b\",
\"title\": {
\"en\": \"b\",
\"ar\": \"n\"
},
\"description\": {
\"en\": \"architecto\",
\"ar\": \"architecto\"
},
\"is_default\": true,
\"vehicle_models\": [
{
\"price\": 4326.41688
}
]
}"
const url = new URL(
"http://localhost/api/admin/warranties"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"code": "b",
"title": {
"en": "b",
"ar": "n"
},
"description": {
"en": "architecto",
"ar": "architecto"
},
"is_default": true,
"vehicle_models": [
{
"price": 4326.41688
}
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Show the specified resource.
Example request:
curl --request GET \
--get "http://localhost/api/admin/warranties/architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/warranties/architecto"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update the specified resource in storage.
Example request:
curl --request PUT \
"http://localhost/api/admin/warranties/architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"code\": \"b\",
\"title\": {
\"en\": \"b\",
\"ar\": \"n\"
},
\"description\": {
\"en\": \"architecto\",
\"ar\": \"architecto\"
},
\"is_default\": false,
\"vehicle_models\": [
{
\"price\": 4326.41688
}
]
}"
const url = new URL(
"http://localhost/api/admin/warranties/architecto"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"code": "b",
"title": {
"en": "b",
"ar": "n"
},
"description": {
"en": "architecto",
"ar": "architecto"
},
"is_default": false,
"vehicle_models": [
{
"price": 4326.41688
}
]
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Remove the specified resource from storage.
Example request:
curl --request DELETE \
"http://localhost/api/admin/warranties/architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/warranties/architecto"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Display a listing of the resource.
Example request:
curl --request GET \
--get "http://localhost/api/admin/delivery-options" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/delivery-options"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Store a newly created resource in storage.
Example request:
curl --request POST \
"http://localhost/api/admin/delivery-options" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/delivery-options"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Show the specified resource.
Example request:
curl --request GET \
--get "http://localhost/api/admin/delivery-options/architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/delivery-options/architecto"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update the specified resource in storage.
Example request:
curl --request PUT \
"http://localhost/api/admin/delivery-options/architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/delivery-options/architecto"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "PUT",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Remove the specified resource from storage.
Example request:
curl --request DELETE \
"http://localhost/api/admin/delivery-options/architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/delivery-options/architecto"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/admin/delivery-options/{id}/cities
Example request:
curl --request GET \
--get "http://localhost/api/admin/delivery-options/architecto/cities" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/admin/delivery-options/architecto/cities"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Fetch all models from a target client.
Example request:
curl --request GET \
--get "http://localhost/api/admin/target-models" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"target_client_code\": \"b\",
\"target_client_environment\": \"staging\",
\"per_page\": 22,
\"page\": 67
}"
const url = new URL(
"http://localhost/api/admin/target-models"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"target_client_code": "b",
"target_client_environment": "staging",
"per_page": 22,
"page": 67
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get a specific model from a target client.
Example request:
curl --request GET \
--get "http://localhost/api/admin/target-models/architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"target_client_code\": \"b\",
\"target_client_environment\": \"local\",
\"per_page\": 22,
\"page\": 67
}"
const url = new URL(
"http://localhost/api/admin/target-models/architecto"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"target_client_code": "b",
"target_client_environment": "local",
"per_page": 22,
"page": 67
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/admin/clone/variants/{variant}
Example request:
curl --request POST \
"http://localhost/api/admin/clone/variants/architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"target_client_code\": \"b\",
\"target_client_environment\": \"staging\",
\"target_model_id\": \"architecto\"
}"
const url = new URL(
"http://localhost/api/admin/clone/variants/architecto"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"target_client_code": "b",
"target_client_environment": "staging",
"target_model_id": "architecto"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/admin/clone/variants/{variant}/duplicate
Example request:
curl --request POST \
"http://localhost/api/admin/clone/variants/architecto/duplicate" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"target_model_id\": 16
}"
const url = new URL(
"http://localhost/api/admin/clone/variants/architecto/duplicate"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"target_model_id": 16
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/admin/clone/models/{model}
Example request:
curl --request POST \
"http://localhost/api/admin/clone/models/architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"target_client_code\": \"b\",
\"target_client_environment\": \"architecto\"
}"
const url = new URL(
"http://localhost/api/admin/clone/models/architecto"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"target_client_code": "b",
"target_client_environment": "architecto"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Display a listing of the resource.
Example request:
curl --request GET \
--get "http://localhost/api/vehicle-makes/architecto/vehicle-models" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/vehicle-makes/architecto/vehicle-models"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Display the specified resource.
Example request:
curl --request GET \
--get "http://localhost/api/vehicle-models/architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/vehicle-models/architecto"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Display the specified resource.
Example request:
curl --request GET \
--get "http://localhost/api/vehicle-models/show-by-slug/architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/vehicle-models/show-by-slug/architecto"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Show the specified resource.
Example request:
curl --request GET \
--get "http://localhost/api/vehicle-models/architecto/variants" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/vehicle-models/architecto/variants"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Show the specified resource.
Example request:
curl --request GET \
--get "http://localhost/api/vehicle-models/slug/architecto/variants" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/vehicle-models/slug/architecto/variants"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Model Seo.
Example request:
curl --request GET \
--get "http://localhost/api/vehicle-models/architecto/seo" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/vehicle-models/architecto/seo"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/vehicle-models/{id}/warranties
Example request:
curl --request GET \
--get "http://localhost/api/vehicle-models/architecto/warranties" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/vehicle-models/architecto/warranties"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Display a listing of the resource.
Example request:
curl --request GET \
--get "http://localhost/api/variants" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/variants"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Show the specified resource.
Example request:
curl --request GET \
--get "http://localhost/api/variants/architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/variants/architecto"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/variants/{id}/exterior-colors/{exterior_id}/interior-colors
Example request:
curl --request GET \
--get "http://localhost/api/variants/architecto/exterior-colors/architecto/interior-colors" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/variants/architecto/exterior-colors/architecto/interior-colors"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/variants/{id}/exterior-colors/{exterior_id}/interior-colors/{interior_id}/pdf
Example request:
curl --request GET \
--get "http://localhost/api/variants/architecto/exterior-colors/architecto/interior-colors/architecto/pdf" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/variants/architecto/exterior-colors/architecto/interior-colors/architecto/pdf"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Display a listing of the resource.
Example request:
curl --request GET \
--get "http://localhost/api/variants/architecto/specs" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/variants/architecto/specs"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Display a listing of the resource.
Example request:
curl --request GET \
--get "http://localhost/api/colors" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/colors"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Display a listing of the resource.
Example request:
curl --request GET \
--get "http://localhost/api/variants/search" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/variants/search"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/vehicles/accessories
Example request:
curl --request GET \
--get "http://localhost/api/vehicles/accessories" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/vehicles/accessories"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Display a listing of the resource.
Example request:
curl --request GET \
--get "http://localhost/api/locations" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"location_type\": \"workshop\"
}"
const url = new URL(
"http://localhost/api/locations"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"location_type": "workshop"
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Display a listing of the resource.
Example request:
curl --request GET \
--get "http://localhost/api/cities" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/cities"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/delivery/options
Example request:
curl --request GET \
--get "http://localhost/api/delivery/options" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/delivery/options"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/delivery/options/{id}/cities
Example request:
curl --request GET \
--get "http://localhost/api/delivery/options/architecto/cities" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/delivery/options/architecto/cities"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/delivery/cities/{cityId}/options
Example request:
curl --request GET \
--get "http://localhost/api/delivery/cities/architecto/options" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/delivery/cities/architecto/options"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Logistics & Delivery
Post-Order Fulfillment & Handover
Automating the lifecycle from Sales Order completion to physical vehicle delivery and digital ownership activation.
Logistics Milestone Tracking
- Vehicle Allocation: Assigned VIN is confirmed for the order.
- PDI (Pre-Delivery Inspection): Quality checks and preparation.
- Vehicle Ready: Operations team marks the vehicle as ready for handover.
- Slot Selection: Customer selects their preferred showroom delivery slot.
- Handover Completed: Digital sign-off and warranty activation.
Extended KYC (Ownership Activation)
- Car License OCR: After delivery, the customer uploads their new car license (registration).
- Automated Validation: The system extracts the VIN, Plate Number, and Owner Name via OCR and validates them against the order record.
- Digital Warranty: Successful validation triggers the digital warranty activation in the mobile app.
Track Delivery Milestones
requires authentication
Retrieves the real-time fulfillment status and upcoming milestones for an order.
Example request:
curl --request GET \
--get "http://localhost/api/orders/ORD-9927/logistics-track" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/orders/ORD-9927/logistics-track"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200, Milestones retrieved):
{
"success": true,
"data": {
"current_status": "READY_FOR_HANDOVER",
"milestones": [
{
"key": "allocation",
"status": "completed",
"date": "2025-04-01"
},
{
"key": "pdi",
"status": "completed",
"date": "2025-04-03"
},
{
"key": "ready",
"status": "completed",
"date": "2025-04-04"
},
{
"key": "handover_scheduling",
"status": "pending",
"target": "2025-04-05"
}
],
"vin": "WBA1234567890XYZ"
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Schedule Handover Slot
requires authentication
Allows the customer to pick a specific time-slot for vehicle delivery at their chosen dealership.
Example request:
curl --request POST \
"http://localhost/api/delivery/schedule-handover" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"order_id\": \"ORD-9927\",
\"preferred_slot\": {
\"date\": \"2025-04-10\",
\"time\": \"15:00\",
\"node_id\": 102
}
}"
const url = new URL(
"http://localhost/api/delivery/schedule-handover"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"order_id": "ORD-9927",
"preferred_slot": {
"date": "2025-04-10",
"time": "15:00",
"node_id": 102
}
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200, Handover scheduled):
{
"success": true,
"message": "Slot confirmed. Please bring your original ID for the handover."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Activate Digital Warranty (OCR)
requires authentication
Uploads car license (registration) for OCR extraction to verify ownership and activate the digital warranty.
Example request:
curl --request POST \
"http://localhost/api/kyc/activate-ownership" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"order_id\": \"ORD-9927\",
\"license_image\": \"data:image\\/jpeg;base64,...\"
}"
const url = new URL(
"http://localhost/api/kyc/activate-ownership"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"order_id": "ORD-9927",
"license_image": "data:image\/jpeg;base64,..."
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200, Ownership activated):
{
"success": true,
"data": {
"vin": "WBA1234567890XYZ",
"warranty_expiry": "2030-04-10",
"activation_status": "COMPLETED"
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Payments & DMS Integration
Financial Commitment & Document Sync
Automating the transition from customer commitment to legal order fulfillment through integrated payment gateways and SAP/DMS synchronization.
Advanced Payment Logic
- Split Card Payments: Handles high-value transactions by allowing customers to split the total across multiple cards (repeating "Pay Remaining" until the balance is zero).
- Bank Transfer Portal:
- Displays dynamic transfer instructions (IBAN, Reference).
- Proof-of-Upload: Customer uploads a photo/PDF of the transfer receipt.
- Admin Verification: Finance team reviews the proof before triggering the DMS sync.
DMS & SAP Handshake
- DMS Sales Order: Automatically triggered upon payment verification.
- SAP Financial Sync: Deposits, partial payments, and final balances are recorded in SAP in real-time.
- Legal Invoicing: Fetches the official tax invoice once the DMS marks the order as "Invoiced".
Initiate Payment Session
requires authentication
Creates a payment intent for a specific order. Returns a gateway URL for online payment or instructions for bank transfer.
Example request:
curl --request POST \
"http://localhost/api/payments/initiate-session" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"order_id\": \"ORD-9927\",
\"payment_method\": \"split_card\",
\"amount\": 50000
}"
const url = new URL(
"http://localhost/api/payments/initiate-session"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"order_id": "ORD-9927",
"payment_method": "split_card",
"amount": 50000
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200, Session ready):
{
"success": true,
"data": {
"session_id": "PAY_XYZ_123",
"payment_url": "https://gateway.autoconnect.io/checkout/PAY_XYZ_123",
"order_total": 1200000,
"paid_amount": 0,
"remaining_balance": 1200000
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Submit Bank Transfer Proof
requires authentication
Uploads a proof-of-payment (receipt/PDF) for bank transfer transactions. Enters an 'Awaiting Verification' state.
Example request:
curl --request POST \
"http://localhost/api/payments/bank-transfer/upload-proof" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"order_id\": \"ORD-9927\",
\"receipt_image\": \"data:image\\/png;base64,iVBOR...\",
\"transfer_amount\": 1150000
}"
const url = new URL(
"http://localhost/api/payments/bank-transfer/upload-proof"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"order_id": "ORD-9927",
"receipt_image": "data:image\/png;base64,iVBOR...",
"transfer_amount": 1150000
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200, Proof uploaded):
{
"success": true,
"message": "Receipt uploaded successfully. Our finance team will verify it within 24 hours.",
"status": "Verification_Pending"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Fetch Official DMS Invoice
requires authentication
Retrieves the legally generated tax invoice from the DMS after the order has been processed and synced.
Example request:
curl --request GET \
--get "http://localhost/api/orders/ORD-9927/dms-invoice" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/orders/ORD-9927/dms-invoice"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200, Invoice link found):
{
"success": true,
"data": {
"dms_invoice_no": "DMS-INV-8872",
"pdf_url": "https://cdn.autoconnect.io/invoices/ORD-9927.pdf",
"sync_status": "synced"
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.