{
    "info": {
        "name": "Quardlyn CRM API",
        "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
    },
    "item": [
        {
            "name": "Health",
            "request": {
                "method": "GET",
                "header": [],
                "url": {
                    "raw": "{{base_url}}/health",
                    "host": [
                        "{{base_url}}/health"
                    ]
                }
            }
        },
        {
            "name": "Capabilities",
            "request": {
                "method": "GET",
                "header": [],
                "url": {
                    "raw": "{{base_url}}/capabilities",
                    "host": [
                        "{{base_url}}/capabilities"
                    ]
                }
            }
        },
        {
            "name": "Schema",
            "request": {
                "method": "GET",
                "header": [],
                "url": {
                    "raw": "{{base_url}}/schema",
                    "host": [
                        "{{base_url}}/schema"
                    ]
                }
            }
        },
        {
            "name": "Create or update property",
            "request": {
                "method": "POST",
                "header": [
                    {
                        "key": "X-Quardlyn-Timestamp",
                        "value": "{{timestamp}}"
                    },
                    {
                        "key": "X-Quardlyn-Signature",
                        "value": "{{signature}}"
                    },
                    {
                        "key": "Idempotency-Key",
                        "value": "{{idempotency_key}}"
                    },
                    {
                        "key": "Content-Type",
                        "value": "application/json"
                    }
                ],
                "url": {
                    "raw": "{{base_url}}/properties",
                    "host": [
                        "{{base_url}}/properties"
                    ]
                },
                "body": {
                    "mode": "raw",
                    "raw": "{\n    \"external_ref\": \"CRM-001\",\n    \"display_address\": \"10 Canonical Avenue, London SW1A 2AA\",\n    \"address_1\": \"10 Canonical Avenue\",\n    \"town\": \"London\",\n    \"postcode\": \"SW1A 2AA\",\n    \"price\": 450000,\n    \"beds\": 3,\n    \"baths\": 1,\n    \"receptions\": 1,\n    \"property_type\": \"House\",\n    \"summary\": \"Example property summary.\",\n    \"description\": \"Example property description supplied by a CRM integration.\",\n    \"media_image_00\": \"https://example.com/property/image-1.jpg\",\n    \"department\": \"sale\",\n    \"marketing_status\": \"available\"\n}"
                }
            }
        },
        {
            "name": "Delete property",
            "request": {
                "method": "DELETE",
                "header": [
                    {
                        "key": "X-Quardlyn-Timestamp",
                        "value": "{{timestamp}}"
                    },
                    {
                        "key": "X-Quardlyn-Signature",
                        "value": "{{signature}}"
                    },
                    {
                        "key": "Idempotency-Key",
                        "value": "{{idempotency_key}}"
                    },
                    {
                        "key": "Content-Type",
                        "value": "application/json"
                    }
                ],
                "url": {
                    "raw": "{{base_url}}/properties/{{external_ref}}",
                    "host": [
                        "{{base_url}}/properties/{{external_ref}}"
                    ]
                }
            }
        }
    ]
}
