{
	"info": {
		"_postman_id": "c1f6b1a2-b2d4-4f51-b856-11b11b1b1b1b",
		"name": "Payment IegCode API",
		"description": "Koleksi Postman untuk menguji integrasi dengan Payment Gateway IegCode.",
		"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
	},
	"item": [
		{
			"name": "Buat Pembayaran",
			"request": {
				"auth": {
					"type": "bearer",
					"bearer": [
						{
							"key": "token",
							"value": "{{API_KEY}}",
							"type": "string"
						}
					]
				},
				"method": "POST",
				"header": [
					{
						"key": "Content-Type",
						"value": "application/json",
						"type": "text"
					}
				],
				"body": {
					"mode": "raw",
					"raw": "{\n    \"external_id\": \"INV-12345\",\n    \"customer_name\": \"Budi Santoso\",\n    \"customer_email\": \"budi@example.com\",\n    \"customer_phone\": \"081234567890\",\n    \"description\": \"Pembayaran Paket Premium\",\n    \"amount\": 100000\n}"
				},
				"url": {
					"raw": "{{BASE_URL}}/api/v1/invoices",
					"host": [
						"{{BASE_URL}}"
					],
					"path": [
						"api",
						"v1",
						"invoices"
					]
				}
			},
			"response": []
		},
		{
			"name": "Cek Status Pembayaran",
			"request": {
				"auth": {
					"type": "bearer",
					"bearer": [
						{
							"key": "token",
							"value": "{{API_KEY}}",
							"type": "string"
						}
					]
				},
				"method": "GET",
				"header": [],
				"url": {
					"raw": "{{BASE_URL}}/api/v1/invoices/INV-12345",
					"host": [
						"{{BASE_URL}}"
					],
					"path": [
						"api",
						"v1",
						"invoices",
						"INV-12345"
					]
				}
			},
			"response": []
		}
	],
	"variable": [
		{
			"key": "BASE_URL",
			"value": "http://127.0.0.1:8001"
		},
		{
			"key": "API_KEY",
			"value": "MASUKAN_API_KEY_ANDA_DI_SINI"
		}
	]
}
