{
    "info": {
        "_postman_id": "8e7c1f1a-6d6a-4d4b-9d4b-1d8f8d8f8d8f",
        "name": "Elixopay API",
        "description": "API collection for testing Elixopay payment gateway endpoints.",
        "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
    },
    "item": [
        {
            "name": "Payments",
            "item": [
                {
                    "name": "Create Payment",
                    "request": {
                        "method": "POST",
                        "header": [
                            {
                                "key": "Authorization",
                                "value": "Bearer {{api_key}}",
                                "type": "text"
                            },
                            {
                                "key": "Content-Type",
                                "value": "application/json",
                                "type": "text"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\n    \"amount\": 1000.00,\n    \"currency\": \"THB\",\n    \"description\": \"Test Payment\",\n    \"reference_id\": \"order_12345\",\n    \"return_url\": \"https://yourwebsite.com/callback\"\n}"
                        },
                        "url": {
                            "raw": "{{base_url}}/payments",
                            "host": [
                                "{{base_url}}"
                            ],
                            "path": [
                                "payments"
                            ]
                        }
                    },
                    "response": []
                },
                {
                    "name": "Check Payment Status",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Authorization",
                                "value": "Bearer {{api_key}}",
                                "type": "text"
                            }
                        ],
                        "url": {
                            "raw": "{{base_url}}/payments/:id",
                            "host": [
                                "{{base_url}}"
                            ],
                            "path": [
                                "payments",
                                ":id"
                            ],
                            "variable": [
                                {
                                    "key": "id",
                                    "value": "pay_xxxxxxxxxxxx"
                                }
                            ]
                        }
                    },
                    "response": []
                },
                {
                    "name": "Create Payout",
                    "request": {
                        "method": "POST",
                        "header": [
                            {
                                "key": "Authorization",
                                "value": "Bearer {{api_key}}",
                                "type": "text"
                            },
                            {
                                "key": "Content-Type",
                                "value": "application/json",
                                "type": "text"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\n    \"amount\": 500.00\n}"
                        },
                        "url": {
                            "raw": "{{base_url}}/wallet/withdraw",
                            "host": [
                                "{{base_url}}"
                            ],
                            "path": [
                                "wallet",
                                "withdraw"
                            ]
                        }
                    },
                    "response": []
                }
            ]
        },
        {
            "name": "API Keys",
            "item": [
                {
                    "name": "List API Keys",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Authorization",
                                "value": "Bearer {{api_key}}",
                                "type": "text"
                            }
                        ],
                        "url": {
                            "raw": "{{base_url}}/api-keys",
                            "host": [
                                "{{base_url}}"
                            ],
                            "path": [
                                "api-keys"
                            ]
                        }
                    },
                    "response": []
                }
            ]
        }
    ],
    "event": [
        {
            "listen": "prerequest",
            "script": {
                "type": "text/javascript",
                "exec": [
                    ""
                ]
            }
        },
        {
            "listen": "test",
            "script": {
                "type": "text/javascript",
                "exec": [
                    ""
                ]
            }
        }
    ],
    "variable": [
        {
            "key": "base_url",
            "value": "http://localhost:3000/api/v1",
            "type": "string"
        },
        {
            "key": "api_key",
            "value": "your_api_key_here",
            "type": "string"
        }
    ]
}