Introduction
This documentation aims to provide all the information you need to work with our API.
<aside>As you scroll, you'll see code examples for working with the API in different programming languages in the dark area to the right (or as part of the content on mobile).
You can switch the language used with the tabs at the top right (or from the nav menu at the top left on mobile).</aside>
Authenticating requests
This API is not authenticated.
Endpoints
Display a listing of the resource.
Example request:
curl --request GET \
--get "https://viratest2.ir/api/v1/repairshops/shops" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://viratest2.ir/api/v1/repairshops/shops"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": [
"messages.success"
],
"data": {
"shops": {
"data": [
{
"id": 119996,
"name": "sdr99995",
"code": "sbr99995",
"is_active": "active",
"type": "inside",
"fee": null,
"description": null,
"created_at": "2026-02-10T09:54:29.000000Z",
"updated_at": "2026-02-10T09:54:29.000000Z",
"deleted_at": null
},
{
"id": 119995,
"name": "sdr99994",
"code": "sbr99994",
"is_active": "active",
"type": "inside",
"fee": null,
"description": null,
"created_at": "2026-02-10T09:54:29.000000Z",
"updated_at": "2026-02-10T09:54:29.000000Z",
"deleted_at": null
},
{
"id": 119994,
"name": "sdr99993",
"code": "sbr99993",
"is_active": "active",
"type": "inside",
"fee": null,
"description": null,
"created_at": "2026-02-10T09:54:29.000000Z",
"updated_at": "2026-02-10T09:54:29.000000Z",
"deleted_at": null
},
{
"id": 119993,
"name": "sdr99992",
"code": "sbr99992",
"is_active": "active",
"type": "inside",
"fee": null,
"description": null,
"created_at": "2026-02-10T09:54:29.000000Z",
"updated_at": "2026-02-10T09:54:29.000000Z",
"deleted_at": null
},
{
"id": 119992,
"name": "sdr99991",
"code": "sbr99991",
"is_active": "active",
"type": "inside",
"fee": null,
"description": null,
"created_at": "2026-02-10T09:54:29.000000Z",
"updated_at": "2026-02-10T09:54:29.000000Z",
"deleted_at": null
},
{
"id": 119991,
"name": "sdr99990",
"code": "sbr99990",
"is_active": "active",
"type": "inside",
"fee": null,
"description": null,
"created_at": "2026-02-10T09:54:29.000000Z",
"updated_at": "2026-02-10T09:54:29.000000Z",
"deleted_at": null
},
{
"id": 119990,
"name": "sdr99989",
"code": "sbr99989",
"is_active": "active",
"type": "inside",
"fee": null,
"description": null,
"created_at": "2026-02-10T09:54:29.000000Z",
"updated_at": "2026-02-10T09:54:29.000000Z",
"deleted_at": null
},
{
"id": 119989,
"name": "sdr99988",
"code": "sbr99988",
"is_active": "active",
"type": "inside",
"fee": null,
"description": null,
"created_at": "2026-02-10T09:54:29.000000Z",
"updated_at": "2026-02-10T09:54:29.000000Z",
"deleted_at": null
},
{
"id": 119988,
"name": "sdr99987",
"code": "sbr99987",
"is_active": "active",
"type": "inside",
"fee": null,
"description": null,
"created_at": "2026-02-10T09:54:29.000000Z",
"updated_at": "2026-02-10T09:54:29.000000Z",
"deleted_at": null
},
{
"id": 119987,
"name": "sdr99986",
"code": "sbr99986",
"is_active": "active",
"type": "inside",
"fee": null,
"description": null,
"created_at": "2026-02-10T09:54:29.000000Z",
"updated_at": "2026-02-10T09:54:29.000000Z",
"deleted_at": null
},
{
"id": 119986,
"name": "sdr99985",
"code": "sbr99985",
"is_active": "active",
"type": "inside",
"fee": null,
"description": null,
"created_at": "2026-02-10T09:54:29.000000Z",
"updated_at": "2026-02-10T09:54:29.000000Z",
"deleted_at": null
},
{
"id": 119985,
"name": "sdr99984",
"code": "sbr99984",
"is_active": "active",
"type": "inside",
"fee": null,
"description": null,
"created_at": "2026-02-10T09:54:29.000000Z",
"updated_at": "2026-02-10T09:54:29.000000Z",
"deleted_at": null
},
{
"id": 119984,
"name": "sdr99983",
"code": "sbr99983",
"is_active": "active",
"type": "inside",
"fee": null,
"description": null,
"created_at": "2026-02-10T09:54:29.000000Z",
"updated_at": "2026-02-10T09:54:29.000000Z",
"deleted_at": null
},
{
"id": 119983,
"name": "sdr99982",
"code": "sbr99982",
"is_active": "active",
"type": "inside",
"fee": null,
"description": null,
"created_at": "2026-02-10T09:54:29.000000Z",
"updated_at": "2026-02-10T09:54:29.000000Z",
"deleted_at": null
},
{
"id": 119982,
"name": "sdr99981",
"code": "sbr99981",
"is_active": "active",
"type": "inside",
"fee": null,
"description": null,
"created_at": "2026-02-10T09:54:29.000000Z",
"updated_at": "2026-02-10T09:54:29.000000Z",
"deleted_at": null
}
],
"path": "https://viratest2.ir/api/v1/repairshops/shops",
"per_page": 15,
"next_cursor": "eyJpZCI6MTE5OTgyLCJfcG9pbnRzVG9OZXh0SXRlbXMiOnRydWV9",
"next_page_url": "https://viratest2.ir/api/v1/repairshops/shops?cursor=eyJpZCI6MTE5OTgyLCJfcG9pbnRzVG9OZXh0SXRlbXMiOnRydWV9",
"prev_cursor": null,
"prev_page_url": 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.
Store a newly created resource in storage.
Example request:
curl --request POST \
"https://viratest2.ir/api/v1/repairshops/shops" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"architecto\",
\"code\": \"architecto\",
\"type\": \"inside\",
\"fee\": 4326.4168799999997645500116050243377685546875,
\"description\": \"Eius et animi quos velit et.\"
}"
const url = new URL(
"https://viratest2.ir/api/v1/repairshops/shops"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "architecto",
"code": "architecto",
"type": "inside",
"fee": 4326.4168799999997645500116050243377685546875,
"description": "Eius et animi quos velit et."
};
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 "https://viratest2.ir/api/v1/repairshops/shops/3" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://viratest2.ir/api/v1/repairshops/shops/3"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": [
"messages.success"
],
"data": {
"shop": {
"id": 3,
"name": "architecto",
"code": "architecto",
"is_active": "active",
"type": "inside",
"fee": "4326.41688",
"description": "Eius et animi quos velit et.",
"created_at": "2026-02-10T09:44:07.000000Z",
"updated_at": "2026-02-15T13:02:25.000000Z",
"deleted_at": 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.
Update the specified resource in storage.
Example request:
curl --request PUT \
"https://viratest2.ir/api/v1/repairshops/shops/3" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"architecto\",
\"code\": \"architecto\",
\"type\": \"outside\",
\"fee\": 4326.4168799999997645500116050243377685546875,
\"description\": \"Eius et animi quos velit et.\",
\"is_active\": \"inactive\"
}"
const url = new URL(
"https://viratest2.ir/api/v1/repairshops/shops/3"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "architecto",
"code": "architecto",
"type": "outside",
"fee": 4326.4168799999997645500116050243377685546875,
"description": "Eius et animi quos velit et.",
"is_active": "inactive"
};
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 \
"https://viratest2.ir/api/v1/repairshops/shops/3" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://viratest2.ir/api/v1/repairshops/shops/3"
);
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 "https://viratest2.ir/api/v1/repairshops/tmCodes" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://viratest2.ir/api/v1/repairshops/tmCodes"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": [
"messages.success"
],
"data": {
"tmCodes": {
"data": [],
"path": "https://viratest2.ir/api/v1/repairshops/tmCodes",
"per_page": 15,
"next_cursor": null,
"next_page_url": null,
"prev_cursor": null,
"prev_page_url": 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.
Store a newly created resource in storage.
Example request:
curl --request POST \
"https://viratest2.ir/api/v1/repairshops/tmCodes" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"code\": \"architecto\",
\"title\": \"architecto\",
\"hours\": 16,
\"amount_per_hours\": 16,
\"max_cost\": 16,
\"base_amount\": 16,
\"shop_id\": 16,
\"mechanism_group_id\": 16,
\"is_active\": \"N\",
\"type\": \"CM\"
}"
const url = new URL(
"https://viratest2.ir/api/v1/repairshops/tmCodes"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"code": "architecto",
"title": "architecto",
"hours": 16,
"amount_per_hours": 16,
"max_cost": 16,
"base_amount": 16,
"shop_id": 16,
"mechanism_group_id": 16,
"is_active": "N",
"type": "CM"
};
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 "https://viratest2.ir/api/v1/repairshops/tmCodes/16" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://viratest2.ir/api/v1/repairshops/tmCodes/16"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (404):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "No query results for model [Modules\\RepairShop\\Models\\TmCode] 16"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer 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 \
"https://viratest2.ir/api/v1/repairshops/tmCodes/16" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"code\": \"architecto\",
\"title\": \"architecto\",
\"hours\": 16,
\"amount_per_hours\": 16,
\"max_cost\": 16,
\"base_amount\": 16,
\"shop_id\": 16,
\"mechanism_group_id\": 16,
\"is_active\": \"Y\",
\"type\": \"EM\"
}"
const url = new URL(
"https://viratest2.ir/api/v1/repairshops/tmCodes/16"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"code": "architecto",
"title": "architecto",
"hours": 16,
"amount_per_hours": 16,
"max_cost": 16,
"base_amount": 16,
"shop_id": 16,
"mechanism_group_id": 16,
"is_active": "Y",
"type": "EM"
};
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 \
"https://viratest2.ir/api/v1/repairshops/tmCodes/16" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://viratest2.ir/api/v1/repairshops/tmCodes/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 "https://viratest2.ir/api/v1/repairshops/finalStatements" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://viratest2.ir/api/v1/repairshops/finalStatements"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": [
"messages.success"
],
"data": {
"finalStatements": {
"data": [],
"path": "https://viratest2.ir/api/v1/repairshops/finalStatements",
"per_page": 15,
"next_cursor": null,
"next_page_url": null,
"prev_cursor": null,
"prev_page_url": 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.
Store a newly created resource in storage.
Example request:
curl --request POST \
"https://viratest2.ir/api/v1/repairshops/finalStatements" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"title\": \"b\",
\"number\": 16,
\"date\": \"2026-02-21T07:15:17\",
\"creator_id\": 16,
\"shop_id\": 16,
\"shop_name\": \"architecto\",
\"description\": \"Eius et animi quos velit et.\"
}"
const url = new URL(
"https://viratest2.ir/api/v1/repairshops/finalStatements"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"title": "b",
"number": 16,
"date": "2026-02-21T07:15:17",
"creator_id": 16,
"shop_id": 16,
"shop_name": "architecto",
"description": "Eius et animi quos velit et."
};
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 "https://viratest2.ir/api/v1/repairshops/finalStatements/16" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://viratest2.ir/api/v1/repairshops/finalStatements/16"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (404):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "No query results for model [Modules\\RepairShop\\Models\\FinalStatement] 16"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer 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 \
"https://viratest2.ir/api/v1/repairshops/finalStatements/16" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"title\": \"b\",
\"number\": 16,
\"date\": \"2026-02-21T07:15:18\",
\"creator_id\": 16,
\"shop_id\": 16,
\"shop_name\": \"architecto\",
\"description\": \"Eius et animi quos velit et.\"
}"
const url = new URL(
"https://viratest2.ir/api/v1/repairshops/finalStatements/16"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"title": "b",
"number": 16,
"date": "2026-02-21T07:15:18",
"creator_id": 16,
"shop_id": 16,
"shop_name": "architecto",
"description": "Eius et animi quos velit et."
};
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 \
"https://viratest2.ir/api/v1/repairshops/finalStatements/16" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://viratest2.ir/api/v1/repairshops/finalStatements/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 "https://viratest2.ir/api/v1/repairshops/finalStatementsFactors" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://viratest2.ir/api/v1/repairshops/finalStatementsFactors"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": [
"messages.success"
],
"data": {
"finalStatementsFactors": {
"data": [],
"path": "https://viratest2.ir/api/v1/repairshops/finalStatementsFactors",
"per_page": 15,
"next_cursor": null,
"next_page_url": null,
"prev_cursor": null,
"prev_page_url": 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.
Store a newly created resource in storage.
Example request:
curl --request POST \
"https://viratest2.ir/api/v1/repairshops/finalStatementsFactors" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"bngzmiyvdljnikhwaykcmyuwpwlvqwrsitcpscqldzsnrwtujwvlxjklqppwqbewtnnoqitpxn\",
\"number\": 16,
\"date\": \"2026-02-21T07:15:18\"
}"
const url = new URL(
"https://viratest2.ir/api/v1/repairshops/finalStatementsFactors"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "bngzmiyvdljnikhwaykcmyuwpwlvqwrsitcpscqldzsnrwtujwvlxjklqppwqbewtnnoqitpxn",
"number": 16,
"date": "2026-02-21T07:15:18"
};
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 "https://viratest2.ir/api/v1/repairshops/finalStatementsFactors/16" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://viratest2.ir/api/v1/repairshops/finalStatementsFactors/16"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": [
"messages.success"
],
"data": {
"finalStatementFactor": {
"final": 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.
Update the specified resource in storage.
Example request:
curl --request PUT \
"https://viratest2.ir/api/v1/repairshops/finalStatementsFactors/16" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"bngzmiyvdljnikhwaykcmyuwpwlvqwrsitcpscqldzsnrwtujwvlxjklqppwqbewtnnoqitpxn\",
\"number\": 16,
\"date\": \"2026-02-21T07:15:18\",
\"final_statement_id\": \"architecto\"
}"
const url = new URL(
"https://viratest2.ir/api/v1/repairshops/finalStatementsFactors/16"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "bngzmiyvdljnikhwaykcmyuwpwlvqwrsitcpscqldzsnrwtujwvlxjklqppwqbewtnnoqitpxn",
"number": 16,
"date": "2026-02-21T07:15:18",
"final_statement_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 \
"https://viratest2.ir/api/v1/repairshops/finalStatementsFactors/16" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://viratest2.ir/api/v1/repairshops/finalStatementsFactors/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 "https://viratest2.ir/api/v1/repairshops/pmGroups" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://viratest2.ir/api/v1/repairshops/pmGroups"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": [
"messages.success"
],
"data": {
"pmGroups": {
"data": [],
"path": "https://viratest2.ir/api/v1/repairshops/pmGroups",
"per_page": 15,
"next_cursor": null,
"next_page_url": null,
"prev_cursor": null,
"prev_page_url": 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.
Store a newly created resource in storage.
Example request:
curl --request POST \
"https://viratest2.ir/api/v1/repairshops/pmGroups" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"tm_code_id\": \"architecto\",
\"mechanism_group_code\": \"architecto\",
\"description\": \"Eius et animi quos velit et.\",
\"minutes\": 16,
\"km\": 16
}"
const url = new URL(
"https://viratest2.ir/api/v1/repairshops/pmGroups"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"tm_code_id": "architecto",
"mechanism_group_code": "architecto",
"description": "Eius et animi quos velit et.",
"minutes": 16,
"km": 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 "https://viratest2.ir/api/v1/repairshops/pmGroups/16" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://viratest2.ir/api/v1/repairshops/pmGroups/16"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (404):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "No query results for model [Modules\\RepairShop\\Models\\PmGroup] 16"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer 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 \
"https://viratest2.ir/api/v1/repairshops/pmGroups/16" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"mechanism_group_code\": \"architecto\",
\"description\": \"Eius et animi quos velit et.\",
\"minutes\": 16,
\"km\": 16
}"
const url = new URL(
"https://viratest2.ir/api/v1/repairshops/pmGroups/16"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"mechanism_group_code": "architecto",
"description": "Eius et animi quos velit et.",
"minutes": 16,
"km": 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 \
"https://viratest2.ir/api/v1/repairshops/pmGroups/16" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://viratest2.ir/api/v1/repairshops/pmGroups/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 "https://viratest2.ir/api/v1/repairshops/repairmen" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://viratest2.ir/api/v1/repairshops/repairmen"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer 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 \
"https://viratest2.ir/api/v1/repairshops/repairmen" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"b\",
\"family\": \"n\",
\"personal_code\": \"gzmiyvd\",
\"workplace\": \"l\",
\"contract_status\": \"completion\"
}"
const url = new URL(
"https://viratest2.ir/api/v1/repairshops/repairmen"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "b",
"family": "n",
"personal_code": "gzmiyvd",
"workplace": "l",
"contract_status": "completion"
};
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 "https://viratest2.ir/api/v1/repairshops/repairmen/16" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://viratest2.ir/api/v1/repairshops/repairmen/16"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (404):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "No query results for model [Modules\\RepairShop\\Models\\Repairman] 16"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer 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 \
"https://viratest2.ir/api/v1/repairshops/repairmen/16" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"b\",
\"family\": \"n\",
\"personal_code\": \"gzmiyvd\",
\"workplace\": \"l\",
\"contract_status\": \"have\"
}"
const url = new URL(
"https://viratest2.ir/api/v1/repairshops/repairmen/16"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "b",
"family": "n",
"personal_code": "gzmiyvd",
"workplace": "l",
"contract_status": "have"
};
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 \
"https://viratest2.ir/api/v1/repairshops/repairmen/16" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://viratest2.ir/api/v1/repairshops/repairmen/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/v1/repairshops/tmRequests
Example request:
curl --request POST \
"https://viratest2.ir/api/v1/repairshops/tmRequests" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"mechanism_id\": 16,
\"driver_id\": 16,
\"description\": \"Et animi quos velit et fugiat.\",
\"type\": \"CM\"
}"
const url = new URL(
"https://viratest2.ir/api/v1/repairshops/tmRequests"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"mechanism_id": 16,
"driver_id": 16,
"description": "Et animi quos velit et fugiat.",
"type": "CM"
};
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/v1/repairshops/tmRequests/{id}
Example request:
curl --request GET \
--get "https://viratest2.ir/api/v1/repairshops/tmRequests/16" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://viratest2.ir/api/v1/repairshops/tmRequests/16"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer 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/v1/repairshops/tmRequests/{id}
Example request:
curl --request PUT \
"https://viratest2.ir/api/v1/repairshops/tmRequests/16" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"infos\": [
{
\"id\": 16,
\"tm_code_id\": 16,
\"shop_id\": 16,
\"mechanism_id\": 16,
\"driver_id\": 16,
\"status\": \"architecto\"
}
]
}"
const url = new URL(
"https://viratest2.ir/api/v1/repairshops/tmRequests/16"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"infos": [
{
"id": 16,
"tm_code_id": 16,
"shop_id": 16,
"mechanism_id": 16,
"driver_id": 16,
"status": "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/v1/repairshops/tmRequests/{id}
Example request:
curl --request DELETE \
"https://viratest2.ir/api/v1/repairshops/tmRequests/16" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://viratest2.ir/api/v1/repairshops/tmRequests/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/v1/repairshops/tmRequests/storeFromWorkshop
Example request:
curl --request POST \
"https://viratest2.ir/api/v1/repairshops/tmRequests/storeFromWorkshop" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"mechanism_id\": 16,
\"driver_id\": 16,
\"type\": \"EM\",
\"infos\": [
{
\"tm_code_id\": \"architecto\",
\"shop_id\": \"architecto\",
\"description\": \"Et animi quos velit et fugiat.\",
\"cost\": 16,
\"tm_code_count\": 22,
\"type_code\": \"not_accepted\"
}
]
}"
const url = new URL(
"https://viratest2.ir/api/v1/repairshops/tmRequests/storeFromWorkshop"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"mechanism_id": 16,
"driver_id": 16,
"type": "EM",
"infos": [
{
"tm_code_id": "architecto",
"shop_id": "architecto",
"description": "Et animi quos velit et fugiat.",
"cost": 16,
"tm_code_count": 22,
"type_code": "not_accepted"
}
]
};
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/v1/repairshops/tmRequests/setTmRequestFinalStatement
Example request:
curl --request POST \
"https://viratest2.ir/api/v1/repairshops/tmRequests/setTmRequestFinalStatement" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"final_statement_id\": \"architecto\",
\"work_order_numbers\": [
\"architecto\"
]
}"
const url = new URL(
"https://viratest2.ir/api/v1/repairshops/tmRequests/setTmRequestFinalStatement"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"final_statement_id": "architecto",
"work_order_numbers": [
"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.
PATCH api/v1/repairshops/tmRequests/{tmrequest_id}/reject
Example request:
curl --request PATCH \
"https://viratest2.ir/api/v1/repairshops/tmRequests/16/reject" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://viratest2.ir/api/v1/repairshops/tmRequests/16/reject"
);
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/v1/repairshops/tmRequests/{tmrequest_id}/toWaiting
Example request:
curl --request PATCH \
"https://viratest2.ir/api/v1/repairshops/tmRequests/16/toWaiting" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://viratest2.ir/api/v1/repairshops/tmRequests/16/toWaiting"
);
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/v1/repairshops/tmRequests/{tmrequest_id}/toDeparture
Example request:
curl --request PATCH \
"https://viratest2.ir/api/v1/repairshops/tmRequests/16/toDeparture" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://viratest2.ir/api/v1/repairshops/tmRequests/16/toDeparture"
);
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/v1/repairshops/tmRequests/{tmrequest_id}/rollbackToAccepted
Example request:
curl --request PATCH \
"https://viratest2.ir/api/v1/repairshops/tmRequests/16/rollbackToAccepted" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://viratest2.ir/api/v1/repairshops/tmRequests/16/rollbackToAccepted"
);
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.
DELETE api/v1/repairshops/tmRequests/info/{tmrequestInfo}/deleteInfo
Example request:
curl --request DELETE \
"https://viratest2.ir/api/v1/repairshops/tmRequests/info/architecto/deleteInfo" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://viratest2.ir/api/v1/repairshops/tmRequests/info/architecto/deleteInfo"
);
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/v1/warehouse/units
Example request:
curl --request GET \
--get "https://viratest2.ir/api/v1/warehouse/units" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://viratest2.ir/api/v1/warehouse/units"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer 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/v1/warehouse/units
Example request:
curl --request POST \
"https://viratest2.ir/api/v1/warehouse/units" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"b\"
}"
const url = new URL(
"https://viratest2.ir/api/v1/warehouse/units"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "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.
GET api/v1/warehouse/units/{id}
Example request:
curl --request GET \
--get "https://viratest2.ir/api/v1/warehouse/units/16" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://viratest2.ir/api/v1/warehouse/units/16"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer 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/v1/warehouse/units/{id}
Example request:
curl --request PUT \
"https://viratest2.ir/api/v1/warehouse/units/16" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"b\"
}"
const url = new URL(
"https://viratest2.ir/api/v1/warehouse/units/16"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "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.
DELETE api/v1/warehouse/units/{id}
Example request:
curl --request DELETE \
"https://viratest2.ir/api/v1/warehouse/units/16" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://viratest2.ir/api/v1/warehouse/units/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/v1/warehouse/storehouses
Example request:
curl --request GET \
--get "https://viratest2.ir/api/v1/warehouse/storehouses" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://viratest2.ir/api/v1/warehouse/storehouses"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer 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/v1/warehouse/storehouses
Example request:
curl --request POST \
"https://viratest2.ir/api/v1/warehouse/storehouses" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"code\": \"architecto\",
\"name\": \"architecto\",
\"address\": \"architecto\",
\"phone\": \"architecto\"
}"
const url = new URL(
"https://viratest2.ir/api/v1/warehouse/storehouses"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"code": "architecto",
"name": "architecto",
"address": "architecto",
"phone": "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/v1/warehouse/storehouses/{id}
Example request:
curl --request GET \
--get "https://viratest2.ir/api/v1/warehouse/storehouses/16" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://viratest2.ir/api/v1/warehouse/storehouses/16"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer 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/v1/warehouse/storehouses/{id}
Example request:
curl --request PUT \
"https://viratest2.ir/api/v1/warehouse/storehouses/16" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"code\": \"architecto\",
\"name\": \"architecto\",
\"address\": \"architecto\",
\"phone\": \"architecto\"
}"
const url = new URL(
"https://viratest2.ir/api/v1/warehouse/storehouses/16"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"code": "architecto",
"name": "architecto",
"address": "architecto",
"phone": "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/v1/warehouse/storehouses/{id}
Example request:
curl --request DELETE \
"https://viratest2.ir/api/v1/warehouse/storehouses/16" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://viratest2.ir/api/v1/warehouse/storehouses/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/v1/warehouse/products
Example request:
curl --request GET \
--get "https://viratest2.ir/api/v1/warehouse/products" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://viratest2.ir/api/v1/warehouse/products"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer 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/v1/warehouse/products
Example request:
curl --request POST \
"https://viratest2.ir/api/v1/warehouse/products" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"storehouse_id\": \"architecto\",
\"unit_id\": \"architecto\",
\"code\": \"n\",
\"name\": \"g\",
\"technical_description\": \"z\",
\"length\": 4326.4168799999997645500116050243377685546875,
\"width\": 4326.4168799999997645500116050243377685546875,
\"height\": 4326.4168799999997645500116050243377685546875,
\"weight\": 4326.4168799999997645500116050243377685546875,
\"color\": \"architecto\",
\"count\": 4326.4168799999997645500116050243377685546875,
\"single_amount\": 16,
\"purchase_date\": \"2026-02-21 07:15:20\",
\"order_threshold\": 4326.4168799999997645500116050243377685546875,
\"en_description\": \"architecto\",
\"fa_description\": \"architecto\"
}"
const url = new URL(
"https://viratest2.ir/api/v1/warehouse/products"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"storehouse_id": "architecto",
"unit_id": "architecto",
"code": "n",
"name": "g",
"technical_description": "z",
"length": 4326.4168799999997645500116050243377685546875,
"width": 4326.4168799999997645500116050243377685546875,
"height": 4326.4168799999997645500116050243377685546875,
"weight": 4326.4168799999997645500116050243377685546875,
"color": "architecto",
"count": 4326.4168799999997645500116050243377685546875,
"single_amount": 16,
"purchase_date": "2026-02-21 07:15:20",
"order_threshold": 4326.4168799999997645500116050243377685546875,
"en_description": "architecto",
"fa_description": "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/v1/warehouse/products/{id}
Example request:
curl --request GET \
--get "https://viratest2.ir/api/v1/warehouse/products/16" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://viratest2.ir/api/v1/warehouse/products/16"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer 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/v1/warehouse/products/{id}
Example request:
curl --request PUT \
"https://viratest2.ir/api/v1/warehouse/products/16" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"code\": \"architecto\",
\"name\": \"architecto\",
\"technical_description\": \"architecto\",
\"color\": \"architecto\",
\"single_amount\": 11,
\"purchase_date\": \"2026-02-21 07:15:20\",
\"en_description\": \"architecto\",
\"fa_description\": \"architecto\"
}"
const url = new URL(
"https://viratest2.ir/api/v1/warehouse/products/16"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"code": "architecto",
"name": "architecto",
"technical_description": "architecto",
"color": "architecto",
"single_amount": 11,
"purchase_date": "2026-02-21 07:15:20",
"en_description": "architecto",
"fa_description": "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/v1/warehouse/products/{id}
Example request:
curl --request DELETE \
"https://viratest2.ir/api/v1/warehouse/products/16" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://viratest2.ir/api/v1/warehouse/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.
PUT api/v1/warehouse/requests/importOrExportAll
Example request:
curl --request PUT \
"https://viratest2.ir/api/v1/warehouse/requests/importOrExportAll" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"request_ids\": [
16
]
}"
const url = new URL(
"https://viratest2.ir/api/v1/warehouse/requests/importOrExportAll"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"request_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.
PUT api/v1/warehouse/requests/importOrExportOne
Example request:
curl --request PUT \
"https://viratest2.ir/api/v1/warehouse/requests/importOrExportOne" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"request_id\": 16,
\"number_complited\": 16
}"
const url = new URL(
"https://viratest2.ir/api/v1/warehouse/requests/importOrExportOne"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"request_id": 16,
"number_complited": 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.
GET api/v1/warehouse/requests
Example request:
curl --request GET \
--get "https://viratest2.ir/api/v1/warehouse/requests" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://viratest2.ir/api/v1/warehouse/requests"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer 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/v1/warehouse/requests
Example request:
curl --request POST \
"https://viratest2.ir/api/v1/warehouse/requests" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"request_number\": 16,
\"applicant_id\": \"architecto\",
\"approver_id\": \"architecto\",
\"performer_id\": \"architecto\",
\"receiver_id\": \"architecto\",
\"product_id\": \"architecto\",
\"count\": \"architecto\",
\"type\": \"request\",
\"number_completed\": \"architecto\",
\"work_order_number\": \"architecto\",
\"comment\": \"architecto\",
\"status\": \"exported\"
}"
const url = new URL(
"https://viratest2.ir/api/v1/warehouse/requests"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"request_number": 16,
"applicant_id": "architecto",
"approver_id": "architecto",
"performer_id": "architecto",
"receiver_id": "architecto",
"product_id": "architecto",
"count": "architecto",
"type": "request",
"number_completed": "architecto",
"work_order_number": "architecto",
"comment": "architecto",
"status": "exported"
};
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/v1/warehouse/requests/{id}
Example request:
curl --request GET \
--get "https://viratest2.ir/api/v1/warehouse/requests/16" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://viratest2.ir/api/v1/warehouse/requests/16"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer 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/v1/warehouse/requests/{id}
Example request:
curl --request PUT \
"https://viratest2.ir/api/v1/warehouse/requests/16" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"request_number\": 16,
\"type\": \"buy\",
\"comment\": \"architecto\",
\"status\": \"exported\"
}"
const url = new URL(
"https://viratest2.ir/api/v1/warehouse/requests/16"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"request_number": 16,
"type": "buy",
"comment": "architecto",
"status": "exported"
};
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/v1/warehouse/imports_and_exports
Example request:
curl --request GET \
--get "https://viratest2.ir/api/v1/warehouse/imports_and_exports" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://viratest2.ir/api/v1/warehouse/imports_and_exports"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer 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/v1/warehouse/transfer_between_storehouses
Example request:
curl --request GET \
--get "https://viratest2.ir/api/v1/warehouse/transfer_between_storehouses" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://viratest2.ir/api/v1/warehouse/transfer_between_storehouses"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer 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/v1/warehouse/transfer_between_storehouses
Example request:
curl --request POST \
"https://viratest2.ir/api/v1/warehouse/transfer_between_storehouses" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"request_number\": 16,
\"applicant_id\": \"architecto\",
\"approver_id\": \"architecto\",
\"performer_id\": \"architecto\",
\"receiver_id\": \"architecto\",
\"product_id\": \"architecto\",
\"count\": \"architecto\",
\"type\": \"buy\",
\"number_completed\": \"architecto\",
\"work_order_number\": \"architecto\",
\"comment\": \"architecto\",
\"status\": \"exported\"
}"
const url = new URL(
"https://viratest2.ir/api/v1/warehouse/transfer_between_storehouses"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"request_number": 16,
"applicant_id": "architecto",
"approver_id": "architecto",
"performer_id": "architecto",
"receiver_id": "architecto",
"product_id": "architecto",
"count": "architecto",
"type": "buy",
"number_completed": "architecto",
"work_order_number": "architecto",
"comment": "architecto",
"status": "exported"
};
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/v1/warehouse/transfer_between_storehouses/{id}
Example request:
curl --request GET \
--get "https://viratest2.ir/api/v1/warehouse/transfer_between_storehouses/16" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://viratest2.ir/api/v1/warehouse/transfer_between_storehouses/16"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": [
"messages.success"
],
"data": {
"request": []
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer 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/v1/warehouse/transfer_between_storehouses/{id}
Example request:
curl --request PUT \
"https://viratest2.ir/api/v1/warehouse/transfer_between_storehouses/16" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"request_number\": 16,
\"type\": \"buy\",
\"comment\": \"architecto\",
\"status\": \"pending\"
}"
const url = new URL(
"https://viratest2.ir/api/v1/warehouse/transfer_between_storehouses/16"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"request_number": 16,
"type": "buy",
"comment": "architecto",
"status": "pending"
};
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/v1/warehouse/storehouse_users
Example request:
curl --request GET \
--get "https://viratest2.ir/api/v1/warehouse/storehouse_users" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://viratest2.ir/api/v1/warehouse/storehouse_users"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer 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/v1/warehouse/storehouse_users
Example request:
curl --request POST \
"https://viratest2.ir/api/v1/warehouse/storehouse_users" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"user_id\": 16,
\"storehouse_id\": 16
}"
const url = new URL(
"https://viratest2.ir/api/v1/warehouse/storehouse_users"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"user_id": 16,
"storehouse_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.
DELETE api/v1/warehouse/storehouse_users/{id}
Example request:
curl --request DELETE \
"https://viratest2.ir/api/v1/warehouse/storehouse_users/16" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://viratest2.ir/api/v1/warehouse/storehouse_users/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/v1/warehouse/customers
Example request:
curl --request GET \
--get "https://viratest2.ir/api/v1/warehouse/customers" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://viratest2.ir/api/v1/warehouse/customers"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer 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/v1/warehouse/customers
Example request:
curl --request POST \
"https://viratest2.ir/api/v1/warehouse/customers" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"b\",
\"family\": \"n\",
\"type\": \"person\",
\"national_code\": \"gzmiyvdljnikhway\",
\"phone\": \"architecto\",
\"zip_code\": \"architecto\",
\"address\": \"architecto\"
}"
const url = new URL(
"https://viratest2.ir/api/v1/warehouse/customers"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "b",
"family": "n",
"type": "person",
"national_code": "gzmiyvdljnikhway",
"phone": "architecto",
"zip_code": "architecto",
"address": "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/v1/warehouse/customers/{id}
Example request:
curl --request GET \
--get "https://viratest2.ir/api/v1/warehouse/customers/16" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://viratest2.ir/api/v1/warehouse/customers/16"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer 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/v1/warehouse/customers/{id}
Example request:
curl --request PUT \
"https://viratest2.ir/api/v1/warehouse/customers/16" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"b\",
\"family\": \"n\",
\"type\": \"person\",
\"national_code\": \"gzmiyvdljnikhway\",
\"phone\": \"architecto\",
\"zip_code\": \"architecto\",
\"address\": \"architecto\"
}"
const url = new URL(
"https://viratest2.ir/api/v1/warehouse/customers/16"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "b",
"family": "n",
"type": "person",
"national_code": "gzmiyvdljnikhway",
"phone": "architecto",
"zip_code": "architecto",
"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.
DELETE api/v1/warehouse/customers/{id}
Example request:
curl --request DELETE \
"https://viratest2.ir/api/v1/warehouse/customers/16" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://viratest2.ir/api/v1/warehouse/customers/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/v1/warehouse/factors
Example request:
curl --request GET \
--get "https://viratest2.ir/api/v1/warehouse/factors" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://viratest2.ir/api/v1/warehouse/factors"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer 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/v1/warehouse/factors
Example request:
curl --request POST \
"https://viratest2.ir/api/v1/warehouse/factors" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"customer_id\": \"architecto\",
\"factor_number\": \"n\",
\"items\": [
{
\"product_id\": \"architecto\",
\"single_amount\": 39,
\"count\": 67,
\"discount\": 12
}
]
}"
const url = new URL(
"https://viratest2.ir/api/v1/warehouse/factors"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"customer_id": "architecto",
"factor_number": "n",
"items": [
{
"product_id": "architecto",
"single_amount": 39,
"count": 67,
"discount": 12
}
]
};
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/v1/warehouse/factors/{id}
Example request:
curl --request GET \
--get "https://viratest2.ir/api/v1/warehouse/factors/16" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://viratest2.ir/api/v1/warehouse/factors/16"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer 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/v1/warehouse/factors/{id}
Example request:
curl --request PUT \
"https://viratest2.ir/api/v1/warehouse/factors/16" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"factor_number\": \"b\",
\"items\": [
{
\"id\": 16,
\"single_amount\": 39,
\"count\": 67,
\"discount\": 12,
\"_delete\": false
}
]
}"
const url = new URL(
"https://viratest2.ir/api/v1/warehouse/factors/16"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"factor_number": "b",
"items": [
{
"id": 16,
"single_amount": 39,
"count": 67,
"discount": 12,
"_delete": 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/v1/warehouse/factors/{factor_id}/items/{itemId}
Example request:
curl --request DELETE \
"https://viratest2.ir/api/v1/warehouse/factors/16/items/architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://viratest2.ir/api/v1/warehouse/factors/16/items/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/v1/warehouse/factors/{factor_id}/items/{itemId}/return
Example request:
curl --request POST \
"https://viratest2.ir/api/v1/warehouse/factors/16/items/architecto/return" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://viratest2.ir/api/v1/warehouse/factors/16/items/architecto/return"
);
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/v1/warehouse/factors/{factor_id}/confirm
Example request:
curl --request POST \
"https://viratest2.ir/api/v1/warehouse/factors/16/confirm" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://viratest2.ir/api/v1/warehouse/factors/16/confirm"
);
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/v1/warehouse/factors/{factor_id}/cancel
Example request:
curl --request POST \
"https://viratest2.ir/api/v1/warehouse/factors/16/cancel" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://viratest2.ir/api/v1/warehouse/factors/16/cancel"
);
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/v1/warehouse/factors/{factor_id}/payments
Example request:
curl --request POST \
"https://viratest2.ir/api/v1/warehouse/factors/16/payments" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"amount_paid_by_card\": 27,
\"amount_paid_by_cash\": 39,
\"amount_paid_by_check\": 84,
\"description\": \"Quos velit et fugiat sunt nihil accusantium harum.\"
}"
const url = new URL(
"https://viratest2.ir/api/v1/warehouse/factors/16/payments"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"amount_paid_by_card": 27,
"amount_paid_by_cash": 39,
"amount_paid_by_check": 84,
"description": "Quos velit et fugiat sunt nihil accusantium harum."
};
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.