{
    "info": {
        "name": "NuePay API \u2014 start with a sandbox key",
        "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
    },
    "auth": {
        "type": "bearer",
        "bearer": [
            {
                "key": "token",
                "value": "{{secret_key}}",
                "type": "string"
            }
        ]
    },
    "variable": [
        {
            "key": "base_url",
            "value": "https://api.nuepay.net/v1"
        },
        {
            "key": "secret_key",
            "value": ""
        },
        {
            "key": "idempotency_key",
            "value": ""
        },
        {
            "key": "reference",
            "value": ""
        }
    ],
    "item": [
        {
            "name": "Collect mobile money into the wallet",
            "request": {
                "method": "POST",
                "header": [
                    {
                        "key": "Content-Type",
                        "value": "application/json"
                    },
                    {
                        "key": "Idempotency-Key",
                        "value": "{{idempotency_key}}"
                    }
                ],
                "url": "{{base_url}}/collections",
                "description": "Collect mobile money into the wallet",
                "body": {
                    "mode": "raw",
                    "raw": "{\n    \"amount\": \"500.00\",\n    \"currency\": \"UGX\",\n    \"phone\": \"0772000000\",\n    \"merchant_reference\": \"order-123\"\n}",
                    "options": {
                        "raw": {
                            "language": "json"
                        }
                    }
                }
            }
        },
        {
            "name": "Send mobile money from the wallet",
            "request": {
                "method": "POST",
                "header": [
                    {
                        "key": "Content-Type",
                        "value": "application/json"
                    },
                    {
                        "key": "Idempotency-Key",
                        "value": "{{idempotency_key}}"
                    }
                ],
                "url": "{{base_url}}/disbursements",
                "description": "Send mobile money from the wallet",
                "body": {
                    "mode": "raw",
                    "raw": "{\n    \"amount\": \"500.00\",\n    \"currency\": \"UGX\",\n    \"phone\": \"0772000000\",\n    \"merchant_reference\": \"order-123\"\n}",
                    "options": {
                        "raw": {
                            "language": "json"
                        }
                    }
                }
            }
        },
        {
            "name": "Preview the fee and exact charge or debit without moving funds",
            "request": {
                "method": "POST",
                "header": [
                    {
                        "key": "Content-Type",
                        "value": "application/json"
                    }
                ],
                "url": "{{base_url}}/quotes",
                "description": "Preview the fee and exact charge or debit without moving funds",
                "body": {
                    "mode": "raw",
                    "raw": "{\n    \"type\": \"collection\",\n    \"amount\": \"500.00\",\n    \"currency\": \"UGX\"\n}",
                    "options": {
                        "raw": {
                            "language": "json"
                        }
                    }
                }
            }
        },
        {
            "name": "Identify the authenticated application and environment",
            "request": {
                "method": "GET",
                "header": [
                    {
                        "key": "Content-Type",
                        "value": "application/json"
                    }
                ],
                "url": "{{base_url}}/application",
                "description": "Identify the authenticated application and environment"
            }
        },
        {
            "name": "Read the shared account balance in this environment",
            "request": {
                "method": "GET",
                "header": [
                    {
                        "key": "Content-Type",
                        "value": "application/json"
                    }
                ],
                "url": "{{base_url}}/account/balance",
                "description": "Read the shared account balance in this environment"
            }
        },
        {
            "name": "Read a payment created by this application in this environment",
            "request": {
                "method": "GET",
                "header": [
                    {
                        "key": "Content-Type",
                        "value": "application/json"
                    }
                ],
                "url": "{{base_url}}/transactions/{{reference}}",
                "description": "Read a payment created by this application in this environment"
            }
        },
        {
            "name": "Simulate an outcome using a test key",
            "request": {
                "method": "POST",
                "header": [
                    {
                        "key": "Content-Type",
                        "value": "application/json"
                    }
                ],
                "url": "{{base_url}}/sandbox/transactions/{{reference}}/simulate",
                "description": "Simulate an outcome using a test key",
                "body": {
                    "mode": "raw",
                    "raw": "{\n    \"outcome\": \"success\"\n}",
                    "options": {
                        "raw": {
                            "language": "json"
                        }
                    }
                }
            }
        }
    ]
}