{
	"info": {
		"_postman_id": "6bd3790d-12cc-4e41-8049-0c3068d63070",
		"name": "Omnivore Marketplace V2 API",
		"description": "Example usage of Omnivore V2 JSON/REST API",
		"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
		"_exporter_id": "14419396"
	},
	"item": [
		{
			"name": "List products",
			"request": {
				"method": "GET",
				"header": [
					{
						"key": "X-OMNIVORE-CLIENT-ID",
						"value": "VDof7rRAiEyYDlV4OGqZQ1icJZNKGfBu",
						"type": "text"
					},
					{
						"key": "X-OMNIVORE-CLIENT-SECRET",
						"value": "mfo8X98glsU0GSOE2gItwza2imO105x8",
						"type": "text"
					}
				],
				"url": {
					"raw": "https://m2.omnivore.com.au/v2/retailer/all-that-digi/marketplace/ebay/products/list",
					"protocol": "https",
					"host": [
						"m2",
						"omnivore",
						"com",
						"au"
					],
					"path": [
						"v2",
						"retailer",
						"all-that-digi",
						"marketplace",
						"ebay",
						"products",
						"list"
					]
				},
				"description": "List products for a specific marketplace"
			},
			"response": []
		},
		{
			"name": "List orders",
			"request": {
				"method": "GET",
				"header": [
					{
						"key": "X-OMNIVORE-CLIENT-ID",
						"value": "VDof7rRAiEyYDlV4OGqZQ1icJZNKGfBu",
						"type": "text"
					},
					{
						"key": "X-OMNIVORE-CLIENT-SECRET",
						"value": "mfo8X98glsU0GSOE2gItwza2imO105x8",
						"type": "text"
					}
				],
				"url": {
					"raw": "https://m2.omnivore.com.au/v2/retailer/all-that-digi/marketplace/ebay/orders/list",
					"protocol": "https",
					"host": [
						"m2",
						"omnivore",
						"com",
						"au"
					],
					"path": [
						"v2",
						"retailer",
						"all-that-digi",
						"marketplace",
						"ebay",
						"orders",
						"list"
					]
				},
				"description": "List orders for a specific marketplace"
			},
			"response": []
		},
		{
			"name": "List Inventory",
			"request": {
				"method": "GET",
				"header": [
					{
						"key": "X-OMNIVORE-CLIENT-ID",
						"value": "VDof7rRAiEyYDlV4OGqZQ1icJZNKGfBu",
						"type": "text"
					},
					{
						"key": "X-OMNIVORE-CLIENT-SECRET",
						"value": "mfo8X98glsU0GSOE2gItwza2imO105x8",
						"type": "text"
					}
				],
				"url": {
					"raw": "https://m2.omnivore.com.au/v2/retailer/all-that-digi/marketplace/ebay/inventory/list",
					"protocol": "https",
					"host": [
						"m2",
						"omnivore",
						"com",
						"au"
					],
					"path": [
						"v2",
						"retailer",
						"all-that-digi",
						"marketplace",
						"ebay",
						"inventory",
						"list"
					]
				},
				"description": "List inventory for products on a specific marketplace"
			},
			"response": []
		},
		{
			"name": "Order Create",
			"request": {
				"method": "POST",
				"header": [
					{
						"key": "X-OMNIVORE-CLIENT-ID",
						"value": "HOSg8nTMvciBNx87Oc358yQW6nVzNLE2",
						"type": "text"
					},
					{
						"key": "X-OMNIVORE-CLIENT-SECRET",
						"value": "nCCC0ZJF6K3xi96wmzuLacznS8l6Kaak",
						"type": "text"
					}
				],
				"body": {
					"mode": "raw",
					"raw": "{\n  \"marketplace_code\": \"ebay\",\n  \"id\": 1002,\n  \"order_number\": \"1234560\",\n  \"alt_order_number\": \"987654\",\n  \"created_in_marketplace\": \"2025-03-28T10:15:30Z\",\n  \"customer\": {\n    \"first_name\": \"John\",\n    \"last_name\": \"Doe\",\n    \"email\": \"john.doe@example.com\"\n  },\n  \"shipping_address\": {\n    \"first_name\": \"John\",\n    \"last_name\": \"Doe\",\n    \"line1\": \"123 Main St\",\n    \"line2\": \"Apt 4B\",\n    \"city\": \"Sydney\",\n    \"state\": \"NSW\",\n    \"postcode\": \"2000\",\n    \"country_code\": \"AU\",\n    \"phone\": \"+61234567890\"\n  },\n  \"shipping\": {\n    \"method\": \"Express\",\n    \"price\": {\n      \"currency\": \"AUD\",\n      \"with_tax\": \"15.00\",\n      \"tax\": \"1.50\"\n    }\n  },\n  \"total_price\": {\n    \"currency\": \"AUD\",\n    \"with_tax\": \"115.00\",\n    \"tax\": \"10.00\"\n  },\n  \"customer_message\": \"Please deliver after 5 PM.\",\n  \"line_items\": [\n    {\n      \"line_item_id\": 1,\n      \"product_sku\": \"ABC123\",\n      \"variant_sku\": \"ABC123-SM\",\n      \"marketplace_sku\": \"MKT-XYZ123\",\n      \"name\": \"T-Shirt - Small\",\n      \"quantity\": 2,\n      \"unit_price\": {\n        \"currency\": \"AUD\",\n        \"with_tax\": \"50.00\",\n        \"tax\": \"5.00\"\n      }\n    }\n  ],\n    \"additional_fee\": {\n        \"amount\": \"0.00\",\n        \"currency\": \"AUD\"\n    },\n    \"additional_tax\": {\n        \"amount\": \"0.00\",\n        \"currency\": \"AUD\"\n    },\n  \"transactions\": [\n    {   \n      \"type\": \"marketplace\",\n      \"response_code\": \"unknown\",\n      \"amount\": \"115.00\",\n      \"transaction_id\": \"1234567890\",\n      \"status\": \"paid\",\n      \"currency\": \"AUD\",\n      \"code\": \"ebay\"\n    }\n  ]\n}\n",
					"options": {
						"raw": {
							"language": "json"
						}
					}
				},
				"url": {
					"raw": "https://m2.omnivore.com.au/v2/retailer/all-that-digi/marketplace/ebay/order/create",
					"protocol": "https",
					"host": [
						"m2",
						"omnivore",
						"com",
						"au"
					],
					"path": [
						"v2",
						"retailer",
						"all-that-digi",
						"marketplace",
						"ebay",
						"order",
						"create"
					]
				},
				"description": "Create an order in Omnivore"
			},
			"response": []
		}
	],
	"event": [
		{
			"listen": "prerequest",
			"script": {
				"type": "text/javascript",
				"exec": [
					""
				]
			}
		},
		{
			"listen": "test",
			"script": {
				"type": "text/javascript",
				"exec": [
					""
				]
			}
		}
	]
}