{
	"info": {
		"_postman_id": "0e07ba99-fb66-4f9f-be6b-b8338898825d",
		"name": "How To Buy on Cardtrader",
		"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
	},
	"item": [
		{
			"name": "Marketplace products",
			"request": {
				"method": "GET",
				"header": [],
				"url": {
					"raw": "https://{{host}}/api/v2/marketplace/products?expansion_id=34",
					"protocol": "https",
					"host": [
						"{{host}}"
					],
					"path": [
						"api",
						"v2",
						"marketplace",
						"products"
					],
					"query": [
						{
							"key": "expansion_id",
							"value": "34"
						}
					]
				}
			},
			"response": []
		},
		{
			"name": "Marketplace products by blueprint id",
			"request": {
				"method": "GET",
				"header": [],
				"url": {
					"raw": "https://{{host}}/api/v2/marketplace/products?blueprint_id=327",
					"protocol": "https",
					"host": [
						"{{host}}"
					],
					"path": [
						"api",
						"v2",
						"marketplace",
						"products"
					],
					"query": [
						{
							"key": "blueprint_id",
							"value": "327"
						}
					]
				}
			},
			"response": []
		},
		{
			"name": "Add product",
			"request": {
				"method": "POST",
				"header": [],
				"body": {
					"mode": "raw",
					"raw": "{\n    \"product_id\": 144162,\n    \"quantity\": 1,\n    \"via_cardtrader_zero\": true\n\n}",
					"options": {
						"raw": {
							"language": "json"
						}
					}
				},
				"url": {
					"raw": "https://{{host}}/api/v2/cart/add",
					"protocol": "https",
					"host": [
						"{{host}}"
					],
					"path": [
						"api",
						"v2",
						"cart",
						"add"
					]
				}
			},
			"response": []
		},
		{
			"name": "Purchase",
			"request": {
				"method": "POST",
				"header": [],
				"body": {
					"mode": "raw",
					"raw": "{\n    \"billing_address\": {\n        \"name\": \"stefano lampis\",\n        \"street\": \"via agostino di duccio 3\",\n        \"zip\": \"50143\",\n        \"city\": \"firenze\",\n        \"state_or_province\": \"FI\",\n        \"country_code\": \"IT\"\n    },\n    \"shipping_address\": {\n        \"name\": \"stefano lampis\",\n        \"street\": \"via agostino di duccio 3\",\n        \"zip\": \"50143\",\n        \"city\": \"firenze\",\n        \"state_or_province\": \"FI\",\n        \"country_code\": \"IT\"\n    }\n}",
					"options": {
						"raw": {
							"language": "json"
						}
					}
				},
				"url": {
					"raw": "https://{{host}}/api/v2/cart/purchase",
					"protocol": "https",
					"host": [
						"{{host}}"
					],
					"path": [
						"api",
						"v2",
						"cart",
						"purchase"
					]
				}
			},
			"response": []
		}
	],
	"auth": {
		"type": "bearer",
		"bearer": [
			{
				"key": "token",
				"value": "[YOUR API TOKEN]",
				"type": "string"
			}
		]
	},
	"event": [
		{
			"listen": "prerequest",
			"script": {
				"type": "text/javascript",
				"exec": [
					""
				]
			}
		},
		{
			"listen": "test",
			"script": {
				"type": "text/javascript",
				"exec": [
					""
				]
			}
		}
	],
	"variable": [
		{
			"key": "host",
			"value": "api.cardtrader.com"
		}
	]
}