Advanced: Iframe Integration
Integrating Movello through an iframe makes sure that the Movello platform is fully sandboxed. At the end of this guide you will have an iframe session url that you can add to your website.
1. Prerequisites
What is my authentication token?Which API URL should I use?2. Create iframe url
Example request
curl -X POST \
"https://api.movello.se/rest/v1/auth/session" \
-H "authorization: Basic ${AUTH_TOKEN}" \
-H "content-type: application/json" \
-d '{
"type": "IFRAME",
"move": {
"type": "MOVE_IN",
"externalId": "your-own-id-to-connect-people-moving-together",
"moveInDate": "2021-02-18T00:00:00.000Z",
"originAddress": {
"street": "Strandvägen 2",
"apartmentNumber": "2345",
"zip": "11452",
"city": "Stockholm",
"residenceType": "APARTMENT",
"residenceSize": 321,
"numResidents": 4
},
"destinationAddress":{
"street": "Strandvägen 1",
"apartmentNumber": "1234",
"zip": "11451",
"city": "Stockholm",
"residenceType": "APARTMENT",
"residenceSize": 123,
"numResidents": 4
}
},
"user": {
"firstName":"David",
"lastName":"Fant",
"email":"[email protected]",
"phone":"+46701234567",
"personNumber":"196904201337"
}
}'Example response
3. Integrate iframe on website
Add the iframe
Helper scripts
Last updated