{
    "variable": [
        {
            "id": "baseUrl",
            "key": "baseUrl",
            "type": "string",
            "name": "string",
            "value": "https:\/\/api.direct-result.nl"
        }
    ],
    "info": {
        "name": "Direct Result API",
        "_postman_id": "782dab75-7954-4213-91e4-cf9f4b2b8020",
        "description": "",
        "schema": "https:\/\/schema.getpostman.com\/json\/collection\/v2.1.0\/collection.json"
    },
    "item": [
        {
            "name": "Endpoints",
            "description": "",
            "item": [
                {
                    "name": "Returns a page of campaigns.",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "v1\/campaigns",
                            "query": [
                                {
                                    "key": "count",
                                    "value": "25",
                                    "description": "The page size (between 1 and 100).",
                                    "disabled": false
                                },
                                {
                                    "key": "page",
                                    "value": "1",
                                    "description": "The current page.",
                                    "disabled": false
                                }
                            ],
                            "raw": "{{baseUrl}}\/v1\/campaigns?count=25&page=1"
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": ""
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n    \"data\": [\n        {\n            \"id\": 92,\n            \"name\": \"Duis Dictum\",\n            \"active\": true,\n            \"phone_number\": \"+32809204909\",\n            \"enable_emergency_signature\": true,\n            \"enable_calling\": true,\n            \"enable_sms_verification\": true\n        }\n    ],\n    \"per_page\": 100,\n    \"current\": 1,\n    \"next\": null,\n    \"previous\": null,\n    \"total\": 1\n}\n",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Returns a page of subscriptions.",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "v1\/subscriptions",
                            "query": [
                                {
                                    "key": "attributes",
                                    "value": "1",
                                    "description": "Include the attribute metadata (subscription metadata values are always shown)",
                                    "disabled": false
                                },
                                {
                                    "key": "campaign",
                                    "value": "32",
                                    "description": "The specific campaign ID to filter by.",
                                    "disabled": false
                                },
                                {
                                    "key": "status",
                                    "value": "completed",
                                    "description": "The specific status to filter by.",
                                    "disabled": false
                                },
                                {
                                    "key": "before",
                                    "value": "1970-01-01",
                                    "description": "Filters all entries before this date",
                                    "disabled": false
                                },
                                {
                                    "key": "after",
                                    "value": "1970-01-01",
                                    "description": "Filters all entries after this date",
                                    "disabled": false
                                },
                                {
                                    "key": "count",
                                    "value": "25",
                                    "description": "The page size (between 1 and 100).",
                                    "disabled": false
                                },
                                {
                                    "key": "page",
                                    "value": "1",
                                    "description": "The current page.",
                                    "disabled": false
                                }
                            ],
                            "raw": "{{baseUrl}}\/v1\/subscriptions?attributes=1&campaign=32&status=completed&before=1970-01-01&after=1970-01-01&count=25&page=1"
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": "<p>(Note: you will only be able to see the subscriptions that were enrolled within the past month)<\/p>"
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n    \"data\": [\n        {\n            \"id\": 473774,\n            \"status\": \"completed\",\n            \"amount\": 1200,\n            \"iban\": \"BE47549454364380\",\n            \"datetime_of_registration\": \"2020-01-01T00:00:00+01:00\",\n            \"datetime_of_cancelation\": \"2020-01-01T00:00:00+01:00\",\n            \"start_date\": \"2020-01-01T00:00:00+01:00\",\n            \"payment_interval\": \"0 years 1 mons 0 days 0 hours 0 mins 0.0 secs\",\n            \"payment_interval_clean\": \"MONTHLY\",\n            \"product_id\": 42,\n            \"client_ref_code\": \"\",\n            \"source\": \"sms\",\n            \"creditation\": false,\n            \"cancel_payment_recruiter\": false,\n            \"purged\": false,\n            \"first_payment_amount\": 0,\n            \"purchase_id\": \"\",\n            \"transaction_id\": \"\",\n            \"used_first_pay\": false,\n            \"is_structural\": true,\n            \"is_onetimer\": false,\n            \"is_cancellation\": false,\n            \"subscriber\": {\n                \"id\": 495301,\n                \"first_name\": \"Shay\",\n                \"middle_name\": \"\",\n                \"last_name\": \"Marta\",\n                \"gender\": \"female\",\n                \"date_of_birth\": \"1980-01-01T00:00:00+01:00\",\n                \"mobile\": \"+32585834200\",\n                \"email\": \"shaymarta@localhost.com\",\n                \"street\": \"Generaal Dossin de Saint Georgeslaan\",\n                \"house_number\": 13,\n                \"house_number_suffix\": \"\",\n                \"city\": \"Brussels\",\n                \"country\": \"BE\",\n                \"initials\": \"\",\n                \"landline\": \"\",\n                \"zip_code\": \"1050\",\n                \"bic\": \"BELLKM\",\n                \"spoken_language\": \"FR\"\n            },\n            \"recruiter\": {\n                \"code\": \"132406\",\n                \"name\": \"Richard\"\n            },\n            \"welcome_call\": {\n                \"status\": \"confirmed\",\n                \"call_date\": \"2020-01-01\"\n            },\n            \"metadata\": {\n                \"values\": {\n                    \"foo\": [\n                        \"Particulier\"\n                    ]\n                },\n                \"attributes\": {\n                    \"foo\": {\n                        \"slug\": \"foo\",\n                        \"choices\": [\n                            \"Particulier\",\n                            \"Societe\"\n                        ],\n                        \"type\": \"choice\",\n                        \"metadata\": {\n                            \"Societe\": {\n                                \"label\": \"Soci\u00e9te\"\n                            },\n                            \"Particulier\": {\n                                \"label\": \"Particulier\"\n                            }\n                        },\n                        \"label\": \"Je suis\",\n                        \"value_type\": \"text\",\n                        \"required\": true\n                    }\n                }\n            },\n            \"campaign\": {\n                \"id\": 92,\n                \"name\": \"Duis Dictum\",\n                \"active\": true,\n                \"phone_number\": \"+32809204909\",\n                \"enable_emergency_signature\": true,\n                \"enable_calling\": true,\n                \"enable_sms_verification\": true\n            }\n        }\n    ],\n    \"per_page\": 1,\n    \"current\": 1,\n    \"next\": 2,\n    \"previous\": null,\n    \"total\": 576\n}\n",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Marks one or multiple subscriptions for completion.",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "v1\/subscriptions\/complete",
                            "query": [],
                            "raw": "{{baseUrl}}\/v1\/subscriptions\/complete"
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"subscriptions\":[1,2,3]}"
                        },
                        "description": "<p>(Note: you can only mark subscriptions that were enrolled within the past month)<\/p>"
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 204,
                            "body": "null",
                            "name": ""
                        }
                    ]
                }
            ]
        }
    ],
    "auth": {
        "type": "apikey",
        "apikey": [
            {
                "key": "in",
                "value": "header",
                "type": "string"
            },
            {
                "key": "key",
                "value": "X-Api-Key",
                "type": "string"
            }
        ]
    }
}