{
    "info": {
        "name": "DeboPay API",
        "description": "DeboPay payment infrastructure for Ethiopia and Africa. Set {{base_url}} and {{api_key}} in your environment.",
        "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
    },
    "auth": {
        "type": "bearer",
        "bearer": [
            {
                "key": "token",
                "value": "{{api_key}}",
                "type": "string"
            }
        ]
    },
    "variable": [
        {
            "key": "base_url",
            "value": "https://api.debopay.com/v1"
        },
        {
            "key": "api_key",
            "value": "dp_test_sandbox_demo_key_2026"
        }
    ],
    "item": [
        {
            "name": "Payments",
            "item": [
                {
                    "name": "Initialize payment",
                    "request": {
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application/json"
                            }
                        ],
                        "url": "{{base_url}}/payments/initialize",
                        "body": {
                            "mode": "raw",
                            "raw": "{\n  \"amount\": 250.00,\n  \"currency\": \"ETB\",\n  \"reference\": \"order_1001\",\n  \"email\": \"customer@example.com\"\n}"
                        }
                    }
                },
                {
                    "name": "Verify payment",
                    "request": {
                        "method": "GET",
                        "url": "{{base_url}}/payments/order_1001/verify"
                    }
                }
            ]
        },
        {
            "name": "Refunds",
            "item": [
                {
                    "name": "Create refund",
                    "request": {
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application/json"
                            }
                        ],
                        "url": "{{base_url}}/refunds",
                        "body": {
                            "mode": "raw",
                            "raw": "{\n  \"transaction_id\": \"DPX-20260717-A1B2C3\",\n  \"amount\": 500,\n  \"reason\": \"partial\"\n}"
                        }
                    }
                }
            ]
        },
        {
            "name": "Payouts",
            "item": [
                {
                    "name": "Send payout",
                    "request": {
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application/json"
                            }
                        ],
                        "url": "{{base_url}}/payouts",
                        "body": {
                            "mode": "raw",
                            "raw": "{\n  \"amount\": 500.00,\n  \"destination_type\": \"bank\",\n  \"destination\": \"1000123456789\",\n  \"bank_code\": \"CBETETAA\"\n}"
                        }
                    }
                },
                {
                    "name": "Get balance",
                    "request": {
                        "method": "GET",
                        "url": "{{base_url}}/balance"
                    }
                }
            ]
        },
        {
            "name": "Subscriptions",
            "item": [
                {
                    "name": "Create subscription",
                    "request": {
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application/json"
                            }
                        ],
                        "url": "{{base_url}}/subscriptions",
                        "body": {
                            "mode": "raw",
                            "raw": "{\n  \"amount\": 499,\n  \"currency\": \"ETB\",\n  \"interval\": \"monthly\",\n  \"customer_email\": \"customer@example.com\",\n  \"description\": \"Pro plan\"\n}"
                        }
                    }
                },
                {
                    "name": "List subscriptions",
                    "request": {
                        "method": "GET",
                        "url": "{{base_url}}/subscriptions"
                    }
                },
                {
                    "name": "Pause subscription",
                    "request": {
                        "method": "POST",
                        "url": "{{base_url}}/subscriptions/sub_demo/pause"
                    }
                },
                {
                    "name": "Resume subscription",
                    "request": {
                        "method": "POST",
                        "url": "{{base_url}}/subscriptions/sub_demo/resume"
                    }
                },
                {
                    "name": "Cancel subscription",
                    "request": {
                        "method": "POST",
                        "url": "{{base_url}}/subscriptions/sub_demo/cancel"
                    }
                }
            ]
        }
    ]
}