Introduction
Comprehensive API documentation for the AutoConnect platform. This documentation covers all REST API endpoints, integration flows with CRM/DMS systems, payment gateways, vehicle synchronization, and lead management.
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 |
|---|---|---|
dms_provider |
DMS Provider | API-based, fetches vehicles in paginated batches |
excel |
FTP / SFTP / Google Drive | Reads Excel file with vehicle hierarchy |
erp |
ERP System | Integrated Sync |
Vehicle Hierarchy
AutoConnect organizes vehicles in a strict 4-level hierarchy. During sync, each level is resolved in order:
Make (Brand)
└── Model (Product Line)
└── Variant (Trim / Grade)
└── Vehicle (Individual Unit / VIN)
├── Exterior Color
└── Interior Color
| Level | Description | Example | Unique Key |
|---|---|---|---|
| Make | The vehicle brand/manufacturer | Toyota, Hyundai | code |
| Model | A product line under a make | Camry, Tucson | code + make_id |
| Variant | A specific trim or grade of a model | GLX 2.0L, Limited AWD | code + model_id |
| Vehicle | An individual physical unit identified by VIN | VIN: SAL...1234 |
vin |
Each vehicle also carries:
- Exterior Color — matched by color code from the DMS
- Interior Color — matched by color code from the DMS
- Price — synced if
sync_pricesis enabled in config - Availability — toggled based on presence in the latest sync batch
Sync Flow
- Authenticate with the external system (OAuth2 for DMS Provider)
- Fetch vehicles in batches (paginated for DMS Provider, 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:dms_provider-vehicles— Sync from DMS Provider 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": "dms_provider",
"config": {
"base_url": "https://api.dms_provider.com",
"enterprise_id": "your-enterprise-id",
"store_id": "your-store-id",
"username": "api-user",
"password": "api-password",
"sync_prices": true,
"request_delay_ms": 200
}
}
}
DMS Provider Vehicle Sync
Syncs vehicles from DMS Provider 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": "DMS Provider 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 |
|---|---|---|
crm_provider |
CRM Provider | crm/api/leads (sales) or Helpdesk Provider (tickets) |
dms_provider |
DMS Provider | api/leads/create |
provider_c |
Provider C Lead API | Custom lead API with city/form type mapping |
provider_d |
Lead Distribution | 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": "crm_provider",
"config": {
"base_url": "https://www.crm_providerapis.com",
"client_id": "your-client-id",
"client_secret": "your-client-secret",
"refresh_token": "your-refresh-token",
"layout_id": "layout-id"
}
}
}
CRM Provider Lead Sync
Syncs leads to CRM Provider. Sales-related forms are sent to the CRM Leads Module API (crm/api/leads),
while non-sales forms (complaints, service requests) are routed to Helpdesk Provider 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 | CRM Leads Module | Sales Lead |
| Complaint, Service Request | Helpdesk 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 CRM Provider 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.
DMS Provider Lead Sync
Syncs leads to DMS Provider via the api/leads/create endpoint.
Authentication: OAuth2 with username/password, token cached with auto-retry.
Lead Payload Mapping
The lead data is mapped to DMS Provider'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-dms_provider" \
--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-dms_provider"
);
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 DMS Provider 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.
Provider C Lead Sync
Syncs leads to the Custom Lead API.
Authentication: API token-based.
Special Mappings
- Page Type: Form types are mapped to provider-specific page types (e.g., "Request a Test Drive", "Request a Quote", "Fleet Sales")
- City Mapping: Cities are mapped to provider-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-provider_c" \
--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-provider_c"
);
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 Provider C lead sync):
{
"error": false,
"data": {
"leadId": "PROVIDER-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.
Lead Distribution Sync
Syncs leads to Lead Distribution 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": "provider_d",
"config": {
"url": "https://api.provider-d.example.com/lead-basket",
"api_key": "your-api-key"
}
}
}
Example request:
curl --request POST \
"http://localhost/internal/crm/sync-lead-provider_d" \
--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-provider_d"
);
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 Provider D 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, explore models, and view specifications. The data is structured hierarchically: Brand → Model → Variant → Configuration.
User Journey: Catalogue Browsing
- Landing: User sees featured models and brands.
- Model List: Browse available models with price-from information.
- Model Detail: Explore variants, features, and rich media contents.
- CTA (Buy Now): Seamless transition from a specific variant directly into the configuration or checkout flow.
Navigation Hierarchy
/vehicle-models— Main catalogue entry point./vehicle-models/{id}— Detailed model specifications./vehicle-models/{id}/variants— List of engine/trim levels.
List Vehicle Models
Retrieves all available vehicle models with their starting price and 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": "Tucson",
"slug": "tucson",
"price_from": 105000,
"image": "https://cdn.example.com/models/tucson.png",
"description": "Comfort and performance combined."
}
]
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer 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
Configurator Flow & Step Structure
Users can personalize their chosen vehicle through a guided step-by-step configurator.
Configurator Logic
- Step 1: Exterior: Choose from available colors.
- Step 2: Interior: Select upholstery and trim colors.
- Step 3: Accessories: Add protection, tech, or styling packs.
- Step 4: Summary: Review total configuration price and details.
Option Validation (In-Stock)
Options are validated against real-time inventory. If a specific color/variant combination is not in stock, the system:
- Displays an "Order Now" vs "In-Stock" badge.
- Estimates delivery lead-time based on the DMS backlog.
Save & Share
Configurations can be saved to the user's profile or shared via a unique URL.
Validate Configuration
Validates the selected combination of variant, colors, and accessories against stock.
Example request:
curl --request POST \
"http://localhost/api/variants/10/configure" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"exterior_color_id\": 1,
\"interior_color_id\": 2,
\"accessories\": [
1,
5
]
}"
const url = new URL(
"http://localhost/api/variants/10/configure"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"exterior_color_id": 1,
"interior_color_id": 2,
"accessories": [
1,
5
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200, Validation success):
{
"success": true,
"data": {
"in_stock": true,
"estimated_delivery": "Instant (In Showroom)",
"total_price": 115000,
"breakdown": {
"base_price": 100000,
"options": 10000,
"vat": 15000
}
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer 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
Smart Test Drive Booking
Digitized test drive experience with location awareness and automated verification.
Features
- Booking Types: Branch Test Drive or Geo-fenced Home Delivery.
- OCR Verification: Instant driving license validation at the time of booking.
- Real-Time Calendar: Integration with showroom staff availability.
- Automated Workflow: Status updates for "Ready for Pickup", "On the way" (Home), and "Feedback Requested".
Book a Test Drive
requires authentication
Initiates a test drive booking with document verification.
Example request:
curl --request POST \
"http://localhost/api/test-drive/book" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"variant_id\": 10,
\"type\": \"branch\",
\"preferred_date\": \"2025-03-05\",
\"preferred_time\": \"14:00\",
\"location_id\": 3
}"
const url = new URL(
"http://localhost/api/test-drive/book"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"variant_id": 10,
"type": "branch",
"preferred_date": "2025-03-05",
"preferred_time": "14:00",
"location_id": 3
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200, Booking confirmed):
{
"success": true,
"data": {
"booking_id": "TD-5544",
"status": "Confirmed",
"admin_contact": "+96655009988"
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer 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 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=2"\
--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=Mr"\
--form "subscribe_to_newsletter="\
--form "preferred_time_to_call=architecto"\
--form "preferred_contact_method=architecto"\
--form "date=2026-03-03T12:54:56"\
--form "time=12:54:56"\
--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/phpmnkomfuqg3v08xaTtcn" 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', '2');
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', 'Mr');
body.append('subscribe_to_newsletter', '');
body.append('preferred_time_to_call', 'architecto');
body.append('preferred_contact_method', 'architecto');
body.append('date', '2026-03-03T12:54:56');
body.append('time', '12:54:56');
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.
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": "CRM-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 provider.
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": "CRM-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": "CRM-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": "CRM-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": "CRM-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
Sales Team & Customer Onboarding
The onboarding journey bridge the gap between a lead and a committed customer. This can be initiated by the customer (Self-Serve) or by a Sales Consultant (Assisted Sales).
Sales Team Operations
- Assisted Configuration: Sales consultants can create a vehicle configuration on behalf of a customer.
- Stacked Deal: Finalizing the "Stacked Deal" context including special discounts, trade-in credit, and finance offers.
- Notification Flow: Once the configuration is finalized, the customer receives a notification (WhatsApp/SMS/Email) to open and review their personalized offer.
Customer Onboarding
- Authentication: Seamless signup/login via integration-aware auth (Social, Mobile OTP, or Enterprise SSO).
- Profile Completion Gate: Enforces mandatory data capture (National ID, Address, License) before allowing checkout.
- Order Access: Secure access to orders created by sales consultants on the customer's behalf.
Create Assisted Sales Configuration
requires authentication
Allows a sales consultant to create a configuration/order on behalf of a customer. Triggers a notification to the customer with a link to review the configuration.
Example request:
curl --request POST \
"http://localhost/api/admin/orders/create-assisted" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"customer_id\": 123,
\"variant_id\": 10,
\"special_discount\": 2500,
\"offer_notes\": \"Special price as discussed in the showroom.\"
}"
const url = new URL(
"http://localhost/api/admin/orders/create-assisted"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"customer_id": 123,
"variant_id": 10,
"special_discount": 2500,
"offer_notes": "Special price as discussed in the showroom."
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200, Configuration created):
{
"success": true,
"message": "Assisted configuration created. Notification sent to customer.",
"data": {
"configuration_id": "CONFIG-9988",
"review_url": "https://autoconnect.com/review/CONFIG-9988"
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Customer Onboarding & Profile
requires authentication
Completes user profile during the onboarding gate. Ensures all mandatory fields for the specific brand/region are captured.
Example request:
curl --request POST \
"http://localhost/api/auth/onboard" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"national_id\": \"1234567890\",
\"address\": \"King Fahd Road, Riyadh\",
\"driving_license_no\": \"DL-554433\"
}"
const url = new URL(
"http://localhost/api/auth/onboard"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"national_id": "1234567890",
"address": "King Fahd Road, Riyadh",
"driving_license_no": "DL-554433"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200, Profile updated):
{
"success": true,
"message": "Profile completed. You can now proceed to checkout.",
"data": {
"is_onboarded": true,
"next_step": "payment_selection"
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer 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 provider 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=2"\
--form "user[gender]=architecto"\
--form "user[marital_status]=architecto"\
--form "user[date_of_birth]=2026-03-03"\
--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/phps65cq5e387ei60OSkzE" \
--form "national_id_file[]=@/private/var/folders/nb/j1p5drzn0jxdjmx_yrrlr7sr0000gn/T/phpvag94545navg7UUk5Us" \
--form "national_id_file_back[]=@/private/var/folders/nb/j1p5drzn0jxdjmx_yrrlr7sr0000gn/T/phppp4jd576es2l7Hfi2oe" \
--form "driving_license[]=@/private/var/folders/nb/j1p5drzn0jxdjmx_yrrlr7sr0000gn/T/phppmmdbm1uurer0sKXBPr" \
--form "driving_license_back[]=@/private/var/folders/nb/j1p5drzn0jxdjmx_yrrlr7sr0000gn/T/phpevfh14s4n1ma4Az3IPk" 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', '2');
body.append('user[gender]', 'architecto');
body.append('user[marital_status]', 'architecto');
body.append('user[date_of_birth]', '2026-03-03');
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=1"\
--form "proof_of_payment=@/private/var/folders/nb/j1p5drzn0jxdjmx_yrrlr7sr0000gn/T/phphf8ek48qjvru03mifE1" 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', '1');
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 |
|---|---|---|
gateway_a |
Gateway A | Egypt |
gateway_b |
Gateway B | Egypt |
gateway_c |
Gateway C | Saudi Arabia |
gateway_d |
Gateway D | MENA Region |
gateway_e |
Gateway E | Saudi Arabia |
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 (Gateway A/GatewayC/Gateway D/Gateway E/Gateway B) |
bank_transfer |
User uploads proof of bank transfer, admin reviews |
Configuration
{
"payment": {
"provider": "gateway_d",
"config": {
"entity_id": "your-entity-id",
"access_token": "your-access-token",
"base_url": "https://api.gateway-d.example.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 | DMS Provider | CRM Provider | Provider C | Provider D |
|---|---|---|---|---|
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 (DMS Provider)
Creates a customer record on DMS Provider via POST api/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 (DMS Provider)
Creates a sales order on DMS Provider via POST api/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 DMS Provider)
{
"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.
DMS Provider: 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.
Split Payments & DMS
Reservation & Customer Commitment
AutoConnect manages the transition from interest to financial commitment through integrated payment gateways and DMS triggers.
Payment Intent & Handling
- Payment Types: Credit Card (Online), Apple Pay, Bank Transfer.
- Split Card Handling: Allows customers to handle card limits by splitting a single payment across multiple cards. The customer can pay an initial amount and repeat "Pay Remaining" using different cards.
- Confirmation: Real-time customer notifications upon payment success.
DMS Integration (After-Sales Sync)
- DMS Sales Order Trigger: Automatically creates the Sales Order in the DMS once the reservation is paid.
- Payment Recording: Records the transaction against the DMS account.
- Digital Invoicing: Fetches the official tax invoice from the DMS and shares it digitally with the customer profile.
Initiate Split Payment
requires authentication
Initiates a payment session that supports balance tracking for multiple cards.
Example request:
curl --request POST \
"http://localhost/api/orders/payment/split-initiate" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"order_id\": 123,
\"amount\": 50000
}"
const url = new URL(
"http://localhost/api/orders/payment/split-initiate"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"order_id": 123,
"amount": 50000
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200, Session initiated):
{
"success": true,
"data": {
"payment_url": "https://gateway.com/session/XYZ",
"remaining_balance": 65000
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer 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 Digital DMS Invoice
requires authentication
Fetches the official legal tax invoice generated by the DMS after successful order processing.
Example request:
curl --request GET \
--get "http://localhost/api/orders/123/invoice" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/orders/123/invoice"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200, PDF Invoice URL):
{
"success": true,
"data": {
"invoice_no": "INV-2025-001",
"invoice_pdf_url": "https://autoconnect.com/storage/invoices/inv-123.pdf",
"issued_at": "2025-03-02T11:00: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.
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.
Delivery & KYC
Delivery & Ownership Activation
Ensures secure handover and legal compliance through automated KYC and digital activation.
KYC & Ownership Registration
- OCR Data Extraction: Users snap a photo of National ID or Car License (Istimara). The system auto-validates scanned name vs profile name to prevent fraud.
- VIN Linking: Dynamic flow that links a specific vehicle asset to a verified user account.
- Verification Strategy: Supports both API-based instant checks (via DMS/Gov ports) or Manual Admin Workbench review.
Delivery Lifecycle
- Vehicle Preparedness: Tracking PDI (Pre-Delivery Inspection) status.
- Scheduling: Real-time calendar for handover slots.
- Warranty Activation: Digital sign-off that triggers the warranty start date in the DMS.
- Ownership Transfer: Handles "Second Owner" (Grey Market) conversions for recall alert accuracy.
OCR Document Processing
requires authentication
Uploads and processes an ID or Car License via OCR for automated profile validation.
Example request:
curl --request POST \
"http://localhost/api/kyc/ocr-process" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"id_front\": \"data:image\\/jpeg;base64,...\",
\"id_back\": \"data:image\\/jpeg;base64,...\",
\"driving_license_front\": \"data:image\\/jpeg;base64,...\",
\"driving_license_back\": \"data:image\\/jpeg;base64,...\"
}"
const url = new URL(
"http://localhost/api/kyc/ocr-process"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"id_front": "data:image\/jpeg;base64,...",
"id_back": "data:image\/jpeg;base64,...",
"driving_license_front": "data:image\/jpeg;base64,...",
"driving_license_back": "data:image\/jpeg;base64,..."
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200, OCR success):
{
"success": true,
"data": {
"first_name": "Ahmed",
"last_name": "Al-Rashid",
"id_number": "1234567890",
"vin": "WBA123... (if license)",
"validation_status": "Matched"
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer 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 Vehicle Handover
requires authentication
Schedules the final delivery/handover slot at the showroom.
Example request:
curl --request POST \
"http://localhost/api/delivery/schedule" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"order_id\": 123,
\"delivery_date\": \"2025-03-10\",
\"slot_id\": 2
}"
const url = new URL(
"http://localhost/api/delivery/schedule"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"order_id": 123,
"delivery_date": "2025-03-10",
"slot_id": 2
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200, Slot confirmed):
{
"success": true,
"data": {
"delivery_timestamp": "2025-03-10 10:30:00",
"location": "Main Showroom, Riyadh"
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer 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
Aftersales Service Workflows
Managed end-to-end service journeys from booking to digital gate-pass.
Mechanical & GR End-to-End
- Pre-Visit Readiness: Automated parts-availability check before the customer visits. If parts are missing, the system prompts for a re-booking to prevent wasted visits.
- Digital Walk Around: Technician logs vehicle condition on check-in.
- Estimate Approval Engine: Customers receive a digital quote. They can review and selectively approve Mandatory vs Optional items.
- Real-Time Progress: Proactive tracker showing "Under Diagnosis", "Parts Fetching", "Working", "Washing", etc.
- Digital Gate Pass: Integrated e-checkout where the customer pays on their phone and receives a QR-coded exit pass.
Body & Paint (BP)
- Insurance Route: External approval gate for insurers. Journey pauses until a digital "Approval Token" is received from the insurer.
- Recursive Supplements: Handles "hidden damage" found after disassembly as delta-quotes, only requiring approval for the difference.
- Co-Pay Split logic: Calculates customer's share vs insurer's share automatically.
Initiate Service Booking
requires authentication
Books a service appointment with real-time parts availability check.
Example request:
curl --request POST \
"http://localhost/api/service/booking/initiate" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"vin\": \"WBA1234567890\",
\"service_type\": \"Periodic\",
\"kms\": 10000
}"
const url = new URL(
"http://localhost/api/service/booking/initiate"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"vin": "WBA1234567890",
"service_type": "Periodic",
"kms": 10000
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200, Booking result):
{
"success": true,
"data": {
"booking_id": "SV-9988",
"parts_available": true,
"next_available_slot": "2025-03-05 09:00: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.
Digital Estimate Approval
requires authentication
Allows the customer to approve or reject specific line items in a service estimate.
Example request:
curl --request POST \
"http://localhost/api/service/quote/approve" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"quote_id\": \"QUO-5544\",
\"approved_items\": [
1,
2,
4
],
\"rejected_items\": [
3
]
}"
const url = new URL(
"http://localhost/api/service/quote/approve"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"quote_id": "QUO-5544",
"approved_items": [
1,
2,
4
],
"rejected_items": [
3
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200, Partial/Full Approval confirmed):
{
"success": true,
"total_approved_amount": 1250,
"status": "Work Started"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer 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.
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-03T12:54:55\",
\"end_date\": \"2026-03-03T12:54:55\",
\"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-03T12:54:55",
"end_date": "2026-03-03T12:54:55",
"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-03T12:54:55\",
\"end_date\": \"2026-03-03T12:54:55\",
\"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-03T12:54:55",
"end_date": "2026-03-03T12:54:55",
"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-03T12:54:55\",
\"end_date\": \"2026-03-03T12:54:55\",
\"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-03T12:54:55",
"end_date": "2026-03-03T12:54:55",
"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-03T12:54:55\",
\"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\": false,
\"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-03T12:54:55",
"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": false,
"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-03T12:54:55\",
\"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\": false,
\"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-03T12:54:55",
"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": false,
"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\": \"financing-terms\"
}"
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": "financing-terms"
};
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=1"\
--form "order=16"\
--form "image=@/private/var/folders/nb/j1p5drzn0jxdjmx_yrrlr7sr0000gn/T/php0ddlfh3g3n0sbSU9cwh" 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', '1');
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/phps7btd8g8cnu8cBiNQDW" 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\": \"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": "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\": \"all\",
\"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": "all",
"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-03T12:54:55\",
\"end_date\": \"2052-03-26\",
\"product_id\": \"architecto\",
\"is_active\": false,
\"has_models\": false,
\"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-03T12:54:55",
"end_date": "2052-03-26",
"product_id": "architecto",
"is_active": false,
"has_models": false,
"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-03T12:54:55\",
\"end_date\": \"2052-03-26\",
\"product_id\": \"architecto\",
\"is_active\": false,
\"has_models\": false,
\"finance_duration\": 22,
\"conditions\": [
{
\"minimum_age\": 84,
\"maximum_age\": 12,
\"admin_fee\": 77,
\"support_percentage\": 0,
\"is_salary_transfered\": true,
\"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-03T12:54:55",
"end_date": "2052-03-26",
"product_id": "architecto",
"is_active": false,
"has_models": false,
"finance_duration": 22,
"conditions": [
{
"minimum_age": 84,
"maximum_age": 12,
"admin_fee": 77,
"support_percentage": 0,
"is_salary_transfered": true,
"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\": 5
}"
const url = new URL(
"http://localhost/api/admin/finance-applications/architecto/status"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"status": 5
};
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\": \"retail\",
\"created_by\": 4326.41688,
\"finance_duration\": 16,
\"internal_notes\": \"architecto\",
\"validity_date\": \"2026-03-03T12:54:55\",
\"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-03\",
\"gender\": \"male\",
\"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": "retail",
"created_by": 4326.41688,
"finance_duration": 16,
"internal_notes": "architecto",
"validity_date": "2026-03-03T12:54:55",
"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-03",
"gender": "male",
"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/phpmqib30id4lg7bsrQWBI" 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\": true
}"
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": 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.
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\": \"iir\",
\"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": "iir",
"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-28\",
\"end_date\": \"2052-03-26\"
}"
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-28",
"end_date": "2052-03-26"
};
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-28\",
\"end_date\": \"2052-03-26\"
}"
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-28",
"end_date": "2052-03-26"
};
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-28\",
\"end_date\": \"2052-03-26\"
}"
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-28",
"end_date": "2052-03-26"
};
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-28\",
\"end_date\": \"2052-03-26\"
}"
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-28",
"end_date": "2052-03-26"
};
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-28\",
\"end_date\": \"2052-03-26\"
}"
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-28",
"end_date": "2052-03-26"
};
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-28\",
\"end_date\": \"2052-03-26\"
}"
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-28",
"end_date": "2052-03-26"
};
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-28\",
\"end_date\": \"2052-03-26\"
}"
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-28",
"end_date": "2052-03-26"
};
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/phpo3osl74bmqb63mXGdXO" 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-03\",
\"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\": \"retail\",
\"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-03",
"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": "retail",
"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\": 1
}"
const url = new URL(
"http://localhost/api/application-products/architecto/update-status"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"status": 1
};
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\": 3
}"
const url = new URL(
"http://localhost/api/application-products/architecto/change-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.
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\": false
}"
const url = new URL(
"http://localhost/api/comments/16"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"body": "b",
"is_resolved": 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.
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/phpv9jg36muperaeDZ3e0O" 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\": 6,
\"first_name\": \"b\",
\"last_name\": \"n\",
\"email\": \"ashly64@example.com\",
\"mobile\": \"architecto\",
\"message\": \"architecto\",
\"date\": \"2026-03-03T12:54:56\",
\"model_year\": 16
}"
const url = new URL(
"http://localhost/api/variant-forms"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"type": 6,
"first_name": "b",
"last_name": "n",
"email": "ashly64@example.com",
"mobile": "architecto",
"message": "architecto",
"date": "2026-03-03T12:54:56",
"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\": \"sms\",
\"recipient\": \"architecto\",
\"use_notifiable\": true
}"
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": "sms",
"recipient": "architecto",
"use_notifiable": 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 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\": \"ar\",
\"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": "ar",
"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\": \"mail\",
\"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": "mail",
"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=1"\
--form "boxes[][variable]=architecto"\
--form "boxes[][is_rtl]=1"\
--form "boxes[][is_variable]="\
--form "boxes[][x]=39"\
--form "boxes[][y]=84"\
--form "image=@/private/var/folders/nb/j1p5drzn0jxdjmx_yrrlr7sr0000gn/T/phpenmi7k6mbnrralmmtxJ" 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', '1');
body.append('boxes[][variable]', 'architecto');
body.append('boxes[][is_rtl]', '1');
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\": false,
\"boxes\": [
{
\"variable\": \"architecto\",
\"is_rtl\": false,
\"is_variable\": true,
\"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": false,
"boxes": [
{
"variable": "architecto",
"is_rtl": false,
"is_variable": true,
"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-03T12:54:56\",
\"valid_to\": \"2052-03-26\",
\"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/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-03T12:54:56",
"valid_to": "2052-03-26",
"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/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\": \"percentage\",
\"valid_from\": \"2026-03-03T12:54:56\",
\"valid_to\": \"2052-03-26\",
\"is_applied_to_used_cars\": false,
\"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/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": "percentage",
"valid_from": "2026-03-03T12:54:56",
"valid_to": "2052-03-26",
"is_applied_to_used_cars": false,
"is_applied_for_financing": false,
"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/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\": \"fixed\",
\"valid_from\": \"2026-03-03T12:54:56\",
\"valid_to\": \"2052-03-26\",
\"is_applied_to_used_cars\": false,
\"is_applied_for_financing\": false,
\"finance_duration\": [
39
],
\"tags\": [
16
],
\"categories\": [
16
],
\"offerable\": [
{
\"offerable_name\": \"variant\",
\"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": "fixed",
"valid_from": "2026-03-03T12:54:56",
"valid_to": "2052-03-26",
"is_applied_to_used_cars": false,
"is_applied_for_financing": false,
"finance_duration": [
39
],
"tags": [
16
],
"categories": [
16
],
"offerable": [
{
"offerable_name": "variant",
"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-03T12:54:56\",
\"valid_to\": \"2052-03-26\",
\"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/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-03T12:54:56",
"valid_to": "2052-03-26",
"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: "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\": \"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": "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\": false,
\"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": false,
"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\": true,
\"offline_order_step\": true,
\"auto_generate_documents\": true,
\"auto_submitted\": false,
\"user_notified_on_approve\": true,
\"entities\": [
{
\"name\": {
\"ar\": \"architecto\",
\"en\": \"architecto\"
},
\"editable_by_customer\": false,
\"auto_generate_documents\": true,
\"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": true,
"offline_order_step": true,
"auto_generate_documents": true,
"auto_submitted": false,
"user_notified_on_approve": true,
"entities": [
{
"name": {
"ar": "architecto",
"en": "architecto"
},
"editable_by_customer": false,
"auto_generate_documents": true,
"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\": \"user\",
\"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": "user",
"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_entity_field\",
\"templateable_id\": 16,
\"notification_type\": \"submitted\"
}"
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_entity_field",
"templateable_id": 16,
"notification_type": "submitted"
};
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_entity_field\",
\"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_entity_field",
"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\": \"ar\",
\"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": "ar",
"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\": \"fixed\",
\"is_taxable\": true,
\"active\": true
}"
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": "fixed",
"is_taxable": true,
"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 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\": false,
\"active\": true
}"
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": false,
"active": 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.
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\": 2,
\"comment\": \"architecto\"
}"
const url = new URL(
"http://localhost/api/admin/payments/architecto"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"status": 2,
"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\": \"retail\",
\"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": "retail",
"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\": \"mobile\"
}"
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": "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/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\": \"email\"
}"
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": "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/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\": false,
\"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": false,
"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\": false,
\"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": false,
"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\": false,
\"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\": true
}"
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": false,
"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": 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.
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\": false,
\"financing_price\": 77,
\"retail_price\": 8,
\"model_year\": \"yvdl\",
\"addon_price\": 9,
\"is_parent\": true
}"
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": false,
"financing_price": 77,
"retail_price": 8,
"model_year": "yvdl",
"addon_price": 9,
"is_parent": 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.
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\": false
}"
const url = new URL(
"http://localhost/api/admin/vehicles"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"used": false
};
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\": true,
\"reserved_date\": \"2026-03-03T12:54:56\",
\"financing_price\": \"architecto\",
\"last_synced\": \"2026-03-03T12:54:56\",
\"retail_price\": \"architecto\",
\"make_model\": \"n\",
\"type\": \"customer\",
\"hidden\": false,
\"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": true,
"reserved_date": "2026-03-03T12:54:56",
"financing_price": "architecto",
"last_synced": "2026-03-03T12:54:56",
"retail_price": "architecto",
"make_model": "n",
"type": "customer",
"hidden": false,
"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\": 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-03T12:54:56\",
\"financing_price\": \"architecto\",
\"last_synced\": \"2026-03-03T12:54:56\",
\"retail_price\": \"architecto\",
\"make_model\": \"n\",
\"type\": \"customer\",
\"hidden\": false,
\"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": 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-03T12:54:56",
"financing_price": "architecto",
"last_synced": "2026-03-03T12:54:56",
"retail_price": "architecto",
"make_model": "n",
"type": "customer",
"hidden": false,
"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\": \"text\",
\"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": "text",
"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\": \"text\",
\"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": "text",
"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\": \"new\",
\"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": "new",
"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\": \"new\",
\"price\": 39,
\"hidden\": false,
\"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": "new",
"price": 39,
"hidden": false,
"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\": \"local\",
\"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": "local",
"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\": \"bodyshop\"
}"
const url = new URL(
"http://localhost/api/locations"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"location_type": "bodyshop"
};
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.