{
	"info": {
		"_postman_id": "300046bc-5fe5-4d46-aacc-3ecf9b2821e4",
		"name": "iDaraNet-Einvoice",
		"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
		"_exporter_id": "30119999"
	},
	"item": [
		{
			"name": "invoices",
			"item": [
				{
					"name": "standard",
					"request": {
						"auth": {
							"type": "bearer",
							"bearer": [
								{
									"key": "token",
									"value": "3|R71gcnxciOXS2OSnpIXt8Zc4PNxbiWdAnwst4cLZ",
									"type": "string"
								}
							]
						},
						"method": "POST",
						"header": [
							{
								"key": "Accept",
								"value": "application/json",
								"type": "text"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\r\n    \"invoice_type\"                      :   0,\r\n    \"invoice_type_category\"             :   1,\r\n    \"issue_date\"                        :   \"2024-03-05\",\r\n    \"issue_time\"                        :   \"12:37:00\",\r\n\r\n    \"customer_name\"                     :   \"مؤسسة سهم المسارات للنقليات\",\r\n    \"customer_vat_reference\"            :   \"302109241700003\",\r\n    \"customer_commercial_reference\"     :   \"2050164419\",\r\n    \"customer_street_name\"              :   \"Khalid bin elwalid\",\r\n    \"customer_building_number\"          :   \"7\",\r\n    \"customer_plot_identification\"      :   \"1548\",\r\n    \"customer_city_sub_division_name\"   :   \"Sharafiya\",\r\n    \"customer_city_name\"                :   \"Jeddah\",\r\n    \"customer_postal_zone\"              :   \"5478\",\r\n    \"customer_country_sub_entity\"       :   \"Mecca\",\r\n    \"customer_identification_code\"      :   \"15\",\r\n\r\n    \"actual_delivery_date\"              :   \"2024-05-15\",\r\n    \"latest_delivery_date\"              :   \"2024-05-15\",\r\n\r\n    \"vat_percentage\"                    :   \"15\",\r\n    \"total_vat\"                         :   \"97.83\",\r\n    \"total_value_with_vat\"              :   \"750\",\r\n\r\n    \"details\" : [\r\n        {\r\n            \"item_name\"             :   \"جهاز تتبع FMC130 GPS الجيل الرابع \",\r\n            \"quantity\"              :   \"1\",\r\n            \"price_without_vat\"     :   \"286.95652173913044\",\r\n            \"vat_amount\"            :   \"43.04347826086956\",\r\n            \"vat_percentage\"        :   \"15\"\r\n        },\r\n                {\r\n            \"item_name\"             :   \"جهاز تتبع FMC130 GPS الجيل الرابع \",\r\n            \"quantity\"              :   \"1\",\r\n            \"price_without_vat\"     :   \"365.21739130434787\",\r\n            \"vat_amount\"            :   \"54.78260869565218\",\r\n            \"vat_percentage\"        :   \"15\"\r\n        }\r\n    ]\r\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "https://fatoora.idara.sa/",
							"protocol": "http",
							"host": [
								"localhost"
							],
							"port": "8000",
							"path": [
								"api",
								"v1",
								"invoice"
							],
							"query": [
								{
									"key": "",
									"value": null,
									"disabled": true
								}
							]
						}
					},
					"response": []
				},
				{
					"name": "show",
					"request": {
						"auth": {
							"type": "bearer",
							"bearer": [
								{
									"key": "token",
									"value": "3|R71gcnxciOXS2OSnpIXt8Zc4PNxbiWdAnwst4cLZ",
									"type": "string"
								}
							]
						},
						"method": "GET",
						"header": [
							{
								"key": "Accept",
								"value": "application/json",
								"type": "text"
							}
						],
						"url": {
							"raw": "https://fatoora.idara.sa//18",
							"protocol": "http",
							"host": [
								"localhost"
							],
							"port": "8000",
							"path": [
								"api",
								"v1",
								"invoice",
								"18"
							],
							"query": [
								{
									"key": "id",
									"value": "7",
									"disabled": true
								}
							]
						}
					},
					"response": []
				},
				{
					"name": "standard debit note",
					"request": {
						"auth": {
							"type": "bearer",
							"bearer": [
								{
									"key": "token",
									"value": "3|R71gcnxciOXS2OSnpIXt8Zc4PNxbiWdAnwst4cLZ",
									"type": "string"
								}
							]
						},
						"method": "POST",
						"header": [
							{
								"key": "Accept",
								"value": "application/json",
								"type": "text"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\r\n    \"invoice_type\"                      :   0,\r\n    \"invoice_type_category\"             :   3,\r\n    \"issue_date\"                        :   \"2024-03-05\",\r\n    \"issue_time\"                        :   \"12:37:00\",\r\n\r\n    \"customer_name\"                     :   \"مؤسسة سهم المسارات للنقليات\",\r\n    \"customer_vat_reference\"            :   \"302109241700003\",\r\n    \"customer_commercial_reference\"     :   \"2050164419\",\r\n    \"customer_street_name\"              :   \"Khalid bin elwalid\",\r\n    \"customer_building_number\"          :   \"7\",\r\n    \"customer_plot_identification\"      :   \"1548\",\r\n    \"customer_city_sub_division_name\"   :   \"Sharafiya\",\r\n    \"customer_city_name\"                :   \"Jeddah\",\r\n    \"customer_postal_zone\"              :   \"54758\",\r\n    \"customer_country_sub_entity\"       :   \"Mecca\",\r\n    \"customer_identification_code\"      :   \"15\",\r\n\r\n    \"actual_delivery_date\"              :   \"2024-05-15\",\r\n    \"latest_delivery_date\"              :   \"2024-05-15\",\r\n\r\n    \"vat_percentage\"                    :   \"15\",\r\n    \"total_vat\"                         :   \"13.04\",\r\n    \"total_value_with_vat\"              :   \"100\",\r\n\r\n    \"details\" : [\r\n        {\r\n            \"item_name\"             :   \"جهاز تتبع FMC130 GPS الجيل الرابع \",\r\n            \"quantity\"              :   \"1\",\r\n            \"price_without_vat\"     :   \"86.96\",\r\n            \"vat_amount\"            :   \"13.04\",\r\n            \"vat_percentage\"        :   \"15\"\r\n        }\r\n    ]\r\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "https://fatoora.idara.sa/",
							"protocol": "http",
							"host": [
								"localhost"
							],
							"port": "8000",
							"path": [
								"api",
								"v1",
								"invoice"
							],
							"query": [
								{
									"key": "",
									"value": null,
									"disabled": true
								}
							]
						}
					},
					"response": []
				},
				{
					"name": "standard credit note",
					"request": {
						"auth": {
							"type": "bearer",
							"bearer": [
								{
									"key": "token",
									"value": "3|R71gcnxciOXS2OSnpIXt8Zc4PNxbiWdAnwst4cLZ",
									"type": "string"
								}
							]
						},
						"method": "POST",
						"header": [
							{
								"key": "Accept",
								"value": "application/json",
								"type": "text"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\r\n    \"invoice_type\"                      :   0,\r\n    \"invoice_type_category\"             :   4,\r\n    \"issue_date\"                        :   \"2024-03-05\",\r\n    \"issue_time\"                        :   \"12:37:00\",\r\n\r\n    \"customer_name\"                     :   \"مؤسسة سهم المسارات للنقليات\",\r\n    \"customer_vat_reference\"            :   \"302109241700003\",\r\n    \"customer_commercial_reference\"     :   \"2050164419\",\r\n    \"customer_street_name\"              :   \"Khalid bin elwalid\",\r\n    \"customer_building_number\"          :   \"7\",\r\n    \"customer_plot_identification\"      :   \"1548\",\r\n    \"customer_city_sub_division_name\"   :   \"Sharafiya\",\r\n    \"customer_city_name\"                :   \"Jeddah\",\r\n    \"customer_postal_zone\"              :   \"54758\",\r\n    \"customer_country_sub_entity\"       :   \"Mecca\",\r\n    \"customer_identification_code\"      :   \"15\",\r\n\r\n    \"actual_delivery_date\"              :   \"2024-05-15\",\r\n    \"latest_delivery_date\"              :   \"2024-05-15\",\r\n\r\n    \"vat_percentage\"                    :   \"15\",\r\n    \"total_vat\"                         :   \"13.04\",\r\n    \"total_value_with_vat\"              :   \"100\",\r\n\r\n    \"details\" : [\r\n        {\r\n            \"item_name\"             :   \"جهاز تتبع FMC130 GPS الجيل الرابع \",\r\n            \"quantity\"              :   \"1\",\r\n            \"price_without_vat\"     :   \"86.96\",\r\n            \"vat_amount\"            :   \"13.04\",\r\n            \"vat_percentage\"        :   \"15\"\r\n        }\r\n    ]\r\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "https://fatoora.idara.sa/",
							"protocol": "http",
							"host": [
								"localhost"
							],
							"port": "8000",
							"path": [
								"api",
								"v1",
								"invoice"
							],
							"query": [
								{
									"key": "",
									"value": null,
									"disabled": true
								}
							]
						}
					},
					"response": []
				},
				{
					"name": "simplified",
					"request": {
						"auth": {
							"type": "bearer",
							"bearer": [
								{
									"key": "token",
									"value": "3|R71gcnxciOXS2OSnpIXt8Zc4PNxbiWdAnwst4cLZ",
									"type": "string"
								}
							]
						},
						"method": "POST",
						"header": [
							{
								"key": "Accept",
								"value": "application/json",
								"type": "text"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\r\n    \"invoice_type\"                      :   1,\r\n    \"invoice_type_category\"             :   1,\r\n    \"issue_date\"                        :   \"2024-03-05\",\r\n    \"issue_time\"                        :   \"12:37:00\",\r\n\r\n    \"customer_name\"                     :   \"Ahmed\",\r\n    \"customer_vat_reference\"            :   \"\",\r\n    \"customer_commercial_reference\"     :   \"\",\r\n    \"customer_street_name\"              :   \"\",\r\n    \"customer_building_number\"          :   \"\",\r\n    \"customer_plot_identification\"      :   \"\",\r\n    \"customer_city_sub_division_name\"   :   \"\",\r\n    \"customer_city_name\"                :   \"\",\r\n    \"customer_postal_zone\"              :   \"\",\r\n    \"customer_country_sub_entity\"       :   \"\",\r\n    \"customer_identification_code\"      :   \"\",\r\n\r\n    \"actual_delivery_date\"              :   \"2024-05-15\",\r\n    \"latest_delivery_date\"              :   \"2024-05-15\",\r\n\r\n    \"vat_percentage\"                    :   \"15\",\r\n    \"total_vat\"                         :   \"52.17\",\r\n    \"total_value_with_vat\"              :   \"400\",\r\n\r\n    \"details\" : [\r\n                {\r\n            \"item_name\"             :   \"جهاز تتبع FMC130 GPS الجيل الرابع \",\r\n            \"quantity\"              :   \"1\",\r\n            \"price_without_vat\"     :   \"347.82608695652175\",\r\n            \"vat_amount\"            :   \"52.17391304347826\",\r\n            \"vat_percentage\"        :   \"15\"\r\n        }\r\n    ]\r\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "https://fatoora.idara.sa/",
							"protocol": "http",
							"host": [
								"localhost"
							],
							"port": "8000",
							"path": [
								"api",
								"v1",
								"invoice"
							],
							"query": [
								{
									"key": "",
									"value": null,
									"disabled": true
								}
							]
						}
					},
					"response": []
				},
				{
					"name": "simplified Debit Note",
					"request": {
						"auth": {
							"type": "bearer",
							"bearer": [
								{
									"key": "token",
									"value": "3|R71gcnxciOXS2OSnpIXt8Zc4PNxbiWdAnwst4cLZ",
									"type": "string"
								}
							]
						},
						"method": "POST",
						"header": [
							{
								"key": "Accept",
								"value": "application/json",
								"type": "text"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\r\n    \"invoice_type\"                      :   1,\r\n    \"invoice_type_category\"             :   3,\r\n    \"issue_date\"                        :   \"2024-03-05\",\r\n    \"issue_time\"                        :   \"12:37:00\",\r\n\r\n    \"customer_name\"                     :   \"Ahmed\",\r\n    \"customer_vat_reference\"            :   \"\",\r\n    \"customer_commercial_reference\"     :   \"\",\r\n    \"customer_street_name\"              :   \"\",\r\n    \"customer_building_number\"          :   \"\",\r\n    \"customer_plot_identification\"      :   \"\",\r\n    \"customer_city_sub_division_name\"   :   \"\",\r\n    \"customer_city_name\"                :   \"\",\r\n    \"customer_postal_zone\"              :   \"\",\r\n    \"customer_country_sub_entity\"       :   \"\",\r\n    \"customer_identification_code\"      :   \"\",\r\n\r\n    \"actual_delivery_date\"              :   \"2024-05-15\",\r\n    \"latest_delivery_date\"              :   \"2024-05-15\",\r\n\r\n    \"vat_percentage\"                    :   \"15\",\r\n    \"total_vat\"                         :   \"0.13\",\r\n    \"total_value_with_vat\"              :   \"1\",\r\n\r\n    \"details\" : [\r\n                {\r\n            \"item_name\"             :   \"جهاز تتبع FMC130 GPS الجيل الرابع \",\r\n            \"quantity\"              :   \"1\",\r\n            \"price_without_vat\"     :   \"0.87\",\r\n            \"vat_amount\"            :   \"0.13\",\r\n            \"vat_percentage\"        :   \"15\"\r\n        }\r\n    ]\r\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "https://fatoora.idara.sa/",
							"protocol": "http",
							"host": [
								"localhost"
							],
							"port": "8000",
							"path": [
								"api",
								"v1",
								"invoice"
							],
							"query": [
								{
									"key": "",
									"value": null,
									"disabled": true
								}
							]
						}
					},
					"response": []
				},
				{
					"name": "simplified Credit Note",
					"request": {
						"auth": {
							"type": "bearer",
							"bearer": [
								{
									"key": "token",
									"value": "3|R71gcnxciOXS2OSnpIXt8Zc4PNxbiWdAnwst4cLZ",
									"type": "string"
								}
							]
						},
						"method": "POST",
						"header": [
							{
								"key": "Accept",
								"value": "application/json",
								"type": "text"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\r\n    \"invoice_type\"                      :   1,\r\n    \"invoice_type_category\"             :   4,\r\n    \"issue_date\"                        :   \"2024-03-05\",\r\n    \"issue_time\"                        :   \"12:37:00\",\r\n\r\n    \"customer_name\"                     :   \"Ahmed\",\r\n    \"customer_vat_reference\"            :   \"\",\r\n    \"customer_commercial_reference\"     :   \"\",\r\n    \"customer_street_name\"              :   \"\",\r\n    \"customer_building_number\"          :   \"\",\r\n    \"customer_plot_identification\"      :   \"\",\r\n    \"customer_city_sub_division_name\"   :   \"\",\r\n    \"customer_city_name\"                :   \"\",\r\n    \"customer_postal_zone\"              :   \"\",\r\n    \"customer_country_sub_entity\"       :   \"\",\r\n    \"customer_identification_code\"      :   \"\",\r\n\r\n    \"actual_delivery_date\"              :   \"2024-05-15\",\r\n    \"latest_delivery_date\"              :   \"2024-05-15\",\r\n\r\n    \"vat_percentage\"                    :   \"15\",\r\n    \"total_vat\"                         :   \"52.17\",\r\n    \"total_value_with_vat\"              :   \"400\",\r\n\r\n    \"details\" : [\r\n                {\r\n            \"item_name\"             :   \"جهاز تتبع FMC130 GPS الجيل الرابع \",\r\n            \"quantity\"              :   \"1\",\r\n            \"price_without_vat\"     :   \"347.82608695652175\",\r\n            \"vat_amount\"            :   \"52.17391304347826\",\r\n            \"vat_percentage\"        :   \"15\"\r\n        }\r\n    ]\r\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "https://fatoora.idara.sa/",
							"protocol": "http",
							"host": [
								"localhost"
							],
							"port": "8000",
							"path": [
								"api",
								"v1",
								"invoice"
							],
							"query": [
								{
									"key": "",
									"value": null,
									"disabled": true
								}
							]
						}
					},
					"response": []
				}
			]
		}
	]
}