NAV
bash javascript

Info

Welcome to the generated API reference. Get Postman Collection

Accomodations

Search Accomodations


Requires authentication Search Accomodations

Example request:

curl -X GET -G "http://api.doitrip.com/api/accomodations" 
const url = new URL("http://api.doitrip.com/api/accomodations");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

[
    {
        "id": 1,
        "value": "hotel",
        "label": "Hotel"
    }
]

HTTP Request

GET /api/accomodations

Insert Accomodation


Requires authentication Insert Accomodations

Example request:

curl -X POST "http://api.doitrip.com/api/accomodations" \
    -H "Content-Type: application/json" \
    -d '{"value":"repellat","label:it":"repellat","label:en":"repellat"}'
const url = new URL("http://api.doitrip.com/api/accomodations");

    let params = {
            "value": "repellat",
            "label:it": "repellat",
            "label:en": "repellat",
        };
    Object.keys(params).forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
}

let body = {
    "value": "repellat",
    "label:it": "repellat",
    "label:en": "repellat"
}

fetch(url, {
    method: "POST",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "id": 1,
    "value": "hotel",
    "label": "Hotel"
}

HTTP Request

POST /api/accomodations

Body Parameters

Parameter Type Status Description
value string required
label:it string required
label:en string required

Query Parameters

Parameter Status Description
value required
label:it required
label:en required

Destroy many Accomodation


Requires authentication

Example request:

curl -X DELETE "http://api.doitrip.com/api/accomodations" \
    -H "Content-Type: application/json" \
    -d '{"ids":"repellat"}'
const url = new URL("http://api.doitrip.com/api/accomodations");

    let params = {
            "ids": "repellat",
        };
    Object.keys(params).forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
}

let body = {
    "ids": "repellat"
}

fetch(url, {
    method: "DELETE",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

HTTP Request

DELETE /api/accomodations

Body Parameters

Parameter Type Status Description
ids array required

Query Parameters

Parameter Status Description
ids required

Show Accomodation


Requires authentication Show the Detail of an Accomodations

Example request:

curl -X GET -G "http://api.doitrip.com/api/accomodations/1" 
const url = new URL("http://api.doitrip.com/api/accomodations/1");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "id": 1,
    "value": "hotel",
    "label": "Hotel"
}

HTTP Request

GET /api/accomodations/{id}

Update Accomodation


Requires authentication Update an Accomodations

Example request:

curl -X PUT "http://api.doitrip.com/api/accomodations/1" 
const url = new URL("http://api.doitrip.com/api/accomodations/1");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "PUT",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "id": 1,
    "value": "hotel",
    "label": "Hotel"
}

HTTP Request

PUT /api/accomodations/{id}

PATCH /api/accomodations/{id}

Destroy Accomodation


Requires authentication Destroy an Accomodations

Example request:

curl -X DELETE "http://api.doitrip.com/api/accomodations/1" 
const url = new URL("http://api.doitrip.com/api/accomodations/1");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "DELETE",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

HTTP Request

DELETE /api/accomodations/{id}

AffiliationPrograms

Search AffiliationProgram

Search AffiliationPrograms

Example request:

curl -X GET -G "http://api.doitrip.com/api/AffiliationPrograms/AffiliationProgram" \
    -H "Content-Type: application/json" \
    -d '{"search":"natus","searchJoin":"or","perPage":428758,"page":428758,"orderBy":"id","sortedBy":"desc"}'
const url = new URL("http://api.doitrip.com/api/AffiliationPrograms/AffiliationProgram");

    let params = {
            "search.name": "natus",
            "search.uses": "428758",
            "search.affiliation_program_token": "natus",
            "search.affiliationProgramSubscriptions.id": "natus",
            "search": "natus",
            "searchJoin": "or",
            "perPage": "428758",
            "page": "428758",
            "orderBy": "id",
            "sortedBy": "desc",
        };
    Object.keys(params).forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
}

let body = {
    "search": "natus",
    "searchJoin": "or",
    "perPage": 428758,
    "page": 428758,
    "orderBy": "id",
    "sortedBy": "desc"
}

fetch(url, {
    method: "GET",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

[
    {
        "id": 1,
        "name": "Bring a Friend",
        "description": "affiliazione di base fra utenti",
        "discount": 10,
        "uses": -1,
        "affiliation_program_token": null,
        "created_at": "2021-05-07T19:40:38.000000Z",
        "affiliations": [
            {
                "id": 2,
                "availments": "1",
                "promoter": {
                    "id": 2,
                    "profile": {
                        "user_id": 2,
                        "accomodationType": "alpine_refuge",
                        "accomodationName": "Reilly, Stamm and VonRuedenand Sons",
                        "vatNumber": "8765373403026",
                        "registeredOffice": "7750 Paxton Park\nGersonberg, KY 10487",
                        "country_id": {
                            "id": 184,
                            "code": "QA",
                            "name": "Qatar",
                            "created_at": "2021-05-07 19:39:09",
                            "updated_at": "2021-05-07 19:39:09"
                        },
                        "province": "Trinidad and Tobago",
                        "city": "New Clark",
                        "address": "685 Harris Trail Suite 721\nEast Julietfort, ME 72941-6111",
                        "latitude": "-79.336225",
                        "longitude": "136.131302",
                        "cityTax": 13,
                        "phonePrefix": "+83",
                        "phoneNumber": "2893022859",
                        "mobilePrefix": "+22",
                        "mobileNumber": "9169087732",
                        "faxPrefix": "+73",
                        "faxNumber": "6600753559",
                        "contactEmail": "terry.delaney@gmail.com",
                        "image": "https:\/\/loremflickr.com\/362\/180\/hotel\/?lock=63032",
                        "description": "Quidem voluptas atque nulla necessitatibus magni. Nihil quis non optio veniam dolores quod perspiciatis.",
                        "recommendations": "Non possimus voluptas beatae quaerat eos qui. Fugiat excepturi atque qui esse ipsum. Corrupti libero est atque.",
                        "yearOfConstruction": 1939,
                        "lastRenovation": 1925,
                        "rooms": 6,
                        "nonSmokingRooms": 6,
                        "beds": 18,
                        "handicappedRooms": 8,
                        "suites": 5,
                        "plans": 13,
                        "H24CheckIn": 1,
                        "checkInHourStart": "17:38:26",
                        "checkInHourEnd": "03:33:26",
                        "checkOutHourStart": "14:11:05",
                        "checkOutHourEnd": "18:05:09",
                        "petsAllowed": 0,
                        "petsSize": "big",
                        "stars": "2",
                        "qualityMark": "Rem est ipsam voluptatem ut ut quibusdam voluptas.",
                        "noClassification": 0,
                        "accomodationGrade": 0,
                        "roles": [
                            "user",
                            "accomodation"
                        ],
                        "roomPosts": 8,
                        "hotelServicesIncluded": [
                            {
                                "id": 32,
                                "group": "activities",
                                "value": "tennis-court",
                                "label": "Tennis court"
                            },
                            {
                                "id": 45,
                                "group": "activities",
                                "value": "Nightclub\/DJ",
                                "label": "Nightclub \/ DJ"
                            },
                            {
                                "id": 56,
                                "group": "activities",
                                "value": "snorkeling",
                                "label": "Snorkeling"
                            },
                            {
                                "id": 58,
                                "group": "activities",
                                "value": "equipped-and-supervised-beach",
                                "label": "Equipped and supervised beach"
                            },
                            {
                                "id": 121,
                                "group": "entertainment",
                                "value": "theater",
                                "label": "Theater"
                            },
                            {
                                "id": 126,
                                "group": "cleaning-services",
                                "value": "ironing-service",
                                "label": "Ironing service"
                            },
                            {
                                "id": 130,
                                "group": "business-services",
                                "value": "spaces-for-meetings\/banquets",
                                "label": "Spaces for meetings\/banquets"
                            },
                            {
                                "id": 137,
                                "group": "security",
                                "value": "CCTV-cameras-outside-the-facility",
                                "label": "CCTV cameras outside the facility"
                            }
                        ],
                        "hotelServicesNotIncluded": [
                            {
                                "id": 49,
                                "group": "activities",
                                "value": "nature-trails-in-the-lagoon",
                                "label": "Nature trails in the lagoon",
                                "price": 57255
                            },
                            {
                                "id": 107,
                                "group": "reception-services",
                                "value": "atm-machine",
                                "label": "ATM machine",
                                "price": 57255
                            },
                            {
                                "id": 168,
                                "group": "wellness-services",
                                "value": "body-bandages",
                                "label": "Body bandages",
                                "price": 57255
                            },
                            {
                                "id": 179,
                                "group": "wellness-services",
                                "value": "foot-massage",
                                "label": "Foot massage",
                                "price": 57255
                            }
                        ],
                        "languages": [
                            {
                                "id": 1,
                                "code": "en",
                                "name": "English"
                            },
                            {
                                "id": 2,
                                "code": "it",
                                "name": "Italian"
                            }
                        ],
                        "images": [
                            {
                                "id": 1,
                                "image": "https:\/\/loremflickr.com\/362\/180\/travel,italy\/?lock=43912",
                                "image_name": "",
                                "category": "gallery"
                            },
                            {
                                "id": 2,
                                "image": "https:\/\/loremflickr.com\/362\/180\/travel,italy\/?lock=58259",
                                "image_name": "",
                                "category": "gallery"
                            },
                            {
                                "id": 3,
                                "image": "https:\/\/loremflickr.com\/362\/180\/travel,italy\/?lock=54165",
                                "image_name": "",
                                "category": "gallery"
                            },
                            {
                                "id": 4,
                                "image": "https:\/\/loremflickr.com\/362\/180\/travel,italy\/?lock=71534",
                                "image_name": "",
                                "category": "gallery"
                            },
                            {
                                "id": 5,
                                "image": "https:\/\/loremflickr.com\/362\/180\/travel,italy\/?lock=62822",
                                "image_name": "",
                                "category": "gallery"
                            }
                        ]
                    },
                    "roles": [
                        "user",
                        "accomodation"
                    ],
                    "permissions": [],
                    "stripeAccount": {
                        "user_id": 2,
                        "accountId": "acct_1ITV4XFPn57bOta4",
                        "chargeEnable": 1
                    },
                    "affiliation_code": "APRA0D",
                    "subscription": {
                        "id": 2,
                        "active": 1,
                        "expirationDate": "2023-05-03",
                        "subscription": {
                            "id": 8,
                            "role": "touristGuide",
                            "type": "mega",
                            "price": 10000,
                            "monthPrice": 0,
                            "maxPost": "unlimited"
                        }
                    }
                },
                "affiliate": {
                    "id": 3,
                    "profile": {
                        "user_id": 3,
                        "companyType": "society",
                        "companyName": "Pouros-GusikowskiGroup",
                        "firstName": "private field",
                        "lastName": "private field",
                        "country_id": 96,
                        "city": "Lake Davonchester",
                        "province": null,
                        "address": null,
                        "registeredOffice": "751 Brayan Via Suite 806\nChanelborough, CO 34207-4693",
                        "image": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=32707",
                        "description": "Optional non-volatile emulation",
                        "paymentMethod": "stripe",
                        "paymentOther": "est",
                        "roles": [
                            "user",
                            "accomodationManager"
                        ],
                        "followers": 9,
                        "fiscalCode": "private field",
                        "vatNumber": "private field",
                        "phonePrefix": "private field",
                        "phoneNumber": "private field",
                        "mobilePrefix": "private field",
                        "mobileNumber": "private field",
                        "faxPrefix": "private field",
                        "faxNumber": "private field",
                        "internetSite": "private field",
                        "pecEmail": "private field",
                        "contactEmail": "private field",
                        "chamberCommerceRegistration": "private field",
                        "identityDoc": "private field",
                        "fiscalCodeDoc": "private field"
                    },
                    "roles": [
                        "user",
                        "accomodationManager"
                    ],
                    "permissions": [],
                    "stripeAccount": {
                        "user_id": 3,
                        "accountId": "acct_1ITV4XFPn57bOta4",
                        "chargeEnable": 1
                    },
                    "affiliation_code": "W6BD2M",
                    "subscription": null
                },
                "redeemed": 0,
                "redeemable": null,
                "stripeDiscounts": [],
                "redeem_date": null
            },
            {
                "id": 4,
                "availments": "1",
                "promoter": {
                    "id": 1,
                    "profile": {
                        "user_id": 1,
                        "firstName": "Sylvester",
                        "lastName": "Dach",
                        "gender": "F",
                        "birthDate": "1973-01-14",
                        "country_id": 14,
                        "city": "Schmelerside",
                        "image": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=31482",
                        "description": "Temporibus molestiae fuga voluptatem sed rerum dolor. Expedita doloremque qui ut est. Quos illo ea rerum.",
                        "paymentMethod": "stripe",
                        "paymentOther": "omnis",
                        "companionGrade": 0,
                        "roles": [
                            "admin",
                            "user",
                            "traveler"
                        ],
                        "travelerTypes": [
                            {
                                "id": 7,
                                "value": "environmentalist",
                                "label": "Environmentalist"
                            },
                            {
                                "id": 10,
                                "value": "offbeat",
                                "label": "offbeat"
                            }
                        ],
                        "languages": [
                            {
                                "id": 1,
                                "code": "en",
                                "name": "English"
                            },
                            {
                                "id": 2,
                                "code": "it",
                                "name": "Italian"
                            }
                        ],
                        "natures": [
                            {
                                "id": 2,
                                "value": "work",
                                "label": "Work"
                            }
                        ],
                        "followers": 9,
                        "email": "private field",
                        "phoneNumber": "private field",
                        "fiscalCode": "private field",
                        "identityDoc": "private field"
                    },
                    "roles": [
                        "admin",
                        "user",
                        "traveler"
                    ],
                    "permissions": [],
                    "stripeAccount": null,
                    "affiliation_code": "NXA6HB",
                    "subscription": null
                },
                "affiliate": {
                    "id": 5,
                    "profile": {
                        "user_id": 5,
                        "companyType": "society",
                        "companyName": "Feest, Jast and RippinLtd",
                        "firstName": "private field",
                        "lastName": "private field",
                        "country_id": 136,
                        "city": "Gennaroland",
                        "province": null,
                        "address": null,
                        "registeredOffice": "3731 Kuhlman Loaf\nPort Ada, NV 90702",
                        "image": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=41686",
                        "description": "Centralized interactive opensystem",
                        "paymentMethod": "other",
                        "paymentOther": "sit",
                        "tourOperatorGrade": 0,
                        "roles": [
                            "user",
                            "tourOperator"
                        ],
                        "tourPosts": 10,
                        "followers": 10,
                        "tourServices": [
                            {
                                "id": 11,
                                "value": "animation-and-entertainment-activities",
                                "label": "Animation and entertainment activities"
                            },
                            {
                                "id": 51,
                                "value": "hot-chocolate-or-tea",
                                "label": "Hot chocolate or tea"
                            },
                            {
                                "id": 70,
                                "value": "excursions",
                                "label": "Excursions"
                            },
                            {
                                "id": 89,
                                "value": "Tips",
                                "label": "Tips"
                            }
                        ],
                        "fiscalCode": "private field",
                        "vatNumber": "private field",
                        "phonePrefix": "private field",
                        "phoneNumber": "private field",
                        "mobilePrefix": "private field",
                        "mobileNumber": "private field",
                        "faxPrefix": "private field",
                        "faxNumber": "private field",
                        "internetSite": "private field",
                        "pecEmail": "private field",
                        "contactEmail": "private field",
                        "chamberCommerceRegistration": "private field",
                        "identityDoc": "private field",
                        "fiscalCodeDoc": "private field"
                    },
                    "roles": [
                        "user",
                        "tourOperator"
                    ],
                    "permissions": [],
                    "stripeAccount": {
                        "user_id": 5,
                        "accountId": "acct_1ITV4XFPn57bOta4",
                        "chargeEnable": 1
                    },
                    "affiliation_code": "94HV08",
                    "subscription": {
                        "id": 4,
                        "active": 1,
                        "expirationDate": "2022-10-11",
                        "subscription": {
                            "id": 8,
                            "role": "touristGuide",
                            "type": "mega",
                            "price": 10000,
                            "monthPrice": 0,
                            "maxPost": "unlimited"
                        }
                    }
                },
                "redeemed": 1,
                "redeemable": {
                    "id": 4,
                    "user": {
                        "id": 5,
                        "profile": {
                            "user_id": 5,
                            "companyType": "society",
                            "companyName": "Feest, Jast and RippinLtd",
                            "firstName": "private field",
                            "lastName": "private field",
                            "country_id": 136,
                            "city": "Gennaroland",
                            "province": null,
                            "address": null,
                            "registeredOffice": "3731 Kuhlman Loaf\nPort Ada, NV 90702",
                            "image": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=41686",
                            "description": "Centralized interactive opensystem",
                            "paymentMethod": "other",
                            "paymentOther": "sit",
                            "tourOperatorGrade": 0,
                            "roles": [
                                "user",
                                "tourOperator"
                            ],
                            "tourPosts": 10,
                            "followers": 10,
                            "tourServices": [
                                {
                                    "id": 11,
                                    "value": "animation-and-entertainment-activities",
                                    "label": "Animation and entertainment activities"
                                },
                                {
                                    "id": 51,
                                    "value": "hot-chocolate-or-tea",
                                    "label": "Hot chocolate or tea"
                                },
                                {
                                    "id": 70,
                                    "value": "excursions",
                                    "label": "Excursions"
                                },
                                {
                                    "id": 89,
                                    "value": "Tips",
                                    "label": "Tips"
                                }
                            ],
                            "fiscalCode": "private field",
                            "vatNumber": "private field",
                            "phonePrefix": "private field",
                            "phoneNumber": "private field",
                            "mobilePrefix": "private field",
                            "mobileNumber": "private field",
                            "faxPrefix": "private field",
                            "faxNumber": "private field",
                            "internetSite": "private field",
                            "pecEmail": "private field",
                            "contactEmail": "private field",
                            "chamberCommerceRegistration": "private field",
                            "identityDoc": "private field",
                            "fiscalCodeDoc": "private field"
                        },
                        "roles": [
                            "user",
                            "tourOperator"
                        ],
                        "permissions": [],
                        "stripeAccount": {
                            "user_id": 5,
                            "accountId": "acct_1ITV4XFPn57bOta4",
                            "chargeEnable": 1
                        },
                        "affiliation_code": "94HV08",
                        "subscription": {
                            "id": 4,
                            "active": 1,
                            "expirationDate": "2022-10-11",
                            "subscription": {
                                "id": 8,
                                "role": "touristGuide",
                                "type": "mega",
                                "price": 10000,
                                "monthPrice": 0,
                                "maxPost": "unlimited"
                            }
                        }
                    },
                    "active": 1,
                    "expirationDate": "2022-10-11",
                    "subscription": {
                        "id": 8,
                        "role": "touristGuide",
                        "type": "mega",
                        "price": 10000,
                        "monthPrice": 0,
                        "maxPost": "unlimited"
                    }
                },
                "stripeDiscounts": [],
                "redeem_date": "2021-05-07 19:40:46"
            },
            {
                "id": 7,
                "availments": "1",
                "promoter": {
                    "id": 5,
                    "profile": {
                        "user_id": 5,
                        "companyType": "society",
                        "companyName": "Feest, Jast and RippinLtd",
                        "firstName": "private field",
                        "lastName": "private field",
                        "country_id": 136,
                        "city": "Gennaroland",
                        "province": null,
                        "address": null,
                        "registeredOffice": "3731 Kuhlman Loaf\nPort Ada, NV 90702",
                        "image": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=41686",
                        "description": "Centralized interactive opensystem",
                        "paymentMethod": "other",
                        "paymentOther": "sit",
                        "tourOperatorGrade": 0,
                        "roles": [
                            "user",
                            "tourOperator"
                        ],
                        "tourPosts": 10,
                        "followers": 10,
                        "tourServices": [
                            {
                                "id": 11,
                                "value": "animation-and-entertainment-activities",
                                "label": "Animation and entertainment activities"
                            },
                            {
                                "id": 51,
                                "value": "hot-chocolate-or-tea",
                                "label": "Hot chocolate or tea"
                            },
                            {
                                "id": 70,
                                "value": "excursions",
                                "label": "Excursions"
                            },
                            {
                                "id": 89,
                                "value": "Tips",
                                "label": "Tips"
                            }
                        ],
                        "fiscalCode": "private field",
                        "vatNumber": "private field",
                        "phonePrefix": "private field",
                        "phoneNumber": "private field",
                        "mobilePrefix": "private field",
                        "mobileNumber": "private field",
                        "faxPrefix": "private field",
                        "faxNumber": "private field",
                        "internetSite": "private field",
                        "pecEmail": "private field",
                        "contactEmail": "private field",
                        "chamberCommerceRegistration": "private field",
                        "identityDoc": "private field",
                        "fiscalCodeDoc": "private field"
                    },
                    "roles": [
                        "user",
                        "tourOperator"
                    ],
                    "permissions": [],
                    "stripeAccount": {
                        "user_id": 5,
                        "accountId": "acct_1ITV4XFPn57bOta4",
                        "chargeEnable": 1
                    },
                    "affiliation_code": "94HV08",
                    "subscription": {
                        "id": 4,
                        "active": 1,
                        "expirationDate": "2022-10-11",
                        "subscription": {
                            "id": 8,
                            "role": "touristGuide",
                            "type": "mega",
                            "price": 10000,
                            "monthPrice": 0,
                            "maxPost": "unlimited"
                        }
                    }
                },
                "affiliate": {
                    "id": 8,
                    "profile": {
                        "user_id": 8,
                        "firstName": "Jackson",
                        "lastName": "Pfannerstill",
                        "gender": "F",
                        "birthDate": "1979-10-22",
                        "country_id": 236,
                        "city": "South Jackelineside",
                        "image": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=80789",
                        "description": "Eaque quasi voluptatem sed. Nobis dolor sed est quam. Quia architecto eaque debitis et. Reiciendis quaerat nam et vitae.",
                        "paymentMethod": "both",
                        "paymentOther": "eum",
                        "companionGrade": 0,
                        "roles": [
                            "user",
                            "traveler"
                        ],
                        "travelerTypes": [
                            {
                                "id": 4,
                                "value": "cultural",
                                "label": "Cultural"
                            }
                        ],
                        "languages": [
                            {
                                "id": 1,
                                "code": "en",
                                "name": "English"
                            },
                            {
                                "id": 2,
                                "code": "it",
                                "name": "Italian"
                            }
                        ],
                        "natures": [
                            {
                                "id": 1,
                                "value": "beach",
                                "label": "Beach & Sea"
                            }
                        ],
                        "followers": 11,
                        "email": "private field",
                        "phoneNumber": "private field",
                        "fiscalCode": "private field",
                        "identityDoc": "private field"
                    },
                    "roles": [
                        "user",
                        "traveler"
                    ],
                    "permissions": [],
                    "stripeAccount": null,
                    "affiliation_code": "1EJVZW",
                    "subscription": {
                        "id": 7,
                        "active": 1,
                        "expirationDate": "2021-12-18",
                        "subscription": {
                            "id": 1,
                            "role": "traveler",
                            "type": "free",
                            "price": 0,
                            "monthPrice": 0,
                            "maxPost": "unlimited"
                        }
                    }
                },
                "redeemed": 1,
                "redeemable": {
                    "id": 7,
                    "user": {
                        "id": 8,
                        "profile": {
                            "user_id": 8,
                            "firstName": "Jackson",
                            "lastName": "Pfannerstill",
                            "gender": "F",
                            "birthDate": "1979-10-22",
                            "country_id": 236,
                            "city": "South Jackelineside",
                            "image": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=80789",
                            "description": "Eaque quasi voluptatem sed. Nobis dolor sed est quam. Quia architecto eaque debitis et. Reiciendis quaerat nam et vitae.",
                            "paymentMethod": "both",
                            "paymentOther": "eum",
                            "companionGrade": 0,
                            "roles": [
                                "user",
                                "traveler"
                            ],
                            "travelerTypes": [
                                {
                                    "id": 4,
                                    "value": "cultural",
                                    "label": "Cultural"
                                }
                            ],
                            "languages": [
                                {
                                    "id": 1,
                                    "code": "en",
                                    "name": "English"
                                },
                                {
                                    "id": 2,
                                    "code": "it",
                                    "name": "Italian"
                                }
                            ],
                            "natures": [
                                {
                                    "id": 1,
                                    "value": "beach",
                                    "label": "Beach & Sea"
                                }
                            ],
                            "followers": 11,
                            "email": "private field",
                            "phoneNumber": "private field",
                            "fiscalCode": "private field",
                            "identityDoc": "private field"
                        },
                        "roles": [
                            "user",
                            "traveler"
                        ],
                        "permissions": [],
                        "stripeAccount": null,
                        "affiliation_code": "1EJVZW",
                        "subscription": {
                            "id": 7,
                            "active": 1,
                            "expirationDate": "2021-12-18",
                            "subscription": {
                                "id": 1,
                                "role": "traveler",
                                "type": "free",
                                "price": 0,
                                "monthPrice": 0,
                                "maxPost": "unlimited"
                            }
                        }
                    },
                    "active": 1,
                    "expirationDate": "2021-12-18",
                    "subscription": {
                        "id": 1,
                        "role": "traveler",
                        "type": "free",
                        "price": 0,
                        "monthPrice": 0,
                        "maxPost": "unlimited"
                    }
                },
                "stripeDiscounts": [],
                "redeem_date": "2021-05-07 19:40:47"
            },
            {
                "id": 12,
                "availments": "1",
                "promoter": {
                    "id": 1,
                    "profile": {
                        "user_id": 1,
                        "firstName": "Sylvester",
                        "lastName": "Dach",
                        "gender": "F",
                        "birthDate": "1973-01-14",
                        "country_id": 14,
                        "city": "Schmelerside",
                        "image": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=31482",
                        "description": "Temporibus molestiae fuga voluptatem sed rerum dolor. Expedita doloremque qui ut est. Quos illo ea rerum.",
                        "paymentMethod": "stripe",
                        "paymentOther": "omnis",
                        "companionGrade": 0,
                        "roles": [
                            "admin",
                            "user",
                            "traveler"
                        ],
                        "travelerTypes": [
                            {
                                "id": 7,
                                "value": "environmentalist",
                                "label": "Environmentalist"
                            },
                            {
                                "id": 10,
                                "value": "offbeat",
                                "label": "offbeat"
                            }
                        ],
                        "languages": [
                            {
                                "id": 1,
                                "code": "en",
                                "name": "English"
                            },
                            {
                                "id": 2,
                                "code": "it",
                                "name": "Italian"
                            }
                        ],
                        "natures": [
                            {
                                "id": 2,
                                "value": "work",
                                "label": "Work"
                            }
                        ],
                        "followers": 9,
                        "email": "private field",
                        "phoneNumber": "private field",
                        "fiscalCode": "private field",
                        "identityDoc": "private field"
                    },
                    "roles": [
                        "admin",
                        "user",
                        "traveler"
                    ],
                    "permissions": [],
                    "stripeAccount": null,
                    "affiliation_code": "NXA6HB",
                    "subscription": null
                },
                "affiliate": {
                    "id": 13,
                    "profile": {
                        "user_id": 13,
                        "firstName": "Lola",
                        "lastName": "Waters",
                        "gender": "F",
                        "birthDate": "1981-03-26",
                        "country_id": 53,
                        "city": "Dillanside",
                        "image": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=68357",
                        "description": "Qui nesciunt voluptatibus quia harum ipsa in voluptatem. Sequi id iure sint aliquam ipsam. Facere id eveniet fugiat laudantium voluptas.",
                        "paymentMethod": "stripe",
                        "paymentOther": "tempore",
                        "companionGrade": 0,
                        "roles": [
                            "user",
                            "traveler"
                        ],
                        "travelerTypes": [
                            {
                                "id": 4,
                                "value": "cultural",
                                "label": "Cultural"
                            }
                        ],
                        "languages": [
                            {
                                "id": 1,
                                "code": "en",
                                "name": "English"
                            },
                            {
                                "id": 2,
                                "code": "it",
                                "name": "Italian"
                            }
                        ],
                        "natures": [
                            {
                                "id": 3,
                                "value": "mountain",
                                "label": "Mountain"
                            }
                        ],
                        "followers": 8,
                        "email": "private field",
                        "phoneNumber": "private field",
                        "fiscalCode": "private field",
                        "identityDoc": "private field"
                    },
                    "roles": [
                        "user",
                        "traveler"
                    ],
                    "permissions": [],
                    "stripeAccount": null,
                    "affiliation_code": "WE8U4C",
                    "subscription": null
                },
                "redeemed": 1,
                "redeemable": {
                    "id": 12,
                    "user": {
                        "id": 13,
                        "profile": {
                            "user_id": 13,
                            "firstName": "Lola",
                            "lastName": "Waters",
                            "gender": "F",
                            "birthDate": "1981-03-26",
                            "country_id": 53,
                            "city": "Dillanside",
                            "image": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=68357",
                            "description": "Qui nesciunt voluptatibus quia harum ipsa in voluptatem. Sequi id iure sint aliquam ipsam. Facere id eveniet fugiat laudantium voluptas.",
                            "paymentMethod": "stripe",
                            "paymentOther": "tempore",
                            "companionGrade": 0,
                            "roles": [
                                "user",
                                "traveler"
                            ],
                            "travelerTypes": [
                                {
                                    "id": 4,
                                    "value": "cultural",
                                    "label": "Cultural"
                                }
                            ],
                            "languages": [
                                {
                                    "id": 1,
                                    "code": "en",
                                    "name": "English"
                                },
                                {
                                    "id": 2,
                                    "code": "it",
                                    "name": "Italian"
                                }
                            ],
                            "natures": [
                                {
                                    "id": 3,
                                    "value": "mountain",
                                    "label": "Mountain"
                                }
                            ],
                            "followers": 8,
                            "email": "private field",
                            "phoneNumber": "private field",
                            "fiscalCode": "private field",
                            "identityDoc": "private field"
                        },
                        "roles": [
                            "user",
                            "traveler"
                        ],
                        "permissions": [],
                        "stripeAccount": null,
                        "affiliation_code": "WE8U4C",
                        "subscription": null
                    },
                    "active": 0,
                    "expirationDate": "2021-06-05",
                    "subscription": {
                        "id": 1,
                        "role": "traveler",
                        "type": "free",
                        "price": 0,
                        "monthPrice": 0,
                        "maxPost": "unlimited"
                    }
                },
                "stripeDiscounts": [],
                "redeem_date": "2021-05-07 19:40:50"
            },
            {
                "id": 14,
                "availments": "1",
                "promoter": {
                    "id": 10,
                    "profile": {
                        "user_id": 10,
                        "accomodationType": "study_stay_center",
                        "accomodationName": "Kassulke LtdInc",
                        "vatNumber": "7003167893716",
                        "registeredOffice": "72528 Rosalinda Roads Apt. 645\nReganport, NY 45366",
                        "country_id": {
                            "id": 234,
                            "code": "TM",
                            "name": "Turkmenistan",
                            "created_at": "2021-05-07 19:39:11",
                            "updated_at": "2021-05-07 19:39:11"
                        },
                        "province": "Pakistan",
                        "city": "North Ginaborough",
                        "address": "5976 Kautzer Fall Suite 515\nNakiaville, RI 55062",
                        "latitude": "-52.295971",
                        "longitude": "129.899492",
                        "cityTax": 7,
                        "phonePrefix": "+16",
                        "phoneNumber": "8009906162",
                        "mobilePrefix": "+09",
                        "mobileNumber": "4317749406",
                        "faxPrefix": "+44",
                        "faxNumber": "1003365484",
                        "contactEmail": "harley58@thiel.com",
                        "image": "https:\/\/loremflickr.com\/362\/180\/hotel\/?lock=88231",
                        "description": "Repudiandae quis ut voluptatibus repellendus laboriosam iure aut. Voluptas fugiat eaque magnam rerum ratione. Et qui unde tempore optio unde. Cupiditate labore voluptas quaerat dolorem fuga sint.",
                        "recommendations": "Tempora voluptatem rerum consequatur hic ducimus reiciendis. Distinctio magni quo blanditiis inventore rerum. Iure adipisci reprehenderit iure ipsum et.",
                        "yearOfConstruction": 2000,
                        "lastRenovation": 1967,
                        "rooms": 7,
                        "nonSmokingRooms": 9,
                        "beds": 16,
                        "handicappedRooms": 5,
                        "suites": 6,
                        "plans": 11,
                        "H24CheckIn": 1,
                        "checkInHourStart": "22:34:30",
                        "checkInHourEnd": "20:52:49",
                        "checkOutHourStart": "02:55:50",
                        "checkOutHourEnd": "19:28:44",
                        "petsAllowed": 1,
                        "petsSize": "medium",
                        "stars": "1",
                        "qualityMark": "Aspernatur officiis neque ut sit sit sit iure.",
                        "noClassification": 0,
                        "accomodationGrade": 0,
                        "roles": [
                            "user",
                            "accomodation"
                        ],
                        "roomPosts": 8,
                        "hotelServicesIncluded": [
                            {
                                "id": 1,
                                "group": "accessibility",
                                "value": "wheelchair-accessible",
                                "label": "Wheelchair accessible"
                            },
                            {
                                "id": 8,
                                "group": "accessibility",
                                "value": "toilet-with-grab-bars",
                                "label": "Toilet with grab bars"
                            },
                            {
                                "id": 48,
                                "group": "activities",
                                "value": "inflatable-playground",
                                "label": "Inflatable playground"
                            },
                            {
                                "id": 117,
                                "group": "entertainment",
                                "value": "nursery",
                                "label": "Nursery"
                            },
                            {
                                "id": 122,
                                "group": "cleaning-services",
                                "value": "dry-wash",
                                "label": "Dry wash"
                            },
                            {
                                "id": 169,
                                "group": "wellness-services",
                                "value": "depilation-with-wax",
                                "label": "Depilation with wax"
                            }
                        ],
                        "hotelServicesNotIncluded": [
                            {
                                "id": 29,
                                "group": "activities",
                                "value": "bowling",
                                "label": "Bowling",
                                "price": 72419
                            },
                            {
                                "id": 76,
                                "group": "catering-services",
                                "value": "ice-cream\/pastry-shop",
                                "label": "Ice cream \/ Pastry shop",
                                "price": 72419
                            },
                            {
                                "id": 113,
                                "group": "entertainment",
                                "value": "dance pub",
                                "label": "Dance pub",
                                "price": 72419
                            },
                            {
                                "id": 191,
                                "group": "wellness-services",
                                "value": "deck-chairs\/loungers",
                                "label": "Deck chairs \/ loungers",
                                "price": 72419
                            },
                            {
                                "id": 201,
                                "group": "wellness-services",
                                "value": "facial-treatments",
                                "label": "Facial treatments",
                                "price": 72419
                            }
                        ],
                        "languages": [
                            {
                                "id": 1,
                                "code": "en",
                                "name": "English"
                            },
                            {
                                "id": 2,
                                "code": "it",
                                "name": "Italian"
                            }
                        ],
                        "images": [
                            {
                                "id": 11,
                                "image": "https:\/\/loremflickr.com\/362\/180\/travel,italy\/?lock=49840",
                                "image_name": "",
                                "category": "gallery"
                            },
                            {
                                "id": 12,
                                "image": "https:\/\/loremflickr.com\/362\/180\/travel,italy\/?lock=70064",
                                "image_name": "",
                                "category": "gallery"
                            },
                            {
                                "id": 13,
                                "image": "https:\/\/loremflickr.com\/362\/180\/travel,italy\/?lock=36345",
                                "image_name": "",
                                "category": "gallery"
                            }
                        ]
                    },
                    "roles": [
                        "user",
                        "accomodation"
                    ],
                    "permissions": [],
                    "stripeAccount": {
                        "user_id": 10,
                        "accountId": "acct_1ITV4XFPn57bOta4",
                        "chargeEnable": 1
                    },
                    "affiliation_code": "FVY5Y3",
                    "subscription": null
                },
                "affiliate": {
                    "id": 15,
                    "profile": {
                        "user_id": 15,
                        "firstName": "Dameon",
                        "lastName": "Smith",
                        "gender": "F",
                        "birthDate": "2013-04-27",
                        "country_id": 162,
                        "city": "Handfurt",
                        "image": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=22869",
                        "description": "Quis sint vero consequuntur itaque. Veniam esse nihil quia vitae eaque. Consequatur dolores ut velit quis voluptatibus. Autem accusamus blanditiis ea provident optio ut ratione aut.",
                        "paymentMethod": "both",
                        "paymentOther": "architecto",
                        "companionGrade": 0,
                        "roles": [
                            "user",
                            "traveler"
                        ],
                        "travelerTypes": [
                            {
                                "id": 9,
                                "value": "luxury",
                                "label": "Luxury"
                            },
                            {
                                "id": 12,
                                "value": "all-inclusive",
                                "label": "All Inclusive"
                            }
                        ],
                        "languages": [
                            {
                                "id": 1,
                                "code": "en",
                                "name": "English"
                            },
                            {
                                "id": 2,
                                "code": "it",
                                "name": "Italian"
                            }
                        ],
                        "natures": [
                            {
                                "id": 4,
                                "value": "cruise",
                                "label": "Cruise"
                            }
                        ],
                        "followers": 9,
                        "email": "private field",
                        "phoneNumber": "private field",
                        "fiscalCode": "private field",
                        "identityDoc": "private field"
                    },
                    "roles": [
                        "user",
                        "traveler"
                    ],
                    "permissions": [],
                    "stripeAccount": null,
                    "affiliation_code": "MVAJXA",
                    "subscription": null
                },
                "redeemed": 1,
                "redeemable": {
                    "id": 14,
                    "user": {
                        "id": 15,
                        "profile": {
                            "user_id": 15,
                            "firstName": "Dameon",
                            "lastName": "Smith",
                            "gender": "F",
                            "birthDate": "2013-04-27",
                            "country_id": 162,
                            "city": "Handfurt",
                            "image": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=22869",
                            "description": "Quis sint vero consequuntur itaque. Veniam esse nihil quia vitae eaque. Consequatur dolores ut velit quis voluptatibus. Autem accusamus blanditiis ea provident optio ut ratione aut.",
                            "paymentMethod": "both",
                            "paymentOther": "architecto",
                            "companionGrade": 0,
                            "roles": [
                                "user",
                                "traveler"
                            ],
                            "travelerTypes": [
                                {
                                    "id": 9,
                                    "value": "luxury",
                                    "label": "Luxury"
                                },
                                {
                                    "id": 12,
                                    "value": "all-inclusive",
                                    "label": "All Inclusive"
                                }
                            ],
                            "languages": [
                                {
                                    "id": 1,
                                    "code": "en",
                                    "name": "English"
                                },
                                {
                                    "id": 2,
                                    "code": "it",
                                    "name": "Italian"
                                }
                            ],
                            "natures": [
                                {
                                    "id": 4,
                                    "value": "cruise",
                                    "label": "Cruise"
                                }
                            ],
                            "followers": 9,
                            "email": "private field",
                            "phoneNumber": "private field",
                            "fiscalCode": "private field",
                            "identityDoc": "private field"
                        },
                        "roles": [
                            "user",
                            "traveler"
                        ],
                        "permissions": [],
                        "stripeAccount": null,
                        "affiliation_code": "MVAJXA",
                        "subscription": null
                    },
                    "active": 0,
                    "expirationDate": "2023-01-03",
                    "subscription": {
                        "id": 1,
                        "role": "traveler",
                        "type": "free",
                        "price": 0,
                        "monthPrice": 0,
                        "maxPost": "unlimited"
                    }
                },
                "stripeDiscounts": [],
                "redeem_date": "2021-05-07 19:40:51"
            },
            {
                "id": 15,
                "availments": "1",
                "promoter": {
                    "id": 15,
                    "profile": {
                        "user_id": 15,
                        "firstName": "Dameon",
                        "lastName": "Smith",
                        "gender": "F",
                        "birthDate": "2013-04-27",
                        "country_id": 162,
                        "city": "Handfurt",
                        "image": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=22869",
                        "description": "Quis sint vero consequuntur itaque. Veniam esse nihil quia vitae eaque. Consequatur dolores ut velit quis voluptatibus. Autem accusamus blanditiis ea provident optio ut ratione aut.",
                        "paymentMethod": "both",
                        "paymentOther": "architecto",
                        "companionGrade": 0,
                        "roles": [
                            "user",
                            "traveler"
                        ],
                        "travelerTypes": [
                            {
                                "id": 9,
                                "value": "luxury",
                                "label": "Luxury"
                            },
                            {
                                "id": 12,
                                "value": "all-inclusive",
                                "label": "All Inclusive"
                            }
                        ],
                        "languages": [
                            {
                                "id": 1,
                                "code": "en",
                                "name": "English"
                            },
                            {
                                "id": 2,
                                "code": "it",
                                "name": "Italian"
                            }
                        ],
                        "natures": [
                            {
                                "id": 4,
                                "value": "cruise",
                                "label": "Cruise"
                            }
                        ],
                        "followers": 9,
                        "email": "private field",
                        "phoneNumber": "private field",
                        "fiscalCode": "private field",
                        "identityDoc": "private field"
                    },
                    "roles": [
                        "user",
                        "traveler"
                    ],
                    "permissions": [],
                    "stripeAccount": null,
                    "affiliation_code": "MVAJXA",
                    "subscription": null
                },
                "affiliate": {
                    "id": 16,
                    "profile": {
                        "user_id": 16,
                        "firstName": "Zola",
                        "lastName": "Brown",
                        "gender": "F",
                        "birthDate": "1985-03-17",
                        "country_id": 95,
                        "city": "West Jaron",
                        "image": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=68030",
                        "description": "Fugit quo odio atque repudiandae nemo fuga quisquam. Qui ut delectus velit similique est pariatur. Laboriosam commodi totam quae eius quidem dolores.",
                        "paymentMethod": "stripe",
                        "paymentOther": "nulla",
                        "companionGrade": 0,
                        "roles": [
                            "user",
                            "traveler"
                        ],
                        "travelerTypes": [
                            {
                                "id": 4,
                                "value": "cultural",
                                "label": "Cultural"
                            }
                        ],
                        "languages": [
                            {
                                "id": 1,
                                "code": "en",
                                "name": "English"
                            }
                        ],
                        "natures": [
                            {
                                "id": 3,
                                "value": "mountain",
                                "label": "Mountain"
                            }
                        ],
                        "followers": 9,
                        "email": "private field",
                        "phoneNumber": "private field",
                        "fiscalCode": "private field",
                        "identityDoc": "private field"
                    },
                    "roles": [
                        "user",
                        "traveler"
                    ],
                    "permissions": [],
                    "stripeAccount": null,
                    "affiliation_code": "N0RFZ1",
                    "subscription": {
                        "id": 15,
                        "active": 1,
                        "expirationDate": "2022-04-05",
                        "subscription": {
                            "id": 1,
                            "role": "traveler",
                            "type": "free",
                            "price": 0,
                            "monthPrice": 0,
                            "maxPost": "unlimited"
                        }
                    }
                },
                "redeemed": 1,
                "redeemable": {
                    "id": 15,
                    "user": {
                        "id": 16,
                        "profile": {
                            "user_id": 16,
                            "firstName": "Zola",
                            "lastName": "Brown",
                            "gender": "F",
                            "birthDate": "1985-03-17",
                            "country_id": 95,
                            "city": "West Jaron",
                            "image": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=68030",
                            "description": "Fugit quo odio atque repudiandae nemo fuga quisquam. Qui ut delectus velit similique est pariatur. Laboriosam commodi totam quae eius quidem dolores.",
                            "paymentMethod": "stripe",
                            "paymentOther": "nulla",
                            "companionGrade": 0,
                            "roles": [
                                "user",
                                "traveler"
                            ],
                            "travelerTypes": [
                                {
                                    "id": 4,
                                    "value": "cultural",
                                    "label": "Cultural"
                                }
                            ],
                            "languages": [
                                {
                                    "id": 1,
                                    "code": "en",
                                    "name": "English"
                                }
                            ],
                            "natures": [
                                {
                                    "id": 3,
                                    "value": "mountain",
                                    "label": "Mountain"
                                }
                            ],
                            "followers": 9,
                            "email": "private field",
                            "phoneNumber": "private field",
                            "fiscalCode": "private field",
                            "identityDoc": "private field"
                        },
                        "roles": [
                            "user",
                            "traveler"
                        ],
                        "permissions": [],
                        "stripeAccount": null,
                        "affiliation_code": "N0RFZ1",
                        "subscription": {
                            "id": 15,
                            "active": 1,
                            "expirationDate": "2022-04-05",
                            "subscription": {
                                "id": 1,
                                "role": "traveler",
                                "type": "free",
                                "price": 0,
                                "monthPrice": 0,
                                "maxPost": "unlimited"
                            }
                        }
                    },
                    "active": 1,
                    "expirationDate": "2022-04-05",
                    "subscription": {
                        "id": 1,
                        "role": "traveler",
                        "type": "free",
                        "price": 0,
                        "monthPrice": 0,
                        "maxPost": "unlimited"
                    }
                },
                "stripeDiscounts": [],
                "redeem_date": "2021-05-07 19:40:51"
            },
            {
                "id": 16,
                "availments": "1",
                "promoter": {
                    "id": 7,
                    "profile": {
                        "user_id": 7,
                        "companyType": "society",
                        "companyName": "Prosacco, Emmerich and Donnellyand Sons",
                        "firstName": "private field",
                        "lastName": "private field",
                        "country_id": 243,
                        "city": "Port Jackeline",
                        "province": null,
                        "address": null,
                        "registeredOffice": "552 Wolf Stream\nSouth Cloyd, IN 52050",
                        "image": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=18118",
                        "description": "Realigned assymetric circuit",
                        "paymentMethod": "both",
                        "paymentOther": "tempore",
                        "roles": [
                            "user",
                            "ecommerceSeller"
                        ],
                        "followers": 11,
                        "fiscalCode": "private field",
                        "vatNumber": "private field",
                        "phonePrefix": "private field",
                        "phoneNumber": "private field",
                        "mobilePrefix": "private field",
                        "mobileNumber": "private field",
                        "faxPrefix": "private field",
                        "faxNumber": "private field",
                        "internetSite": "private field",
                        "pecEmail": "private field",
                        "contactEmail": "private field",
                        "chamberCommerceRegistration": "private field",
                        "identityDoc": "private field",
                        "fiscalCodeDoc": "private field"
                    },
                    "roles": [
                        "user",
                        "ecommerceSeller"
                    ],
                    "permissions": [],
                    "stripeAccount": {
                        "user_id": 7,
                        "accountId": "acct_1ITV4XFPn57bOta4",
                        "chargeEnable": 1
                    },
                    "affiliation_code": "1EZC5P",
                    "subscription": null
                },
                "affiliate": {
                    "id": 17,
                    "profile": {
                        "user_id": 17,
                        "firstName": "Jairo",
                        "lastName": "Huels",
                        "gender": "M",
                        "birthDate": "1979-07-28",
                        "country_id": 49,
                        "city": "Margiebury",
                        "image": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=39329",
                        "description": "Quibusdam qui eaque voluptas quis cumque facilis autem. Non et dolorem aut facere. Omnis hic eum eveniet neque facilis qui.",
                        "paymentMethod": "other",
                        "paymentOther": "enim",
                        "companionGrade": 0,
                        "roles": [
                            "user",
                            "traveler"
                        ],
                        "travelerTypes": [
                            {
                                "id": 7,
                                "value": "environmentalist",
                                "label": "Environmentalist"
                            },
                            {
                                "id": 9,
                                "value": "luxury",
                                "label": "Luxury"
                            }
                        ],
                        "languages": [
                            {
                                "id": 1,
                                "code": "en",
                                "name": "English"
                            }
                        ],
                        "natures": [
                            {
                                "id": 2,
                                "value": "work",
                                "label": "Work"
                            }
                        ],
                        "followers": 8,
                        "email": "private field",
                        "phoneNumber": "private field",
                        "fiscalCode": "private field",
                        "identityDoc": "private field"
                    },
                    "roles": [
                        "user",
                        "traveler"
                    ],
                    "permissions": [],
                    "stripeAccount": null,
                    "affiliation_code": "P7LW0Z",
                    "subscription": {
                        "id": 16,
                        "active": 1,
                        "expirationDate": "2021-10-19",
                        "subscription": {
                            "id": 1,
                            "role": "traveler",
                            "type": "free",
                            "price": 0,
                            "monthPrice": 0,
                            "maxPost": "unlimited"
                        }
                    }
                },
                "redeemed": 1,
                "redeemable": {
                    "id": 16,
                    "user": {
                        "id": 17,
                        "profile": {
                            "user_id": 17,
                            "firstName": "Jairo",
                            "lastName": "Huels",
                            "gender": "M",
                            "birthDate": "1979-07-28",
                            "country_id": 49,
                            "city": "Margiebury",
                            "image": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=39329",
                            "description": "Quibusdam qui eaque voluptas quis cumque facilis autem. Non et dolorem aut facere. Omnis hic eum eveniet neque facilis qui.",
                            "paymentMethod": "other",
                            "paymentOther": "enim",
                            "companionGrade": 0,
                            "roles": [
                                "user",
                                "traveler"
                            ],
                            "travelerTypes": [
                                {
                                    "id": 7,
                                    "value": "environmentalist",
                                    "label": "Environmentalist"
                                },
                                {
                                    "id": 9,
                                    "value": "luxury",
                                    "label": "Luxury"
                                }
                            ],
                            "languages": [
                                {
                                    "id": 1,
                                    "code": "en",
                                    "name": "English"
                                }
                            ],
                            "natures": [
                                {
                                    "id": 2,
                                    "value": "work",
                                    "label": "Work"
                                }
                            ],
                            "followers": 8,
                            "email": "private field",
                            "phoneNumber": "private field",
                            "fiscalCode": "private field",
                            "identityDoc": "private field"
                        },
                        "roles": [
                            "user",
                            "traveler"
                        ],
                        "permissions": [],
                        "stripeAccount": null,
                        "affiliation_code": "P7LW0Z",
                        "subscription": {
                            "id": 16,
                            "active": 1,
                            "expirationDate": "2021-10-19",
                            "subscription": {
                                "id": 1,
                                "role": "traveler",
                                "type": "free",
                                "price": 0,
                                "monthPrice": 0,
                                "maxPost": "unlimited"
                            }
                        }
                    },
                    "active": 1,
                    "expirationDate": "2021-10-19",
                    "subscription": {
                        "id": 1,
                        "role": "traveler",
                        "type": "free",
                        "price": 0,
                        "monthPrice": 0,
                        "maxPost": "unlimited"
                    }
                },
                "stripeDiscounts": [],
                "redeem_date": "2021-05-07 19:40:51"
            },
            {
                "id": 18,
                "availments": "1",
                "promoter": {
                    "id": 2,
                    "profile": {
                        "user_id": 2,
                        "accomodationType": "alpine_refuge",
                        "accomodationName": "Reilly, Stamm and VonRuedenand Sons",
                        "vatNumber": "8765373403026",
                        "registeredOffice": "7750 Paxton Park\nGersonberg, KY 10487",
                        "country_id": {
                            "id": 184,
                            "code": "QA",
                            "name": "Qatar",
                            "created_at": "2021-05-07 19:39:09",
                            "updated_at": "2021-05-07 19:39:09"
                        },
                        "province": "Trinidad and Tobago",
                        "city": "New Clark",
                        "address": "685 Harris Trail Suite 721\nEast Julietfort, ME 72941-6111",
                        "latitude": "-79.336225",
                        "longitude": "136.131302",
                        "cityTax": 13,
                        "phonePrefix": "+83",
                        "phoneNumber": "2893022859",
                        "mobilePrefix": "+22",
                        "mobileNumber": "9169087732",
                        "faxPrefix": "+73",
                        "faxNumber": "6600753559",
                        "contactEmail": "terry.delaney@gmail.com",
                        "image": "https:\/\/loremflickr.com\/362\/180\/hotel\/?lock=63032",
                        "description": "Quidem voluptas atque nulla necessitatibus magni. Nihil quis non optio veniam dolores quod perspiciatis.",
                        "recommendations": "Non possimus voluptas beatae quaerat eos qui. Fugiat excepturi atque qui esse ipsum. Corrupti libero est atque.",
                        "yearOfConstruction": 1939,
                        "lastRenovation": 1925,
                        "rooms": 6,
                        "nonSmokingRooms": 6,
                        "beds": 18,
                        "handicappedRooms": 8,
                        "suites": 5,
                        "plans": 13,
                        "H24CheckIn": 1,
                        "checkInHourStart": "17:38:26",
                        "checkInHourEnd": "03:33:26",
                        "checkOutHourStart": "14:11:05",
                        "checkOutHourEnd": "18:05:09",
                        "petsAllowed": 0,
                        "petsSize": "big",
                        "stars": "2",
                        "qualityMark": "Rem est ipsam voluptatem ut ut quibusdam voluptas.",
                        "noClassification": 0,
                        "accomodationGrade": 0,
                        "roles": [
                            "user",
                            "accomodation"
                        ],
                        "roomPosts": 8,
                        "hotelServicesIncluded": [
                            {
                                "id": 32,
                                "group": "activities",
                                "value": "tennis-court",
                                "label": "Tennis court"
                            },
                            {
                                "id": 45,
                                "group": "activities",
                                "value": "Nightclub\/DJ",
                                "label": "Nightclub \/ DJ"
                            },
                            {
                                "id": 56,
                                "group": "activities",
                                "value": "snorkeling",
                                "label": "Snorkeling"
                            },
                            {
                                "id": 58,
                                "group": "activities",
                                "value": "equipped-and-supervised-beach",
                                "label": "Equipped and supervised beach"
                            },
                            {
                                "id": 121,
                                "group": "entertainment",
                                "value": "theater",
                                "label": "Theater"
                            },
                            {
                                "id": 126,
                                "group": "cleaning-services",
                                "value": "ironing-service",
                                "label": "Ironing service"
                            },
                            {
                                "id": 130,
                                "group": "business-services",
                                "value": "spaces-for-meetings\/banquets",
                                "label": "Spaces for meetings\/banquets"
                            },
                            {
                                "id": 137,
                                "group": "security",
                                "value": "CCTV-cameras-outside-the-facility",
                                "label": "CCTV cameras outside the facility"
                            }
                        ],
                        "hotelServicesNotIncluded": [
                            {
                                "id": 49,
                                "group": "activities",
                                "value": "nature-trails-in-the-lagoon",
                                "label": "Nature trails in the lagoon",
                                "price": 57255
                            },
                            {
                                "id": 107,
                                "group": "reception-services",
                                "value": "atm-machine",
                                "label": "ATM machine",
                                "price": 57255
                            },
                            {
                                "id": 168,
                                "group": "wellness-services",
                                "value": "body-bandages",
                                "label": "Body bandages",
                                "price": 57255
                            },
                            {
                                "id": 179,
                                "group": "wellness-services",
                                "value": "foot-massage",
                                "label": "Foot massage",
                                "price": 57255
                            }
                        ],
                        "languages": [
                            {
                                "id": 1,
                                "code": "en",
                                "name": "English"
                            },
                            {
                                "id": 2,
                                "code": "it",
                                "name": "Italian"
                            }
                        ],
                        "images": [
                            {
                                "id": 1,
                                "image": "https:\/\/loremflickr.com\/362\/180\/travel,italy\/?lock=43912",
                                "image_name": "",
                                "category": "gallery"
                            },
                            {
                                "id": 2,
                                "image": "https:\/\/loremflickr.com\/362\/180\/travel,italy\/?lock=58259",
                                "image_name": "",
                                "category": "gallery"
                            },
                            {
                                "id": 3,
                                "image": "https:\/\/loremflickr.com\/362\/180\/travel,italy\/?lock=54165",
                                "image_name": "",
                                "category": "gallery"
                            },
                            {
                                "id": 4,
                                "image": "https:\/\/loremflickr.com\/362\/180\/travel,italy\/?lock=71534",
                                "image_name": "",
                                "category": "gallery"
                            },
                            {
                                "id": 5,
                                "image": "https:\/\/loremflickr.com\/362\/180\/travel,italy\/?lock=62822",
                                "image_name": "",
                                "category": "gallery"
                            }
                        ]
                    },
                    "roles": [
                        "user",
                        "accomodation"
                    ],
                    "permissions": [],
                    "stripeAccount": {
                        "user_id": 2,
                        "accountId": "acct_1ITV4XFPn57bOta4",
                        "chargeEnable": 1
                    },
                    "affiliation_code": "APRA0D",
                    "subscription": {
                        "id": 2,
                        "active": 1,
                        "expirationDate": "2023-05-03",
                        "subscription": {
                            "id": 8,
                            "role": "touristGuide",
                            "type": "mega",
                            "price": 10000,
                            "monthPrice": 0,
                            "maxPost": "unlimited"
                        }
                    }
                },
                "affiliate": {
                    "id": 19,
                    "profile": {
                        "user_id": 19,
                        "firstName": "Jermey",
                        "lastName": "Jenkins",
                        "gender": "F",
                        "birthDate": "1996-02-11",
                        "country_id": 120,
                        "city": "Port Guidofort",
                        "image": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=84268",
                        "description": "Quis praesentium illo ullam molestias soluta. Nisi atque doloribus voluptatem iusto ut esse. Est fuga ut molestias. Aspernatur earum porro est nemo itaque.",
                        "paymentMethod": "stripe",
                        "paymentOther": "aut",
                        "companionGrade": 0,
                        "roles": [
                            "user",
                            "traveler"
                        ],
                        "travelerTypes": [
                            {
                                "id": 3,
                                "value": "adventurer",
                                "label": "Adventurer"
                            }
                        ],
                        "languages": [
                            {
                                "id": 1,
                                "code": "en",
                                "name": "English"
                            }
                        ],
                        "natures": [
                            {
                                "id": 5,
                                "value": "foodandwine",
                                "label": "food and wine"
                            }
                        ],
                        "followers": 10,
                        "email": "private field",
                        "phoneNumber": "private field",
                        "fiscalCode": "private field",
                        "identityDoc": "private field"
                    },
                    "roles": [
                        "user",
                        "traveler"
                    ],
                    "permissions": [],
                    "stripeAccount": null,
                    "affiliation_code": "N8BKM5",
                    "subscription": {
                        "id": 18,
                        "active": 1,
                        "expirationDate": "2023-03-10",
                        "subscription": {
                            "id": 1,
                            "role": "traveler",
                            "type": "free",
                            "price": 0,
                            "monthPrice": 0,
                            "maxPost": "unlimited"
                        }
                    }
                },
                "redeemed": 0,
                "redeemable": null,
                "stripeDiscounts": [],
                "redeem_date": null
            },
            {
                "id": 20,
                "availments": "1",
                "promoter": {
                    "id": 9,
                    "profile": {
                        "user_id": 9,
                        "accomodationType": "mountain_retreat",
                        "accomodationName": "Nolan-BlickLLC",
                        "vatNumber": "9790226058978",
                        "registeredOffice": "6602 Foster Row Apt. 977\nHettingerview, UT 23111-5579",
                        "country_id": {
                            "id": 63,
                            "code": "DK",
                            "name": "Denmark",
                            "created_at": "2021-05-07 19:39:06",
                            "updated_at": "2021-05-07 19:39:06"
                        },
                        "province": "Turks and Caicos Islands",
                        "city": "Garricktown",
                        "address": "92545 Macejkovic Rue Suite 903\nIdellstad, NC 03228",
                        "latitude": "-30.125111",
                        "longitude": "-53.393493",
                        "cityTax": 20,
                        "phonePrefix": "+58",
                        "phoneNumber": "8389021817",
                        "mobilePrefix": "+86",
                        "mobileNumber": "5672747652",
                        "faxPrefix": "+16",
                        "faxNumber": "4095693004",
                        "contactEmail": "kieran11@hotmail.com",
                        "image": "https:\/\/loremflickr.com\/362\/180\/hotel\/?lock=86341",
                        "description": "Illo non numquam reiciendis omnis rerum rem. In at ut dolor sed et. Qui quaerat cumque ut. Voluptatibus corporis explicabo pariatur culpa.",
                        "recommendations": "Quod sit deserunt ab iusto enim. Aliquid et ipsam nisi id maiores. Sint qui fugiat sunt dicta voluptatibus ducimus. Ut qui et sint culpa. Recusandae commodi non omnis omnis tenetur quasi.",
                        "yearOfConstruction": 1981,
                        "lastRenovation": 1905,
                        "rooms": 8,
                        "nonSmokingRooms": 16,
                        "beds": 16,
                        "handicappedRooms": 19,
                        "suites": 17,
                        "plans": 13,
                        "H24CheckIn": 1,
                        "checkInHourStart": "20:16:25",
                        "checkInHourEnd": "07:52:07",
                        "checkOutHourStart": "23:22:59",
                        "checkOutHourEnd": "12:48:58",
                        "petsAllowed": 1,
                        "petsSize": "big",
                        "stars": "3",
                        "qualityMark": "Cum eos harum totam animi dolores saepe.",
                        "noClassification": 1,
                        "accomodationGrade": 0,
                        "roles": [
                            "user",
                            "accomodation"
                        ],
                        "roomPosts": 4,
                        "hotelServicesIncluded": [
                            {
                                "id": 30,
                                "group": "activities",
                                "value": "soccer",
                                "label": "Soccer"
                            },
                            {
                                "id": 49,
                                "group": "activities",
                                "value": "nature-trails-in-the-lagoon",
                                "label": "Nature trails in the lagoon"
                            },
                            {
                                "id": 53,
                                "group": "activities",
                                "value": "PADI-diving-school",
                                "label": "PADI diving school"
                            },
                            {
                                "id": 76,
                                "group": "catering-services",
                                "value": "ice-cream\/pastry-shop",
                                "label": "Ice cream \/ Pastry shop"
                            },
                            {
                                "id": 86,
                                "group": "parking-area",
                                "value": "public-parking-available-in-the-area",
                                "label": "Public parking available in the area"
                            },
                            {
                                "id": 95,
                                "group": "reception-services",
                                "value": "cash-desk",
                                "label": "Cash desk"
                            },
                            {
                                "id": 117,
                                "group": "entertainment",
                                "value": "nursery",
                                "label": "Nursery"
                            },
                            {
                                "id": 123,
                                "group": "cleaning-services",
                                "value": "shoe-shine",
                                "label": "Shoe shine"
                            },
                            {
                                "id": 130,
                                "group": "business-services",
                                "value": "spaces-for-meetings\/banquets",
                                "label": "Spaces for meetings\/banquets"
                            },
                            {
                                "id": 139,
                                "group": "security",
                                "value": "periodic-treatments",
                                "label": "Periodic treatments"
                            }
                        ],
                        "hotelServicesNotIncluded": [
                            {
                                "id": 24,
                                "group": "activities",
                                "value": "aquagym",
                                "label": "Aquagym",
                                "price": 78098
                            },
                            {
                                "id": 71,
                                "group": "open-spaces",
                                "value": "Terrace",
                                "label": "Terrace",
                                "price": 78098
                            },
                            {
                                "id": 72,
                                "group": "open-spaces",
                                "value": "Solarium terrace",
                                "label": "Solarium terrace",
                                "price": 78098
                            },
                            {
                                "id": 106,
                                "group": "reception-services",
                                "value": "concierge-service",
                                "label": "Concierge service",
                                "price": 78098
                            },
                            {
                                "id": 117,
                                "group": "entertainment",
                                "value": "nursery",
                                "label": "Nursery",
                                "price": 78098
                            },
                            {
                                "id": 151,
                                "group": "general-services",
                                "value": "carbon-monoxide-detector",
                                "label": "Carbon monoxide detector",
                                "price": 78098
                            },
                            {
                                "id": 156,
                                "group": "general-services",
                                "value": "hypoallergenic-solutions",
                                "label": "Hypoallergenic solutions",
                                "price": 78098
                            },
                            {
                                "id": 214,
                                "group": "transport",
                                "value": "shuttle-to-train-station",
                                "label": "Shuttle to train station",
                                "price": 78098
                            }
                        ],
                        "languages": [
                            {
                                "id": 1,
                                "code": "en",
                                "name": "English"
                            }
                        ],
                        "images": [
                            {
                                "id": 6,
                                "image": "https:\/\/loremflickr.com\/362\/180\/travel,italy\/?lock=98619",
                                "image_name": "",
                                "category": "gallery"
                            },
                            {
                                "id": 7,
                                "image": "https:\/\/loremflickr.com\/362\/180\/travel,italy\/?lock=87987",
                                "image_name": "",
                                "category": "gallery"
                            },
                            {
                                "id": 8,
                                "image": "https:\/\/loremflickr.com\/362\/180\/travel,italy\/?lock=91287",
                                "image_name": "",
                                "category": "gallery"
                            },
                            {
                                "id": 9,
                                "image": "https:\/\/loremflickr.com\/362\/180\/travel,italy\/?lock=76676",
                                "image_name": "",
                                "category": "gallery"
                            },
                            {
                                "id": 10,
                                "image": "https:\/\/loremflickr.com\/362\/180\/travel,italy\/?lock=67002",
                                "image_name": "",
                                "category": "gallery"
                            }
                        ]
                    },
                    "roles": [
                        "user",
                        "accomodation"
                    ],
                    "permissions": [],
                    "stripeAccount": {
                        "user_id": 9,
                        "accountId": "acct_1ITV4XFPn57bOta4",
                        "chargeEnable": 1
                    },
                    "affiliation_code": "KESFO6",
                    "subscription": {
                        "id": 8,
                        "active": 1,
                        "expirationDate": "2021-09-06",
                        "subscription": {
                            "id": 8,
                            "role": "touristGuide",
                            "type": "mega",
                            "price": 10000,
                            "monthPrice": 0,
                            "maxPost": "unlimited"
                        }
                    }
                },
                "affiliate": {
                    "id": 21,
                    "profile": {
                        "user_id": 21,
                        "firstName": "Jazmyne",
                        "lastName": "Schuster",
                        "gender": "M",
                        "birthDate": "1989-03-22",
                        "country_id": 192,
                        "city": "Schoenland",
                        "image": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=89304",
                        "description": "Quo magni temporibus corrupti similique voluptatem. Optio voluptatem dolorem officiis recusandae est ut quae. Quia adipisci non esse ea. Quae est voluptatem ab in qui. Voluptatem sint at nobis non.",
                        "paymentMethod": "both",
                        "paymentOther": "distinctio",
                        "companionGrade": 0,
                        "roles": [
                            "user",
                            "traveler"
                        ],
                        "travelerTypes": [
                            {
                                "id": 9,
                                "value": "luxury",
                                "label": "Luxury"
                            }
                        ],
                        "languages": [
                            {
                                "id": 1,
                                "code": "en",
                                "name": "English"
                            }
                        ],
                        "natures": [
                            {
                                "id": 2,
                                "value": "work",
                                "label": "Work"
                            },
                            {
                                "id": 5,
                                "value": "foodandwine",
                                "label": "food and wine"
                            }
                        ],
                        "followers": 9,
                        "email": "private field",
                        "phoneNumber": "private field",
                        "fiscalCode": "private field",
                        "identityDoc": "private field"
                    },
                    "roles": [
                        "user",
                        "traveler"
                    ],
                    "permissions": [],
                    "stripeAccount": null,
                    "affiliation_code": "JPA2AI",
                    "subscription": {
                        "id": 20,
                        "active": 1,
                        "expirationDate": "2022-09-19",
                        "subscription": {
                            "id": 1,
                            "role": "traveler",
                            "type": "free",
                            "price": 0,
                            "monthPrice": 0,
                            "maxPost": "unlimited"
                        }
                    }
                },
                "redeemed": 1,
                "redeemable": {
                    "id": 20,
                    "user": {
                        "id": 21,
                        "profile": {
                            "user_id": 21,
                            "firstName": "Jazmyne",
                            "lastName": "Schuster",
                            "gender": "M",
                            "birthDate": "1989-03-22",
                            "country_id": 192,
                            "city": "Schoenland",
                            "image": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=89304",
                            "description": "Quo magni temporibus corrupti similique voluptatem. Optio voluptatem dolorem officiis recusandae est ut quae. Quia adipisci non esse ea. Quae est voluptatem ab in qui. Voluptatem sint at nobis non.",
                            "paymentMethod": "both",
                            "paymentOther": "distinctio",
                            "companionGrade": 0,
                            "roles": [
                                "user",
                                "traveler"
                            ],
                            "travelerTypes": [
                                {
                                    "id": 9,
                                    "value": "luxury",
                                    "label": "Luxury"
                                }
                            ],
                            "languages": [
                                {
                                    "id": 1,
                                    "code": "en",
                                    "name": "English"
                                }
                            ],
                            "natures": [
                                {
                                    "id": 2,
                                    "value": "work",
                                    "label": "Work"
                                },
                                {
                                    "id": 5,
                                    "value": "foodandwine",
                                    "label": "food and wine"
                                }
                            ],
                            "followers": 9,
                            "email": "private field",
                            "phoneNumber": "private field",
                            "fiscalCode": "private field",
                            "identityDoc": "private field"
                        },
                        "roles": [
                            "user",
                            "traveler"
                        ],
                        "permissions": [],
                        "stripeAccount": null,
                        "affiliation_code": "JPA2AI",
                        "subscription": {
                            "id": 20,
                            "active": 1,
                            "expirationDate": "2022-09-19",
                            "subscription": {
                                "id": 1,
                                "role": "traveler",
                                "type": "free",
                                "price": 0,
                                "monthPrice": 0,
                                "maxPost": "unlimited"
                            }
                        }
                    },
                    "active": 1,
                    "expirationDate": "2022-09-19",
                    "subscription": {
                        "id": 1,
                        "role": "traveler",
                        "type": "free",
                        "price": 0,
                        "monthPrice": 0,
                        "maxPost": "unlimited"
                    }
                },
                "stripeDiscounts": [],
                "redeem_date": "2021-05-07 19:40:53"
            }
        ],
        "discountNunber": 1
    }
]

HTTP Request

GET /api/AffiliationPrograms/AffiliationProgram

Body Parameters

Parameter Type Status Description
search.name string optional
search.uses numeric optional
search.affiliation_program_token string optional
search.affiliationProgramSubscriptions.id string optional Valid subscription id
search array optional
searchJoin string optional and or or
perPage numeric optional
page numeric optional
orderBy string optional id
sortedBy string optional asc or desc

Query Parameters

Parameter Status Description
search.name optional
search.uses optional
search.affiliation_program_token optional
search.affiliationProgramSubscriptions.id optional Valid subscription id
search optional
searchJoin optional and or or
perPage optional
page optional
orderBy optional id
sortedBy optional asc or desc

Show AffiliationProgram

Show the Detail of an AffiliationPrograms

Example request:

curl -X GET -G "http://api.doitrip.com/api/AffiliationPrograms/AffiliationProgram/1" 
const url = new URL("http://api.doitrip.com/api/AffiliationPrograms/AffiliationProgram/1");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "id": 1,
    "name": "Bring a Friend",
    "description": "affiliazione di base fra utenti",
    "discount": 10,
    "uses": -1,
    "affiliation_program_token": null,
    "created_at": "2021-05-07T19:40:38.000000Z",
    "affiliations": [
        {
            "id": 2,
            "availments": "1",
            "promoter": {
                "id": 2,
                "profile": {
                    "user_id": 2,
                    "accomodationType": "alpine_refuge",
                    "accomodationName": "Reilly, Stamm and VonRuedenand Sons",
                    "vatNumber": "8765373403026",
                    "registeredOffice": "7750 Paxton Park\nGersonberg, KY 10487",
                    "country_id": {
                        "id": 184,
                        "code": "QA",
                        "name": "Qatar",
                        "created_at": "2021-05-07 19:39:09",
                        "updated_at": "2021-05-07 19:39:09"
                    },
                    "province": "Trinidad and Tobago",
                    "city": "New Clark",
                    "address": "685 Harris Trail Suite 721\nEast Julietfort, ME 72941-6111",
                    "latitude": "-79.336225",
                    "longitude": "136.131302",
                    "cityTax": 13,
                    "phonePrefix": "+83",
                    "phoneNumber": "2893022859",
                    "mobilePrefix": "+22",
                    "mobileNumber": "9169087732",
                    "faxPrefix": "+73",
                    "faxNumber": "6600753559",
                    "contactEmail": "terry.delaney@gmail.com",
                    "image": "https:\/\/loremflickr.com\/362\/180\/hotel\/?lock=63032",
                    "description": "Quidem voluptas atque nulla necessitatibus magni. Nihil quis non optio veniam dolores quod perspiciatis.",
                    "recommendations": "Non possimus voluptas beatae quaerat eos qui. Fugiat excepturi atque qui esse ipsum. Corrupti libero est atque.",
                    "yearOfConstruction": 1939,
                    "lastRenovation": 1925,
                    "rooms": 6,
                    "nonSmokingRooms": 6,
                    "beds": 18,
                    "handicappedRooms": 8,
                    "suites": 5,
                    "plans": 13,
                    "H24CheckIn": 1,
                    "checkInHourStart": "17:38:26",
                    "checkInHourEnd": "03:33:26",
                    "checkOutHourStart": "14:11:05",
                    "checkOutHourEnd": "18:05:09",
                    "petsAllowed": 0,
                    "petsSize": "big",
                    "stars": "2",
                    "qualityMark": "Rem est ipsam voluptatem ut ut quibusdam voluptas.",
                    "noClassification": 0,
                    "accomodationGrade": 0,
                    "roles": [
                        "user",
                        "accomodation"
                    ],
                    "roomPosts": 8,
                    "hotelServicesIncluded": [
                        {
                            "id": 32,
                            "group": "activities",
                            "value": "tennis-court",
                            "label": "Tennis court"
                        },
                        {
                            "id": 45,
                            "group": "activities",
                            "value": "Nightclub\/DJ",
                            "label": "Nightclub \/ DJ"
                        },
                        {
                            "id": 56,
                            "group": "activities",
                            "value": "snorkeling",
                            "label": "Snorkeling"
                        },
                        {
                            "id": 58,
                            "group": "activities",
                            "value": "equipped-and-supervised-beach",
                            "label": "Equipped and supervised beach"
                        },
                        {
                            "id": 121,
                            "group": "entertainment",
                            "value": "theater",
                            "label": "Theater"
                        },
                        {
                            "id": 126,
                            "group": "cleaning-services",
                            "value": "ironing-service",
                            "label": "Ironing service"
                        },
                        {
                            "id": 130,
                            "group": "business-services",
                            "value": "spaces-for-meetings\/banquets",
                            "label": "Spaces for meetings\/banquets"
                        },
                        {
                            "id": 137,
                            "group": "security",
                            "value": "CCTV-cameras-outside-the-facility",
                            "label": "CCTV cameras outside the facility"
                        }
                    ],
                    "hotelServicesNotIncluded": [
                        {
                            "id": 49,
                            "group": "activities",
                            "value": "nature-trails-in-the-lagoon",
                            "label": "Nature trails in the lagoon",
                            "price": 57255
                        },
                        {
                            "id": 107,
                            "group": "reception-services",
                            "value": "atm-machine",
                            "label": "ATM machine",
                            "price": 57255
                        },
                        {
                            "id": 168,
                            "group": "wellness-services",
                            "value": "body-bandages",
                            "label": "Body bandages",
                            "price": 57255
                        },
                        {
                            "id": 179,
                            "group": "wellness-services",
                            "value": "foot-massage",
                            "label": "Foot massage",
                            "price": 57255
                        }
                    ],
                    "languages": [
                        {
                            "id": 1,
                            "code": "en",
                            "name": "English"
                        },
                        {
                            "id": 2,
                            "code": "it",
                            "name": "Italian"
                        }
                    ],
                    "images": [
                        {
                            "id": 1,
                            "image": "https:\/\/loremflickr.com\/362\/180\/travel,italy\/?lock=43912",
                            "image_name": "",
                            "category": "gallery"
                        },
                        {
                            "id": 2,
                            "image": "https:\/\/loremflickr.com\/362\/180\/travel,italy\/?lock=58259",
                            "image_name": "",
                            "category": "gallery"
                        },
                        {
                            "id": 3,
                            "image": "https:\/\/loremflickr.com\/362\/180\/travel,italy\/?lock=54165",
                            "image_name": "",
                            "category": "gallery"
                        },
                        {
                            "id": 4,
                            "image": "https:\/\/loremflickr.com\/362\/180\/travel,italy\/?lock=71534",
                            "image_name": "",
                            "category": "gallery"
                        },
                        {
                            "id": 5,
                            "image": "https:\/\/loremflickr.com\/362\/180\/travel,italy\/?lock=62822",
                            "image_name": "",
                            "category": "gallery"
                        }
                    ]
                },
                "roles": [
                    "user",
                    "accomodation"
                ],
                "permissions": [],
                "stripeAccount": {
                    "user_id": 2,
                    "accountId": "acct_1ITV4XFPn57bOta4",
                    "chargeEnable": 1
                },
                "affiliation_code": "APRA0D",
                "subscription": {
                    "id": 2,
                    "active": 1,
                    "expirationDate": "2023-05-03",
                    "subscription": {
                        "id": 8,
                        "role": "touristGuide",
                        "type": "mega",
                        "price": 10000,
                        "monthPrice": 0,
                        "maxPost": "unlimited"
                    }
                }
            },
            "affiliate": {
                "id": 3,
                "profile": {
                    "user_id": 3,
                    "companyType": "society",
                    "companyName": "Pouros-GusikowskiGroup",
                    "firstName": "private field",
                    "lastName": "private field",
                    "country_id": 96,
                    "city": "Lake Davonchester",
                    "province": null,
                    "address": null,
                    "registeredOffice": "751 Brayan Via Suite 806\nChanelborough, CO 34207-4693",
                    "image": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=32707",
                    "description": "Optional non-volatile emulation",
                    "paymentMethod": "stripe",
                    "paymentOther": "est",
                    "roles": [
                        "user",
                        "accomodationManager"
                    ],
                    "followers": 9,
                    "fiscalCode": "private field",
                    "vatNumber": "private field",
                    "phonePrefix": "private field",
                    "phoneNumber": "private field",
                    "mobilePrefix": "private field",
                    "mobileNumber": "private field",
                    "faxPrefix": "private field",
                    "faxNumber": "private field",
                    "internetSite": "private field",
                    "pecEmail": "private field",
                    "contactEmail": "private field",
                    "chamberCommerceRegistration": "private field",
                    "identityDoc": "private field",
                    "fiscalCodeDoc": "private field"
                },
                "roles": [
                    "user",
                    "accomodationManager"
                ],
                "permissions": [],
                "stripeAccount": {
                    "user_id": 3,
                    "accountId": "acct_1ITV4XFPn57bOta4",
                    "chargeEnable": 1
                },
                "affiliation_code": "W6BD2M",
                "subscription": null
            },
            "redeemed": 0,
            "redeemable": null,
            "stripeDiscounts": [],
            "redeem_date": null
        },
        {
            "id": 4,
            "availments": "1",
            "promoter": {
                "id": 1,
                "profile": {
                    "user_id": 1,
                    "firstName": "Sylvester",
                    "lastName": "Dach",
                    "gender": "F",
                    "birthDate": "1973-01-14",
                    "country_id": 14,
                    "city": "Schmelerside",
                    "image": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=31482",
                    "description": "Temporibus molestiae fuga voluptatem sed rerum dolor. Expedita doloremque qui ut est. Quos illo ea rerum.",
                    "paymentMethod": "stripe",
                    "paymentOther": "omnis",
                    "companionGrade": 0,
                    "roles": [
                        "admin",
                        "user",
                        "traveler"
                    ],
                    "travelerTypes": [
                        {
                            "id": 7,
                            "value": "environmentalist",
                            "label": "Environmentalist"
                        },
                        {
                            "id": 10,
                            "value": "offbeat",
                            "label": "offbeat"
                        }
                    ],
                    "languages": [
                        {
                            "id": 1,
                            "code": "en",
                            "name": "English"
                        },
                        {
                            "id": 2,
                            "code": "it",
                            "name": "Italian"
                        }
                    ],
                    "natures": [
                        {
                            "id": 2,
                            "value": "work",
                            "label": "Work"
                        }
                    ],
                    "followers": 9,
                    "email": "private field",
                    "phoneNumber": "private field",
                    "fiscalCode": "private field",
                    "identityDoc": "private field"
                },
                "roles": [
                    "admin",
                    "user",
                    "traveler"
                ],
                "permissions": [],
                "stripeAccount": null,
                "affiliation_code": "NXA6HB",
                "subscription": null
            },
            "affiliate": {
                "id": 5,
                "profile": {
                    "user_id": 5,
                    "companyType": "society",
                    "companyName": "Feest, Jast and RippinLtd",
                    "firstName": "private field",
                    "lastName": "private field",
                    "country_id": 136,
                    "city": "Gennaroland",
                    "province": null,
                    "address": null,
                    "registeredOffice": "3731 Kuhlman Loaf\nPort Ada, NV 90702",
                    "image": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=41686",
                    "description": "Centralized interactive opensystem",
                    "paymentMethod": "other",
                    "paymentOther": "sit",
                    "tourOperatorGrade": 0,
                    "roles": [
                        "user",
                        "tourOperator"
                    ],
                    "tourPosts": 10,
                    "followers": 10,
                    "tourServices": [
                        {
                            "id": 11,
                            "value": "animation-and-entertainment-activities",
                            "label": "Animation and entertainment activities"
                        },
                        {
                            "id": 51,
                            "value": "hot-chocolate-or-tea",
                            "label": "Hot chocolate or tea"
                        },
                        {
                            "id": 70,
                            "value": "excursions",
                            "label": "Excursions"
                        },
                        {
                            "id": 89,
                            "value": "Tips",
                            "label": "Tips"
                        }
                    ],
                    "fiscalCode": "private field",
                    "vatNumber": "private field",
                    "phonePrefix": "private field",
                    "phoneNumber": "private field",
                    "mobilePrefix": "private field",
                    "mobileNumber": "private field",
                    "faxPrefix": "private field",
                    "faxNumber": "private field",
                    "internetSite": "private field",
                    "pecEmail": "private field",
                    "contactEmail": "private field",
                    "chamberCommerceRegistration": "private field",
                    "identityDoc": "private field",
                    "fiscalCodeDoc": "private field"
                },
                "roles": [
                    "user",
                    "tourOperator"
                ],
                "permissions": [],
                "stripeAccount": {
                    "user_id": 5,
                    "accountId": "acct_1ITV4XFPn57bOta4",
                    "chargeEnable": 1
                },
                "affiliation_code": "94HV08",
                "subscription": {
                    "id": 4,
                    "active": 1,
                    "expirationDate": "2022-10-11",
                    "subscription": {
                        "id": 8,
                        "role": "touristGuide",
                        "type": "mega",
                        "price": 10000,
                        "monthPrice": 0,
                        "maxPost": "unlimited"
                    }
                }
            },
            "redeemed": 1,
            "redeemable": {
                "id": 4,
                "user": {
                    "id": 5,
                    "profile": {
                        "user_id": 5,
                        "companyType": "society",
                        "companyName": "Feest, Jast and RippinLtd",
                        "firstName": "private field",
                        "lastName": "private field",
                        "country_id": 136,
                        "city": "Gennaroland",
                        "province": null,
                        "address": null,
                        "registeredOffice": "3731 Kuhlman Loaf\nPort Ada, NV 90702",
                        "image": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=41686",
                        "description": "Centralized interactive opensystem",
                        "paymentMethod": "other",
                        "paymentOther": "sit",
                        "tourOperatorGrade": 0,
                        "roles": [
                            "user",
                            "tourOperator"
                        ],
                        "tourPosts": 10,
                        "followers": 10,
                        "tourServices": [
                            {
                                "id": 11,
                                "value": "animation-and-entertainment-activities",
                                "label": "Animation and entertainment activities"
                            },
                            {
                                "id": 51,
                                "value": "hot-chocolate-or-tea",
                                "label": "Hot chocolate or tea"
                            },
                            {
                                "id": 70,
                                "value": "excursions",
                                "label": "Excursions"
                            },
                            {
                                "id": 89,
                                "value": "Tips",
                                "label": "Tips"
                            }
                        ],
                        "fiscalCode": "private field",
                        "vatNumber": "private field",
                        "phonePrefix": "private field",
                        "phoneNumber": "private field",
                        "mobilePrefix": "private field",
                        "mobileNumber": "private field",
                        "faxPrefix": "private field",
                        "faxNumber": "private field",
                        "internetSite": "private field",
                        "pecEmail": "private field",
                        "contactEmail": "private field",
                        "chamberCommerceRegistration": "private field",
                        "identityDoc": "private field",
                        "fiscalCodeDoc": "private field"
                    },
                    "roles": [
                        "user",
                        "tourOperator"
                    ],
                    "permissions": [],
                    "stripeAccount": {
                        "user_id": 5,
                        "accountId": "acct_1ITV4XFPn57bOta4",
                        "chargeEnable": 1
                    },
                    "affiliation_code": "94HV08",
                    "subscription": {
                        "id": 4,
                        "active": 1,
                        "expirationDate": "2022-10-11",
                        "subscription": {
                            "id": 8,
                            "role": "touristGuide",
                            "type": "mega",
                            "price": 10000,
                            "monthPrice": 0,
                            "maxPost": "unlimited"
                        }
                    }
                },
                "active": 1,
                "expirationDate": "2022-10-11",
                "subscription": {
                    "id": 8,
                    "role": "touristGuide",
                    "type": "mega",
                    "price": 10000,
                    "monthPrice": 0,
                    "maxPost": "unlimited"
                }
            },
            "stripeDiscounts": [],
            "redeem_date": "2021-05-07 19:40:46"
        },
        {
            "id": 7,
            "availments": "1",
            "promoter": {
                "id": 5,
                "profile": {
                    "user_id": 5,
                    "companyType": "society",
                    "companyName": "Feest, Jast and RippinLtd",
                    "firstName": "private field",
                    "lastName": "private field",
                    "country_id": 136,
                    "city": "Gennaroland",
                    "province": null,
                    "address": null,
                    "registeredOffice": "3731 Kuhlman Loaf\nPort Ada, NV 90702",
                    "image": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=41686",
                    "description": "Centralized interactive opensystem",
                    "paymentMethod": "other",
                    "paymentOther": "sit",
                    "tourOperatorGrade": 0,
                    "roles": [
                        "user",
                        "tourOperator"
                    ],
                    "tourPosts": 10,
                    "followers": 10,
                    "tourServices": [
                        {
                            "id": 11,
                            "value": "animation-and-entertainment-activities",
                            "label": "Animation and entertainment activities"
                        },
                        {
                            "id": 51,
                            "value": "hot-chocolate-or-tea",
                            "label": "Hot chocolate or tea"
                        },
                        {
                            "id": 70,
                            "value": "excursions",
                            "label": "Excursions"
                        },
                        {
                            "id": 89,
                            "value": "Tips",
                            "label": "Tips"
                        }
                    ],
                    "fiscalCode": "private field",
                    "vatNumber": "private field",
                    "phonePrefix": "private field",
                    "phoneNumber": "private field",
                    "mobilePrefix": "private field",
                    "mobileNumber": "private field",
                    "faxPrefix": "private field",
                    "faxNumber": "private field",
                    "internetSite": "private field",
                    "pecEmail": "private field",
                    "contactEmail": "private field",
                    "chamberCommerceRegistration": "private field",
                    "identityDoc": "private field",
                    "fiscalCodeDoc": "private field"
                },
                "roles": [
                    "user",
                    "tourOperator"
                ],
                "permissions": [],
                "stripeAccount": {
                    "user_id": 5,
                    "accountId": "acct_1ITV4XFPn57bOta4",
                    "chargeEnable": 1
                },
                "affiliation_code": "94HV08",
                "subscription": {
                    "id": 4,
                    "active": 1,
                    "expirationDate": "2022-10-11",
                    "subscription": {
                        "id": 8,
                        "role": "touristGuide",
                        "type": "mega",
                        "price": 10000,
                        "monthPrice": 0,
                        "maxPost": "unlimited"
                    }
                }
            },
            "affiliate": {
                "id": 8,
                "profile": {
                    "user_id": 8,
                    "firstName": "Jackson",
                    "lastName": "Pfannerstill",
                    "gender": "F",
                    "birthDate": "1979-10-22",
                    "country_id": 236,
                    "city": "South Jackelineside",
                    "image": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=80789",
                    "description": "Eaque quasi voluptatem sed. Nobis dolor sed est quam. Quia architecto eaque debitis et. Reiciendis quaerat nam et vitae.",
                    "paymentMethod": "both",
                    "paymentOther": "eum",
                    "companionGrade": 0,
                    "roles": [
                        "user",
                        "traveler"
                    ],
                    "travelerTypes": [
                        {
                            "id": 4,
                            "value": "cultural",
                            "label": "Cultural"
                        }
                    ],
                    "languages": [
                        {
                            "id": 1,
                            "code": "en",
                            "name": "English"
                        },
                        {
                            "id": 2,
                            "code": "it",
                            "name": "Italian"
                        }
                    ],
                    "natures": [
                        {
                            "id": 1,
                            "value": "beach",
                            "label": "Beach & Sea"
                        }
                    ],
                    "followers": 11,
                    "email": "private field",
                    "phoneNumber": "private field",
                    "fiscalCode": "private field",
                    "identityDoc": "private field"
                },
                "roles": [
                    "user",
                    "traveler"
                ],
                "permissions": [],
                "stripeAccount": null,
                "affiliation_code": "1EJVZW",
                "subscription": {
                    "id": 7,
                    "active": 1,
                    "expirationDate": "2021-12-18",
                    "subscription": {
                        "id": 1,
                        "role": "traveler",
                        "type": "free",
                        "price": 0,
                        "monthPrice": 0,
                        "maxPost": "unlimited"
                    }
                }
            },
            "redeemed": 1,
            "redeemable": {
                "id": 7,
                "user": {
                    "id": 8,
                    "profile": {
                        "user_id": 8,
                        "firstName": "Jackson",
                        "lastName": "Pfannerstill",
                        "gender": "F",
                        "birthDate": "1979-10-22",
                        "country_id": 236,
                        "city": "South Jackelineside",
                        "image": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=80789",
                        "description": "Eaque quasi voluptatem sed. Nobis dolor sed est quam. Quia architecto eaque debitis et. Reiciendis quaerat nam et vitae.",
                        "paymentMethod": "both",
                        "paymentOther": "eum",
                        "companionGrade": 0,
                        "roles": [
                            "user",
                            "traveler"
                        ],
                        "travelerTypes": [
                            {
                                "id": 4,
                                "value": "cultural",
                                "label": "Cultural"
                            }
                        ],
                        "languages": [
                            {
                                "id": 1,
                                "code": "en",
                                "name": "English"
                            },
                            {
                                "id": 2,
                                "code": "it",
                                "name": "Italian"
                            }
                        ],
                        "natures": [
                            {
                                "id": 1,
                                "value": "beach",
                                "label": "Beach & Sea"
                            }
                        ],
                        "followers": 11,
                        "email": "private field",
                        "phoneNumber": "private field",
                        "fiscalCode": "private field",
                        "identityDoc": "private field"
                    },
                    "roles": [
                        "user",
                        "traveler"
                    ],
                    "permissions": [],
                    "stripeAccount": null,
                    "affiliation_code": "1EJVZW",
                    "subscription": {
                        "id": 7,
                        "active": 1,
                        "expirationDate": "2021-12-18",
                        "subscription": {
                            "id": 1,
                            "role": "traveler",
                            "type": "free",
                            "price": 0,
                            "monthPrice": 0,
                            "maxPost": "unlimited"
                        }
                    }
                },
                "active": 1,
                "expirationDate": "2021-12-18",
                "subscription": {
                    "id": 1,
                    "role": "traveler",
                    "type": "free",
                    "price": 0,
                    "monthPrice": 0,
                    "maxPost": "unlimited"
                }
            },
            "stripeDiscounts": [],
            "redeem_date": "2021-05-07 19:40:47"
        },
        {
            "id": 12,
            "availments": "1",
            "promoter": {
                "id": 1,
                "profile": {
                    "user_id": 1,
                    "firstName": "Sylvester",
                    "lastName": "Dach",
                    "gender": "F",
                    "birthDate": "1973-01-14",
                    "country_id": 14,
                    "city": "Schmelerside",
                    "image": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=31482",
                    "description": "Temporibus molestiae fuga voluptatem sed rerum dolor. Expedita doloremque qui ut est. Quos illo ea rerum.",
                    "paymentMethod": "stripe",
                    "paymentOther": "omnis",
                    "companionGrade": 0,
                    "roles": [
                        "admin",
                        "user",
                        "traveler"
                    ],
                    "travelerTypes": [
                        {
                            "id": 7,
                            "value": "environmentalist",
                            "label": "Environmentalist"
                        },
                        {
                            "id": 10,
                            "value": "offbeat",
                            "label": "offbeat"
                        }
                    ],
                    "languages": [
                        {
                            "id": 1,
                            "code": "en",
                            "name": "English"
                        },
                        {
                            "id": 2,
                            "code": "it",
                            "name": "Italian"
                        }
                    ],
                    "natures": [
                        {
                            "id": 2,
                            "value": "work",
                            "label": "Work"
                        }
                    ],
                    "followers": 9,
                    "email": "private field",
                    "phoneNumber": "private field",
                    "fiscalCode": "private field",
                    "identityDoc": "private field"
                },
                "roles": [
                    "admin",
                    "user",
                    "traveler"
                ],
                "permissions": [],
                "stripeAccount": null,
                "affiliation_code": "NXA6HB",
                "subscription": null
            },
            "affiliate": {
                "id": 13,
                "profile": {
                    "user_id": 13,
                    "firstName": "Lola",
                    "lastName": "Waters",
                    "gender": "F",
                    "birthDate": "1981-03-26",
                    "country_id": 53,
                    "city": "Dillanside",
                    "image": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=68357",
                    "description": "Qui nesciunt voluptatibus quia harum ipsa in voluptatem. Sequi id iure sint aliquam ipsam. Facere id eveniet fugiat laudantium voluptas.",
                    "paymentMethod": "stripe",
                    "paymentOther": "tempore",
                    "companionGrade": 0,
                    "roles": [
                        "user",
                        "traveler"
                    ],
                    "travelerTypes": [
                        {
                            "id": 4,
                            "value": "cultural",
                            "label": "Cultural"
                        }
                    ],
                    "languages": [
                        {
                            "id": 1,
                            "code": "en",
                            "name": "English"
                        },
                        {
                            "id": 2,
                            "code": "it",
                            "name": "Italian"
                        }
                    ],
                    "natures": [
                        {
                            "id": 3,
                            "value": "mountain",
                            "label": "Mountain"
                        }
                    ],
                    "followers": 8,
                    "email": "private field",
                    "phoneNumber": "private field",
                    "fiscalCode": "private field",
                    "identityDoc": "private field"
                },
                "roles": [
                    "user",
                    "traveler"
                ],
                "permissions": [],
                "stripeAccount": null,
                "affiliation_code": "WE8U4C",
                "subscription": null
            },
            "redeemed": 1,
            "redeemable": {
                "id": 12,
                "user": {
                    "id": 13,
                    "profile": {
                        "user_id": 13,
                        "firstName": "Lola",
                        "lastName": "Waters",
                        "gender": "F",
                        "birthDate": "1981-03-26",
                        "country_id": 53,
                        "city": "Dillanside",
                        "image": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=68357",
                        "description": "Qui nesciunt voluptatibus quia harum ipsa in voluptatem. Sequi id iure sint aliquam ipsam. Facere id eveniet fugiat laudantium voluptas.",
                        "paymentMethod": "stripe",
                        "paymentOther": "tempore",
                        "companionGrade": 0,
                        "roles": [
                            "user",
                            "traveler"
                        ],
                        "travelerTypes": [
                            {
                                "id": 4,
                                "value": "cultural",
                                "label": "Cultural"
                            }
                        ],
                        "languages": [
                            {
                                "id": 1,
                                "code": "en",
                                "name": "English"
                            },
                            {
                                "id": 2,
                                "code": "it",
                                "name": "Italian"
                            }
                        ],
                        "natures": [
                            {
                                "id": 3,
                                "value": "mountain",
                                "label": "Mountain"
                            }
                        ],
                        "followers": 8,
                        "email": "private field",
                        "phoneNumber": "private field",
                        "fiscalCode": "private field",
                        "identityDoc": "private field"
                    },
                    "roles": [
                        "user",
                        "traveler"
                    ],
                    "permissions": [],
                    "stripeAccount": null,
                    "affiliation_code": "WE8U4C",
                    "subscription": null
                },
                "active": 0,
                "expirationDate": "2021-06-05",
                "subscription": {
                    "id": 1,
                    "role": "traveler",
                    "type": "free",
                    "price": 0,
                    "monthPrice": 0,
                    "maxPost": "unlimited"
                }
            },
            "stripeDiscounts": [],
            "redeem_date": "2021-05-07 19:40:50"
        },
        {
            "id": 14,
            "availments": "1",
            "promoter": {
                "id": 10,
                "profile": {
                    "user_id": 10,
                    "accomodationType": "study_stay_center",
                    "accomodationName": "Kassulke LtdInc",
                    "vatNumber": "7003167893716",
                    "registeredOffice": "72528 Rosalinda Roads Apt. 645\nReganport, NY 45366",
                    "country_id": {
                        "id": 234,
                        "code": "TM",
                        "name": "Turkmenistan",
                        "created_at": "2021-05-07 19:39:11",
                        "updated_at": "2021-05-07 19:39:11"
                    },
                    "province": "Pakistan",
                    "city": "North Ginaborough",
                    "address": "5976 Kautzer Fall Suite 515\nNakiaville, RI 55062",
                    "latitude": "-52.295971",
                    "longitude": "129.899492",
                    "cityTax": 7,
                    "phonePrefix": "+16",
                    "phoneNumber": "8009906162",
                    "mobilePrefix": "+09",
                    "mobileNumber": "4317749406",
                    "faxPrefix": "+44",
                    "faxNumber": "1003365484",
                    "contactEmail": "harley58@thiel.com",
                    "image": "https:\/\/loremflickr.com\/362\/180\/hotel\/?lock=88231",
                    "description": "Repudiandae quis ut voluptatibus repellendus laboriosam iure aut. Voluptas fugiat eaque magnam rerum ratione. Et qui unde tempore optio unde. Cupiditate labore voluptas quaerat dolorem fuga sint.",
                    "recommendations": "Tempora voluptatem rerum consequatur hic ducimus reiciendis. Distinctio magni quo blanditiis inventore rerum. Iure adipisci reprehenderit iure ipsum et.",
                    "yearOfConstruction": 2000,
                    "lastRenovation": 1967,
                    "rooms": 7,
                    "nonSmokingRooms": 9,
                    "beds": 16,
                    "handicappedRooms": 5,
                    "suites": 6,
                    "plans": 11,
                    "H24CheckIn": 1,
                    "checkInHourStart": "22:34:30",
                    "checkInHourEnd": "20:52:49",
                    "checkOutHourStart": "02:55:50",
                    "checkOutHourEnd": "19:28:44",
                    "petsAllowed": 1,
                    "petsSize": "medium",
                    "stars": "1",
                    "qualityMark": "Aspernatur officiis neque ut sit sit sit iure.",
                    "noClassification": 0,
                    "accomodationGrade": 0,
                    "roles": [
                        "user",
                        "accomodation"
                    ],
                    "roomPosts": 8,
                    "hotelServicesIncluded": [
                        {
                            "id": 1,
                            "group": "accessibility",
                            "value": "wheelchair-accessible",
                            "label": "Wheelchair accessible"
                        },
                        {
                            "id": 8,
                            "group": "accessibility",
                            "value": "toilet-with-grab-bars",
                            "label": "Toilet with grab bars"
                        },
                        {
                            "id": 48,
                            "group": "activities",
                            "value": "inflatable-playground",
                            "label": "Inflatable playground"
                        },
                        {
                            "id": 117,
                            "group": "entertainment",
                            "value": "nursery",
                            "label": "Nursery"
                        },
                        {
                            "id": 122,
                            "group": "cleaning-services",
                            "value": "dry-wash",
                            "label": "Dry wash"
                        },
                        {
                            "id": 169,
                            "group": "wellness-services",
                            "value": "depilation-with-wax",
                            "label": "Depilation with wax"
                        }
                    ],
                    "hotelServicesNotIncluded": [
                        {
                            "id": 29,
                            "group": "activities",
                            "value": "bowling",
                            "label": "Bowling",
                            "price": 72419
                        },
                        {
                            "id": 76,
                            "group": "catering-services",
                            "value": "ice-cream\/pastry-shop",
                            "label": "Ice cream \/ Pastry shop",
                            "price": 72419
                        },
                        {
                            "id": 113,
                            "group": "entertainment",
                            "value": "dance pub",
                            "label": "Dance pub",
                            "price": 72419
                        },
                        {
                            "id": 191,
                            "group": "wellness-services",
                            "value": "deck-chairs\/loungers",
                            "label": "Deck chairs \/ loungers",
                            "price": 72419
                        },
                        {
                            "id": 201,
                            "group": "wellness-services",
                            "value": "facial-treatments",
                            "label": "Facial treatments",
                            "price": 72419
                        }
                    ],
                    "languages": [
                        {
                            "id": 1,
                            "code": "en",
                            "name": "English"
                        },
                        {
                            "id": 2,
                            "code": "it",
                            "name": "Italian"
                        }
                    ],
                    "images": [
                        {
                            "id": 11,
                            "image": "https:\/\/loremflickr.com\/362\/180\/travel,italy\/?lock=49840",
                            "image_name": "",
                            "category": "gallery"
                        },
                        {
                            "id": 12,
                            "image": "https:\/\/loremflickr.com\/362\/180\/travel,italy\/?lock=70064",
                            "image_name": "",
                            "category": "gallery"
                        },
                        {
                            "id": 13,
                            "image": "https:\/\/loremflickr.com\/362\/180\/travel,italy\/?lock=36345",
                            "image_name": "",
                            "category": "gallery"
                        }
                    ]
                },
                "roles": [
                    "user",
                    "accomodation"
                ],
                "permissions": [],
                "stripeAccount": {
                    "user_id": 10,
                    "accountId": "acct_1ITV4XFPn57bOta4",
                    "chargeEnable": 1
                },
                "affiliation_code": "FVY5Y3",
                "subscription": null
            },
            "affiliate": {
                "id": 15,
                "profile": {
                    "user_id": 15,
                    "firstName": "Dameon",
                    "lastName": "Smith",
                    "gender": "F",
                    "birthDate": "2013-04-27",
                    "country_id": 162,
                    "city": "Handfurt",
                    "image": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=22869",
                    "description": "Quis sint vero consequuntur itaque. Veniam esse nihil quia vitae eaque. Consequatur dolores ut velit quis voluptatibus. Autem accusamus blanditiis ea provident optio ut ratione aut.",
                    "paymentMethod": "both",
                    "paymentOther": "architecto",
                    "companionGrade": 0,
                    "roles": [
                        "user",
                        "traveler"
                    ],
                    "travelerTypes": [
                        {
                            "id": 9,
                            "value": "luxury",
                            "label": "Luxury"
                        },
                        {
                            "id": 12,
                            "value": "all-inclusive",
                            "label": "All Inclusive"
                        }
                    ],
                    "languages": [
                        {
                            "id": 1,
                            "code": "en",
                            "name": "English"
                        },
                        {
                            "id": 2,
                            "code": "it",
                            "name": "Italian"
                        }
                    ],
                    "natures": [
                        {
                            "id": 4,
                            "value": "cruise",
                            "label": "Cruise"
                        }
                    ],
                    "followers": 9,
                    "email": "private field",
                    "phoneNumber": "private field",
                    "fiscalCode": "private field",
                    "identityDoc": "private field"
                },
                "roles": [
                    "user",
                    "traveler"
                ],
                "permissions": [],
                "stripeAccount": null,
                "affiliation_code": "MVAJXA",
                "subscription": null
            },
            "redeemed": 1,
            "redeemable": {
                "id": 14,
                "user": {
                    "id": 15,
                    "profile": {
                        "user_id": 15,
                        "firstName": "Dameon",
                        "lastName": "Smith",
                        "gender": "F",
                        "birthDate": "2013-04-27",
                        "country_id": 162,
                        "city": "Handfurt",
                        "image": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=22869",
                        "description": "Quis sint vero consequuntur itaque. Veniam esse nihil quia vitae eaque. Consequatur dolores ut velit quis voluptatibus. Autem accusamus blanditiis ea provident optio ut ratione aut.",
                        "paymentMethod": "both",
                        "paymentOther": "architecto",
                        "companionGrade": 0,
                        "roles": [
                            "user",
                            "traveler"
                        ],
                        "travelerTypes": [
                            {
                                "id": 9,
                                "value": "luxury",
                                "label": "Luxury"
                            },
                            {
                                "id": 12,
                                "value": "all-inclusive",
                                "label": "All Inclusive"
                            }
                        ],
                        "languages": [
                            {
                                "id": 1,
                                "code": "en",
                                "name": "English"
                            },
                            {
                                "id": 2,
                                "code": "it",
                                "name": "Italian"
                            }
                        ],
                        "natures": [
                            {
                                "id": 4,
                                "value": "cruise",
                                "label": "Cruise"
                            }
                        ],
                        "followers": 9,
                        "email": "private field",
                        "phoneNumber": "private field",
                        "fiscalCode": "private field",
                        "identityDoc": "private field"
                    },
                    "roles": [
                        "user",
                        "traveler"
                    ],
                    "permissions": [],
                    "stripeAccount": null,
                    "affiliation_code": "MVAJXA",
                    "subscription": null
                },
                "active": 0,
                "expirationDate": "2023-01-03",
                "subscription": {
                    "id": 1,
                    "role": "traveler",
                    "type": "free",
                    "price": 0,
                    "monthPrice": 0,
                    "maxPost": "unlimited"
                }
            },
            "stripeDiscounts": [],
            "redeem_date": "2021-05-07 19:40:51"
        },
        {
            "id": 15,
            "availments": "1",
            "promoter": {
                "id": 15,
                "profile": {
                    "user_id": 15,
                    "firstName": "Dameon",
                    "lastName": "Smith",
                    "gender": "F",
                    "birthDate": "2013-04-27",
                    "country_id": 162,
                    "city": "Handfurt",
                    "image": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=22869",
                    "description": "Quis sint vero consequuntur itaque. Veniam esse nihil quia vitae eaque. Consequatur dolores ut velit quis voluptatibus. Autem accusamus blanditiis ea provident optio ut ratione aut.",
                    "paymentMethod": "both",
                    "paymentOther": "architecto",
                    "companionGrade": 0,
                    "roles": [
                        "user",
                        "traveler"
                    ],
                    "travelerTypes": [
                        {
                            "id": 9,
                            "value": "luxury",
                            "label": "Luxury"
                        },
                        {
                            "id": 12,
                            "value": "all-inclusive",
                            "label": "All Inclusive"
                        }
                    ],
                    "languages": [
                        {
                            "id": 1,
                            "code": "en",
                            "name": "English"
                        },
                        {
                            "id": 2,
                            "code": "it",
                            "name": "Italian"
                        }
                    ],
                    "natures": [
                        {
                            "id": 4,
                            "value": "cruise",
                            "label": "Cruise"
                        }
                    ],
                    "followers": 9,
                    "email": "private field",
                    "phoneNumber": "private field",
                    "fiscalCode": "private field",
                    "identityDoc": "private field"
                },
                "roles": [
                    "user",
                    "traveler"
                ],
                "permissions": [],
                "stripeAccount": null,
                "affiliation_code": "MVAJXA",
                "subscription": null
            },
            "affiliate": {
                "id": 16,
                "profile": {
                    "user_id": 16,
                    "firstName": "Zola",
                    "lastName": "Brown",
                    "gender": "F",
                    "birthDate": "1985-03-17",
                    "country_id": 95,
                    "city": "West Jaron",
                    "image": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=68030",
                    "description": "Fugit quo odio atque repudiandae nemo fuga quisquam. Qui ut delectus velit similique est pariatur. Laboriosam commodi totam quae eius quidem dolores.",
                    "paymentMethod": "stripe",
                    "paymentOther": "nulla",
                    "companionGrade": 0,
                    "roles": [
                        "user",
                        "traveler"
                    ],
                    "travelerTypes": [
                        {
                            "id": 4,
                            "value": "cultural",
                            "label": "Cultural"
                        }
                    ],
                    "languages": [
                        {
                            "id": 1,
                            "code": "en",
                            "name": "English"
                        }
                    ],
                    "natures": [
                        {
                            "id": 3,
                            "value": "mountain",
                            "label": "Mountain"
                        }
                    ],
                    "followers": 9,
                    "email": "private field",
                    "phoneNumber": "private field",
                    "fiscalCode": "private field",
                    "identityDoc": "private field"
                },
                "roles": [
                    "user",
                    "traveler"
                ],
                "permissions": [],
                "stripeAccount": null,
                "affiliation_code": "N0RFZ1",
                "subscription": {
                    "id": 15,
                    "active": 1,
                    "expirationDate": "2022-04-05",
                    "subscription": {
                        "id": 1,
                        "role": "traveler",
                        "type": "free",
                        "price": 0,
                        "monthPrice": 0,
                        "maxPost": "unlimited"
                    }
                }
            },
            "redeemed": 1,
            "redeemable": {
                "id": 15,
                "user": {
                    "id": 16,
                    "profile": {
                        "user_id": 16,
                        "firstName": "Zola",
                        "lastName": "Brown",
                        "gender": "F",
                        "birthDate": "1985-03-17",
                        "country_id": 95,
                        "city": "West Jaron",
                        "image": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=68030",
                        "description": "Fugit quo odio atque repudiandae nemo fuga quisquam. Qui ut delectus velit similique est pariatur. Laboriosam commodi totam quae eius quidem dolores.",
                        "paymentMethod": "stripe",
                        "paymentOther": "nulla",
                        "companionGrade": 0,
                        "roles": [
                            "user",
                            "traveler"
                        ],
                        "travelerTypes": [
                            {
                                "id": 4,
                                "value": "cultural",
                                "label": "Cultural"
                            }
                        ],
                        "languages": [
                            {
                                "id": 1,
                                "code": "en",
                                "name": "English"
                            }
                        ],
                        "natures": [
                            {
                                "id": 3,
                                "value": "mountain",
                                "label": "Mountain"
                            }
                        ],
                        "followers": 9,
                        "email": "private field",
                        "phoneNumber": "private field",
                        "fiscalCode": "private field",
                        "identityDoc": "private field"
                    },
                    "roles": [
                        "user",
                        "traveler"
                    ],
                    "permissions": [],
                    "stripeAccount": null,
                    "affiliation_code": "N0RFZ1",
                    "subscription": {
                        "id": 15,
                        "active": 1,
                        "expirationDate": "2022-04-05",
                        "subscription": {
                            "id": 1,
                            "role": "traveler",
                            "type": "free",
                            "price": 0,
                            "monthPrice": 0,
                            "maxPost": "unlimited"
                        }
                    }
                },
                "active": 1,
                "expirationDate": "2022-04-05",
                "subscription": {
                    "id": 1,
                    "role": "traveler",
                    "type": "free",
                    "price": 0,
                    "monthPrice": 0,
                    "maxPost": "unlimited"
                }
            },
            "stripeDiscounts": [],
            "redeem_date": "2021-05-07 19:40:51"
        },
        {
            "id": 16,
            "availments": "1",
            "promoter": {
                "id": 7,
                "profile": {
                    "user_id": 7,
                    "companyType": "society",
                    "companyName": "Prosacco, Emmerich and Donnellyand Sons",
                    "firstName": "private field",
                    "lastName": "private field",
                    "country_id": 243,
                    "city": "Port Jackeline",
                    "province": null,
                    "address": null,
                    "registeredOffice": "552 Wolf Stream\nSouth Cloyd, IN 52050",
                    "image": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=18118",
                    "description": "Realigned assymetric circuit",
                    "paymentMethod": "both",
                    "paymentOther": "tempore",
                    "roles": [
                        "user",
                        "ecommerceSeller"
                    ],
                    "followers": 11,
                    "fiscalCode": "private field",
                    "vatNumber": "private field",
                    "phonePrefix": "private field",
                    "phoneNumber": "private field",
                    "mobilePrefix": "private field",
                    "mobileNumber": "private field",
                    "faxPrefix": "private field",
                    "faxNumber": "private field",
                    "internetSite": "private field",
                    "pecEmail": "private field",
                    "contactEmail": "private field",
                    "chamberCommerceRegistration": "private field",
                    "identityDoc": "private field",
                    "fiscalCodeDoc": "private field"
                },
                "roles": [
                    "user",
                    "ecommerceSeller"
                ],
                "permissions": [],
                "stripeAccount": {
                    "user_id": 7,
                    "accountId": "acct_1ITV4XFPn57bOta4",
                    "chargeEnable": 1
                },
                "affiliation_code": "1EZC5P",
                "subscription": null
            },
            "affiliate": {
                "id": 17,
                "profile": {
                    "user_id": 17,
                    "firstName": "Jairo",
                    "lastName": "Huels",
                    "gender": "M",
                    "birthDate": "1979-07-28",
                    "country_id": 49,
                    "city": "Margiebury",
                    "image": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=39329",
                    "description": "Quibusdam qui eaque voluptas quis cumque facilis autem. Non et dolorem aut facere. Omnis hic eum eveniet neque facilis qui.",
                    "paymentMethod": "other",
                    "paymentOther": "enim",
                    "companionGrade": 0,
                    "roles": [
                        "user",
                        "traveler"
                    ],
                    "travelerTypes": [
                        {
                            "id": 7,
                            "value": "environmentalist",
                            "label": "Environmentalist"
                        },
                        {
                            "id": 9,
                            "value": "luxury",
                            "label": "Luxury"
                        }
                    ],
                    "languages": [
                        {
                            "id": 1,
                            "code": "en",
                            "name": "English"
                        }
                    ],
                    "natures": [
                        {
                            "id": 2,
                            "value": "work",
                            "label": "Work"
                        }
                    ],
                    "followers": 8,
                    "email": "private field",
                    "phoneNumber": "private field",
                    "fiscalCode": "private field",
                    "identityDoc": "private field"
                },
                "roles": [
                    "user",
                    "traveler"
                ],
                "permissions": [],
                "stripeAccount": null,
                "affiliation_code": "P7LW0Z",
                "subscription": {
                    "id": 16,
                    "active": 1,
                    "expirationDate": "2021-10-19",
                    "subscription": {
                        "id": 1,
                        "role": "traveler",
                        "type": "free",
                        "price": 0,
                        "monthPrice": 0,
                        "maxPost": "unlimited"
                    }
                }
            },
            "redeemed": 1,
            "redeemable": {
                "id": 16,
                "user": {
                    "id": 17,
                    "profile": {
                        "user_id": 17,
                        "firstName": "Jairo",
                        "lastName": "Huels",
                        "gender": "M",
                        "birthDate": "1979-07-28",
                        "country_id": 49,
                        "city": "Margiebury",
                        "image": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=39329",
                        "description": "Quibusdam qui eaque voluptas quis cumque facilis autem. Non et dolorem aut facere. Omnis hic eum eveniet neque facilis qui.",
                        "paymentMethod": "other",
                        "paymentOther": "enim",
                        "companionGrade": 0,
                        "roles": [
                            "user",
                            "traveler"
                        ],
                        "travelerTypes": [
                            {
                                "id": 7,
                                "value": "environmentalist",
                                "label": "Environmentalist"
                            },
                            {
                                "id": 9,
                                "value": "luxury",
                                "label": "Luxury"
                            }
                        ],
                        "languages": [
                            {
                                "id": 1,
                                "code": "en",
                                "name": "English"
                            }
                        ],
                        "natures": [
                            {
                                "id": 2,
                                "value": "work",
                                "label": "Work"
                            }
                        ],
                        "followers": 8,
                        "email": "private field",
                        "phoneNumber": "private field",
                        "fiscalCode": "private field",
                        "identityDoc": "private field"
                    },
                    "roles": [
                        "user",
                        "traveler"
                    ],
                    "permissions": [],
                    "stripeAccount": null,
                    "affiliation_code": "P7LW0Z",
                    "subscription": {
                        "id": 16,
                        "active": 1,
                        "expirationDate": "2021-10-19",
                        "subscription": {
                            "id": 1,
                            "role": "traveler",
                            "type": "free",
                            "price": 0,
                            "monthPrice": 0,
                            "maxPost": "unlimited"
                        }
                    }
                },
                "active": 1,
                "expirationDate": "2021-10-19",
                "subscription": {
                    "id": 1,
                    "role": "traveler",
                    "type": "free",
                    "price": 0,
                    "monthPrice": 0,
                    "maxPost": "unlimited"
                }
            },
            "stripeDiscounts": [],
            "redeem_date": "2021-05-07 19:40:51"
        },
        {
            "id": 18,
            "availments": "1",
            "promoter": {
                "id": 2,
                "profile": {
                    "user_id": 2,
                    "accomodationType": "alpine_refuge",
                    "accomodationName": "Reilly, Stamm and VonRuedenand Sons",
                    "vatNumber": "8765373403026",
                    "registeredOffice": "7750 Paxton Park\nGersonberg, KY 10487",
                    "country_id": {
                        "id": 184,
                        "code": "QA",
                        "name": "Qatar",
                        "created_at": "2021-05-07 19:39:09",
                        "updated_at": "2021-05-07 19:39:09"
                    },
                    "province": "Trinidad and Tobago",
                    "city": "New Clark",
                    "address": "685 Harris Trail Suite 721\nEast Julietfort, ME 72941-6111",
                    "latitude": "-79.336225",
                    "longitude": "136.131302",
                    "cityTax": 13,
                    "phonePrefix": "+83",
                    "phoneNumber": "2893022859",
                    "mobilePrefix": "+22",
                    "mobileNumber": "9169087732",
                    "faxPrefix": "+73",
                    "faxNumber": "6600753559",
                    "contactEmail": "terry.delaney@gmail.com",
                    "image": "https:\/\/loremflickr.com\/362\/180\/hotel\/?lock=63032",
                    "description": "Quidem voluptas atque nulla necessitatibus magni. Nihil quis non optio veniam dolores quod perspiciatis.",
                    "recommendations": "Non possimus voluptas beatae quaerat eos qui. Fugiat excepturi atque qui esse ipsum. Corrupti libero est atque.",
                    "yearOfConstruction": 1939,
                    "lastRenovation": 1925,
                    "rooms": 6,
                    "nonSmokingRooms": 6,
                    "beds": 18,
                    "handicappedRooms": 8,
                    "suites": 5,
                    "plans": 13,
                    "H24CheckIn": 1,
                    "checkInHourStart": "17:38:26",
                    "checkInHourEnd": "03:33:26",
                    "checkOutHourStart": "14:11:05",
                    "checkOutHourEnd": "18:05:09",
                    "petsAllowed": 0,
                    "petsSize": "big",
                    "stars": "2",
                    "qualityMark": "Rem est ipsam voluptatem ut ut quibusdam voluptas.",
                    "noClassification": 0,
                    "accomodationGrade": 0,
                    "roles": [
                        "user",
                        "accomodation"
                    ],
                    "roomPosts": 8,
                    "hotelServicesIncluded": [
                        {
                            "id": 32,
                            "group": "activities",
                            "value": "tennis-court",
                            "label": "Tennis court"
                        },
                        {
                            "id": 45,
                            "group": "activities",
                            "value": "Nightclub\/DJ",
                            "label": "Nightclub \/ DJ"
                        },
                        {
                            "id": 56,
                            "group": "activities",
                            "value": "snorkeling",
                            "label": "Snorkeling"
                        },
                        {
                            "id": 58,
                            "group": "activities",
                            "value": "equipped-and-supervised-beach",
                            "label": "Equipped and supervised beach"
                        },
                        {
                            "id": 121,
                            "group": "entertainment",
                            "value": "theater",
                            "label": "Theater"
                        },
                        {
                            "id": 126,
                            "group": "cleaning-services",
                            "value": "ironing-service",
                            "label": "Ironing service"
                        },
                        {
                            "id": 130,
                            "group": "business-services",
                            "value": "spaces-for-meetings\/banquets",
                            "label": "Spaces for meetings\/banquets"
                        },
                        {
                            "id": 137,
                            "group": "security",
                            "value": "CCTV-cameras-outside-the-facility",
                            "label": "CCTV cameras outside the facility"
                        }
                    ],
                    "hotelServicesNotIncluded": [
                        {
                            "id": 49,
                            "group": "activities",
                            "value": "nature-trails-in-the-lagoon",
                            "label": "Nature trails in the lagoon",
                            "price": 57255
                        },
                        {
                            "id": 107,
                            "group": "reception-services",
                            "value": "atm-machine",
                            "label": "ATM machine",
                            "price": 57255
                        },
                        {
                            "id": 168,
                            "group": "wellness-services",
                            "value": "body-bandages",
                            "label": "Body bandages",
                            "price": 57255
                        },
                        {
                            "id": 179,
                            "group": "wellness-services",
                            "value": "foot-massage",
                            "label": "Foot massage",
                            "price": 57255
                        }
                    ],
                    "languages": [
                        {
                            "id": 1,
                            "code": "en",
                            "name": "English"
                        },
                        {
                            "id": 2,
                            "code": "it",
                            "name": "Italian"
                        }
                    ],
                    "images": [
                        {
                            "id": 1,
                            "image": "https:\/\/loremflickr.com\/362\/180\/travel,italy\/?lock=43912",
                            "image_name": "",
                            "category": "gallery"
                        },
                        {
                            "id": 2,
                            "image": "https:\/\/loremflickr.com\/362\/180\/travel,italy\/?lock=58259",
                            "image_name": "",
                            "category": "gallery"
                        },
                        {
                            "id": 3,
                            "image": "https:\/\/loremflickr.com\/362\/180\/travel,italy\/?lock=54165",
                            "image_name": "",
                            "category": "gallery"
                        },
                        {
                            "id": 4,
                            "image": "https:\/\/loremflickr.com\/362\/180\/travel,italy\/?lock=71534",
                            "image_name": "",
                            "category": "gallery"
                        },
                        {
                            "id": 5,
                            "image": "https:\/\/loremflickr.com\/362\/180\/travel,italy\/?lock=62822",
                            "image_name": "",
                            "category": "gallery"
                        }
                    ]
                },
                "roles": [
                    "user",
                    "accomodation"
                ],
                "permissions": [],
                "stripeAccount": {
                    "user_id": 2,
                    "accountId": "acct_1ITV4XFPn57bOta4",
                    "chargeEnable": 1
                },
                "affiliation_code": "APRA0D",
                "subscription": {
                    "id": 2,
                    "active": 1,
                    "expirationDate": "2023-05-03",
                    "subscription": {
                        "id": 8,
                        "role": "touristGuide",
                        "type": "mega",
                        "price": 10000,
                        "monthPrice": 0,
                        "maxPost": "unlimited"
                    }
                }
            },
            "affiliate": {
                "id": 19,
                "profile": {
                    "user_id": 19,
                    "firstName": "Jermey",
                    "lastName": "Jenkins",
                    "gender": "F",
                    "birthDate": "1996-02-11",
                    "country_id": 120,
                    "city": "Port Guidofort",
                    "image": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=84268",
                    "description": "Quis praesentium illo ullam molestias soluta. Nisi atque doloribus voluptatem iusto ut esse. Est fuga ut molestias. Aspernatur earum porro est nemo itaque.",
                    "paymentMethod": "stripe",
                    "paymentOther": "aut",
                    "companionGrade": 0,
                    "roles": [
                        "user",
                        "traveler"
                    ],
                    "travelerTypes": [
                        {
                            "id": 3,
                            "value": "adventurer",
                            "label": "Adventurer"
                        }
                    ],
                    "languages": [
                        {
                            "id": 1,
                            "code": "en",
                            "name": "English"
                        }
                    ],
                    "natures": [
                        {
                            "id": 5,
                            "value": "foodandwine",
                            "label": "food and wine"
                        }
                    ],
                    "followers": 10,
                    "email": "private field",
                    "phoneNumber": "private field",
                    "fiscalCode": "private field",
                    "identityDoc": "private field"
                },
                "roles": [
                    "user",
                    "traveler"
                ],
                "permissions": [],
                "stripeAccount": null,
                "affiliation_code": "N8BKM5",
                "subscription": {
                    "id": 18,
                    "active": 1,
                    "expirationDate": "2023-03-10",
                    "subscription": {
                        "id": 1,
                        "role": "traveler",
                        "type": "free",
                        "price": 0,
                        "monthPrice": 0,
                        "maxPost": "unlimited"
                    }
                }
            },
            "redeemed": 0,
            "redeemable": null,
            "stripeDiscounts": [],
            "redeem_date": null
        },
        {
            "id": 20,
            "availments": "1",
            "promoter": {
                "id": 9,
                "profile": {
                    "user_id": 9,
                    "accomodationType": "mountain_retreat",
                    "accomodationName": "Nolan-BlickLLC",
                    "vatNumber": "9790226058978",
                    "registeredOffice": "6602 Foster Row Apt. 977\nHettingerview, UT 23111-5579",
                    "country_id": {
                        "id": 63,
                        "code": "DK",
                        "name": "Denmark",
                        "created_at": "2021-05-07 19:39:06",
                        "updated_at": "2021-05-07 19:39:06"
                    },
                    "province": "Turks and Caicos Islands",
                    "city": "Garricktown",
                    "address": "92545 Macejkovic Rue Suite 903\nIdellstad, NC 03228",
                    "latitude": "-30.125111",
                    "longitude": "-53.393493",
                    "cityTax": 20,
                    "phonePrefix": "+58",
                    "phoneNumber": "8389021817",
                    "mobilePrefix": "+86",
                    "mobileNumber": "5672747652",
                    "faxPrefix": "+16",
                    "faxNumber": "4095693004",
                    "contactEmail": "kieran11@hotmail.com",
                    "image": "https:\/\/loremflickr.com\/362\/180\/hotel\/?lock=86341",
                    "description": "Illo non numquam reiciendis omnis rerum rem. In at ut dolor sed et. Qui quaerat cumque ut. Voluptatibus corporis explicabo pariatur culpa.",
                    "recommendations": "Quod sit deserunt ab iusto enim. Aliquid et ipsam nisi id maiores. Sint qui fugiat sunt dicta voluptatibus ducimus. Ut qui et sint culpa. Recusandae commodi non omnis omnis tenetur quasi.",
                    "yearOfConstruction": 1981,
                    "lastRenovation": 1905,
                    "rooms": 8,
                    "nonSmokingRooms": 16,
                    "beds": 16,
                    "handicappedRooms": 19,
                    "suites": 17,
                    "plans": 13,
                    "H24CheckIn": 1,
                    "checkInHourStart": "20:16:25",
                    "checkInHourEnd": "07:52:07",
                    "checkOutHourStart": "23:22:59",
                    "checkOutHourEnd": "12:48:58",
                    "petsAllowed": 1,
                    "petsSize": "big",
                    "stars": "3",
                    "qualityMark": "Cum eos harum totam animi dolores saepe.",
                    "noClassification": 1,
                    "accomodationGrade": 0,
                    "roles": [
                        "user",
                        "accomodation"
                    ],
                    "roomPosts": 4,
                    "hotelServicesIncluded": [
                        {
                            "id": 30,
                            "group": "activities",
                            "value": "soccer",
                            "label": "Soccer"
                        },
                        {
                            "id": 49,
                            "group": "activities",
                            "value": "nature-trails-in-the-lagoon",
                            "label": "Nature trails in the lagoon"
                        },
                        {
                            "id": 53,
                            "group": "activities",
                            "value": "PADI-diving-school",
                            "label": "PADI diving school"
                        },
                        {
                            "id": 76,
                            "group": "catering-services",
                            "value": "ice-cream\/pastry-shop",
                            "label": "Ice cream \/ Pastry shop"
                        },
                        {
                            "id": 86,
                            "group": "parking-area",
                            "value": "public-parking-available-in-the-area",
                            "label": "Public parking available in the area"
                        },
                        {
                            "id": 95,
                            "group": "reception-services",
                            "value": "cash-desk",
                            "label": "Cash desk"
                        },
                        {
                            "id": 117,
                            "group": "entertainment",
                            "value": "nursery",
                            "label": "Nursery"
                        },
                        {
                            "id": 123,
                            "group": "cleaning-services",
                            "value": "shoe-shine",
                            "label": "Shoe shine"
                        },
                        {
                            "id": 130,
                            "group": "business-services",
                            "value": "spaces-for-meetings\/banquets",
                            "label": "Spaces for meetings\/banquets"
                        },
                        {
                            "id": 139,
                            "group": "security",
                            "value": "periodic-treatments",
                            "label": "Periodic treatments"
                        }
                    ],
                    "hotelServicesNotIncluded": [
                        {
                            "id": 24,
                            "group": "activities",
                            "value": "aquagym",
                            "label": "Aquagym",
                            "price": 78098
                        },
                        {
                            "id": 71,
                            "group": "open-spaces",
                            "value": "Terrace",
                            "label": "Terrace",
                            "price": 78098
                        },
                        {
                            "id": 72,
                            "group": "open-spaces",
                            "value": "Solarium terrace",
                            "label": "Solarium terrace",
                            "price": 78098
                        },
                        {
                            "id": 106,
                            "group": "reception-services",
                            "value": "concierge-service",
                            "label": "Concierge service",
                            "price": 78098
                        },
                        {
                            "id": 117,
                            "group": "entertainment",
                            "value": "nursery",
                            "label": "Nursery",
                            "price": 78098
                        },
                        {
                            "id": 151,
                            "group": "general-services",
                            "value": "carbon-monoxide-detector",
                            "label": "Carbon monoxide detector",
                            "price": 78098
                        },
                        {
                            "id": 156,
                            "group": "general-services",
                            "value": "hypoallergenic-solutions",
                            "label": "Hypoallergenic solutions",
                            "price": 78098
                        },
                        {
                            "id": 214,
                            "group": "transport",
                            "value": "shuttle-to-train-station",
                            "label": "Shuttle to train station",
                            "price": 78098
                        }
                    ],
                    "languages": [
                        {
                            "id": 1,
                            "code": "en",
                            "name": "English"
                        }
                    ],
                    "images": [
                        {
                            "id": 6,
                            "image": "https:\/\/loremflickr.com\/362\/180\/travel,italy\/?lock=98619",
                            "image_name": "",
                            "category": "gallery"
                        },
                        {
                            "id": 7,
                            "image": "https:\/\/loremflickr.com\/362\/180\/travel,italy\/?lock=87987",
                            "image_name": "",
                            "category": "gallery"
                        },
                        {
                            "id": 8,
                            "image": "https:\/\/loremflickr.com\/362\/180\/travel,italy\/?lock=91287",
                            "image_name": "",
                            "category": "gallery"
                        },
                        {
                            "id": 9,
                            "image": "https:\/\/loremflickr.com\/362\/180\/travel,italy\/?lock=76676",
                            "image_name": "",
                            "category": "gallery"
                        },
                        {
                            "id": 10,
                            "image": "https:\/\/loremflickr.com\/362\/180\/travel,italy\/?lock=67002",
                            "image_name": "",
                            "category": "gallery"
                        }
                    ]
                },
                "roles": [
                    "user",
                    "accomodation"
                ],
                "permissions": [],
                "stripeAccount": {
                    "user_id": 9,
                    "accountId": "acct_1ITV4XFPn57bOta4",
                    "chargeEnable": 1
                },
                "affiliation_code": "KESFO6",
                "subscription": {
                    "id": 8,
                    "active": 1,
                    "expirationDate": "2021-09-06",
                    "subscription": {
                        "id": 8,
                        "role": "touristGuide",
                        "type": "mega",
                        "price": 10000,
                        "monthPrice": 0,
                        "maxPost": "unlimited"
                    }
                }
            },
            "affiliate": {
                "id": 21,
                "profile": {
                    "user_id": 21,
                    "firstName": "Jazmyne",
                    "lastName": "Schuster",
                    "gender": "M",
                    "birthDate": "1989-03-22",
                    "country_id": 192,
                    "city": "Schoenland",
                    "image": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=89304",
                    "description": "Quo magni temporibus corrupti similique voluptatem. Optio voluptatem dolorem officiis recusandae est ut quae. Quia adipisci non esse ea. Quae est voluptatem ab in qui. Voluptatem sint at nobis non.",
                    "paymentMethod": "both",
                    "paymentOther": "distinctio",
                    "companionGrade": 0,
                    "roles": [
                        "user",
                        "traveler"
                    ],
                    "travelerTypes": [
                        {
                            "id": 9,
                            "value": "luxury",
                            "label": "Luxury"
                        }
                    ],
                    "languages": [
                        {
                            "id": 1,
                            "code": "en",
                            "name": "English"
                        }
                    ],
                    "natures": [
                        {
                            "id": 2,
                            "value": "work",
                            "label": "Work"
                        },
                        {
                            "id": 5,
                            "value": "foodandwine",
                            "label": "food and wine"
                        }
                    ],
                    "followers": 9,
                    "email": "private field",
                    "phoneNumber": "private field",
                    "fiscalCode": "private field",
                    "identityDoc": "private field"
                },
                "roles": [
                    "user",
                    "traveler"
                ],
                "permissions": [],
                "stripeAccount": null,
                "affiliation_code": "JPA2AI",
                "subscription": {
                    "id": 20,
                    "active": 1,
                    "expirationDate": "2022-09-19",
                    "subscription": {
                        "id": 1,
                        "role": "traveler",
                        "type": "free",
                        "price": 0,
                        "monthPrice": 0,
                        "maxPost": "unlimited"
                    }
                }
            },
            "redeemed": 1,
            "redeemable": {
                "id": 20,
                "user": {
                    "id": 21,
                    "profile": {
                        "user_id": 21,
                        "firstName": "Jazmyne",
                        "lastName": "Schuster",
                        "gender": "M",
                        "birthDate": "1989-03-22",
                        "country_id": 192,
                        "city": "Schoenland",
                        "image": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=89304",
                        "description": "Quo magni temporibus corrupti similique voluptatem. Optio voluptatem dolorem officiis recusandae est ut quae. Quia adipisci non esse ea. Quae est voluptatem ab in qui. Voluptatem sint at nobis non.",
                        "paymentMethod": "both",
                        "paymentOther": "distinctio",
                        "companionGrade": 0,
                        "roles": [
                            "user",
                            "traveler"
                        ],
                        "travelerTypes": [
                            {
                                "id": 9,
                                "value": "luxury",
                                "label": "Luxury"
                            }
                        ],
                        "languages": [
                            {
                                "id": 1,
                                "code": "en",
                                "name": "English"
                            }
                        ],
                        "natures": [
                            {
                                "id": 2,
                                "value": "work",
                                "label": "Work"
                            },
                            {
                                "id": 5,
                                "value": "foodandwine",
                                "label": "food and wine"
                            }
                        ],
                        "followers": 9,
                        "email": "private field",
                        "phoneNumber": "private field",
                        "fiscalCode": "private field",
                        "identityDoc": "private field"
                    },
                    "roles": [
                        "user",
                        "traveler"
                    ],
                    "permissions": [],
                    "stripeAccount": null,
                    "affiliation_code": "JPA2AI",
                    "subscription": {
                        "id": 20,
                        "active": 1,
                        "expirationDate": "2022-09-19",
                        "subscription": {
                            "id": 1,
                            "role": "traveler",
                            "type": "free",
                            "price": 0,
                            "monthPrice": 0,
                            "maxPost": "unlimited"
                        }
                    }
                },
                "active": 1,
                "expirationDate": "2022-09-19",
                "subscription": {
                    "id": 1,
                    "role": "traveler",
                    "type": "free",
                    "price": 0,
                    "monthPrice": 0,
                    "maxPost": "unlimited"
                }
            },
            "stripeDiscounts": [],
            "redeem_date": "2021-05-07 19:40:53"
        }
    ],
    "discountNunber": 1
}

HTTP Request

GET /api/AffiliationPrograms/AffiliationProgram/{id}

Insert AffiliationProgram

Insert AffiliationPrograms

Example request:

curl -X POST "http://api.doitrip.com/api/AffiliationPrograms/AffiliationProgram" \
    -H "Content-Type: application/json" \
    -d '{"name":"natus","description":"natus","discount":428758,"uses":428758,"affiliation_program_token":"natus","affiliationProgramSubscriptions":[{"id":"natus"}],"discountNunber":428758}'
const url = new URL("http://api.doitrip.com/api/AffiliationPrograms/AffiliationProgram");

    let params = {
            "name": "natus",
            "description": "natus",
            "discount": "428758",
            "uses": "428758",
            "affiliation_program_token": "natus",
            "affiliationProgramSubscriptions": "natus",
            "affiliationProgramSubscriptions.*.id": "natus",
            "discountNunber": "428758",
        };
    Object.keys(params).forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
}

let body = {
    "name": "natus",
    "description": "natus",
    "discount": 428758,
    "uses": 428758,
    "affiliation_program_token": "natus",
    "affiliationProgramSubscriptions": [
        {
            "id": "natus"
        }
    ],
    "discountNunber": 428758
}

fetch(url, {
    method: "POST",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "id": 1,
    "name": "Bring a Friend",
    "description": "affiliazione di base fra utenti",
    "discount": 10,
    "uses": -1,
    "affiliation_program_token": null,
    "created_at": "2021-05-07T19:40:38.000000Z",
    "affiliations": [
        {
            "id": 2,
            "availments": "1",
            "promoter": {
                "id": 2,
                "profile": {
                    "user_id": 2,
                    "accomodationType": "alpine_refuge",
                    "accomodationName": "Reilly, Stamm and VonRuedenand Sons",
                    "vatNumber": "8765373403026",
                    "registeredOffice": "7750 Paxton Park\nGersonberg, KY 10487",
                    "country_id": {
                        "id": 184,
                        "code": "QA",
                        "name": "Qatar",
                        "created_at": "2021-05-07 19:39:09",
                        "updated_at": "2021-05-07 19:39:09"
                    },
                    "province": "Trinidad and Tobago",
                    "city": "New Clark",
                    "address": "685 Harris Trail Suite 721\nEast Julietfort, ME 72941-6111",
                    "latitude": "-79.336225",
                    "longitude": "136.131302",
                    "cityTax": 13,
                    "phonePrefix": "+83",
                    "phoneNumber": "2893022859",
                    "mobilePrefix": "+22",
                    "mobileNumber": "9169087732",
                    "faxPrefix": "+73",
                    "faxNumber": "6600753559",
                    "contactEmail": "terry.delaney@gmail.com",
                    "image": "https:\/\/loremflickr.com\/362\/180\/hotel\/?lock=63032",
                    "description": "Quidem voluptas atque nulla necessitatibus magni. Nihil quis non optio veniam dolores quod perspiciatis.",
                    "recommendations": "Non possimus voluptas beatae quaerat eos qui. Fugiat excepturi atque qui esse ipsum. Corrupti libero est atque.",
                    "yearOfConstruction": 1939,
                    "lastRenovation": 1925,
                    "rooms": 6,
                    "nonSmokingRooms": 6,
                    "beds": 18,
                    "handicappedRooms": 8,
                    "suites": 5,
                    "plans": 13,
                    "H24CheckIn": 1,
                    "checkInHourStart": "17:38:26",
                    "checkInHourEnd": "03:33:26",
                    "checkOutHourStart": "14:11:05",
                    "checkOutHourEnd": "18:05:09",
                    "petsAllowed": 0,
                    "petsSize": "big",
                    "stars": "2",
                    "qualityMark": "Rem est ipsam voluptatem ut ut quibusdam voluptas.",
                    "noClassification": 0,
                    "accomodationGrade": 0,
                    "roles": [
                        "user",
                        "accomodation"
                    ],
                    "roomPosts": 8,
                    "hotelServicesIncluded": [
                        {
                            "id": 32,
                            "group": "activities",
                            "value": "tennis-court",
                            "label": "Tennis court"
                        },
                        {
                            "id": 45,
                            "group": "activities",
                            "value": "Nightclub\/DJ",
                            "label": "Nightclub \/ DJ"
                        },
                        {
                            "id": 56,
                            "group": "activities",
                            "value": "snorkeling",
                            "label": "Snorkeling"
                        },
                        {
                            "id": 58,
                            "group": "activities",
                            "value": "equipped-and-supervised-beach",
                            "label": "Equipped and supervised beach"
                        },
                        {
                            "id": 121,
                            "group": "entertainment",
                            "value": "theater",
                            "label": "Theater"
                        },
                        {
                            "id": 126,
                            "group": "cleaning-services",
                            "value": "ironing-service",
                            "label": "Ironing service"
                        },
                        {
                            "id": 130,
                            "group": "business-services",
                            "value": "spaces-for-meetings\/banquets",
                            "label": "Spaces for meetings\/banquets"
                        },
                        {
                            "id": 137,
                            "group": "security",
                            "value": "CCTV-cameras-outside-the-facility",
                            "label": "CCTV cameras outside the facility"
                        }
                    ],
                    "hotelServicesNotIncluded": [
                        {
                            "id": 49,
                            "group": "activities",
                            "value": "nature-trails-in-the-lagoon",
                            "label": "Nature trails in the lagoon",
                            "price": 57255
                        },
                        {
                            "id": 107,
                            "group": "reception-services",
                            "value": "atm-machine",
                            "label": "ATM machine",
                            "price": 57255
                        },
                        {
                            "id": 168,
                            "group": "wellness-services",
                            "value": "body-bandages",
                            "label": "Body bandages",
                            "price": 57255
                        },
                        {
                            "id": 179,
                            "group": "wellness-services",
                            "value": "foot-massage",
                            "label": "Foot massage",
                            "price": 57255
                        }
                    ],
                    "languages": [
                        {
                            "id": 1,
                            "code": "en",
                            "name": "English"
                        },
                        {
                            "id": 2,
                            "code": "it",
                            "name": "Italian"
                        }
                    ],
                    "images": [
                        {
                            "id": 1,
                            "image": "https:\/\/loremflickr.com\/362\/180\/travel,italy\/?lock=43912",
                            "image_name": "",
                            "category": "gallery"
                        },
                        {
                            "id": 2,
                            "image": "https:\/\/loremflickr.com\/362\/180\/travel,italy\/?lock=58259",
                            "image_name": "",
                            "category": "gallery"
                        },
                        {
                            "id": 3,
                            "image": "https:\/\/loremflickr.com\/362\/180\/travel,italy\/?lock=54165",
                            "image_name": "",
                            "category": "gallery"
                        },
                        {
                            "id": 4,
                            "image": "https:\/\/loremflickr.com\/362\/180\/travel,italy\/?lock=71534",
                            "image_name": "",
                            "category": "gallery"
                        },
                        {
                            "id": 5,
                            "image": "https:\/\/loremflickr.com\/362\/180\/travel,italy\/?lock=62822",
                            "image_name": "",
                            "category": "gallery"
                        }
                    ]
                },
                "roles": [
                    "user",
                    "accomodation"
                ],
                "permissions": [],
                "stripeAccount": {
                    "user_id": 2,
                    "accountId": "acct_1ITV4XFPn57bOta4",
                    "chargeEnable": 1
                },
                "affiliation_code": "APRA0D",
                "subscription": {
                    "id": 2,
                    "active": 1,
                    "expirationDate": "2023-05-03",
                    "subscription": {
                        "id": 8,
                        "role": "touristGuide",
                        "type": "mega",
                        "price": 10000,
                        "monthPrice": 0,
                        "maxPost": "unlimited"
                    }
                }
            },
            "affiliate": {
                "id": 3,
                "profile": {
                    "user_id": 3,
                    "companyType": "society",
                    "companyName": "Pouros-GusikowskiGroup",
                    "firstName": "private field",
                    "lastName": "private field",
                    "country_id": 96,
                    "city": "Lake Davonchester",
                    "province": null,
                    "address": null,
                    "registeredOffice": "751 Brayan Via Suite 806\nChanelborough, CO 34207-4693",
                    "image": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=32707",
                    "description": "Optional non-volatile emulation",
                    "paymentMethod": "stripe",
                    "paymentOther": "est",
                    "roles": [
                        "user",
                        "accomodationManager"
                    ],
                    "followers": 9,
                    "fiscalCode": "private field",
                    "vatNumber": "private field",
                    "phonePrefix": "private field",
                    "phoneNumber": "private field",
                    "mobilePrefix": "private field",
                    "mobileNumber": "private field",
                    "faxPrefix": "private field",
                    "faxNumber": "private field",
                    "internetSite": "private field",
                    "pecEmail": "private field",
                    "contactEmail": "private field",
                    "chamberCommerceRegistration": "private field",
                    "identityDoc": "private field",
                    "fiscalCodeDoc": "private field"
                },
                "roles": [
                    "user",
                    "accomodationManager"
                ],
                "permissions": [],
                "stripeAccount": {
                    "user_id": 3,
                    "accountId": "acct_1ITV4XFPn57bOta4",
                    "chargeEnable": 1
                },
                "affiliation_code": "W6BD2M",
                "subscription": null
            },
            "redeemed": 0,
            "redeemable": null,
            "stripeDiscounts": [],
            "redeem_date": null
        },
        {
            "id": 4,
            "availments": "1",
            "promoter": {
                "id": 1,
                "profile": {
                    "user_id": 1,
                    "firstName": "Sylvester",
                    "lastName": "Dach",
                    "gender": "F",
                    "birthDate": "1973-01-14",
                    "country_id": 14,
                    "city": "Schmelerside",
                    "image": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=31482",
                    "description": "Temporibus molestiae fuga voluptatem sed rerum dolor. Expedita doloremque qui ut est. Quos illo ea rerum.",
                    "paymentMethod": "stripe",
                    "paymentOther": "omnis",
                    "companionGrade": 0,
                    "roles": [
                        "admin",
                        "user",
                        "traveler"
                    ],
                    "travelerTypes": [
                        {
                            "id": 7,
                            "value": "environmentalist",
                            "label": "Environmentalist"
                        },
                        {
                            "id": 10,
                            "value": "offbeat",
                            "label": "offbeat"
                        }
                    ],
                    "languages": [
                        {
                            "id": 1,
                            "code": "en",
                            "name": "English"
                        },
                        {
                            "id": 2,
                            "code": "it",
                            "name": "Italian"
                        }
                    ],
                    "natures": [
                        {
                            "id": 2,
                            "value": "work",
                            "label": "Work"
                        }
                    ],
                    "followers": 9,
                    "email": "private field",
                    "phoneNumber": "private field",
                    "fiscalCode": "private field",
                    "identityDoc": "private field"
                },
                "roles": [
                    "admin",
                    "user",
                    "traveler"
                ],
                "permissions": [],
                "stripeAccount": null,
                "affiliation_code": "NXA6HB",
                "subscription": null
            },
            "affiliate": {
                "id": 5,
                "profile": {
                    "user_id": 5,
                    "companyType": "society",
                    "companyName": "Feest, Jast and RippinLtd",
                    "firstName": "private field",
                    "lastName": "private field",
                    "country_id": 136,
                    "city": "Gennaroland",
                    "province": null,
                    "address": null,
                    "registeredOffice": "3731 Kuhlman Loaf\nPort Ada, NV 90702",
                    "image": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=41686",
                    "description": "Centralized interactive opensystem",
                    "paymentMethod": "other",
                    "paymentOther": "sit",
                    "tourOperatorGrade": 0,
                    "roles": [
                        "user",
                        "tourOperator"
                    ],
                    "tourPosts": 10,
                    "followers": 10,
                    "tourServices": [
                        {
                            "id": 11,
                            "value": "animation-and-entertainment-activities",
                            "label": "Animation and entertainment activities"
                        },
                        {
                            "id": 51,
                            "value": "hot-chocolate-or-tea",
                            "label": "Hot chocolate or tea"
                        },
                        {
                            "id": 70,
                            "value": "excursions",
                            "label": "Excursions"
                        },
                        {
                            "id": 89,
                            "value": "Tips",
                            "label": "Tips"
                        }
                    ],
                    "fiscalCode": "private field",
                    "vatNumber": "private field",
                    "phonePrefix": "private field",
                    "phoneNumber": "private field",
                    "mobilePrefix": "private field",
                    "mobileNumber": "private field",
                    "faxPrefix": "private field",
                    "faxNumber": "private field",
                    "internetSite": "private field",
                    "pecEmail": "private field",
                    "contactEmail": "private field",
                    "chamberCommerceRegistration": "private field",
                    "identityDoc": "private field",
                    "fiscalCodeDoc": "private field"
                },
                "roles": [
                    "user",
                    "tourOperator"
                ],
                "permissions": [],
                "stripeAccount": {
                    "user_id": 5,
                    "accountId": "acct_1ITV4XFPn57bOta4",
                    "chargeEnable": 1
                },
                "affiliation_code": "94HV08",
                "subscription": {
                    "id": 4,
                    "active": 1,
                    "expirationDate": "2022-10-11",
                    "subscription": {
                        "id": 8,
                        "role": "touristGuide",
                        "type": "mega",
                        "price": 10000,
                        "monthPrice": 0,
                        "maxPost": "unlimited"
                    }
                }
            },
            "redeemed": 1,
            "redeemable": {
                "id": 4,
                "user": {
                    "id": 5,
                    "profile": {
                        "user_id": 5,
                        "companyType": "society",
                        "companyName": "Feest, Jast and RippinLtd",
                        "firstName": "private field",
                        "lastName": "private field",
                        "country_id": 136,
                        "city": "Gennaroland",
                        "province": null,
                        "address": null,
                        "registeredOffice": "3731 Kuhlman Loaf\nPort Ada, NV 90702",
                        "image": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=41686",
                        "description": "Centralized interactive opensystem",
                        "paymentMethod": "other",
                        "paymentOther": "sit",
                        "tourOperatorGrade": 0,
                        "roles": [
                            "user",
                            "tourOperator"
                        ],
                        "tourPosts": 10,
                        "followers": 10,
                        "tourServices": [
                            {
                                "id": 11,
                                "value": "animation-and-entertainment-activities",
                                "label": "Animation and entertainment activities"
                            },
                            {
                                "id": 51,
                                "value": "hot-chocolate-or-tea",
                                "label": "Hot chocolate or tea"
                            },
                            {
                                "id": 70,
                                "value": "excursions",
                                "label": "Excursions"
                            },
                            {
                                "id": 89,
                                "value": "Tips",
                                "label": "Tips"
                            }
                        ],
                        "fiscalCode": "private field",
                        "vatNumber": "private field",
                        "phonePrefix": "private field",
                        "phoneNumber": "private field",
                        "mobilePrefix": "private field",
                        "mobileNumber": "private field",
                        "faxPrefix": "private field",
                        "faxNumber": "private field",
                        "internetSite": "private field",
                        "pecEmail": "private field",
                        "contactEmail": "private field",
                        "chamberCommerceRegistration": "private field",
                        "identityDoc": "private field",
                        "fiscalCodeDoc": "private field"
                    },
                    "roles": [
                        "user",
                        "tourOperator"
                    ],
                    "permissions": [],
                    "stripeAccount": {
                        "user_id": 5,
                        "accountId": "acct_1ITV4XFPn57bOta4",
                        "chargeEnable": 1
                    },
                    "affiliation_code": "94HV08",
                    "subscription": {
                        "id": 4,
                        "active": 1,
                        "expirationDate": "2022-10-11",
                        "subscription": {
                            "id": 8,
                            "role": "touristGuide",
                            "type": "mega",
                            "price": 10000,
                            "monthPrice": 0,
                            "maxPost": "unlimited"
                        }
                    }
                },
                "active": 1,
                "expirationDate": "2022-10-11",
                "subscription": {
                    "id": 8,
                    "role": "touristGuide",
                    "type": "mega",
                    "price": 10000,
                    "monthPrice": 0,
                    "maxPost": "unlimited"
                }
            },
            "stripeDiscounts": [],
            "redeem_date": "2021-05-07 19:40:46"
        },
        {
            "id": 7,
            "availments": "1",
            "promoter": {
                "id": 5,
                "profile": {
                    "user_id": 5,
                    "companyType": "society",
                    "companyName": "Feest, Jast and RippinLtd",
                    "firstName": "private field",
                    "lastName": "private field",
                    "country_id": 136,
                    "city": "Gennaroland",
                    "province": null,
                    "address": null,
                    "registeredOffice": "3731 Kuhlman Loaf\nPort Ada, NV 90702",
                    "image": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=41686",
                    "description": "Centralized interactive opensystem",
                    "paymentMethod": "other",
                    "paymentOther": "sit",
                    "tourOperatorGrade": 0,
                    "roles": [
                        "user",
                        "tourOperator"
                    ],
                    "tourPosts": 10,
                    "followers": 10,
                    "tourServices": [
                        {
                            "id": 11,
                            "value": "animation-and-entertainment-activities",
                            "label": "Animation and entertainment activities"
                        },
                        {
                            "id": 51,
                            "value": "hot-chocolate-or-tea",
                            "label": "Hot chocolate or tea"
                        },
                        {
                            "id": 70,
                            "value": "excursions",
                            "label": "Excursions"
                        },
                        {
                            "id": 89,
                            "value": "Tips",
                            "label": "Tips"
                        }
                    ],
                    "fiscalCode": "private field",
                    "vatNumber": "private field",
                    "phonePrefix": "private field",
                    "phoneNumber": "private field",
                    "mobilePrefix": "private field",
                    "mobileNumber": "private field",
                    "faxPrefix": "private field",
                    "faxNumber": "private field",
                    "internetSite": "private field",
                    "pecEmail": "private field",
                    "contactEmail": "private field",
                    "chamberCommerceRegistration": "private field",
                    "identityDoc": "private field",
                    "fiscalCodeDoc": "private field"
                },
                "roles": [
                    "user",
                    "tourOperator"
                ],
                "permissions": [],
                "stripeAccount": {
                    "user_id": 5,
                    "accountId": "acct_1ITV4XFPn57bOta4",
                    "chargeEnable": 1
                },
                "affiliation_code": "94HV08",
                "subscription": {
                    "id": 4,
                    "active": 1,
                    "expirationDate": "2022-10-11",
                    "subscription": {
                        "id": 8,
                        "role": "touristGuide",
                        "type": "mega",
                        "price": 10000,
                        "monthPrice": 0,
                        "maxPost": "unlimited"
                    }
                }
            },
            "affiliate": {
                "id": 8,
                "profile": {
                    "user_id": 8,
                    "firstName": "Jackson",
                    "lastName": "Pfannerstill",
                    "gender": "F",
                    "birthDate": "1979-10-22",
                    "country_id": 236,
                    "city": "South Jackelineside",
                    "image": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=80789",
                    "description": "Eaque quasi voluptatem sed. Nobis dolor sed est quam. Quia architecto eaque debitis et. Reiciendis quaerat nam et vitae.",
                    "paymentMethod": "both",
                    "paymentOther": "eum",
                    "companionGrade": 0,
                    "roles": [
                        "user",
                        "traveler"
                    ],
                    "travelerTypes": [
                        {
                            "id": 4,
                            "value": "cultural",
                            "label": "Cultural"
                        }
                    ],
                    "languages": [
                        {
                            "id": 1,
                            "code": "en",
                            "name": "English"
                        },
                        {
                            "id": 2,
                            "code": "it",
                            "name": "Italian"
                        }
                    ],
                    "natures": [
                        {
                            "id": 1,
                            "value": "beach",
                            "label": "Beach & Sea"
                        }
                    ],
                    "followers": 11,
                    "email": "private field",
                    "phoneNumber": "private field",
                    "fiscalCode": "private field",
                    "identityDoc": "private field"
                },
                "roles": [
                    "user",
                    "traveler"
                ],
                "permissions": [],
                "stripeAccount": null,
                "affiliation_code": "1EJVZW",
                "subscription": {
                    "id": 7,
                    "active": 1,
                    "expirationDate": "2021-12-18",
                    "subscription": {
                        "id": 1,
                        "role": "traveler",
                        "type": "free",
                        "price": 0,
                        "monthPrice": 0,
                        "maxPost": "unlimited"
                    }
                }
            },
            "redeemed": 1,
            "redeemable": {
                "id": 7,
                "user": {
                    "id": 8,
                    "profile": {
                        "user_id": 8,
                        "firstName": "Jackson",
                        "lastName": "Pfannerstill",
                        "gender": "F",
                        "birthDate": "1979-10-22",
                        "country_id": 236,
                        "city": "South Jackelineside",
                        "image": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=80789",
                        "description": "Eaque quasi voluptatem sed. Nobis dolor sed est quam. Quia architecto eaque debitis et. Reiciendis quaerat nam et vitae.",
                        "paymentMethod": "both",
                        "paymentOther": "eum",
                        "companionGrade": 0,
                        "roles": [
                            "user",
                            "traveler"
                        ],
                        "travelerTypes": [
                            {
                                "id": 4,
                                "value": "cultural",
                                "label": "Cultural"
                            }
                        ],
                        "languages": [
                            {
                                "id": 1,
                                "code": "en",
                                "name": "English"
                            },
                            {
                                "id": 2,
                                "code": "it",
                                "name": "Italian"
                            }
                        ],
                        "natures": [
                            {
                                "id": 1,
                                "value": "beach",
                                "label": "Beach & Sea"
                            }
                        ],
                        "followers": 11,
                        "email": "private field",
                        "phoneNumber": "private field",
                        "fiscalCode": "private field",
                        "identityDoc": "private field"
                    },
                    "roles": [
                        "user",
                        "traveler"
                    ],
                    "permissions": [],
                    "stripeAccount": null,
                    "affiliation_code": "1EJVZW",
                    "subscription": {
                        "id": 7,
                        "active": 1,
                        "expirationDate": "2021-12-18",
                        "subscription": {
                            "id": 1,
                            "role": "traveler",
                            "type": "free",
                            "price": 0,
                            "monthPrice": 0,
                            "maxPost": "unlimited"
                        }
                    }
                },
                "active": 1,
                "expirationDate": "2021-12-18",
                "subscription": {
                    "id": 1,
                    "role": "traveler",
                    "type": "free",
                    "price": 0,
                    "monthPrice": 0,
                    "maxPost": "unlimited"
                }
            },
            "stripeDiscounts": [],
            "redeem_date": "2021-05-07 19:40:47"
        },
        {
            "id": 12,
            "availments": "1",
            "promoter": {
                "id": 1,
                "profile": {
                    "user_id": 1,
                    "firstName": "Sylvester",
                    "lastName": "Dach",
                    "gender": "F",
                    "birthDate": "1973-01-14",
                    "country_id": 14,
                    "city": "Schmelerside",
                    "image": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=31482",
                    "description": "Temporibus molestiae fuga voluptatem sed rerum dolor. Expedita doloremque qui ut est. Quos illo ea rerum.",
                    "paymentMethod": "stripe",
                    "paymentOther": "omnis",
                    "companionGrade": 0,
                    "roles": [
                        "admin",
                        "user",
                        "traveler"
                    ],
                    "travelerTypes": [
                        {
                            "id": 7,
                            "value": "environmentalist",
                            "label": "Environmentalist"
                        },
                        {
                            "id": 10,
                            "value": "offbeat",
                            "label": "offbeat"
                        }
                    ],
                    "languages": [
                        {
                            "id": 1,
                            "code": "en",
                            "name": "English"
                        },
                        {
                            "id": 2,
                            "code": "it",
                            "name": "Italian"
                        }
                    ],
                    "natures": [
                        {
                            "id": 2,
                            "value": "work",
                            "label": "Work"
                        }
                    ],
                    "followers": 9,
                    "email": "private field",
                    "phoneNumber": "private field",
                    "fiscalCode": "private field",
                    "identityDoc": "private field"
                },
                "roles": [
                    "admin",
                    "user",
                    "traveler"
                ],
                "permissions": [],
                "stripeAccount": null,
                "affiliation_code": "NXA6HB",
                "subscription": null
            },
            "affiliate": {
                "id": 13,
                "profile": {
                    "user_id": 13,
                    "firstName": "Lola",
                    "lastName": "Waters",
                    "gender": "F",
                    "birthDate": "1981-03-26",
                    "country_id": 53,
                    "city": "Dillanside",
                    "image": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=68357",
                    "description": "Qui nesciunt voluptatibus quia harum ipsa in voluptatem. Sequi id iure sint aliquam ipsam. Facere id eveniet fugiat laudantium voluptas.",
                    "paymentMethod": "stripe",
                    "paymentOther": "tempore",
                    "companionGrade": 0,
                    "roles": [
                        "user",
                        "traveler"
                    ],
                    "travelerTypes": [
                        {
                            "id": 4,
                            "value": "cultural",
                            "label": "Cultural"
                        }
                    ],
                    "languages": [
                        {
                            "id": 1,
                            "code": "en",
                            "name": "English"
                        },
                        {
                            "id": 2,
                            "code": "it",
                            "name": "Italian"
                        }
                    ],
                    "natures": [
                        {
                            "id": 3,
                            "value": "mountain",
                            "label": "Mountain"
                        }
                    ],
                    "followers": 8,
                    "email": "private field",
                    "phoneNumber": "private field",
                    "fiscalCode": "private field",
                    "identityDoc": "private field"
                },
                "roles": [
                    "user",
                    "traveler"
                ],
                "permissions": [],
                "stripeAccount": null,
                "affiliation_code": "WE8U4C",
                "subscription": null
            },
            "redeemed": 1,
            "redeemable": {
                "id": 12,
                "user": {
                    "id": 13,
                    "profile": {
                        "user_id": 13,
                        "firstName": "Lola",
                        "lastName": "Waters",
                        "gender": "F",
                        "birthDate": "1981-03-26",
                        "country_id": 53,
                        "city": "Dillanside",
                        "image": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=68357",
                        "description": "Qui nesciunt voluptatibus quia harum ipsa in voluptatem. Sequi id iure sint aliquam ipsam. Facere id eveniet fugiat laudantium voluptas.",
                        "paymentMethod": "stripe",
                        "paymentOther": "tempore",
                        "companionGrade": 0,
                        "roles": [
                            "user",
                            "traveler"
                        ],
                        "travelerTypes": [
                            {
                                "id": 4,
                                "value": "cultural",
                                "label": "Cultural"
                            }
                        ],
                        "languages": [
                            {
                                "id": 1,
                                "code": "en",
                                "name": "English"
                            },
                            {
                                "id": 2,
                                "code": "it",
                                "name": "Italian"
                            }
                        ],
                        "natures": [
                            {
                                "id": 3,
                                "value": "mountain",
                                "label": "Mountain"
                            }
                        ],
                        "followers": 8,
                        "email": "private field",
                        "phoneNumber": "private field",
                        "fiscalCode": "private field",
                        "identityDoc": "private field"
                    },
                    "roles": [
                        "user",
                        "traveler"
                    ],
                    "permissions": [],
                    "stripeAccount": null,
                    "affiliation_code": "WE8U4C",
                    "subscription": null
                },
                "active": 0,
                "expirationDate": "2021-06-05",
                "subscription": {
                    "id": 1,
                    "role": "traveler",
                    "type": "free",
                    "price": 0,
                    "monthPrice": 0,
                    "maxPost": "unlimited"
                }
            },
            "stripeDiscounts": [],
            "redeem_date": "2021-05-07 19:40:50"
        },
        {
            "id": 14,
            "availments": "1",
            "promoter": {
                "id": 10,
                "profile": {
                    "user_id": 10,
                    "accomodationType": "study_stay_center",
                    "accomodationName": "Kassulke LtdInc",
                    "vatNumber": "7003167893716",
                    "registeredOffice": "72528 Rosalinda Roads Apt. 645\nReganport, NY 45366",
                    "country_id": {
                        "id": 234,
                        "code": "TM",
                        "name": "Turkmenistan",
                        "created_at": "2021-05-07 19:39:11",
                        "updated_at": "2021-05-07 19:39:11"
                    },
                    "province": "Pakistan",
                    "city": "North Ginaborough",
                    "address": "5976 Kautzer Fall Suite 515\nNakiaville, RI 55062",
                    "latitude": "-52.295971",
                    "longitude": "129.899492",
                    "cityTax": 7,
                    "phonePrefix": "+16",
                    "phoneNumber": "8009906162",
                    "mobilePrefix": "+09",
                    "mobileNumber": "4317749406",
                    "faxPrefix": "+44",
                    "faxNumber": "1003365484",
                    "contactEmail": "harley58@thiel.com",
                    "image": "https:\/\/loremflickr.com\/362\/180\/hotel\/?lock=88231",
                    "description": "Repudiandae quis ut voluptatibus repellendus laboriosam iure aut. Voluptas fugiat eaque magnam rerum ratione. Et qui unde tempore optio unde. Cupiditate labore voluptas quaerat dolorem fuga sint.",
                    "recommendations": "Tempora voluptatem rerum consequatur hic ducimus reiciendis. Distinctio magni quo blanditiis inventore rerum. Iure adipisci reprehenderit iure ipsum et.",
                    "yearOfConstruction": 2000,
                    "lastRenovation": 1967,
                    "rooms": 7,
                    "nonSmokingRooms": 9,
                    "beds": 16,
                    "handicappedRooms": 5,
                    "suites": 6,
                    "plans": 11,
                    "H24CheckIn": 1,
                    "checkInHourStart": "22:34:30",
                    "checkInHourEnd": "20:52:49",
                    "checkOutHourStart": "02:55:50",
                    "checkOutHourEnd": "19:28:44",
                    "petsAllowed": 1,
                    "petsSize": "medium",
                    "stars": "1",
                    "qualityMark": "Aspernatur officiis neque ut sit sit sit iure.",
                    "noClassification": 0,
                    "accomodationGrade": 0,
                    "roles": [
                        "user",
                        "accomodation"
                    ],
                    "roomPosts": 8,
                    "hotelServicesIncluded": [
                        {
                            "id": 1,
                            "group": "accessibility",
                            "value": "wheelchair-accessible",
                            "label": "Wheelchair accessible"
                        },
                        {
                            "id": 8,
                            "group": "accessibility",
                            "value": "toilet-with-grab-bars",
                            "label": "Toilet with grab bars"
                        },
                        {
                            "id": 48,
                            "group": "activities",
                            "value": "inflatable-playground",
                            "label": "Inflatable playground"
                        },
                        {
                            "id": 117,
                            "group": "entertainment",
                            "value": "nursery",
                            "label": "Nursery"
                        },
                        {
                            "id": 122,
                            "group": "cleaning-services",
                            "value": "dry-wash",
                            "label": "Dry wash"
                        },
                        {
                            "id": 169,
                            "group": "wellness-services",
                            "value": "depilation-with-wax",
                            "label": "Depilation with wax"
                        }
                    ],
                    "hotelServicesNotIncluded": [
                        {
                            "id": 29,
                            "group": "activities",
                            "value": "bowling",
                            "label": "Bowling",
                            "price": 72419
                        },
                        {
                            "id": 76,
                            "group": "catering-services",
                            "value": "ice-cream\/pastry-shop",
                            "label": "Ice cream \/ Pastry shop",
                            "price": 72419
                        },
                        {
                            "id": 113,
                            "group": "entertainment",
                            "value": "dance pub",
                            "label": "Dance pub",
                            "price": 72419
                        },
                        {
                            "id": 191,
                            "group": "wellness-services",
                            "value": "deck-chairs\/loungers",
                            "label": "Deck chairs \/ loungers",
                            "price": 72419
                        },
                        {
                            "id": 201,
                            "group": "wellness-services",
                            "value": "facial-treatments",
                            "label": "Facial treatments",
                            "price": 72419
                        }
                    ],
                    "languages": [
                        {
                            "id": 1,
                            "code": "en",
                            "name": "English"
                        },
                        {
                            "id": 2,
                            "code": "it",
                            "name": "Italian"
                        }
                    ],
                    "images": [
                        {
                            "id": 11,
                            "image": "https:\/\/loremflickr.com\/362\/180\/travel,italy\/?lock=49840",
                            "image_name": "",
                            "category": "gallery"
                        },
                        {
                            "id": 12,
                            "image": "https:\/\/loremflickr.com\/362\/180\/travel,italy\/?lock=70064",
                            "image_name": "",
                            "category": "gallery"
                        },
                        {
                            "id": 13,
                            "image": "https:\/\/loremflickr.com\/362\/180\/travel,italy\/?lock=36345",
                            "image_name": "",
                            "category": "gallery"
                        }
                    ]
                },
                "roles": [
                    "user",
                    "accomodation"
                ],
                "permissions": [],
                "stripeAccount": {
                    "user_id": 10,
                    "accountId": "acct_1ITV4XFPn57bOta4",
                    "chargeEnable": 1
                },
                "affiliation_code": "FVY5Y3",
                "subscription": null
            },
            "affiliate": {
                "id": 15,
                "profile": {
                    "user_id": 15,
                    "firstName": "Dameon",
                    "lastName": "Smith",
                    "gender": "F",
                    "birthDate": "2013-04-27",
                    "country_id": 162,
                    "city": "Handfurt",
                    "image": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=22869",
                    "description": "Quis sint vero consequuntur itaque. Veniam esse nihil quia vitae eaque. Consequatur dolores ut velit quis voluptatibus. Autem accusamus blanditiis ea provident optio ut ratione aut.",
                    "paymentMethod": "both",
                    "paymentOther": "architecto",
                    "companionGrade": 0,
                    "roles": [
                        "user",
                        "traveler"
                    ],
                    "travelerTypes": [
                        {
                            "id": 9,
                            "value": "luxury",
                            "label": "Luxury"
                        },
                        {
                            "id": 12,
                            "value": "all-inclusive",
                            "label": "All Inclusive"
                        }
                    ],
                    "languages": [
                        {
                            "id": 1,
                            "code": "en",
                            "name": "English"
                        },
                        {
                            "id": 2,
                            "code": "it",
                            "name": "Italian"
                        }
                    ],
                    "natures": [
                        {
                            "id": 4,
                            "value": "cruise",
                            "label": "Cruise"
                        }
                    ],
                    "followers": 9,
                    "email": "private field",
                    "phoneNumber": "private field",
                    "fiscalCode": "private field",
                    "identityDoc": "private field"
                },
                "roles": [
                    "user",
                    "traveler"
                ],
                "permissions": [],
                "stripeAccount": null,
                "affiliation_code": "MVAJXA",
                "subscription": null
            },
            "redeemed": 1,
            "redeemable": {
                "id": 14,
                "user": {
                    "id": 15,
                    "profile": {
                        "user_id": 15,
                        "firstName": "Dameon",
                        "lastName": "Smith",
                        "gender": "F",
                        "birthDate": "2013-04-27",
                        "country_id": 162,
                        "city": "Handfurt",
                        "image": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=22869",
                        "description": "Quis sint vero consequuntur itaque. Veniam esse nihil quia vitae eaque. Consequatur dolores ut velit quis voluptatibus. Autem accusamus blanditiis ea provident optio ut ratione aut.",
                        "paymentMethod": "both",
                        "paymentOther": "architecto",
                        "companionGrade": 0,
                        "roles": [
                            "user",
                            "traveler"
                        ],
                        "travelerTypes": [
                            {
                                "id": 9,
                                "value": "luxury",
                                "label": "Luxury"
                            },
                            {
                                "id": 12,
                                "value": "all-inclusive",
                                "label": "All Inclusive"
                            }
                        ],
                        "languages": [
                            {
                                "id": 1,
                                "code": "en",
                                "name": "English"
                            },
                            {
                                "id": 2,
                                "code": "it",
                                "name": "Italian"
                            }
                        ],
                        "natures": [
                            {
                                "id": 4,
                                "value": "cruise",
                                "label": "Cruise"
                            }
                        ],
                        "followers": 9,
                        "email": "private field",
                        "phoneNumber": "private field",
                        "fiscalCode": "private field",
                        "identityDoc": "private field"
                    },
                    "roles": [
                        "user",
                        "traveler"
                    ],
                    "permissions": [],
                    "stripeAccount": null,
                    "affiliation_code": "MVAJXA",
                    "subscription": null
                },
                "active": 0,
                "expirationDate": "2023-01-03",
                "subscription": {
                    "id": 1,
                    "role": "traveler",
                    "type": "free",
                    "price": 0,
                    "monthPrice": 0,
                    "maxPost": "unlimited"
                }
            },
            "stripeDiscounts": [],
            "redeem_date": "2021-05-07 19:40:51"
        },
        {
            "id": 15,
            "availments": "1",
            "promoter": {
                "id": 15,
                "profile": {
                    "user_id": 15,
                    "firstName": "Dameon",
                    "lastName": "Smith",
                    "gender": "F",
                    "birthDate": "2013-04-27",
                    "country_id": 162,
                    "city": "Handfurt",
                    "image": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=22869",
                    "description": "Quis sint vero consequuntur itaque. Veniam esse nihil quia vitae eaque. Consequatur dolores ut velit quis voluptatibus. Autem accusamus blanditiis ea provident optio ut ratione aut.",
                    "paymentMethod": "both",
                    "paymentOther": "architecto",
                    "companionGrade": 0,
                    "roles": [
                        "user",
                        "traveler"
                    ],
                    "travelerTypes": [
                        {
                            "id": 9,
                            "value": "luxury",
                            "label": "Luxury"
                        },
                        {
                            "id": 12,
                            "value": "all-inclusive",
                            "label": "All Inclusive"
                        }
                    ],
                    "languages": [
                        {
                            "id": 1,
                            "code": "en",
                            "name": "English"
                        },
                        {
                            "id": 2,
                            "code": "it",
                            "name": "Italian"
                        }
                    ],
                    "natures": [
                        {
                            "id": 4,
                            "value": "cruise",
                            "label": "Cruise"
                        }
                    ],
                    "followers": 9,
                    "email": "private field",
                    "phoneNumber": "private field",
                    "fiscalCode": "private field",
                    "identityDoc": "private field"
                },
                "roles": [
                    "user",
                    "traveler"
                ],
                "permissions": [],
                "stripeAccount": null,
                "affiliation_code": "MVAJXA",
                "subscription": null
            },
            "affiliate": {
                "id": 16,
                "profile": {
                    "user_id": 16,
                    "firstName": "Zola",
                    "lastName": "Brown",
                    "gender": "F",
                    "birthDate": "1985-03-17",
                    "country_id": 95,
                    "city": "West Jaron",
                    "image": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=68030",
                    "description": "Fugit quo odio atque repudiandae nemo fuga quisquam. Qui ut delectus velit similique est pariatur. Laboriosam commodi totam quae eius quidem dolores.",
                    "paymentMethod": "stripe",
                    "paymentOther": "nulla",
                    "companionGrade": 0,
                    "roles": [
                        "user",
                        "traveler"
                    ],
                    "travelerTypes": [
                        {
                            "id": 4,
                            "value": "cultural",
                            "label": "Cultural"
                        }
                    ],
                    "languages": [
                        {
                            "id": 1,
                            "code": "en",
                            "name": "English"
                        }
                    ],
                    "natures": [
                        {
                            "id": 3,
                            "value": "mountain",
                            "label": "Mountain"
                        }
                    ],
                    "followers": 9,
                    "email": "private field",
                    "phoneNumber": "private field",
                    "fiscalCode": "private field",
                    "identityDoc": "private field"
                },
                "roles": [
                    "user",
                    "traveler"
                ],
                "permissions": [],
                "stripeAccount": null,
                "affiliation_code": "N0RFZ1",
                "subscription": {
                    "id": 15,
                    "active": 1,
                    "expirationDate": "2022-04-05",
                    "subscription": {
                        "id": 1,
                        "role": "traveler",
                        "type": "free",
                        "price": 0,
                        "monthPrice": 0,
                        "maxPost": "unlimited"
                    }
                }
            },
            "redeemed": 1,
            "redeemable": {
                "id": 15,
                "user": {
                    "id": 16,
                    "profile": {
                        "user_id": 16,
                        "firstName": "Zola",
                        "lastName": "Brown",
                        "gender": "F",
                        "birthDate": "1985-03-17",
                        "country_id": 95,
                        "city": "West Jaron",
                        "image": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=68030",
                        "description": "Fugit quo odio atque repudiandae nemo fuga quisquam. Qui ut delectus velit similique est pariatur. Laboriosam commodi totam quae eius quidem dolores.",
                        "paymentMethod": "stripe",
                        "paymentOther": "nulla",
                        "companionGrade": 0,
                        "roles": [
                            "user",
                            "traveler"
                        ],
                        "travelerTypes": [
                            {
                                "id": 4,
                                "value": "cultural",
                                "label": "Cultural"
                            }
                        ],
                        "languages": [
                            {
                                "id": 1,
                                "code": "en",
                                "name": "English"
                            }
                        ],
                        "natures": [
                            {
                                "id": 3,
                                "value": "mountain",
                                "label": "Mountain"
                            }
                        ],
                        "followers": 9,
                        "email": "private field",
                        "phoneNumber": "private field",
                        "fiscalCode": "private field",
                        "identityDoc": "private field"
                    },
                    "roles": [
                        "user",
                        "traveler"
                    ],
                    "permissions": [],
                    "stripeAccount": null,
                    "affiliation_code": "N0RFZ1",
                    "subscription": {
                        "id": 15,
                        "active": 1,
                        "expirationDate": "2022-04-05",
                        "subscription": {
                            "id": 1,
                            "role": "traveler",
                            "type": "free",
                            "price": 0,
                            "monthPrice": 0,
                            "maxPost": "unlimited"
                        }
                    }
                },
                "active": 1,
                "expirationDate": "2022-04-05",
                "subscription": {
                    "id": 1,
                    "role": "traveler",
                    "type": "free",
                    "price": 0,
                    "monthPrice": 0,
                    "maxPost": "unlimited"
                }
            },
            "stripeDiscounts": [],
            "redeem_date": "2021-05-07 19:40:51"
        },
        {
            "id": 16,
            "availments": "1",
            "promoter": {
                "id": 7,
                "profile": {
                    "user_id": 7,
                    "companyType": "society",
                    "companyName": "Prosacco, Emmerich and Donnellyand Sons",
                    "firstName": "private field",
                    "lastName": "private field",
                    "country_id": 243,
                    "city": "Port Jackeline",
                    "province": null,
                    "address": null,
                    "registeredOffice": "552 Wolf Stream\nSouth Cloyd, IN 52050",
                    "image": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=18118",
                    "description": "Realigned assymetric circuit",
                    "paymentMethod": "both",
                    "paymentOther": "tempore",
                    "roles": [
                        "user",
                        "ecommerceSeller"
                    ],
                    "followers": 11,
                    "fiscalCode": "private field",
                    "vatNumber": "private field",
                    "phonePrefix": "private field",
                    "phoneNumber": "private field",
                    "mobilePrefix": "private field",
                    "mobileNumber": "private field",
                    "faxPrefix": "private field",
                    "faxNumber": "private field",
                    "internetSite": "private field",
                    "pecEmail": "private field",
                    "contactEmail": "private field",
                    "chamberCommerceRegistration": "private field",
                    "identityDoc": "private field",
                    "fiscalCodeDoc": "private field"
                },
                "roles": [
                    "user",
                    "ecommerceSeller"
                ],
                "permissions": [],
                "stripeAccount": {
                    "user_id": 7,
                    "accountId": "acct_1ITV4XFPn57bOta4",
                    "chargeEnable": 1
                },
                "affiliation_code": "1EZC5P",
                "subscription": null
            },
            "affiliate": {
                "id": 17,
                "profile": {
                    "user_id": 17,
                    "firstName": "Jairo",
                    "lastName": "Huels",
                    "gender": "M",
                    "birthDate": "1979-07-28",
                    "country_id": 49,
                    "city": "Margiebury",
                    "image": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=39329",
                    "description": "Quibusdam qui eaque voluptas quis cumque facilis autem. Non et dolorem aut facere. Omnis hic eum eveniet neque facilis qui.",
                    "paymentMethod": "other",
                    "paymentOther": "enim",
                    "companionGrade": 0,
                    "roles": [
                        "user",
                        "traveler"
                    ],
                    "travelerTypes": [
                        {
                            "id": 7,
                            "value": "environmentalist",
                            "label": "Environmentalist"
                        },
                        {
                            "id": 9,
                            "value": "luxury",
                            "label": "Luxury"
                        }
                    ],
                    "languages": [
                        {
                            "id": 1,
                            "code": "en",
                            "name": "English"
                        }
                    ],
                    "natures": [
                        {
                            "id": 2,
                            "value": "work",
                            "label": "Work"
                        }
                    ],
                    "followers": 8,
                    "email": "private field",
                    "phoneNumber": "private field",
                    "fiscalCode": "private field",
                    "identityDoc": "private field"
                },
                "roles": [
                    "user",
                    "traveler"
                ],
                "permissions": [],
                "stripeAccount": null,
                "affiliation_code": "P7LW0Z",
                "subscription": {
                    "id": 16,
                    "active": 1,
                    "expirationDate": "2021-10-19",
                    "subscription": {
                        "id": 1,
                        "role": "traveler",
                        "type": "free",
                        "price": 0,
                        "monthPrice": 0,
                        "maxPost": "unlimited"
                    }
                }
            },
            "redeemed": 1,
            "redeemable": {
                "id": 16,
                "user": {
                    "id": 17,
                    "profile": {
                        "user_id": 17,
                        "firstName": "Jairo",
                        "lastName": "Huels",
                        "gender": "M",
                        "birthDate": "1979-07-28",
                        "country_id": 49,
                        "city": "Margiebury",
                        "image": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=39329",
                        "description": "Quibusdam qui eaque voluptas quis cumque facilis autem. Non et dolorem aut facere. Omnis hic eum eveniet neque facilis qui.",
                        "paymentMethod": "other",
                        "paymentOther": "enim",
                        "companionGrade": 0,
                        "roles": [
                            "user",
                            "traveler"
                        ],
                        "travelerTypes": [
                            {
                                "id": 7,
                                "value": "environmentalist",
                                "label": "Environmentalist"
                            },
                            {
                                "id": 9,
                                "value": "luxury",
                                "label": "Luxury"
                            }
                        ],
                        "languages": [
                            {
                                "id": 1,
                                "code": "en",
                                "name": "English"
                            }
                        ],
                        "natures": [
                            {
                                "id": 2,
                                "value": "work",
                                "label": "Work"
                            }
                        ],
                        "followers": 8,
                        "email": "private field",
                        "phoneNumber": "private field",
                        "fiscalCode": "private field",
                        "identityDoc": "private field"
                    },
                    "roles": [
                        "user",
                        "traveler"
                    ],
                    "permissions": [],
                    "stripeAccount": null,
                    "affiliation_code": "P7LW0Z",
                    "subscription": {
                        "id": 16,
                        "active": 1,
                        "expirationDate": "2021-10-19",
                        "subscription": {
                            "id": 1,
                            "role": "traveler",
                            "type": "free",
                            "price": 0,
                            "monthPrice": 0,
                            "maxPost": "unlimited"
                        }
                    }
                },
                "active": 1,
                "expirationDate": "2021-10-19",
                "subscription": {
                    "id": 1,
                    "role": "traveler",
                    "type": "free",
                    "price": 0,
                    "monthPrice": 0,
                    "maxPost": "unlimited"
                }
            },
            "stripeDiscounts": [],
            "redeem_date": "2021-05-07 19:40:51"
        },
        {
            "id": 18,
            "availments": "1",
            "promoter": {
                "id": 2,
                "profile": {
                    "user_id": 2,
                    "accomodationType": "alpine_refuge",
                    "accomodationName": "Reilly, Stamm and VonRuedenand Sons",
                    "vatNumber": "8765373403026",
                    "registeredOffice": "7750 Paxton Park\nGersonberg, KY 10487",
                    "country_id": {
                        "id": 184,
                        "code": "QA",
                        "name": "Qatar",
                        "created_at": "2021-05-07 19:39:09",
                        "updated_at": "2021-05-07 19:39:09"
                    },
                    "province": "Trinidad and Tobago",
                    "city": "New Clark",
                    "address": "685 Harris Trail Suite 721\nEast Julietfort, ME 72941-6111",
                    "latitude": "-79.336225",
                    "longitude": "136.131302",
                    "cityTax": 13,
                    "phonePrefix": "+83",
                    "phoneNumber": "2893022859",
                    "mobilePrefix": "+22",
                    "mobileNumber": "9169087732",
                    "faxPrefix": "+73",
                    "faxNumber": "6600753559",
                    "contactEmail": "terry.delaney@gmail.com",
                    "image": "https:\/\/loremflickr.com\/362\/180\/hotel\/?lock=63032",
                    "description": "Quidem voluptas atque nulla necessitatibus magni. Nihil quis non optio veniam dolores quod perspiciatis.",
                    "recommendations": "Non possimus voluptas beatae quaerat eos qui. Fugiat excepturi atque qui esse ipsum. Corrupti libero est atque.",
                    "yearOfConstruction": 1939,
                    "lastRenovation": 1925,
                    "rooms": 6,
                    "nonSmokingRooms": 6,
                    "beds": 18,
                    "handicappedRooms": 8,
                    "suites": 5,
                    "plans": 13,
                    "H24CheckIn": 1,
                    "checkInHourStart": "17:38:26",
                    "checkInHourEnd": "03:33:26",
                    "checkOutHourStart": "14:11:05",
                    "checkOutHourEnd": "18:05:09",
                    "petsAllowed": 0,
                    "petsSize": "big",
                    "stars": "2",
                    "qualityMark": "Rem est ipsam voluptatem ut ut quibusdam voluptas.",
                    "noClassification": 0,
                    "accomodationGrade": 0,
                    "roles": [
                        "user",
                        "accomodation"
                    ],
                    "roomPosts": 8,
                    "hotelServicesIncluded": [
                        {
                            "id": 32,
                            "group": "activities",
                            "value": "tennis-court",
                            "label": "Tennis court"
                        },
                        {
                            "id": 45,
                            "group": "activities",
                            "value": "Nightclub\/DJ",
                            "label": "Nightclub \/ DJ"
                        },
                        {
                            "id": 56,
                            "group": "activities",
                            "value": "snorkeling",
                            "label": "Snorkeling"
                        },
                        {
                            "id": 58,
                            "group": "activities",
                            "value": "equipped-and-supervised-beach",
                            "label": "Equipped and supervised beach"
                        },
                        {
                            "id": 121,
                            "group": "entertainment",
                            "value": "theater",
                            "label": "Theater"
                        },
                        {
                            "id": 126,
                            "group": "cleaning-services",
                            "value": "ironing-service",
                            "label": "Ironing service"
                        },
                        {
                            "id": 130,
                            "group": "business-services",
                            "value": "spaces-for-meetings\/banquets",
                            "label": "Spaces for meetings\/banquets"
                        },
                        {
                            "id": 137,
                            "group": "security",
                            "value": "CCTV-cameras-outside-the-facility",
                            "label": "CCTV cameras outside the facility"
                        }
                    ],
                    "hotelServicesNotIncluded": [
                        {
                            "id": 49,
                            "group": "activities",
                            "value": "nature-trails-in-the-lagoon",
                            "label": "Nature trails in the lagoon",
                            "price": 57255
                        },
                        {
                            "id": 107,
                            "group": "reception-services",
                            "value": "atm-machine",
                            "label": "ATM machine",
                            "price": 57255
                        },
                        {
                            "id": 168,
                            "group": "wellness-services",
                            "value": "body-bandages",
                            "label": "Body bandages",
                            "price": 57255
                        },
                        {
                            "id": 179,
                            "group": "wellness-services",
                            "value": "foot-massage",
                            "label": "Foot massage",
                            "price": 57255
                        }
                    ],
                    "languages": [
                        {
                            "id": 1,
                            "code": "en",
                            "name": "English"
                        },
                        {
                            "id": 2,
                            "code": "it",
                            "name": "Italian"
                        }
                    ],
                    "images": [
                        {
                            "id": 1,
                            "image": "https:\/\/loremflickr.com\/362\/180\/travel,italy\/?lock=43912",
                            "image_name": "",
                            "category": "gallery"
                        },
                        {
                            "id": 2,
                            "image": "https:\/\/loremflickr.com\/362\/180\/travel,italy\/?lock=58259",
                            "image_name": "",
                            "category": "gallery"
                        },
                        {
                            "id": 3,
                            "image": "https:\/\/loremflickr.com\/362\/180\/travel,italy\/?lock=54165",
                            "image_name": "",
                            "category": "gallery"
                        },
                        {
                            "id": 4,
                            "image": "https:\/\/loremflickr.com\/362\/180\/travel,italy\/?lock=71534",
                            "image_name": "",
                            "category": "gallery"
                        },
                        {
                            "id": 5,
                            "image": "https:\/\/loremflickr.com\/362\/180\/travel,italy\/?lock=62822",
                            "image_name": "",
                            "category": "gallery"
                        }
                    ]
                },
                "roles": [
                    "user",
                    "accomodation"
                ],
                "permissions": [],
                "stripeAccount": {
                    "user_id": 2,
                    "accountId": "acct_1ITV4XFPn57bOta4",
                    "chargeEnable": 1
                },
                "affiliation_code": "APRA0D",
                "subscription": {
                    "id": 2,
                    "active": 1,
                    "expirationDate": "2023-05-03",
                    "subscription": {
                        "id": 8,
                        "role": "touristGuide",
                        "type": "mega",
                        "price": 10000,
                        "monthPrice": 0,
                        "maxPost": "unlimited"
                    }
                }
            },
            "affiliate": {
                "id": 19,
                "profile": {
                    "user_id": 19,
                    "firstName": "Jermey",
                    "lastName": "Jenkins",
                    "gender": "F",
                    "birthDate": "1996-02-11",
                    "country_id": 120,
                    "city": "Port Guidofort",
                    "image": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=84268",
                    "description": "Quis praesentium illo ullam molestias soluta. Nisi atque doloribus voluptatem iusto ut esse. Est fuga ut molestias. Aspernatur earum porro est nemo itaque.",
                    "paymentMethod": "stripe",
                    "paymentOther": "aut",
                    "companionGrade": 0,
                    "roles": [
                        "user",
                        "traveler"
                    ],
                    "travelerTypes": [
                        {
                            "id": 3,
                            "value": "adventurer",
                            "label": "Adventurer"
                        }
                    ],
                    "languages": [
                        {
                            "id": 1,
                            "code": "en",
                            "name": "English"
                        }
                    ],
                    "natures": [
                        {
                            "id": 5,
                            "value": "foodandwine",
                            "label": "food and wine"
                        }
                    ],
                    "followers": 10,
                    "email": "private field",
                    "phoneNumber": "private field",
                    "fiscalCode": "private field",
                    "identityDoc": "private field"
                },
                "roles": [
                    "user",
                    "traveler"
                ],
                "permissions": [],
                "stripeAccount": null,
                "affiliation_code": "N8BKM5",
                "subscription": {
                    "id": 18,
                    "active": 1,
                    "expirationDate": "2023-03-10",
                    "subscription": {
                        "id": 1,
                        "role": "traveler",
                        "type": "free",
                        "price": 0,
                        "monthPrice": 0,
                        "maxPost": "unlimited"
                    }
                }
            },
            "redeemed": 0,
            "redeemable": null,
            "stripeDiscounts": [],
            "redeem_date": null
        },
        {
            "id": 20,
            "availments": "1",
            "promoter": {
                "id": 9,
                "profile": {
                    "user_id": 9,
                    "accomodationType": "mountain_retreat",
                    "accomodationName": "Nolan-BlickLLC",
                    "vatNumber": "9790226058978",
                    "registeredOffice": "6602 Foster Row Apt. 977\nHettingerview, UT 23111-5579",
                    "country_id": {
                        "id": 63,
                        "code": "DK",
                        "name": "Denmark",
                        "created_at": "2021-05-07 19:39:06",
                        "updated_at": "2021-05-07 19:39:06"
                    },
                    "province": "Turks and Caicos Islands",
                    "city": "Garricktown",
                    "address": "92545 Macejkovic Rue Suite 903\nIdellstad, NC 03228",
                    "latitude": "-30.125111",
                    "longitude": "-53.393493",
                    "cityTax": 20,
                    "phonePrefix": "+58",
                    "phoneNumber": "8389021817",
                    "mobilePrefix": "+86",
                    "mobileNumber": "5672747652",
                    "faxPrefix": "+16",
                    "faxNumber": "4095693004",
                    "contactEmail": "kieran11@hotmail.com",
                    "image": "https:\/\/loremflickr.com\/362\/180\/hotel\/?lock=86341",
                    "description": "Illo non numquam reiciendis omnis rerum rem. In at ut dolor sed et. Qui quaerat cumque ut. Voluptatibus corporis explicabo pariatur culpa.",
                    "recommendations": "Quod sit deserunt ab iusto enim. Aliquid et ipsam nisi id maiores. Sint qui fugiat sunt dicta voluptatibus ducimus. Ut qui et sint culpa. Recusandae commodi non omnis omnis tenetur quasi.",
                    "yearOfConstruction": 1981,
                    "lastRenovation": 1905,
                    "rooms": 8,
                    "nonSmokingRooms": 16,
                    "beds": 16,
                    "handicappedRooms": 19,
                    "suites": 17,
                    "plans": 13,
                    "H24CheckIn": 1,
                    "checkInHourStart": "20:16:25",
                    "checkInHourEnd": "07:52:07",
                    "checkOutHourStart": "23:22:59",
                    "checkOutHourEnd": "12:48:58",
                    "petsAllowed": 1,
                    "petsSize": "big",
                    "stars": "3",
                    "qualityMark": "Cum eos harum totam animi dolores saepe.",
                    "noClassification": 1,
                    "accomodationGrade": 0,
                    "roles": [
                        "user",
                        "accomodation"
                    ],
                    "roomPosts": 4,
                    "hotelServicesIncluded": [
                        {
                            "id": 30,
                            "group": "activities",
                            "value": "soccer",
                            "label": "Soccer"
                        },
                        {
                            "id": 49,
                            "group": "activities",
                            "value": "nature-trails-in-the-lagoon",
                            "label": "Nature trails in the lagoon"
                        },
                        {
                            "id": 53,
                            "group": "activities",
                            "value": "PADI-diving-school",
                            "label": "PADI diving school"
                        },
                        {
                            "id": 76,
                            "group": "catering-services",
                            "value": "ice-cream\/pastry-shop",
                            "label": "Ice cream \/ Pastry shop"
                        },
                        {
                            "id": 86,
                            "group": "parking-area",
                            "value": "public-parking-available-in-the-area",
                            "label": "Public parking available in the area"
                        },
                        {
                            "id": 95,
                            "group": "reception-services",
                            "value": "cash-desk",
                            "label": "Cash desk"
                        },
                        {
                            "id": 117,
                            "group": "entertainment",
                            "value": "nursery",
                            "label": "Nursery"
                        },
                        {
                            "id": 123,
                            "group": "cleaning-services",
                            "value": "shoe-shine",
                            "label": "Shoe shine"
                        },
                        {
                            "id": 130,
                            "group": "business-services",
                            "value": "spaces-for-meetings\/banquets",
                            "label": "Spaces for meetings\/banquets"
                        },
                        {
                            "id": 139,
                            "group": "security",
                            "value": "periodic-treatments",
                            "label": "Periodic treatments"
                        }
                    ],
                    "hotelServicesNotIncluded": [
                        {
                            "id": 24,
                            "group": "activities",
                            "value": "aquagym",
                            "label": "Aquagym",
                            "price": 78098
                        },
                        {
                            "id": 71,
                            "group": "open-spaces",
                            "value": "Terrace",
                            "label": "Terrace",
                            "price": 78098
                        },
                        {
                            "id": 72,
                            "group": "open-spaces",
                            "value": "Solarium terrace",
                            "label": "Solarium terrace",
                            "price": 78098
                        },
                        {
                            "id": 106,
                            "group": "reception-services",
                            "value": "concierge-service",
                            "label": "Concierge service",
                            "price": 78098
                        },
                        {
                            "id": 117,
                            "group": "entertainment",
                            "value": "nursery",
                            "label": "Nursery",
                            "price": 78098
                        },
                        {
                            "id": 151,
                            "group": "general-services",
                            "value": "carbon-monoxide-detector",
                            "label": "Carbon monoxide detector",
                            "price": 78098
                        },
                        {
                            "id": 156,
                            "group": "general-services",
                            "value": "hypoallergenic-solutions",
                            "label": "Hypoallergenic solutions",
                            "price": 78098
                        },
                        {
                            "id": 214,
                            "group": "transport",
                            "value": "shuttle-to-train-station",
                            "label": "Shuttle to train station",
                            "price": 78098
                        }
                    ],
                    "languages": [
                        {
                            "id": 1,
                            "code": "en",
                            "name": "English"
                        }
                    ],
                    "images": [
                        {
                            "id": 6,
                            "image": "https:\/\/loremflickr.com\/362\/180\/travel,italy\/?lock=98619",
                            "image_name": "",
                            "category": "gallery"
                        },
                        {
                            "id": 7,
                            "image": "https:\/\/loremflickr.com\/362\/180\/travel,italy\/?lock=87987",
                            "image_name": "",
                            "category": "gallery"
                        },
                        {
                            "id": 8,
                            "image": "https:\/\/loremflickr.com\/362\/180\/travel,italy\/?lock=91287",
                            "image_name": "",
                            "category": "gallery"
                        },
                        {
                            "id": 9,
                            "image": "https:\/\/loremflickr.com\/362\/180\/travel,italy\/?lock=76676",
                            "image_name": "",
                            "category": "gallery"
                        },
                        {
                            "id": 10,
                            "image": "https:\/\/loremflickr.com\/362\/180\/travel,italy\/?lock=67002",
                            "image_name": "",
                            "category": "gallery"
                        }
                    ]
                },
                "roles": [
                    "user",
                    "accomodation"
                ],
                "permissions": [],
                "stripeAccount": {
                    "user_id": 9,
                    "accountId": "acct_1ITV4XFPn57bOta4",
                    "chargeEnable": 1
                },
                "affiliation_code": "KESFO6",
                "subscription": {
                    "id": 8,
                    "active": 1,
                    "expirationDate": "2021-09-06",
                    "subscription": {
                        "id": 8,
                        "role": "touristGuide",
                        "type": "mega",
                        "price": 10000,
                        "monthPrice": 0,
                        "maxPost": "unlimited"
                    }
                }
            },
            "affiliate": {
                "id": 21,
                "profile": {
                    "user_id": 21,
                    "firstName": "Jazmyne",
                    "lastName": "Schuster",
                    "gender": "M",
                    "birthDate": "1989-03-22",
                    "country_id": 192,
                    "city": "Schoenland",
                    "image": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=89304",
                    "description": "Quo magni temporibus corrupti similique voluptatem. Optio voluptatem dolorem officiis recusandae est ut quae. Quia adipisci non esse ea. Quae est voluptatem ab in qui. Voluptatem sint at nobis non.",
                    "paymentMethod": "both",
                    "paymentOther": "distinctio",
                    "companionGrade": 0,
                    "roles": [
                        "user",
                        "traveler"
                    ],
                    "travelerTypes": [
                        {
                            "id": 9,
                            "value": "luxury",
                            "label": "Luxury"
                        }
                    ],
                    "languages": [
                        {
                            "id": 1,
                            "code": "en",
                            "name": "English"
                        }
                    ],
                    "natures": [
                        {
                            "id": 2,
                            "value": "work",
                            "label": "Work"
                        },
                        {
                            "id": 5,
                            "value": "foodandwine",
                            "label": "food and wine"
                        }
                    ],
                    "followers": 9,
                    "email": "private field",
                    "phoneNumber": "private field",
                    "fiscalCode": "private field",
                    "identityDoc": "private field"
                },
                "roles": [
                    "user",
                    "traveler"
                ],
                "permissions": [],
                "stripeAccount": null,
                "affiliation_code": "JPA2AI",
                "subscription": {
                    "id": 20,
                    "active": 1,
                    "expirationDate": "2022-09-19",
                    "subscription": {
                        "id": 1,
                        "role": "traveler",
                        "type": "free",
                        "price": 0,
                        "monthPrice": 0,
                        "maxPost": "unlimited"
                    }
                }
            },
            "redeemed": 1,
            "redeemable": {
                "id": 20,
                "user": {
                    "id": 21,
                    "profile": {
                        "user_id": 21,
                        "firstName": "Jazmyne",
                        "lastName": "Schuster",
                        "gender": "M",
                        "birthDate": "1989-03-22",
                        "country_id": 192,
                        "city": "Schoenland",
                        "image": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=89304",
                        "description": "Quo magni temporibus corrupti similique voluptatem. Optio voluptatem dolorem officiis recusandae est ut quae. Quia adipisci non esse ea. Quae est voluptatem ab in qui. Voluptatem sint at nobis non.",
                        "paymentMethod": "both",
                        "paymentOther": "distinctio",
                        "companionGrade": 0,
                        "roles": [
                            "user",
                            "traveler"
                        ],
                        "travelerTypes": [
                            {
                                "id": 9,
                                "value": "luxury",
                                "label": "Luxury"
                            }
                        ],
                        "languages": [
                            {
                                "id": 1,
                                "code": "en",
                                "name": "English"
                            }
                        ],
                        "natures": [
                            {
                                "id": 2,
                                "value": "work",
                                "label": "Work"
                            },
                            {
                                "id": 5,
                                "value": "foodandwine",
                                "label": "food and wine"
                            }
                        ],
                        "followers": 9,
                        "email": "private field",
                        "phoneNumber": "private field",
                        "fiscalCode": "private field",
                        "identityDoc": "private field"
                    },
                    "roles": [
                        "user",
                        "traveler"
                    ],
                    "permissions": [],
                    "stripeAccount": null,
                    "affiliation_code": "JPA2AI",
                    "subscription": {
                        "id": 20,
                        "active": 1,
                        "expirationDate": "2022-09-19",
                        "subscription": {
                            "id": 1,
                            "role": "traveler",
                            "type": "free",
                            "price": 0,
                            "monthPrice": 0,
                            "maxPost": "unlimited"
                        }
                    }
                },
                "active": 1,
                "expirationDate": "2022-09-19",
                "subscription": {
                    "id": 1,
                    "role": "traveler",
                    "type": "free",
                    "price": 0,
                    "monthPrice": 0,
                    "maxPost": "unlimited"
                }
            },
            "stripeDiscounts": [],
            "redeem_date": "2021-05-07 19:40:53"
        }
    ],
    "discountNunber": 1
}

HTTP Request

POST /api/AffiliationPrograms/AffiliationProgram

Body Parameters

Parameter Type Status Description
name string required
description string optional
discount integer required
uses integer required
affiliation_program_token string required
affiliationProgramSubscriptions array optional
affiliationProgramSubscriptions.*.id string optional Valid subscription id
discountNunber numeric required

Query Parameters

Parameter Status Description
name required
description optional
discount required
uses required
affiliation_program_token required
affiliationProgramSubscriptions optional
affiliationProgramSubscriptions.*.id optional Valid subscription id
discountNunber required

Update AffiliationProgram

Update an AffiliationPrograms

Example request:

curl -X PUT "http://api.doitrip.com/api/AffiliationPrograms/AffiliationProgram/1" \
    -H "Content-Type: application/json" \
    -d '{"name":"natus","description":"natus","discount":428758,"uses":428758,"affiliation_program_token":"natus","affiliationProgramSubscriptions":[{"id":"natus"}],"discountNunber":428758}'
const url = new URL("http://api.doitrip.com/api/AffiliationPrograms/AffiliationProgram/1");

    let params = {
            "name": "natus",
            "description": "natus",
            "discount": "428758",
            "uses": "428758",
            "affiliation_program_token": "natus",
            "affiliationProgramSubscriptions": "natus",
            "affiliationProgramSubscriptions.*.id": "natus",
            "discountNunber": "428758",
        };
    Object.keys(params).forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
}

let body = {
    "name": "natus",
    "description": "natus",
    "discount": 428758,
    "uses": 428758,
    "affiliation_program_token": "natus",
    "affiliationProgramSubscriptions": [
        {
            "id": "natus"
        }
    ],
    "discountNunber": 428758
}

fetch(url, {
    method: "PUT",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "id": 1,
    "name": "Bring a Friend",
    "description": "affiliazione di base fra utenti",
    "discount": 10,
    "uses": -1,
    "affiliation_program_token": null,
    "created_at": "2021-05-07T19:40:38.000000Z",
    "affiliations": [
        {
            "id": 2,
            "availments": "1",
            "promoter": {
                "id": 2,
                "profile": {
                    "user_id": 2,
                    "accomodationType": "alpine_refuge",
                    "accomodationName": "Reilly, Stamm and VonRuedenand Sons",
                    "vatNumber": "8765373403026",
                    "registeredOffice": "7750 Paxton Park\nGersonberg, KY 10487",
                    "country_id": {
                        "id": 184,
                        "code": "QA",
                        "name": "Qatar",
                        "created_at": "2021-05-07 19:39:09",
                        "updated_at": "2021-05-07 19:39:09"
                    },
                    "province": "Trinidad and Tobago",
                    "city": "New Clark",
                    "address": "685 Harris Trail Suite 721\nEast Julietfort, ME 72941-6111",
                    "latitude": "-79.336225",
                    "longitude": "136.131302",
                    "cityTax": 13,
                    "phonePrefix": "+83",
                    "phoneNumber": "2893022859",
                    "mobilePrefix": "+22",
                    "mobileNumber": "9169087732",
                    "faxPrefix": "+73",
                    "faxNumber": "6600753559",
                    "contactEmail": "terry.delaney@gmail.com",
                    "image": "https:\/\/loremflickr.com\/362\/180\/hotel\/?lock=63032",
                    "description": "Quidem voluptas atque nulla necessitatibus magni. Nihil quis non optio veniam dolores quod perspiciatis.",
                    "recommendations": "Non possimus voluptas beatae quaerat eos qui. Fugiat excepturi atque qui esse ipsum. Corrupti libero est atque.",
                    "yearOfConstruction": 1939,
                    "lastRenovation": 1925,
                    "rooms": 6,
                    "nonSmokingRooms": 6,
                    "beds": 18,
                    "handicappedRooms": 8,
                    "suites": 5,
                    "plans": 13,
                    "H24CheckIn": 1,
                    "checkInHourStart": "17:38:26",
                    "checkInHourEnd": "03:33:26",
                    "checkOutHourStart": "14:11:05",
                    "checkOutHourEnd": "18:05:09",
                    "petsAllowed": 0,
                    "petsSize": "big",
                    "stars": "2",
                    "qualityMark": "Rem est ipsam voluptatem ut ut quibusdam voluptas.",
                    "noClassification": 0,
                    "accomodationGrade": 0,
                    "roles": [
                        "user",
                        "accomodation"
                    ],
                    "roomPosts": 8,
                    "hotelServicesIncluded": [
                        {
                            "id": 32,
                            "group": "activities",
                            "value": "tennis-court",
                            "label": "Tennis court"
                        },
                        {
                            "id": 45,
                            "group": "activities",
                            "value": "Nightclub\/DJ",
                            "label": "Nightclub \/ DJ"
                        },
                        {
                            "id": 56,
                            "group": "activities",
                            "value": "snorkeling",
                            "label": "Snorkeling"
                        },
                        {
                            "id": 58,
                            "group": "activities",
                            "value": "equipped-and-supervised-beach",
                            "label": "Equipped and supervised beach"
                        },
                        {
                            "id": 121,
                            "group": "entertainment",
                            "value": "theater",
                            "label": "Theater"
                        },
                        {
                            "id": 126,
                            "group": "cleaning-services",
                            "value": "ironing-service",
                            "label": "Ironing service"
                        },
                        {
                            "id": 130,
                            "group": "business-services",
                            "value": "spaces-for-meetings\/banquets",
                            "label": "Spaces for meetings\/banquets"
                        },
                        {
                            "id": 137,
                            "group": "security",
                            "value": "CCTV-cameras-outside-the-facility",
                            "label": "CCTV cameras outside the facility"
                        }
                    ],
                    "hotelServicesNotIncluded": [
                        {
                            "id": 49,
                            "group": "activities",
                            "value": "nature-trails-in-the-lagoon",
                            "label": "Nature trails in the lagoon",
                            "price": 57255
                        },
                        {
                            "id": 107,
                            "group": "reception-services",
                            "value": "atm-machine",
                            "label": "ATM machine",
                            "price": 57255
                        },
                        {
                            "id": 168,
                            "group": "wellness-services",
                            "value": "body-bandages",
                            "label": "Body bandages",
                            "price": 57255
                        },
                        {
                            "id": 179,
                            "group": "wellness-services",
                            "value": "foot-massage",
                            "label": "Foot massage",
                            "price": 57255
                        }
                    ],
                    "languages": [
                        {
                            "id": 1,
                            "code": "en",
                            "name": "English"
                        },
                        {
                            "id": 2,
                            "code": "it",
                            "name": "Italian"
                        }
                    ],
                    "images": [
                        {
                            "id": 1,
                            "image": "https:\/\/loremflickr.com\/362\/180\/travel,italy\/?lock=43912",
                            "image_name": "",
                            "category": "gallery"
                        },
                        {
                            "id": 2,
                            "image": "https:\/\/loremflickr.com\/362\/180\/travel,italy\/?lock=58259",
                            "image_name": "",
                            "category": "gallery"
                        },
                        {
                            "id": 3,
                            "image": "https:\/\/loremflickr.com\/362\/180\/travel,italy\/?lock=54165",
                            "image_name": "",
                            "category": "gallery"
                        },
                        {
                            "id": 4,
                            "image": "https:\/\/loremflickr.com\/362\/180\/travel,italy\/?lock=71534",
                            "image_name": "",
                            "category": "gallery"
                        },
                        {
                            "id": 5,
                            "image": "https:\/\/loremflickr.com\/362\/180\/travel,italy\/?lock=62822",
                            "image_name": "",
                            "category": "gallery"
                        }
                    ]
                },
                "roles": [
                    "user",
                    "accomodation"
                ],
                "permissions": [],
                "stripeAccount": {
                    "user_id": 2,
                    "accountId": "acct_1ITV4XFPn57bOta4",
                    "chargeEnable": 1
                },
                "affiliation_code": "APRA0D",
                "subscription": {
                    "id": 2,
                    "active": 1,
                    "expirationDate": "2023-05-03",
                    "subscription": {
                        "id": 8,
                        "role": "touristGuide",
                        "type": "mega",
                        "price": 10000,
                        "monthPrice": 0,
                        "maxPost": "unlimited"
                    }
                }
            },
            "affiliate": {
                "id": 3,
                "profile": {
                    "user_id": 3,
                    "companyType": "society",
                    "companyName": "Pouros-GusikowskiGroup",
                    "firstName": "private field",
                    "lastName": "private field",
                    "country_id": 96,
                    "city": "Lake Davonchester",
                    "province": null,
                    "address": null,
                    "registeredOffice": "751 Brayan Via Suite 806\nChanelborough, CO 34207-4693",
                    "image": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=32707",
                    "description": "Optional non-volatile emulation",
                    "paymentMethod": "stripe",
                    "paymentOther": "est",
                    "roles": [
                        "user",
                        "accomodationManager"
                    ],
                    "followers": 9,
                    "fiscalCode": "private field",
                    "vatNumber": "private field",
                    "phonePrefix": "private field",
                    "phoneNumber": "private field",
                    "mobilePrefix": "private field",
                    "mobileNumber": "private field",
                    "faxPrefix": "private field",
                    "faxNumber": "private field",
                    "internetSite": "private field",
                    "pecEmail": "private field",
                    "contactEmail": "private field",
                    "chamberCommerceRegistration": "private field",
                    "identityDoc": "private field",
                    "fiscalCodeDoc": "private field"
                },
                "roles": [
                    "user",
                    "accomodationManager"
                ],
                "permissions": [],
                "stripeAccount": {
                    "user_id": 3,
                    "accountId": "acct_1ITV4XFPn57bOta4",
                    "chargeEnable": 1
                },
                "affiliation_code": "W6BD2M",
                "subscription": null
            },
            "redeemed": 0,
            "redeemable": null,
            "stripeDiscounts": [],
            "redeem_date": null
        },
        {
            "id": 4,
            "availments": "1",
            "promoter": {
                "id": 1,
                "profile": {
                    "user_id": 1,
                    "firstName": "Sylvester",
                    "lastName": "Dach",
                    "gender": "F",
                    "birthDate": "1973-01-14",
                    "country_id": 14,
                    "city": "Schmelerside",
                    "image": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=31482",
                    "description": "Temporibus molestiae fuga voluptatem sed rerum dolor. Expedita doloremque qui ut est. Quos illo ea rerum.",
                    "paymentMethod": "stripe",
                    "paymentOther": "omnis",
                    "companionGrade": 0,
                    "roles": [
                        "admin",
                        "user",
                        "traveler"
                    ],
                    "travelerTypes": [
                        {
                            "id": 7,
                            "value": "environmentalist",
                            "label": "Environmentalist"
                        },
                        {
                            "id": 10,
                            "value": "offbeat",
                            "label": "offbeat"
                        }
                    ],
                    "languages": [
                        {
                            "id": 1,
                            "code": "en",
                            "name": "English"
                        },
                        {
                            "id": 2,
                            "code": "it",
                            "name": "Italian"
                        }
                    ],
                    "natures": [
                        {
                            "id": 2,
                            "value": "work",
                            "label": "Work"
                        }
                    ],
                    "followers": 9,
                    "email": "private field",
                    "phoneNumber": "private field",
                    "fiscalCode": "private field",
                    "identityDoc": "private field"
                },
                "roles": [
                    "admin",
                    "user",
                    "traveler"
                ],
                "permissions": [],
                "stripeAccount": null,
                "affiliation_code": "NXA6HB",
                "subscription": null
            },
            "affiliate": {
                "id": 5,
                "profile": {
                    "user_id": 5,
                    "companyType": "society",
                    "companyName": "Feest, Jast and RippinLtd",
                    "firstName": "private field",
                    "lastName": "private field",
                    "country_id": 136,
                    "city": "Gennaroland",
                    "province": null,
                    "address": null,
                    "registeredOffice": "3731 Kuhlman Loaf\nPort Ada, NV 90702",
                    "image": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=41686",
                    "description": "Centralized interactive opensystem",
                    "paymentMethod": "other",
                    "paymentOther": "sit",
                    "tourOperatorGrade": 0,
                    "roles": [
                        "user",
                        "tourOperator"
                    ],
                    "tourPosts": 10,
                    "followers": 10,
                    "tourServices": [
                        {
                            "id": 11,
                            "value": "animation-and-entertainment-activities",
                            "label": "Animation and entertainment activities"
                        },
                        {
                            "id": 51,
                            "value": "hot-chocolate-or-tea",
                            "label": "Hot chocolate or tea"
                        },
                        {
                            "id": 70,
                            "value": "excursions",
                            "label": "Excursions"
                        },
                        {
                            "id": 89,
                            "value": "Tips",
                            "label": "Tips"
                        }
                    ],
                    "fiscalCode": "private field",
                    "vatNumber": "private field",
                    "phonePrefix": "private field",
                    "phoneNumber": "private field",
                    "mobilePrefix": "private field",
                    "mobileNumber": "private field",
                    "faxPrefix": "private field",
                    "faxNumber": "private field",
                    "internetSite": "private field",
                    "pecEmail": "private field",
                    "contactEmail": "private field",
                    "chamberCommerceRegistration": "private field",
                    "identityDoc": "private field",
                    "fiscalCodeDoc": "private field"
                },
                "roles": [
                    "user",
                    "tourOperator"
                ],
                "permissions": [],
                "stripeAccount": {
                    "user_id": 5,
                    "accountId": "acct_1ITV4XFPn57bOta4",
                    "chargeEnable": 1
                },
                "affiliation_code": "94HV08",
                "subscription": {
                    "id": 4,
                    "active": 1,
                    "expirationDate": "2022-10-11",
                    "subscription": {
                        "id": 8,
                        "role": "touristGuide",
                        "type": "mega",
                        "price": 10000,
                        "monthPrice": 0,
                        "maxPost": "unlimited"
                    }
                }
            },
            "redeemed": 1,
            "redeemable": {
                "id": 4,
                "user": {
                    "id": 5,
                    "profile": {
                        "user_id": 5,
                        "companyType": "society",
                        "companyName": "Feest, Jast and RippinLtd",
                        "firstName": "private field",
                        "lastName": "private field",
                        "country_id": 136,
                        "city": "Gennaroland",
                        "province": null,
                        "address": null,
                        "registeredOffice": "3731 Kuhlman Loaf\nPort Ada, NV 90702",
                        "image": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=41686",
                        "description": "Centralized interactive opensystem",
                        "paymentMethod": "other",
                        "paymentOther": "sit",
                        "tourOperatorGrade": 0,
                        "roles": [
                            "user",
                            "tourOperator"
                        ],
                        "tourPosts": 10,
                        "followers": 10,
                        "tourServices": [
                            {
                                "id": 11,
                                "value": "animation-and-entertainment-activities",
                                "label": "Animation and entertainment activities"
                            },
                            {
                                "id": 51,
                                "value": "hot-chocolate-or-tea",
                                "label": "Hot chocolate or tea"
                            },
                            {
                                "id": 70,
                                "value": "excursions",
                                "label": "Excursions"
                            },
                            {
                                "id": 89,
                                "value": "Tips",
                                "label": "Tips"
                            }
                        ],
                        "fiscalCode": "private field",
                        "vatNumber": "private field",
                        "phonePrefix": "private field",
                        "phoneNumber": "private field",
                        "mobilePrefix": "private field",
                        "mobileNumber": "private field",
                        "faxPrefix": "private field",
                        "faxNumber": "private field",
                        "internetSite": "private field",
                        "pecEmail": "private field",
                        "contactEmail": "private field",
                        "chamberCommerceRegistration": "private field",
                        "identityDoc": "private field",
                        "fiscalCodeDoc": "private field"
                    },
                    "roles": [
                        "user",
                        "tourOperator"
                    ],
                    "permissions": [],
                    "stripeAccount": {
                        "user_id": 5,
                        "accountId": "acct_1ITV4XFPn57bOta4",
                        "chargeEnable": 1
                    },
                    "affiliation_code": "94HV08",
                    "subscription": {
                        "id": 4,
                        "active": 1,
                        "expirationDate": "2022-10-11",
                        "subscription": {
                            "id": 8,
                            "role": "touristGuide",
                            "type": "mega",
                            "price": 10000,
                            "monthPrice": 0,
                            "maxPost": "unlimited"
                        }
                    }
                },
                "active": 1,
                "expirationDate": "2022-10-11",
                "subscription": {
                    "id": 8,
                    "role": "touristGuide",
                    "type": "mega",
                    "price": 10000,
                    "monthPrice": 0,
                    "maxPost": "unlimited"
                }
            },
            "stripeDiscounts": [],
            "redeem_date": "2021-05-07 19:40:46"
        },
        {
            "id": 7,
            "availments": "1",
            "promoter": {
                "id": 5,
                "profile": {
                    "user_id": 5,
                    "companyType": "society",
                    "companyName": "Feest, Jast and RippinLtd",
                    "firstName": "private field",
                    "lastName": "private field",
                    "country_id": 136,
                    "city": "Gennaroland",
                    "province": null,
                    "address": null,
                    "registeredOffice": "3731 Kuhlman Loaf\nPort Ada, NV 90702",
                    "image": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=41686",
                    "description": "Centralized interactive opensystem",
                    "paymentMethod": "other",
                    "paymentOther": "sit",
                    "tourOperatorGrade": 0,
                    "roles": [
                        "user",
                        "tourOperator"
                    ],
                    "tourPosts": 10,
                    "followers": 10,
                    "tourServices": [
                        {
                            "id": 11,
                            "value": "animation-and-entertainment-activities",
                            "label": "Animation and entertainment activities"
                        },
                        {
                            "id": 51,
                            "value": "hot-chocolate-or-tea",
                            "label": "Hot chocolate or tea"
                        },
                        {
                            "id": 70,
                            "value": "excursions",
                            "label": "Excursions"
                        },
                        {
                            "id": 89,
                            "value": "Tips",
                            "label": "Tips"
                        }
                    ],
                    "fiscalCode": "private field",
                    "vatNumber": "private field",
                    "phonePrefix": "private field",
                    "phoneNumber": "private field",
                    "mobilePrefix": "private field",
                    "mobileNumber": "private field",
                    "faxPrefix": "private field",
                    "faxNumber": "private field",
                    "internetSite": "private field",
                    "pecEmail": "private field",
                    "contactEmail": "private field",
                    "chamberCommerceRegistration": "private field",
                    "identityDoc": "private field",
                    "fiscalCodeDoc": "private field"
                },
                "roles": [
                    "user",
                    "tourOperator"
                ],
                "permissions": [],
                "stripeAccount": {
                    "user_id": 5,
                    "accountId": "acct_1ITV4XFPn57bOta4",
                    "chargeEnable": 1
                },
                "affiliation_code": "94HV08",
                "subscription": {
                    "id": 4,
                    "active": 1,
                    "expirationDate": "2022-10-11",
                    "subscription": {
                        "id": 8,
                        "role": "touristGuide",
                        "type": "mega",
                        "price": 10000,
                        "monthPrice": 0,
                        "maxPost": "unlimited"
                    }
                }
            },
            "affiliate": {
                "id": 8,
                "profile": {
                    "user_id": 8,
                    "firstName": "Jackson",
                    "lastName": "Pfannerstill",
                    "gender": "F",
                    "birthDate": "1979-10-22",
                    "country_id": 236,
                    "city": "South Jackelineside",
                    "image": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=80789",
                    "description": "Eaque quasi voluptatem sed. Nobis dolor sed est quam. Quia architecto eaque debitis et. Reiciendis quaerat nam et vitae.",
                    "paymentMethod": "both",
                    "paymentOther": "eum",
                    "companionGrade": 0,
                    "roles": [
                        "user",
                        "traveler"
                    ],
                    "travelerTypes": [
                        {
                            "id": 4,
                            "value": "cultural",
                            "label": "Cultural"
                        }
                    ],
                    "languages": [
                        {
                            "id": 1,
                            "code": "en",
                            "name": "English"
                        },
                        {
                            "id": 2,
                            "code": "it",
                            "name": "Italian"
                        }
                    ],
                    "natures": [
                        {
                            "id": 1,
                            "value": "beach",
                            "label": "Beach & Sea"
                        }
                    ],
                    "followers": 11,
                    "email": "private field",
                    "phoneNumber": "private field",
                    "fiscalCode": "private field",
                    "identityDoc": "private field"
                },
                "roles": [
                    "user",
                    "traveler"
                ],
                "permissions": [],
                "stripeAccount": null,
                "affiliation_code": "1EJVZW",
                "subscription": {
                    "id": 7,
                    "active": 1,
                    "expirationDate": "2021-12-18",
                    "subscription": {
                        "id": 1,
                        "role": "traveler",
                        "type": "free",
                        "price": 0,
                        "monthPrice": 0,
                        "maxPost": "unlimited"
                    }
                }
            },
            "redeemed": 1,
            "redeemable": {
                "id": 7,
                "user": {
                    "id": 8,
                    "profile": {
                        "user_id": 8,
                        "firstName": "Jackson",
                        "lastName": "Pfannerstill",
                        "gender": "F",
                        "birthDate": "1979-10-22",
                        "country_id": 236,
                        "city": "South Jackelineside",
                        "image": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=80789",
                        "description": "Eaque quasi voluptatem sed. Nobis dolor sed est quam. Quia architecto eaque debitis et. Reiciendis quaerat nam et vitae.",
                        "paymentMethod": "both",
                        "paymentOther": "eum",
                        "companionGrade": 0,
                        "roles": [
                            "user",
                            "traveler"
                        ],
                        "travelerTypes": [
                            {
                                "id": 4,
                                "value": "cultural",
                                "label": "Cultural"
                            }
                        ],
                        "languages": [
                            {
                                "id": 1,
                                "code": "en",
                                "name": "English"
                            },
                            {
                                "id": 2,
                                "code": "it",
                                "name": "Italian"
                            }
                        ],
                        "natures": [
                            {
                                "id": 1,
                                "value": "beach",
                                "label": "Beach & Sea"
                            }
                        ],
                        "followers": 11,
                        "email": "private field",
                        "phoneNumber": "private field",
                        "fiscalCode": "private field",
                        "identityDoc": "private field"
                    },
                    "roles": [
                        "user",
                        "traveler"
                    ],
                    "permissions": [],
                    "stripeAccount": null,
                    "affiliation_code": "1EJVZW",
                    "subscription": {
                        "id": 7,
                        "active": 1,
                        "expirationDate": "2021-12-18",
                        "subscription": {
                            "id": 1,
                            "role": "traveler",
                            "type": "free",
                            "price": 0,
                            "monthPrice": 0,
                            "maxPost": "unlimited"
                        }
                    }
                },
                "active": 1,
                "expirationDate": "2021-12-18",
                "subscription": {
                    "id": 1,
                    "role": "traveler",
                    "type": "free",
                    "price": 0,
                    "monthPrice": 0,
                    "maxPost": "unlimited"
                }
            },
            "stripeDiscounts": [],
            "redeem_date": "2021-05-07 19:40:47"
        },
        {
            "id": 12,
            "availments": "1",
            "promoter": {
                "id": 1,
                "profile": {
                    "user_id": 1,
                    "firstName": "Sylvester",
                    "lastName": "Dach",
                    "gender": "F",
                    "birthDate": "1973-01-14",
                    "country_id": 14,
                    "city": "Schmelerside",
                    "image": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=31482",
                    "description": "Temporibus molestiae fuga voluptatem sed rerum dolor. Expedita doloremque qui ut est. Quos illo ea rerum.",
                    "paymentMethod": "stripe",
                    "paymentOther": "omnis",
                    "companionGrade": 0,
                    "roles": [
                        "admin",
                        "user",
                        "traveler"
                    ],
                    "travelerTypes": [
                        {
                            "id": 7,
                            "value": "environmentalist",
                            "label": "Environmentalist"
                        },
                        {
                            "id": 10,
                            "value": "offbeat",
                            "label": "offbeat"
                        }
                    ],
                    "languages": [
                        {
                            "id": 1,
                            "code": "en",
                            "name": "English"
                        },
                        {
                            "id": 2,
                            "code": "it",
                            "name": "Italian"
                        }
                    ],
                    "natures": [
                        {
                            "id": 2,
                            "value": "work",
                            "label": "Work"
                        }
                    ],
                    "followers": 9,
                    "email": "private field",
                    "phoneNumber": "private field",
                    "fiscalCode": "private field",
                    "identityDoc": "private field"
                },
                "roles": [
                    "admin",
                    "user",
                    "traveler"
                ],
                "permissions": [],
                "stripeAccount": null,
                "affiliation_code": "NXA6HB",
                "subscription": null
            },
            "affiliate": {
                "id": 13,
                "profile": {
                    "user_id": 13,
                    "firstName": "Lola",
                    "lastName": "Waters",
                    "gender": "F",
                    "birthDate": "1981-03-26",
                    "country_id": 53,
                    "city": "Dillanside",
                    "image": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=68357",
                    "description": "Qui nesciunt voluptatibus quia harum ipsa in voluptatem. Sequi id iure sint aliquam ipsam. Facere id eveniet fugiat laudantium voluptas.",
                    "paymentMethod": "stripe",
                    "paymentOther": "tempore",
                    "companionGrade": 0,
                    "roles": [
                        "user",
                        "traveler"
                    ],
                    "travelerTypes": [
                        {
                            "id": 4,
                            "value": "cultural",
                            "label": "Cultural"
                        }
                    ],
                    "languages": [
                        {
                            "id": 1,
                            "code": "en",
                            "name": "English"
                        },
                        {
                            "id": 2,
                            "code": "it",
                            "name": "Italian"
                        }
                    ],
                    "natures": [
                        {
                            "id": 3,
                            "value": "mountain",
                            "label": "Mountain"
                        }
                    ],
                    "followers": 8,
                    "email": "private field",
                    "phoneNumber": "private field",
                    "fiscalCode": "private field",
                    "identityDoc": "private field"
                },
                "roles": [
                    "user",
                    "traveler"
                ],
                "permissions": [],
                "stripeAccount": null,
                "affiliation_code": "WE8U4C",
                "subscription": null
            },
            "redeemed": 1,
            "redeemable": {
                "id": 12,
                "user": {
                    "id": 13,
                    "profile": {
                        "user_id": 13,
                        "firstName": "Lola",
                        "lastName": "Waters",
                        "gender": "F",
                        "birthDate": "1981-03-26",
                        "country_id": 53,
                        "city": "Dillanside",
                        "image": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=68357",
                        "description": "Qui nesciunt voluptatibus quia harum ipsa in voluptatem. Sequi id iure sint aliquam ipsam. Facere id eveniet fugiat laudantium voluptas.",
                        "paymentMethod": "stripe",
                        "paymentOther": "tempore",
                        "companionGrade": 0,
                        "roles": [
                            "user",
                            "traveler"
                        ],
                        "travelerTypes": [
                            {
                                "id": 4,
                                "value": "cultural",
                                "label": "Cultural"
                            }
                        ],
                        "languages": [
                            {
                                "id": 1,
                                "code": "en",
                                "name": "English"
                            },
                            {
                                "id": 2,
                                "code": "it",
                                "name": "Italian"
                            }
                        ],
                        "natures": [
                            {
                                "id": 3,
                                "value": "mountain",
                                "label": "Mountain"
                            }
                        ],
                        "followers": 8,
                        "email": "private field",
                        "phoneNumber": "private field",
                        "fiscalCode": "private field",
                        "identityDoc": "private field"
                    },
                    "roles": [
                        "user",
                        "traveler"
                    ],
                    "permissions": [],
                    "stripeAccount": null,
                    "affiliation_code": "WE8U4C",
                    "subscription": null
                },
                "active": 0,
                "expirationDate": "2021-06-05",
                "subscription": {
                    "id": 1,
                    "role": "traveler",
                    "type": "free",
                    "price": 0,
                    "monthPrice": 0,
                    "maxPost": "unlimited"
                }
            },
            "stripeDiscounts": [],
            "redeem_date": "2021-05-07 19:40:50"
        },
        {
            "id": 14,
            "availments": "1",
            "promoter": {
                "id": 10,
                "profile": {
                    "user_id": 10,
                    "accomodationType": "study_stay_center",
                    "accomodationName": "Kassulke LtdInc",
                    "vatNumber": "7003167893716",
                    "registeredOffice": "72528 Rosalinda Roads Apt. 645\nReganport, NY 45366",
                    "country_id": {
                        "id": 234,
                        "code": "TM",
                        "name": "Turkmenistan",
                        "created_at": "2021-05-07 19:39:11",
                        "updated_at": "2021-05-07 19:39:11"
                    },
                    "province": "Pakistan",
                    "city": "North Ginaborough",
                    "address": "5976 Kautzer Fall Suite 515\nNakiaville, RI 55062",
                    "latitude": "-52.295971",
                    "longitude": "129.899492",
                    "cityTax": 7,
                    "phonePrefix": "+16",
                    "phoneNumber": "8009906162",
                    "mobilePrefix": "+09",
                    "mobileNumber": "4317749406",
                    "faxPrefix": "+44",
                    "faxNumber": "1003365484",
                    "contactEmail": "harley58@thiel.com",
                    "image": "https:\/\/loremflickr.com\/362\/180\/hotel\/?lock=88231",
                    "description": "Repudiandae quis ut voluptatibus repellendus laboriosam iure aut. Voluptas fugiat eaque magnam rerum ratione. Et qui unde tempore optio unde. Cupiditate labore voluptas quaerat dolorem fuga sint.",
                    "recommendations": "Tempora voluptatem rerum consequatur hic ducimus reiciendis. Distinctio magni quo blanditiis inventore rerum. Iure adipisci reprehenderit iure ipsum et.",
                    "yearOfConstruction": 2000,
                    "lastRenovation": 1967,
                    "rooms": 7,
                    "nonSmokingRooms": 9,
                    "beds": 16,
                    "handicappedRooms": 5,
                    "suites": 6,
                    "plans": 11,
                    "H24CheckIn": 1,
                    "checkInHourStart": "22:34:30",
                    "checkInHourEnd": "20:52:49",
                    "checkOutHourStart": "02:55:50",
                    "checkOutHourEnd": "19:28:44",
                    "petsAllowed": 1,
                    "petsSize": "medium",
                    "stars": "1",
                    "qualityMark": "Aspernatur officiis neque ut sit sit sit iure.",
                    "noClassification": 0,
                    "accomodationGrade": 0,
                    "roles": [
                        "user",
                        "accomodation"
                    ],
                    "roomPosts": 8,
                    "hotelServicesIncluded": [
                        {
                            "id": 1,
                            "group": "accessibility",
                            "value": "wheelchair-accessible",
                            "label": "Wheelchair accessible"
                        },
                        {
                            "id": 8,
                            "group": "accessibility",
                            "value": "toilet-with-grab-bars",
                            "label": "Toilet with grab bars"
                        },
                        {
                            "id": 48,
                            "group": "activities",
                            "value": "inflatable-playground",
                            "label": "Inflatable playground"
                        },
                        {
                            "id": 117,
                            "group": "entertainment",
                            "value": "nursery",
                            "label": "Nursery"
                        },
                        {
                            "id": 122,
                            "group": "cleaning-services",
                            "value": "dry-wash",
                            "label": "Dry wash"
                        },
                        {
                            "id": 169,
                            "group": "wellness-services",
                            "value": "depilation-with-wax",
                            "label": "Depilation with wax"
                        }
                    ],
                    "hotelServicesNotIncluded": [
                        {
                            "id": 29,
                            "group": "activities",
                            "value": "bowling",
                            "label": "Bowling",
                            "price": 72419
                        },
                        {
                            "id": 76,
                            "group": "catering-services",
                            "value": "ice-cream\/pastry-shop",
                            "label": "Ice cream \/ Pastry shop",
                            "price": 72419
                        },
                        {
                            "id": 113,
                            "group": "entertainment",
                            "value": "dance pub",
                            "label": "Dance pub",
                            "price": 72419
                        },
                        {
                            "id": 191,
                            "group": "wellness-services",
                            "value": "deck-chairs\/loungers",
                            "label": "Deck chairs \/ loungers",
                            "price": 72419
                        },
                        {
                            "id": 201,
                            "group": "wellness-services",
                            "value": "facial-treatments",
                            "label": "Facial treatments",
                            "price": 72419
                        }
                    ],
                    "languages": [
                        {
                            "id": 1,
                            "code": "en",
                            "name": "English"
                        },
                        {
                            "id": 2,
                            "code": "it",
                            "name": "Italian"
                        }
                    ],
                    "images": [
                        {
                            "id": 11,
                            "image": "https:\/\/loremflickr.com\/362\/180\/travel,italy\/?lock=49840",
                            "image_name": "",
                            "category": "gallery"
                        },
                        {
                            "id": 12,
                            "image": "https:\/\/loremflickr.com\/362\/180\/travel,italy\/?lock=70064",
                            "image_name": "",
                            "category": "gallery"
                        },
                        {
                            "id": 13,
                            "image": "https:\/\/loremflickr.com\/362\/180\/travel,italy\/?lock=36345",
                            "image_name": "",
                            "category": "gallery"
                        }
                    ]
                },
                "roles": [
                    "user",
                    "accomodation"
                ],
                "permissions": [],
                "stripeAccount": {
                    "user_id": 10,
                    "accountId": "acct_1ITV4XFPn57bOta4",
                    "chargeEnable": 1
                },
                "affiliation_code": "FVY5Y3",
                "subscription": null
            },
            "affiliate": {
                "id": 15,
                "profile": {
                    "user_id": 15,
                    "firstName": "Dameon",
                    "lastName": "Smith",
                    "gender": "F",
                    "birthDate": "2013-04-27",
                    "country_id": 162,
                    "city": "Handfurt",
                    "image": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=22869",
                    "description": "Quis sint vero consequuntur itaque. Veniam esse nihil quia vitae eaque. Consequatur dolores ut velit quis voluptatibus. Autem accusamus blanditiis ea provident optio ut ratione aut.",
                    "paymentMethod": "both",
                    "paymentOther": "architecto",
                    "companionGrade": 0,
                    "roles": [
                        "user",
                        "traveler"
                    ],
                    "travelerTypes": [
                        {
                            "id": 9,
                            "value": "luxury",
                            "label": "Luxury"
                        },
                        {
                            "id": 12,
                            "value": "all-inclusive",
                            "label": "All Inclusive"
                        }
                    ],
                    "languages": [
                        {
                            "id": 1,
                            "code": "en",
                            "name": "English"
                        },
                        {
                            "id": 2,
                            "code": "it",
                            "name": "Italian"
                        }
                    ],
                    "natures": [
                        {
                            "id": 4,
                            "value": "cruise",
                            "label": "Cruise"
                        }
                    ],
                    "followers": 9,
                    "email": "private field",
                    "phoneNumber": "private field",
                    "fiscalCode": "private field",
                    "identityDoc": "private field"
                },
                "roles": [
                    "user",
                    "traveler"
                ],
                "permissions": [],
                "stripeAccount": null,
                "affiliation_code": "MVAJXA",
                "subscription": null
            },
            "redeemed": 1,
            "redeemable": {
                "id": 14,
                "user": {
                    "id": 15,
                    "profile": {
                        "user_id": 15,
                        "firstName": "Dameon",
                        "lastName": "Smith",
                        "gender": "F",
                        "birthDate": "2013-04-27",
                        "country_id": 162,
                        "city": "Handfurt",
                        "image": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=22869",
                        "description": "Quis sint vero consequuntur itaque. Veniam esse nihil quia vitae eaque. Consequatur dolores ut velit quis voluptatibus. Autem accusamus blanditiis ea provident optio ut ratione aut.",
                        "paymentMethod": "both",
                        "paymentOther": "architecto",
                        "companionGrade": 0,
                        "roles": [
                            "user",
                            "traveler"
                        ],
                        "travelerTypes": [
                            {
                                "id": 9,
                                "value": "luxury",
                                "label": "Luxury"
                            },
                            {
                                "id": 12,
                                "value": "all-inclusive",
                                "label": "All Inclusive"
                            }
                        ],
                        "languages": [
                            {
                                "id": 1,
                                "code": "en",
                                "name": "English"
                            },
                            {
                                "id": 2,
                                "code": "it",
                                "name": "Italian"
                            }
                        ],
                        "natures": [
                            {
                                "id": 4,
                                "value": "cruise",
                                "label": "Cruise"
                            }
                        ],
                        "followers": 9,
                        "email": "private field",
                        "phoneNumber": "private field",
                        "fiscalCode": "private field",
                        "identityDoc": "private field"
                    },
                    "roles": [
                        "user",
                        "traveler"
                    ],
                    "permissions": [],
                    "stripeAccount": null,
                    "affiliation_code": "MVAJXA",
                    "subscription": null
                },
                "active": 0,
                "expirationDate": "2023-01-03",
                "subscription": {
                    "id": 1,
                    "role": "traveler",
                    "type": "free",
                    "price": 0,
                    "monthPrice": 0,
                    "maxPost": "unlimited"
                }
            },
            "stripeDiscounts": [],
            "redeem_date": "2021-05-07 19:40:51"
        },
        {
            "id": 15,
            "availments": "1",
            "promoter": {
                "id": 15,
                "profile": {
                    "user_id": 15,
                    "firstName": "Dameon",
                    "lastName": "Smith",
                    "gender": "F",
                    "birthDate": "2013-04-27",
                    "country_id": 162,
                    "city": "Handfurt",
                    "image": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=22869",
                    "description": "Quis sint vero consequuntur itaque. Veniam esse nihil quia vitae eaque. Consequatur dolores ut velit quis voluptatibus. Autem accusamus blanditiis ea provident optio ut ratione aut.",
                    "paymentMethod": "both",
                    "paymentOther": "architecto",
                    "companionGrade": 0,
                    "roles": [
                        "user",
                        "traveler"
                    ],
                    "travelerTypes": [
                        {
                            "id": 9,
                            "value": "luxury",
                            "label": "Luxury"
                        },
                        {
                            "id": 12,
                            "value": "all-inclusive",
                            "label": "All Inclusive"
                        }
                    ],
                    "languages": [
                        {
                            "id": 1,
                            "code": "en",
                            "name": "English"
                        },
                        {
                            "id": 2,
                            "code": "it",
                            "name": "Italian"
                        }
                    ],
                    "natures": [
                        {
                            "id": 4,
                            "value": "cruise",
                            "label": "Cruise"
                        }
                    ],
                    "followers": 9,
                    "email": "private field",
                    "phoneNumber": "private field",
                    "fiscalCode": "private field",
                    "identityDoc": "private field"
                },
                "roles": [
                    "user",
                    "traveler"
                ],
                "permissions": [],
                "stripeAccount": null,
                "affiliation_code": "MVAJXA",
                "subscription": null
            },
            "affiliate": {
                "id": 16,
                "profile": {
                    "user_id": 16,
                    "firstName": "Zola",
                    "lastName": "Brown",
                    "gender": "F",
                    "birthDate": "1985-03-17",
                    "country_id": 95,
                    "city": "West Jaron",
                    "image": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=68030",
                    "description": "Fugit quo odio atque repudiandae nemo fuga quisquam. Qui ut delectus velit similique est pariatur. Laboriosam commodi totam quae eius quidem dolores.",
                    "paymentMethod": "stripe",
                    "paymentOther": "nulla",
                    "companionGrade": 0,
                    "roles": [
                        "user",
                        "traveler"
                    ],
                    "travelerTypes": [
                        {
                            "id": 4,
                            "value": "cultural",
                            "label": "Cultural"
                        }
                    ],
                    "languages": [
                        {
                            "id": 1,
                            "code": "en",
                            "name": "English"
                        }
                    ],
                    "natures": [
                        {
                            "id": 3,
                            "value": "mountain",
                            "label": "Mountain"
                        }
                    ],
                    "followers": 9,
                    "email": "private field",
                    "phoneNumber": "private field",
                    "fiscalCode": "private field",
                    "identityDoc": "private field"
                },
                "roles": [
                    "user",
                    "traveler"
                ],
                "permissions": [],
                "stripeAccount": null,
                "affiliation_code": "N0RFZ1",
                "subscription": {
                    "id": 15,
                    "active": 1,
                    "expirationDate": "2022-04-05",
                    "subscription": {
                        "id": 1,
                        "role": "traveler",
                        "type": "free",
                        "price": 0,
                        "monthPrice": 0,
                        "maxPost": "unlimited"
                    }
                }
            },
            "redeemed": 1,
            "redeemable": {
                "id": 15,
                "user": {
                    "id": 16,
                    "profile": {
                        "user_id": 16,
                        "firstName": "Zola",
                        "lastName": "Brown",
                        "gender": "F",
                        "birthDate": "1985-03-17",
                        "country_id": 95,
                        "city": "West Jaron",
                        "image": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=68030",
                        "description": "Fugit quo odio atque repudiandae nemo fuga quisquam. Qui ut delectus velit similique est pariatur. Laboriosam commodi totam quae eius quidem dolores.",
                        "paymentMethod": "stripe",
                        "paymentOther": "nulla",
                        "companionGrade": 0,
                        "roles": [
                            "user",
                            "traveler"
                        ],
                        "travelerTypes": [
                            {
                                "id": 4,
                                "value": "cultural",
                                "label": "Cultural"
                            }
                        ],
                        "languages": [
                            {
                                "id": 1,
                                "code": "en",
                                "name": "English"
                            }
                        ],
                        "natures": [
                            {
                                "id": 3,
                                "value": "mountain",
                                "label": "Mountain"
                            }
                        ],
                        "followers": 9,
                        "email": "private field",
                        "phoneNumber": "private field",
                        "fiscalCode": "private field",
                        "identityDoc": "private field"
                    },
                    "roles": [
                        "user",
                        "traveler"
                    ],
                    "permissions": [],
                    "stripeAccount": null,
                    "affiliation_code": "N0RFZ1",
                    "subscription": {
                        "id": 15,
                        "active": 1,
                        "expirationDate": "2022-04-05",
                        "subscription": {
                            "id": 1,
                            "role": "traveler",
                            "type": "free",
                            "price": 0,
                            "monthPrice": 0,
                            "maxPost": "unlimited"
                        }
                    }
                },
                "active": 1,
                "expirationDate": "2022-04-05",
                "subscription": {
                    "id": 1,
                    "role": "traveler",
                    "type": "free",
                    "price": 0,
                    "monthPrice": 0,
                    "maxPost": "unlimited"
                }
            },
            "stripeDiscounts": [],
            "redeem_date": "2021-05-07 19:40:51"
        },
        {
            "id": 16,
            "availments": "1",
            "promoter": {
                "id": 7,
                "profile": {
                    "user_id": 7,
                    "companyType": "society",
                    "companyName": "Prosacco, Emmerich and Donnellyand Sons",
                    "firstName": "private field",
                    "lastName": "private field",
                    "country_id": 243,
                    "city": "Port Jackeline",
                    "province": null,
                    "address": null,
                    "registeredOffice": "552 Wolf Stream\nSouth Cloyd, IN 52050",
                    "image": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=18118",
                    "description": "Realigned assymetric circuit",
                    "paymentMethod": "both",
                    "paymentOther": "tempore",
                    "roles": [
                        "user",
                        "ecommerceSeller"
                    ],
                    "followers": 11,
                    "fiscalCode": "private field",
                    "vatNumber": "private field",
                    "phonePrefix": "private field",
                    "phoneNumber": "private field",
                    "mobilePrefix": "private field",
                    "mobileNumber": "private field",
                    "faxPrefix": "private field",
                    "faxNumber": "private field",
                    "internetSite": "private field",
                    "pecEmail": "private field",
                    "contactEmail": "private field",
                    "chamberCommerceRegistration": "private field",
                    "identityDoc": "private field",
                    "fiscalCodeDoc": "private field"
                },
                "roles": [
                    "user",
                    "ecommerceSeller"
                ],
                "permissions": [],
                "stripeAccount": {
                    "user_id": 7,
                    "accountId": "acct_1ITV4XFPn57bOta4",
                    "chargeEnable": 1
                },
                "affiliation_code": "1EZC5P",
                "subscription": null
            },
            "affiliate": {
                "id": 17,
                "profile": {
                    "user_id": 17,
                    "firstName": "Jairo",
                    "lastName": "Huels",
                    "gender": "M",
                    "birthDate": "1979-07-28",
                    "country_id": 49,
                    "city": "Margiebury",
                    "image": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=39329",
                    "description": "Quibusdam qui eaque voluptas quis cumque facilis autem. Non et dolorem aut facere. Omnis hic eum eveniet neque facilis qui.",
                    "paymentMethod": "other",
                    "paymentOther": "enim",
                    "companionGrade": 0,
                    "roles": [
                        "user",
                        "traveler"
                    ],
                    "travelerTypes": [
                        {
                            "id": 7,
                            "value": "environmentalist",
                            "label": "Environmentalist"
                        },
                        {
                            "id": 9,
                            "value": "luxury",
                            "label": "Luxury"
                        }
                    ],
                    "languages": [
                        {
                            "id": 1,
                            "code": "en",
                            "name": "English"
                        }
                    ],
                    "natures": [
                        {
                            "id": 2,
                            "value": "work",
                            "label": "Work"
                        }
                    ],
                    "followers": 8,
                    "email": "private field",
                    "phoneNumber": "private field",
                    "fiscalCode": "private field",
                    "identityDoc": "private field"
                },
                "roles": [
                    "user",
                    "traveler"
                ],
                "permissions": [],
                "stripeAccount": null,
                "affiliation_code": "P7LW0Z",
                "subscription": {
                    "id": 16,
                    "active": 1,
                    "expirationDate": "2021-10-19",
                    "subscription": {
                        "id": 1,
                        "role": "traveler",
                        "type": "free",
                        "price": 0,
                        "monthPrice": 0,
                        "maxPost": "unlimited"
                    }
                }
            },
            "redeemed": 1,
            "redeemable": {
                "id": 16,
                "user": {
                    "id": 17,
                    "profile": {
                        "user_id": 17,
                        "firstName": "Jairo",
                        "lastName": "Huels",
                        "gender": "M",
                        "birthDate": "1979-07-28",
                        "country_id": 49,
                        "city": "Margiebury",
                        "image": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=39329",
                        "description": "Quibusdam qui eaque voluptas quis cumque facilis autem. Non et dolorem aut facere. Omnis hic eum eveniet neque facilis qui.",
                        "paymentMethod": "other",
                        "paymentOther": "enim",
                        "companionGrade": 0,
                        "roles": [
                            "user",
                            "traveler"
                        ],
                        "travelerTypes": [
                            {
                                "id": 7,
                                "value": "environmentalist",
                                "label": "Environmentalist"
                            },
                            {
                                "id": 9,
                                "value": "luxury",
                                "label": "Luxury"
                            }
                        ],
                        "languages": [
                            {
                                "id": 1,
                                "code": "en",
                                "name": "English"
                            }
                        ],
                        "natures": [
                            {
                                "id": 2,
                                "value": "work",
                                "label": "Work"
                            }
                        ],
                        "followers": 8,
                        "email": "private field",
                        "phoneNumber": "private field",
                        "fiscalCode": "private field",
                        "identityDoc": "private field"
                    },
                    "roles": [
                        "user",
                        "traveler"
                    ],
                    "permissions": [],
                    "stripeAccount": null,
                    "affiliation_code": "P7LW0Z",
                    "subscription": {
                        "id": 16,
                        "active": 1,
                        "expirationDate": "2021-10-19",
                        "subscription": {
                            "id": 1,
                            "role": "traveler",
                            "type": "free",
                            "price": 0,
                            "monthPrice": 0,
                            "maxPost": "unlimited"
                        }
                    }
                },
                "active": 1,
                "expirationDate": "2021-10-19",
                "subscription": {
                    "id": 1,
                    "role": "traveler",
                    "type": "free",
                    "price": 0,
                    "monthPrice": 0,
                    "maxPost": "unlimited"
                }
            },
            "stripeDiscounts": [],
            "redeem_date": "2021-05-07 19:40:51"
        },
        {
            "id": 18,
            "availments": "1",
            "promoter": {
                "id": 2,
                "profile": {
                    "user_id": 2,
                    "accomodationType": "alpine_refuge",
                    "accomodationName": "Reilly, Stamm and VonRuedenand Sons",
                    "vatNumber": "8765373403026",
                    "registeredOffice": "7750 Paxton Park\nGersonberg, KY 10487",
                    "country_id": {
                        "id": 184,
                        "code": "QA",
                        "name": "Qatar",
                        "created_at": "2021-05-07 19:39:09",
                        "updated_at": "2021-05-07 19:39:09"
                    },
                    "province": "Trinidad and Tobago",
                    "city": "New Clark",
                    "address": "685 Harris Trail Suite 721\nEast Julietfort, ME 72941-6111",
                    "latitude": "-79.336225",
                    "longitude": "136.131302",
                    "cityTax": 13,
                    "phonePrefix": "+83",
                    "phoneNumber": "2893022859",
                    "mobilePrefix": "+22",
                    "mobileNumber": "9169087732",
                    "faxPrefix": "+73",
                    "faxNumber": "6600753559",
                    "contactEmail": "terry.delaney@gmail.com",
                    "image": "https:\/\/loremflickr.com\/362\/180\/hotel\/?lock=63032",
                    "description": "Quidem voluptas atque nulla necessitatibus magni. Nihil quis non optio veniam dolores quod perspiciatis.",
                    "recommendations": "Non possimus voluptas beatae quaerat eos qui. Fugiat excepturi atque qui esse ipsum. Corrupti libero est atque.",
                    "yearOfConstruction": 1939,
                    "lastRenovation": 1925,
                    "rooms": 6,
                    "nonSmokingRooms": 6,
                    "beds": 18,
                    "handicappedRooms": 8,
                    "suites": 5,
                    "plans": 13,
                    "H24CheckIn": 1,
                    "checkInHourStart": "17:38:26",
                    "checkInHourEnd": "03:33:26",
                    "checkOutHourStart": "14:11:05",
                    "checkOutHourEnd": "18:05:09",
                    "petsAllowed": 0,
                    "petsSize": "big",
                    "stars": "2",
                    "qualityMark": "Rem est ipsam voluptatem ut ut quibusdam voluptas.",
                    "noClassification": 0,
                    "accomodationGrade": 0,
                    "roles": [
                        "user",
                        "accomodation"
                    ],
                    "roomPosts": 8,
                    "hotelServicesIncluded": [
                        {
                            "id": 32,
                            "group": "activities",
                            "value": "tennis-court",
                            "label": "Tennis court"
                        },
                        {
                            "id": 45,
                            "group": "activities",
                            "value": "Nightclub\/DJ",
                            "label": "Nightclub \/ DJ"
                        },
                        {
                            "id": 56,
                            "group": "activities",
                            "value": "snorkeling",
                            "label": "Snorkeling"
                        },
                        {
                            "id": 58,
                            "group": "activities",
                            "value": "equipped-and-supervised-beach",
                            "label": "Equipped and supervised beach"
                        },
                        {
                            "id": 121,
                            "group": "entertainment",
                            "value": "theater",
                            "label": "Theater"
                        },
                        {
                            "id": 126,
                            "group": "cleaning-services",
                            "value": "ironing-service",
                            "label": "Ironing service"
                        },
                        {
                            "id": 130,
                            "group": "business-services",
                            "value": "spaces-for-meetings\/banquets",
                            "label": "Spaces for meetings\/banquets"
                        },
                        {
                            "id": 137,
                            "group": "security",
                            "value": "CCTV-cameras-outside-the-facility",
                            "label": "CCTV cameras outside the facility"
                        }
                    ],
                    "hotelServicesNotIncluded": [
                        {
                            "id": 49,
                            "group": "activities",
                            "value": "nature-trails-in-the-lagoon",
                            "label": "Nature trails in the lagoon",
                            "price": 57255
                        },
                        {
                            "id": 107,
                            "group": "reception-services",
                            "value": "atm-machine",
                            "label": "ATM machine",
                            "price": 57255
                        },
                        {
                            "id": 168,
                            "group": "wellness-services",
                            "value": "body-bandages",
                            "label": "Body bandages",
                            "price": 57255
                        },
                        {
                            "id": 179,
                            "group": "wellness-services",
                            "value": "foot-massage",
                            "label": "Foot massage",
                            "price": 57255
                        }
                    ],
                    "languages": [
                        {
                            "id": 1,
                            "code": "en",
                            "name": "English"
                        },
                        {
                            "id": 2,
                            "code": "it",
                            "name": "Italian"
                        }
                    ],
                    "images": [
                        {
                            "id": 1,
                            "image": "https:\/\/loremflickr.com\/362\/180\/travel,italy\/?lock=43912",
                            "image_name": "",
                            "category": "gallery"
                        },
                        {
                            "id": 2,
                            "image": "https:\/\/loremflickr.com\/362\/180\/travel,italy\/?lock=58259",
                            "image_name": "",
                            "category": "gallery"
                        },
                        {
                            "id": 3,
                            "image": "https:\/\/loremflickr.com\/362\/180\/travel,italy\/?lock=54165",
                            "image_name": "",
                            "category": "gallery"
                        },
                        {
                            "id": 4,
                            "image": "https:\/\/loremflickr.com\/362\/180\/travel,italy\/?lock=71534",
                            "image_name": "",
                            "category": "gallery"
                        },
                        {
                            "id": 5,
                            "image": "https:\/\/loremflickr.com\/362\/180\/travel,italy\/?lock=62822",
                            "image_name": "",
                            "category": "gallery"
                        }
                    ]
                },
                "roles": [
                    "user",
                    "accomodation"
                ],
                "permissions": [],
                "stripeAccount": {
                    "user_id": 2,
                    "accountId": "acct_1ITV4XFPn57bOta4",
                    "chargeEnable": 1
                },
                "affiliation_code": "APRA0D",
                "subscription": {
                    "id": 2,
                    "active": 1,
                    "expirationDate": "2023-05-03",
                    "subscription": {
                        "id": 8,
                        "role": "touristGuide",
                        "type": "mega",
                        "price": 10000,
                        "monthPrice": 0,
                        "maxPost": "unlimited"
                    }
                }
            },
            "affiliate": {
                "id": 19,
                "profile": {
                    "user_id": 19,
                    "firstName": "Jermey",
                    "lastName": "Jenkins",
                    "gender": "F",
                    "birthDate": "1996-02-11",
                    "country_id": 120,
                    "city": "Port Guidofort",
                    "image": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=84268",
                    "description": "Quis praesentium illo ullam molestias soluta. Nisi atque doloribus voluptatem iusto ut esse. Est fuga ut molestias. Aspernatur earum porro est nemo itaque.",
                    "paymentMethod": "stripe",
                    "paymentOther": "aut",
                    "companionGrade": 0,
                    "roles": [
                        "user",
                        "traveler"
                    ],
                    "travelerTypes": [
                        {
                            "id": 3,
                            "value": "adventurer",
                            "label": "Adventurer"
                        }
                    ],
                    "languages": [
                        {
                            "id": 1,
                            "code": "en",
                            "name": "English"
                        }
                    ],
                    "natures": [
                        {
                            "id": 5,
                            "value": "foodandwine",
                            "label": "food and wine"
                        }
                    ],
                    "followers": 10,
                    "email": "private field",
                    "phoneNumber": "private field",
                    "fiscalCode": "private field",
                    "identityDoc": "private field"
                },
                "roles": [
                    "user",
                    "traveler"
                ],
                "permissions": [],
                "stripeAccount": null,
                "affiliation_code": "N8BKM5",
                "subscription": {
                    "id": 18,
                    "active": 1,
                    "expirationDate": "2023-03-10",
                    "subscription": {
                        "id": 1,
                        "role": "traveler",
                        "type": "free",
                        "price": 0,
                        "monthPrice": 0,
                        "maxPost": "unlimited"
                    }
                }
            },
            "redeemed": 0,
            "redeemable": null,
            "stripeDiscounts": [],
            "redeem_date": null
        },
        {
            "id": 20,
            "availments": "1",
            "promoter": {
                "id": 9,
                "profile": {
                    "user_id": 9,
                    "accomodationType": "mountain_retreat",
                    "accomodationName": "Nolan-BlickLLC",
                    "vatNumber": "9790226058978",
                    "registeredOffice": "6602 Foster Row Apt. 977\nHettingerview, UT 23111-5579",
                    "country_id": {
                        "id": 63,
                        "code": "DK",
                        "name": "Denmark",
                        "created_at": "2021-05-07 19:39:06",
                        "updated_at": "2021-05-07 19:39:06"
                    },
                    "province": "Turks and Caicos Islands",
                    "city": "Garricktown",
                    "address": "92545 Macejkovic Rue Suite 903\nIdellstad, NC 03228",
                    "latitude": "-30.125111",
                    "longitude": "-53.393493",
                    "cityTax": 20,
                    "phonePrefix": "+58",
                    "phoneNumber": "8389021817",
                    "mobilePrefix": "+86",
                    "mobileNumber": "5672747652",
                    "faxPrefix": "+16",
                    "faxNumber": "4095693004",
                    "contactEmail": "kieran11@hotmail.com",
                    "image": "https:\/\/loremflickr.com\/362\/180\/hotel\/?lock=86341",
                    "description": "Illo non numquam reiciendis omnis rerum rem. In at ut dolor sed et. Qui quaerat cumque ut. Voluptatibus corporis explicabo pariatur culpa.",
                    "recommendations": "Quod sit deserunt ab iusto enim. Aliquid et ipsam nisi id maiores. Sint qui fugiat sunt dicta voluptatibus ducimus. Ut qui et sint culpa. Recusandae commodi non omnis omnis tenetur quasi.",
                    "yearOfConstruction": 1981,
                    "lastRenovation": 1905,
                    "rooms": 8,
                    "nonSmokingRooms": 16,
                    "beds": 16,
                    "handicappedRooms": 19,
                    "suites": 17,
                    "plans": 13,
                    "H24CheckIn": 1,
                    "checkInHourStart": "20:16:25",
                    "checkInHourEnd": "07:52:07",
                    "checkOutHourStart": "23:22:59",
                    "checkOutHourEnd": "12:48:58",
                    "petsAllowed": 1,
                    "petsSize": "big",
                    "stars": "3",
                    "qualityMark": "Cum eos harum totam animi dolores saepe.",
                    "noClassification": 1,
                    "accomodationGrade": 0,
                    "roles": [
                        "user",
                        "accomodation"
                    ],
                    "roomPosts": 4,
                    "hotelServicesIncluded": [
                        {
                            "id": 30,
                            "group": "activities",
                            "value": "soccer",
                            "label": "Soccer"
                        },
                        {
                            "id": 49,
                            "group": "activities",
                            "value": "nature-trails-in-the-lagoon",
                            "label": "Nature trails in the lagoon"
                        },
                        {
                            "id": 53,
                            "group": "activities",
                            "value": "PADI-diving-school",
                            "label": "PADI diving school"
                        },
                        {
                            "id": 76,
                            "group": "catering-services",
                            "value": "ice-cream\/pastry-shop",
                            "label": "Ice cream \/ Pastry shop"
                        },
                        {
                            "id": 86,
                            "group": "parking-area",
                            "value": "public-parking-available-in-the-area",
                            "label": "Public parking available in the area"
                        },
                        {
                            "id": 95,
                            "group": "reception-services",
                            "value": "cash-desk",
                            "label": "Cash desk"
                        },
                        {
                            "id": 117,
                            "group": "entertainment",
                            "value": "nursery",
                            "label": "Nursery"
                        },
                        {
                            "id": 123,
                            "group": "cleaning-services",
                            "value": "shoe-shine",
                            "label": "Shoe shine"
                        },
                        {
                            "id": 130,
                            "group": "business-services",
                            "value": "spaces-for-meetings\/banquets",
                            "label": "Spaces for meetings\/banquets"
                        },
                        {
                            "id": 139,
                            "group": "security",
                            "value": "periodic-treatments",
                            "label": "Periodic treatments"
                        }
                    ],
                    "hotelServicesNotIncluded": [
                        {
                            "id": 24,
                            "group": "activities",
                            "value": "aquagym",
                            "label": "Aquagym",
                            "price": 78098
                        },
                        {
                            "id": 71,
                            "group": "open-spaces",
                            "value": "Terrace",
                            "label": "Terrace",
                            "price": 78098
                        },
                        {
                            "id": 72,
                            "group": "open-spaces",
                            "value": "Solarium terrace",
                            "label": "Solarium terrace",
                            "price": 78098
                        },
                        {
                            "id": 106,
                            "group": "reception-services",
                            "value": "concierge-service",
                            "label": "Concierge service",
                            "price": 78098
                        },
                        {
                            "id": 117,
                            "group": "entertainment",
                            "value": "nursery",
                            "label": "Nursery",
                            "price": 78098
                        },
                        {
                            "id": 151,
                            "group": "general-services",
                            "value": "carbon-monoxide-detector",
                            "label": "Carbon monoxide detector",
                            "price": 78098
                        },
                        {
                            "id": 156,
                            "group": "general-services",
                            "value": "hypoallergenic-solutions",
                            "label": "Hypoallergenic solutions",
                            "price": 78098
                        },
                        {
                            "id": 214,
                            "group": "transport",
                            "value": "shuttle-to-train-station",
                            "label": "Shuttle to train station",
                            "price": 78098
                        }
                    ],
                    "languages": [
                        {
                            "id": 1,
                            "code": "en",
                            "name": "English"
                        }
                    ],
                    "images": [
                        {
                            "id": 6,
                            "image": "https:\/\/loremflickr.com\/362\/180\/travel,italy\/?lock=98619",
                            "image_name": "",
                            "category": "gallery"
                        },
                        {
                            "id": 7,
                            "image": "https:\/\/loremflickr.com\/362\/180\/travel,italy\/?lock=87987",
                            "image_name": "",
                            "category": "gallery"
                        },
                        {
                            "id": 8,
                            "image": "https:\/\/loremflickr.com\/362\/180\/travel,italy\/?lock=91287",
                            "image_name": "",
                            "category": "gallery"
                        },
                        {
                            "id": 9,
                            "image": "https:\/\/loremflickr.com\/362\/180\/travel,italy\/?lock=76676",
                            "image_name": "",
                            "category": "gallery"
                        },
                        {
                            "id": 10,
                            "image": "https:\/\/loremflickr.com\/362\/180\/travel,italy\/?lock=67002",
                            "image_name": "",
                            "category": "gallery"
                        }
                    ]
                },
                "roles": [
                    "user",
                    "accomodation"
                ],
                "permissions": [],
                "stripeAccount": {
                    "user_id": 9,
                    "accountId": "acct_1ITV4XFPn57bOta4",
                    "chargeEnable": 1
                },
                "affiliation_code": "KESFO6",
                "subscription": {
                    "id": 8,
                    "active": 1,
                    "expirationDate": "2021-09-06",
                    "subscription": {
                        "id": 8,
                        "role": "touristGuide",
                        "type": "mega",
                        "price": 10000,
                        "monthPrice": 0,
                        "maxPost": "unlimited"
                    }
                }
            },
            "affiliate": {
                "id": 21,
                "profile": {
                    "user_id": 21,
                    "firstName": "Jazmyne",
                    "lastName": "Schuster",
                    "gender": "M",
                    "birthDate": "1989-03-22",
                    "country_id": 192,
                    "city": "Schoenland",
                    "image": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=89304",
                    "description": "Quo magni temporibus corrupti similique voluptatem. Optio voluptatem dolorem officiis recusandae est ut quae. Quia adipisci non esse ea. Quae est voluptatem ab in qui. Voluptatem sint at nobis non.",
                    "paymentMethod": "both",
                    "paymentOther": "distinctio",
                    "companionGrade": 0,
                    "roles": [
                        "user",
                        "traveler"
                    ],
                    "travelerTypes": [
                        {
                            "id": 9,
                            "value": "luxury",
                            "label": "Luxury"
                        }
                    ],
                    "languages": [
                        {
                            "id": 1,
                            "code": "en",
                            "name": "English"
                        }
                    ],
                    "natures": [
                        {
                            "id": 2,
                            "value": "work",
                            "label": "Work"
                        },
                        {
                            "id": 5,
                            "value": "foodandwine",
                            "label": "food and wine"
                        }
                    ],
                    "followers": 9,
                    "email": "private field",
                    "phoneNumber": "private field",
                    "fiscalCode": "private field",
                    "identityDoc": "private field"
                },
                "roles": [
                    "user",
                    "traveler"
                ],
                "permissions": [],
                "stripeAccount": null,
                "affiliation_code": "JPA2AI",
                "subscription": {
                    "id": 20,
                    "active": 1,
                    "expirationDate": "2022-09-19",
                    "subscription": {
                        "id": 1,
                        "role": "traveler",
                        "type": "free",
                        "price": 0,
                        "monthPrice": 0,
                        "maxPost": "unlimited"
                    }
                }
            },
            "redeemed": 1,
            "redeemable": {
                "id": 20,
                "user": {
                    "id": 21,
                    "profile": {
                        "user_id": 21,
                        "firstName": "Jazmyne",
                        "lastName": "Schuster",
                        "gender": "M",
                        "birthDate": "1989-03-22",
                        "country_id": 192,
                        "city": "Schoenland",
                        "image": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=89304",
                        "description": "Quo magni temporibus corrupti similique voluptatem. Optio voluptatem dolorem officiis recusandae est ut quae. Quia adipisci non esse ea. Quae est voluptatem ab in qui. Voluptatem sint at nobis non.",
                        "paymentMethod": "both",
                        "paymentOther": "distinctio",
                        "companionGrade": 0,
                        "roles": [
                            "user",
                            "traveler"
                        ],
                        "travelerTypes": [
                            {
                                "id": 9,
                                "value": "luxury",
                                "label": "Luxury"
                            }
                        ],
                        "languages": [
                            {
                                "id": 1,
                                "code": "en",
                                "name": "English"
                            }
                        ],
                        "natures": [
                            {
                                "id": 2,
                                "value": "work",
                                "label": "Work"
                            },
                            {
                                "id": 5,
                                "value": "foodandwine",
                                "label": "food and wine"
                            }
                        ],
                        "followers": 9,
                        "email": "private field",
                        "phoneNumber": "private field",
                        "fiscalCode": "private field",
                        "identityDoc": "private field"
                    },
                    "roles": [
                        "user",
                        "traveler"
                    ],
                    "permissions": [],
                    "stripeAccount": null,
                    "affiliation_code": "JPA2AI",
                    "subscription": {
                        "id": 20,
                        "active": 1,
                        "expirationDate": "2022-09-19",
                        "subscription": {
                            "id": 1,
                            "role": "traveler",
                            "type": "free",
                            "price": 0,
                            "monthPrice": 0,
                            "maxPost": "unlimited"
                        }
                    }
                },
                "active": 1,
                "expirationDate": "2022-09-19",
                "subscription": {
                    "id": 1,
                    "role": "traveler",
                    "type": "free",
                    "price": 0,
                    "monthPrice": 0,
                    "maxPost": "unlimited"
                }
            },
            "stripeDiscounts": [],
            "redeem_date": "2021-05-07 19:40:53"
        }
    ],
    "discountNunber": 1
}

HTTP Request

PUT /api/AffiliationPrograms/AffiliationProgram/{id}

PATCH /api/AffiliationPrograms/AffiliationProgram/{id}

Body Parameters

Parameter Type Status Description
name string optional
description string optional
discount integer optional
uses integer optional
affiliation_program_token string optional
affiliationProgramSubscriptions array optional
affiliationProgramSubscriptions.*.id string optional Valid subscription id
discountNunber numeric optional

Query Parameters

Parameter Status Description
name optional
description optional
discount optional
uses optional
affiliation_program_token optional
affiliationProgramSubscriptions optional
affiliationProgramSubscriptions.*.id optional Valid subscription id
discountNunber optional

Destroy AffiliationProgram

Destroy an AffiliationPrograms

Example request:

curl -X DELETE "http://api.doitrip.com/api/AffiliationPrograms/AffiliationProgram/1" 
const url = new URL("http://api.doitrip.com/api/AffiliationPrograms/AffiliationProgram/1");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "DELETE",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

HTTP Request

DELETE /api/AffiliationPrograms/AffiliationProgram/{id}

Affiliations

Search Affiliation

Search Affiliations

Example request:

curl -X GET -G "http://api.doitrip.com/api/AffiliationPrograms/Affiliation" \
    -H "Content-Type: application/json" \
    -d '{"search":"doloribus","searchJoin":"or","perPage":446947290,"page":446947290,"orderBy":"id","sortedBy":"desc"}'
const url = new URL("http://api.doitrip.com/api/AffiliationPrograms/Affiliation");

    let params = {
            "search": "doloribus",
            "searchJoin": "or",
            "perPage": "446947290",
            "page": "446947290",
            "orderBy": "id",
            "sortedBy": "desc",
        };
    Object.keys(params).forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
}

let body = {
    "search": "doloribus",
    "searchJoin": "or",
    "perPage": 446947290,
    "page": 446947290,
    "orderBy": "id",
    "sortedBy": "desc"
}

fetch(url, {
    method: "GET",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

[
    {
        "id": 1,
        "promoter": null,
        "affiliate": {
            "id": 2,
            "profile": {
                "user_id": 2,
                "accomodationType": "alpine_refuge",
                "accomodationName": "Reilly, Stamm and VonRuedenand Sons",
                "vatNumber": "8765373403026",
                "registeredOffice": "7750 Paxton Park\nGersonberg, KY 10487",
                "country_id": {
                    "id": 184,
                    "code": "QA",
                    "name": "Qatar",
                    "created_at": "2021-05-07 19:39:09",
                    "updated_at": "2021-05-07 19:39:09"
                },
                "province": "Trinidad and Tobago",
                "city": "New Clark",
                "address": "685 Harris Trail Suite 721\nEast Julietfort, ME 72941-6111",
                "latitude": "-79.336225",
                "longitude": "136.131302",
                "cityTax": 13,
                "phonePrefix": "+83",
                "phoneNumber": "2893022859",
                "mobilePrefix": "+22",
                "mobileNumber": "9169087732",
                "faxPrefix": "+73",
                "faxNumber": "6600753559",
                "contactEmail": "terry.delaney@gmail.com",
                "image": "https:\/\/loremflickr.com\/362\/180\/hotel\/?lock=63032",
                "description": "Quidem voluptas atque nulla necessitatibus magni. Nihil quis non optio veniam dolores quod perspiciatis.",
                "recommendations": "Non possimus voluptas beatae quaerat eos qui. Fugiat excepturi atque qui esse ipsum. Corrupti libero est atque.",
                "yearOfConstruction": 1939,
                "lastRenovation": 1925,
                "rooms": 6,
                "nonSmokingRooms": 6,
                "beds": 18,
                "handicappedRooms": 8,
                "suites": 5,
                "plans": 13,
                "H24CheckIn": 1,
                "checkInHourStart": "17:38:26",
                "checkInHourEnd": "03:33:26",
                "checkOutHourStart": "14:11:05",
                "checkOutHourEnd": "18:05:09",
                "petsAllowed": 0,
                "petsSize": "big",
                "stars": "2",
                "qualityMark": "Rem est ipsam voluptatem ut ut quibusdam voluptas.",
                "noClassification": 0,
                "accomodationGrade": 0,
                "roles": [
                    "user",
                    "accomodation"
                ],
                "roomPosts": 8,
                "hotelServicesIncluded": [
                    {
                        "id": 32,
                        "group": "activities",
                        "value": "tennis-court",
                        "label": "Tennis court"
                    },
                    {
                        "id": 45,
                        "group": "activities",
                        "value": "Nightclub\/DJ",
                        "label": "Nightclub \/ DJ"
                    },
                    {
                        "id": 56,
                        "group": "activities",
                        "value": "snorkeling",
                        "label": "Snorkeling"
                    },
                    {
                        "id": 58,
                        "group": "activities",
                        "value": "equipped-and-supervised-beach",
                        "label": "Equipped and supervised beach"
                    },
                    {
                        "id": 121,
                        "group": "entertainment",
                        "value": "theater",
                        "label": "Theater"
                    },
                    {
                        "id": 126,
                        "group": "cleaning-services",
                        "value": "ironing-service",
                        "label": "Ironing service"
                    },
                    {
                        "id": 130,
                        "group": "business-services",
                        "value": "spaces-for-meetings\/banquets",
                        "label": "Spaces for meetings\/banquets"
                    },
                    {
                        "id": 137,
                        "group": "security",
                        "value": "CCTV-cameras-outside-the-facility",
                        "label": "CCTV cameras outside the facility"
                    }
                ],
                "hotelServicesNotIncluded": [
                    {
                        "id": 49,
                        "group": "activities",
                        "value": "nature-trails-in-the-lagoon",
                        "label": "Nature trails in the lagoon",
                        "price": 57255
                    },
                    {
                        "id": 107,
                        "group": "reception-services",
                        "value": "atm-machine",
                        "label": "ATM machine",
                        "price": 57255
                    },
                    {
                        "id": 168,
                        "group": "wellness-services",
                        "value": "body-bandages",
                        "label": "Body bandages",
                        "price": 57255
                    },
                    {
                        "id": 179,
                        "group": "wellness-services",
                        "value": "foot-massage",
                        "label": "Foot massage",
                        "price": 57255
                    }
                ],
                "languages": [
                    {
                        "id": 1,
                        "code": "en",
                        "name": "English"
                    },
                    {
                        "id": 2,
                        "code": "it",
                        "name": "Italian"
                    }
                ],
                "images": [
                    {
                        "id": 1,
                        "image": "https:\/\/loremflickr.com\/362\/180\/travel,italy\/?lock=43912",
                        "image_name": "",
                        "category": "gallery"
                    },
                    {
                        "id": 2,
                        "image": "https:\/\/loremflickr.com\/362\/180\/travel,italy\/?lock=58259",
                        "image_name": "",
                        "category": "gallery"
                    },
                    {
                        "id": 3,
                        "image": "https:\/\/loremflickr.com\/362\/180\/travel,italy\/?lock=54165",
                        "image_name": "",
                        "category": "gallery"
                    },
                    {
                        "id": 4,
                        "image": "https:\/\/loremflickr.com\/362\/180\/travel,italy\/?lock=71534",
                        "image_name": "",
                        "category": "gallery"
                    },
                    {
                        "id": 5,
                        "image": "https:\/\/loremflickr.com\/362\/180\/travel,italy\/?lock=62822",
                        "image_name": "",
                        "category": "gallery"
                    }
                ]
            },
            "roles": [
                "user",
                "accomodation"
            ],
            "permissions": [],
            "stripeAccount": {
                "user_id": 2,
                "accountId": "acct_1ITV4XFPn57bOta4",
                "chargeEnable": 1
            },
            "affiliation_code": "APRA0D",
            "subscription": {
                "id": 2,
                "active": 1,
                "expirationDate": "2023-05-03",
                "subscription": {
                    "id": 8,
                    "role": "touristGuide",
                    "type": "mega",
                    "price": 10000,
                    "monthPrice": 0,
                    "maxPost": "unlimited"
                }
            }
        },
        "affiliation_program": [
            {
                "id": 3,
                "name": "Aut et amet a itaque.",
                "discount": 14,
                "affiliationProgramSubscriptions": [
                    {
                        "id": 4,
                        "role": "ecommerceSeller",
                        "type": "wholesale",
                        "price": 0,
                        "monthPrice": 0,
                        "maxPost": "unlimited"
                    },
                    {
                        "id": 10,
                        "role": "tourOperator",
                        "type": "advanced",
                        "price": 15000,
                        "monthPrice": 0,
                        "maxPost": ""
                    },
                    {
                        "id": 16,
                        "role": "accomodation",
                        "type": "advanced",
                        "price": 15000,
                        "monthPrice": 0,
                        "maxPost": "5"
                    }
                ]
            }
        ],
        "redeemed": 1,
        "redeemable": {
            "id": 2,
            "active": 1,
            "expirationDate": "2023-05-03",
            "subscription": {
                "id": 8,
                "role": "touristGuide",
                "type": "mega",
                "price": 10000,
                "monthPrice": 0,
                "maxPost": "unlimited"
            }
        },
        "redeem_date": "2021-05-07 19:40:43"
    }
]

HTTP Request

GET /api/AffiliationPrograms/Affiliation

Body Parameters

Parameter Type Status Description
search array optional
searchJoin string optional and or or
perPage numeric optional
page numeric optional
orderBy string optional id
sortedBy string optional asc or desc

Query Parameters

Parameter Status Description
search optional
searchJoin optional and or or
perPage optional
page optional
orderBy optional id
sortedBy optional asc or desc

Show Affiliation

Show the Detail of an Affiliations

Example request:

curl -X GET -G "http://api.doitrip.com/api/AffiliationPrograms/Affiliation/1" 
const url = new URL("http://api.doitrip.com/api/AffiliationPrograms/Affiliation/1");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "id": 1,
    "promoter": null,
    "affiliate": {
        "id": 2,
        "profile": {
            "user_id": 2,
            "accomodationType": "alpine_refuge",
            "accomodationName": "Reilly, Stamm and VonRuedenand Sons",
            "vatNumber": "8765373403026",
            "registeredOffice": "7750 Paxton Park\nGersonberg, KY 10487",
            "country_id": {
                "id": 184,
                "code": "QA",
                "name": "Qatar",
                "created_at": "2021-05-07 19:39:09",
                "updated_at": "2021-05-07 19:39:09"
            },
            "province": "Trinidad and Tobago",
            "city": "New Clark",
            "address": "685 Harris Trail Suite 721\nEast Julietfort, ME 72941-6111",
            "latitude": "-79.336225",
            "longitude": "136.131302",
            "cityTax": 13,
            "phonePrefix": "+83",
            "phoneNumber": "2893022859",
            "mobilePrefix": "+22",
            "mobileNumber": "9169087732",
            "faxPrefix": "+73",
            "faxNumber": "6600753559",
            "contactEmail": "terry.delaney@gmail.com",
            "image": "https:\/\/loremflickr.com\/362\/180\/hotel\/?lock=63032",
            "description": "Quidem voluptas atque nulla necessitatibus magni. Nihil quis non optio veniam dolores quod perspiciatis.",
            "recommendations": "Non possimus voluptas beatae quaerat eos qui. Fugiat excepturi atque qui esse ipsum. Corrupti libero est atque.",
            "yearOfConstruction": 1939,
            "lastRenovation": 1925,
            "rooms": 6,
            "nonSmokingRooms": 6,
            "beds": 18,
            "handicappedRooms": 8,
            "suites": 5,
            "plans": 13,
            "H24CheckIn": 1,
            "checkInHourStart": "17:38:26",
            "checkInHourEnd": "03:33:26",
            "checkOutHourStart": "14:11:05",
            "checkOutHourEnd": "18:05:09",
            "petsAllowed": 0,
            "petsSize": "big",
            "stars": "2",
            "qualityMark": "Rem est ipsam voluptatem ut ut quibusdam voluptas.",
            "noClassification": 0,
            "accomodationGrade": 0,
            "roles": [
                "user",
                "accomodation"
            ],
            "roomPosts": 8,
            "hotelServicesIncluded": [
                {
                    "id": 32,
                    "group": "activities",
                    "value": "tennis-court",
                    "label": "Tennis court"
                },
                {
                    "id": 45,
                    "group": "activities",
                    "value": "Nightclub\/DJ",
                    "label": "Nightclub \/ DJ"
                },
                {
                    "id": 56,
                    "group": "activities",
                    "value": "snorkeling",
                    "label": "Snorkeling"
                },
                {
                    "id": 58,
                    "group": "activities",
                    "value": "equipped-and-supervised-beach",
                    "label": "Equipped and supervised beach"
                },
                {
                    "id": 121,
                    "group": "entertainment",
                    "value": "theater",
                    "label": "Theater"
                },
                {
                    "id": 126,
                    "group": "cleaning-services",
                    "value": "ironing-service",
                    "label": "Ironing service"
                },
                {
                    "id": 130,
                    "group": "business-services",
                    "value": "spaces-for-meetings\/banquets",
                    "label": "Spaces for meetings\/banquets"
                },
                {
                    "id": 137,
                    "group": "security",
                    "value": "CCTV-cameras-outside-the-facility",
                    "label": "CCTV cameras outside the facility"
                }
            ],
            "hotelServicesNotIncluded": [
                {
                    "id": 49,
                    "group": "activities",
                    "value": "nature-trails-in-the-lagoon",
                    "label": "Nature trails in the lagoon",
                    "price": 57255
                },
                {
                    "id": 107,
                    "group": "reception-services",
                    "value": "atm-machine",
                    "label": "ATM machine",
                    "price": 57255
                },
                {
                    "id": 168,
                    "group": "wellness-services",
                    "value": "body-bandages",
                    "label": "Body bandages",
                    "price": 57255
                },
                {
                    "id": 179,
                    "group": "wellness-services",
                    "value": "foot-massage",
                    "label": "Foot massage",
                    "price": 57255
                }
            ],
            "languages": [
                {
                    "id": 1,
                    "code": "en",
                    "name": "English"
                },
                {
                    "id": 2,
                    "code": "it",
                    "name": "Italian"
                }
            ],
            "images": [
                {
                    "id": 1,
                    "image": "https:\/\/loremflickr.com\/362\/180\/travel,italy\/?lock=43912",
                    "image_name": "",
                    "category": "gallery"
                },
                {
                    "id": 2,
                    "image": "https:\/\/loremflickr.com\/362\/180\/travel,italy\/?lock=58259",
                    "image_name": "",
                    "category": "gallery"
                },
                {
                    "id": 3,
                    "image": "https:\/\/loremflickr.com\/362\/180\/travel,italy\/?lock=54165",
                    "image_name": "",
                    "category": "gallery"
                },
                {
                    "id": 4,
                    "image": "https:\/\/loremflickr.com\/362\/180\/travel,italy\/?lock=71534",
                    "image_name": "",
                    "category": "gallery"
                },
                {
                    "id": 5,
                    "image": "https:\/\/loremflickr.com\/362\/180\/travel,italy\/?lock=62822",
                    "image_name": "",
                    "category": "gallery"
                }
            ]
        },
        "roles": [
            "user",
            "accomodation"
        ],
        "permissions": [],
        "stripeAccount": {
            "user_id": 2,
            "accountId": "acct_1ITV4XFPn57bOta4",
            "chargeEnable": 1
        },
        "affiliation_code": "APRA0D",
        "subscription": {
            "id": 2,
            "active": 1,
            "expirationDate": "2023-05-03",
            "subscription": {
                "id": 8,
                "role": "touristGuide",
                "type": "mega",
                "price": 10000,
                "monthPrice": 0,
                "maxPost": "unlimited"
            }
        }
    },
    "affiliation_program": [
        {
            "id": 3,
            "name": "Aut et amet a itaque.",
            "discount": 14,
            "affiliationProgramSubscriptions": [
                {
                    "id": 4,
                    "role": "ecommerceSeller",
                    "type": "wholesale",
                    "price": 0,
                    "monthPrice": 0,
                    "maxPost": "unlimited"
                },
                {
                    "id": 10,
                    "role": "tourOperator",
                    "type": "advanced",
                    "price": 15000,
                    "monthPrice": 0,
                    "maxPost": ""
                },
                {
                    "id": 16,
                    "role": "accomodation",
                    "type": "advanced",
                    "price": 15000,
                    "monthPrice": 0,
                    "maxPost": "5"
                }
            ]
        }
    ],
    "redeemed": 1,
    "redeemable": {
        "id": 2,
        "active": 1,
        "expirationDate": "2023-05-03",
        "subscription": {
            "id": 8,
            "role": "touristGuide",
            "type": "mega",
            "price": 10000,
            "monthPrice": 0,
            "maxPost": "unlimited"
        }
    },
    "redeem_date": "2021-05-07 19:40:43"
}

HTTP Request

GET /api/AffiliationPrograms/Affiliation/{id}

/api/AffiliationPrograms/Affiliation/{id}

Example request:

curl -X POST "http://api.doitrip.com/api/AffiliationPrograms/Affiliation/1" \
    -H "Content-Type: application/json" \
    -d '{"user_subscription_id":446947290}'
const url = new URL("http://api.doitrip.com/api/AffiliationPrograms/Affiliation/1");

    let params = {
            "user_subscription_id": "446947290",
        };
    Object.keys(params).forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
}

let body = {
    "user_subscription_id": 446947290
}

fetch(url, {
    method: "POST",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

HTTP Request

POST /api/AffiliationPrograms/Affiliation/{id}

Body Parameters

Parameter Type Status Description
user_subscription_id integer required Valid user_subscription id

Query Parameters

Parameter Status Description
user_subscription_id required Valid user_subscription id

Auctions

Search Auction

Search Auctions

Example request:

curl -X GET -G "http://api.doitrip.com/api/auctions" \
    -H "Content-Type: application/json" \
    -d '{"profile":"totam","search":{"title":"totam","location":"totam","latitude":"totam","longitude":"totam","product_type":"totam","start_date":"totam","end_date":"totam","max_price":13125},"searchJoin":"and","perPage":13125,"page":13125,"orderBy":"id","sortedBy":"asc"}'
const url = new URL("http://api.doitrip.com/api/auctions");

    let params = {
            "profile": "totam",
            "search": "totam",
            "searchJoin": "and",
            "search.title": "totam",
            "search.location": "totam",
            "search.latitude": "totam",
            "search.longitude": "totam",
            "search.product_type": "totam",
            "search.start_date": "totam",
            "search.end_date": "totam",
            "search.max_price": "13125",
            "perPage": "13125",
            "page": "13125",
            "orderBy": "id",
            "sortedBy": "asc",
        };
    Object.keys(params).forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
}

let body = {
    "profile": "totam",
    "search": {
        "title": "totam",
        "location": "totam",
        "latitude": "totam",
        "longitude": "totam",
        "product_type": "totam",
        "start_date": "totam",
        "end_date": "totam",
        "max_price": 13125
    },
    "searchJoin": "and",
    "perPage": 13125,
    "page": 13125,
    "orderBy": "id",
    "sortedBy": "asc"
}

fetch(url, {
    method: "GET",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

[
    {
        "id": 1,
        "user": {
            "id": 4,
            "profile": {
                "user_id": 4,
                "firstName": "Ashtyn",
                "lastName": "Bruen",
                "gender": "F",
                "birthDate": "1977-01-02",
                "country_id": 175,
                "phonePrefix": "+16",
                "city": "New Camillafurt",
                "image": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=90419",
                "description": "Facilis est molestiae aut aspernatur. Impedit vel sunt fugiat quas eos cumque enim. Possimus doloremque ut veritatis eius.",
                "paymentMethod": null,
                "paymentOther": "maxime",
                "guideGrade": 0,
                "subscription": "Beatty, Lang and Nitzsche",
                "guideType": "both",
                "licenseNumber": "9791939043114",
                "specificTitles": "Library Science Teacher",
                "role": "Precision Aircraft Systems Assemblers",
                "tariff": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=72029",
                "roles": [
                    "user",
                    "touristGuide"
                ],
                "guidePosts": 100,
                "languages": [
                    {
                        "id": 1,
                        "code": "en",
                        "name": "English"
                    },
                    {
                        "id": 2,
                        "code": "it",
                        "name": "Italian"
                    }
                ],
                "services": [
                    {
                        "id": 2,
                        "value": "b&b",
                        "label": "Bed & Breakfast"
                    }
                ],
                "guideAvailabilities": [
                    {
                        "id": 1,
                        "value": "beach",
                        "label": "Beach & Sea"
                    }
                ],
                "followers": 10,
                "email": "private field",
                "phoneNumber": "private field",
                "fiscalCode": "private field",
                "vatNumber": "private field",
                "card": "private field",
                "expiredCard": "private field",
                "certificate": "private field"
            },
            "roles": [
                "user",
                "touristGuide"
            ],
            "permissions": [],
            "stripeAccount": {
                "user_id": 4,
                "accountId": "acct_1ITV4XFPn57bOta4",
                "chargeEnable": 1
            },
            "affiliation_code": "W453V6",
            "subscription": null
        },
        "title": "Quis quam dolorum et.",
        "product_type": "sharing",
        "location": "38272 Eunice Mission\nSouth Johan, IN 60686",
        "latitude": "25.657740",
        "longitude": "160.194969",
        "start_date": "2019-01-17",
        "end_date": "2019-01-17",
        "accomodation_type": "any",
        "adults_number": 1,
        "kid_number": 1,
        "elder_number": 2,
        "max_price": 460,
        "preferred_payment_type": "bonifico",
        "submission_end": "2019-01-17",
        "pick_days": 3,
        "notes": "2019-01-17 12:03:03"
    }
]

HTTP Request

GET /api/auctions

Body Parameters

Parameter Type Status Description
profile string optional Valid user id
search array optional
searchJoin string optional and or or
search.title string optional
search.location string optional
search.latitude string optional
search.longitude string optional
search.product_type string optional
search.start_date string optional
search.end_date string optional
search.max_price numeric optional
perPage numeric optional
page numeric optional
orderBy string optional id
sortedBy string optional asc or desc

Query Parameters

Parameter Status Description
profile optional Valid user id
search optional
searchJoin optional and or or
search.title optional
search.location optional
search.latitude optional
search.longitude optional
search.product_type optional
search.start_date optional
search.end_date optional
search.max_price optional
perPage optional
page optional
orderBy optional id
sortedBy optional asc or desc

Insert Auction

Insert Auctions

Example request:

curl -X POST "http://api.doitrip.com/api/auctions" \
    -H "Content-Type: application/json" \
    -d '{"title":"totam","product_type":"tour","location":"totam","0":"totam","1":"totam","start_date":"totam","end_date":"totam","accomodation_type":"totam","adults_number":13125,"kid_number":13125,"elder_number":13125,"max_price":13125,"preferred_payment_type":"bonifico","submission_end":"totam","pick_days":13125,"notes":"totam"}'
const url = new URL("http://api.doitrip.com/api/auctions");

    let params = {
            "title": "totam",
            "product_type": "tour",
            "location": "totam",
            "0": "totam",
            "1": "totam",
            "start_date": "totam",
            "end_date": "totam",
            "accomodation_type": "totam",
            "adults_number": "13125",
            "kid_number": "13125",
            "elder_number": "13125",
            "max_price": "13125",
            "preferred_payment_type": "bonifico",
            "submission_end": "totam",
            "pick_days": "13125",
            "notes": "totam",
        };
    Object.keys(params).forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
}

let body = {
    "title": "totam",
    "product_type": "tour",
    "location": "totam",
    "0": "totam",
    "1": "totam",
    "start_date": "totam",
    "end_date": "totam",
    "accomodation_type": "totam",
    "adults_number": 13125,
    "kid_number": 13125,
    "elder_number": 13125,
    "max_price": 13125,
    "preferred_payment_type": "bonifico",
    "submission_end": "totam",
    "pick_days": 13125,
    "notes": "totam"
}

fetch(url, {
    method: "POST",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "id": 1,
    "user": {
        "id": 4,
        "profile": {
            "user_id": 4,
            "firstName": "Ashtyn",
            "lastName": "Bruen",
            "gender": "F",
            "birthDate": "1977-01-02",
            "country_id": 175,
            "phonePrefix": "+16",
            "city": "New Camillafurt",
            "image": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=90419",
            "description": "Facilis est molestiae aut aspernatur. Impedit vel sunt fugiat quas eos cumque enim. Possimus doloremque ut veritatis eius.",
            "paymentMethod": null,
            "paymentOther": "maxime",
            "guideGrade": 0,
            "subscription": "Beatty, Lang and Nitzsche",
            "guideType": "both",
            "licenseNumber": "9791939043114",
            "specificTitles": "Library Science Teacher",
            "role": "Precision Aircraft Systems Assemblers",
            "tariff": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=72029",
            "roles": [
                "user",
                "touristGuide"
            ],
            "guidePosts": 100,
            "languages": [
                {
                    "id": 1,
                    "code": "en",
                    "name": "English"
                },
                {
                    "id": 2,
                    "code": "it",
                    "name": "Italian"
                }
            ],
            "services": [
                {
                    "id": 2,
                    "value": "b&b",
                    "label": "Bed & Breakfast"
                }
            ],
            "guideAvailabilities": [
                {
                    "id": 1,
                    "value": "beach",
                    "label": "Beach & Sea"
                }
            ],
            "followers": 10,
            "email": "private field",
            "phoneNumber": "private field",
            "fiscalCode": "private field",
            "vatNumber": "private field",
            "card": "private field",
            "expiredCard": "private field",
            "certificate": "private field"
        },
        "roles": [
            "user",
            "touristGuide"
        ],
        "permissions": [],
        "stripeAccount": {
            "user_id": 4,
            "accountId": "acct_1ITV4XFPn57bOta4",
            "chargeEnable": 1
        },
        "affiliation_code": "W453V6",
        "subscription": null
    },
    "title": "Quis quam dolorum et.",
    "product_type": "sharing",
    "location": "38272 Eunice Mission\nSouth Johan, IN 60686",
    "latitude": "25.657740",
    "longitude": "160.194969",
    "start_date": "2019-01-17",
    "end_date": "2019-01-17",
    "accomodation_type": "any",
    "adults_number": 1,
    "kid_number": 1,
    "elder_number": 2,
    "max_price": 460,
    "preferred_payment_type": "bonifico",
    "submission_end": "2019-01-17",
    "pick_days": 3,
    "notes": "2019-01-17 12:03:03"
}

HTTP Request

POST /api/auctions

Body Parameters

Parameter Type Status Description
title string required
product_type string required guide, tour, sharing or any
location string optional
0 string optional
1 string optional
start_date string required
end_date string required
accomodation_type string required
adults_number integer required
kid_number integer required
elder_number integer required
max_price integer required
preferred_payment_type string required PayPal, bonifico, cash or any
submission_end string required
pick_days numeric required
notes string optional

Query Parameters

Parameter Status Description
title required
product_type required guide, tour, sharing or any
location optional
0 optional
1 optional
start_date required
end_date required
accomodation_type required
adults_number required
kid_number required
elder_number required
max_price required
preferred_payment_type required PayPal, bonifico, cash or any
submission_end required
pick_days required
notes optional

Destroy many Auction

Example request:

curl -X DELETE "http://api.doitrip.com/api/auctions" \
    -H "Content-Type: application/json" \
    -d '{"ids":"totam"}'
const url = new URL("http://api.doitrip.com/api/auctions");

    let params = {
            "ids": "totam",
        };
    Object.keys(params).forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
}

let body = {
    "ids": "totam"
}

fetch(url, {
    method: "DELETE",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

HTTP Request

DELETE /api/auctions

Body Parameters

Parameter Type Status Description
ids array required

Query Parameters

Parameter Status Description
ids required

Show Auction

Show the Detail of an Auctions

Example request:

curl -X GET -G "http://api.doitrip.com/api/auctions/1" 
const url = new URL("http://api.doitrip.com/api/auctions/1");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "id": 1,
    "user": {
        "id": 4,
        "profile": {
            "user_id": 4,
            "firstName": "Ashtyn",
            "lastName": "Bruen",
            "gender": "F",
            "birthDate": "1977-01-02",
            "country_id": 175,
            "phonePrefix": "+16",
            "city": "New Camillafurt",
            "image": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=90419",
            "description": "Facilis est molestiae aut aspernatur. Impedit vel sunt fugiat quas eos cumque enim. Possimus doloremque ut veritatis eius.",
            "paymentMethod": null,
            "paymentOther": "maxime",
            "guideGrade": 0,
            "subscription": "Beatty, Lang and Nitzsche",
            "guideType": "both",
            "licenseNumber": "9791939043114",
            "specificTitles": "Library Science Teacher",
            "role": "Precision Aircraft Systems Assemblers",
            "tariff": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=72029",
            "roles": [
                "user",
                "touristGuide"
            ],
            "guidePosts": 100,
            "languages": [
                {
                    "id": 1,
                    "code": "en",
                    "name": "English"
                },
                {
                    "id": 2,
                    "code": "it",
                    "name": "Italian"
                }
            ],
            "services": [
                {
                    "id": 2,
                    "value": "b&b",
                    "label": "Bed & Breakfast"
                }
            ],
            "guideAvailabilities": [
                {
                    "id": 1,
                    "value": "beach",
                    "label": "Beach & Sea"
                }
            ],
            "followers": 10,
            "email": "private field",
            "phoneNumber": "private field",
            "fiscalCode": "private field",
            "vatNumber": "private field",
            "card": "private field",
            "expiredCard": "private field",
            "certificate": "private field"
        },
        "roles": [
            "user",
            "touristGuide"
        ],
        "permissions": [],
        "stripeAccount": {
            "user_id": 4,
            "accountId": "acct_1ITV4XFPn57bOta4",
            "chargeEnable": 1
        },
        "affiliation_code": "W453V6",
        "subscription": null
    },
    "title": "Quis quam dolorum et.",
    "product_type": "sharing",
    "location": "38272 Eunice Mission\nSouth Johan, IN 60686",
    "latitude": "25.657740",
    "longitude": "160.194969",
    "start_date": "2019-01-17",
    "end_date": "2019-01-17",
    "accomodation_type": "any",
    "adults_number": 1,
    "kid_number": 1,
    "elder_number": 2,
    "max_price": 460,
    "preferred_payment_type": "bonifico",
    "submission_end": "2019-01-17",
    "pick_days": 3,
    "notes": "2019-01-17 12:03:03"
}

HTTP Request

GET /api/auctions/{id}

Update Auction

Update an Auctions

Example request:

curl -X PUT "http://api.doitrip.com/api/auctions/1" \
    -H "Content-Type: application/json" \
    -d '{"title":"totam","product_type":"tour","location":"totam","0":"totam","1":"totam","start_date":"totam","end_date":"totam","accomodation_type":"totam","adults_number":13125,"kid_number":13125,"elder_number":13125,"max_price":13125,"preferred_payment_type":"bonifico","submission_end":"totam","pick_days":13125,"notes":"totam"}'
const url = new URL("http://api.doitrip.com/api/auctions/1");

    let params = {
            "title": "totam",
            "product_type": "tour",
            "location": "totam",
            "0": "totam",
            "1": "totam",
            "start_date": "totam",
            "end_date": "totam",
            "accomodation_type": "totam",
            "adults_number": "13125",
            "kid_number": "13125",
            "elder_number": "13125",
            "max_price": "13125",
            "preferred_payment_type": "bonifico",
            "submission_end": "totam",
            "pick_days": "13125",
            "notes": "totam",
        };
    Object.keys(params).forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
}

let body = {
    "title": "totam",
    "product_type": "tour",
    "location": "totam",
    "0": "totam",
    "1": "totam",
    "start_date": "totam",
    "end_date": "totam",
    "accomodation_type": "totam",
    "adults_number": 13125,
    "kid_number": 13125,
    "elder_number": 13125,
    "max_price": 13125,
    "preferred_payment_type": "bonifico",
    "submission_end": "totam",
    "pick_days": 13125,
    "notes": "totam"
}

fetch(url, {
    method: "PUT",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "id": 1,
    "user": {
        "id": 4,
        "profile": {
            "user_id": 4,
            "firstName": "Ashtyn",
            "lastName": "Bruen",
            "gender": "F",
            "birthDate": "1977-01-02",
            "country_id": 175,
            "phonePrefix": "+16",
            "city": "New Camillafurt",
            "image": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=90419",
            "description": "Facilis est molestiae aut aspernatur. Impedit vel sunt fugiat quas eos cumque enim. Possimus doloremque ut veritatis eius.",
            "paymentMethod": null,
            "paymentOther": "maxime",
            "guideGrade": 0,
            "subscription": "Beatty, Lang and Nitzsche",
            "guideType": "both",
            "licenseNumber": "9791939043114",
            "specificTitles": "Library Science Teacher",
            "role": "Precision Aircraft Systems Assemblers",
            "tariff": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=72029",
            "roles": [
                "user",
                "touristGuide"
            ],
            "guidePosts": 100,
            "languages": [
                {
                    "id": 1,
                    "code": "en",
                    "name": "English"
                },
                {
                    "id": 2,
                    "code": "it",
                    "name": "Italian"
                }
            ],
            "services": [
                {
                    "id": 2,
                    "value": "b&b",
                    "label": "Bed & Breakfast"
                }
            ],
            "guideAvailabilities": [
                {
                    "id": 1,
                    "value": "beach",
                    "label": "Beach & Sea"
                }
            ],
            "followers": 10,
            "email": "private field",
            "phoneNumber": "private field",
            "fiscalCode": "private field",
            "vatNumber": "private field",
            "card": "private field",
            "expiredCard": "private field",
            "certificate": "private field"
        },
        "roles": [
            "user",
            "touristGuide"
        ],
        "permissions": [],
        "stripeAccount": {
            "user_id": 4,
            "accountId": "acct_1ITV4XFPn57bOta4",
            "chargeEnable": 1
        },
        "affiliation_code": "W453V6",
        "subscription": null
    },
    "title": "Quis quam dolorum et.",
    "product_type": "sharing",
    "location": "38272 Eunice Mission\nSouth Johan, IN 60686",
    "latitude": "25.657740",
    "longitude": "160.194969",
    "start_date": "2019-01-17",
    "end_date": "2019-01-17",
    "accomodation_type": "any",
    "adults_number": 1,
    "kid_number": 1,
    "elder_number": 2,
    "max_price": 460,
    "preferred_payment_type": "bonifico",
    "submission_end": "2019-01-17",
    "pick_days": 3,
    "notes": "2019-01-17 12:03:03"
}

HTTP Request

PUT /api/auctions/{id}

PATCH /api/auctions/{id}

Body Parameters

Parameter Type Status Description
title string optional
product_type string optional guide, tour, sharing or any
location string optional
0 string optional
1 string optional
start_date string optional
end_date string optional
accomodation_type string optional
adults_number integer optional
kid_number integer optional
elder_number integer optional
max_price integer optional
preferred_payment_type string optional PayPal, bonifico, cash or any
submission_end string optional
pick_days numeric optional
notes string optional

Query Parameters

Parameter Status Description
title optional
product_type optional guide, tour, sharing or any
location optional
0 optional
1 optional
start_date optional
end_date optional
accomodation_type optional
adults_number optional
kid_number optional
elder_number optional
max_price optional
preferred_payment_type optional PayPal, bonifico, cash or any
submission_end optional
pick_days optional
notes optional

Destroy Auction

Destroy an Auctions

Example request:

curl -X DELETE "http://api.doitrip.com/api/auctions/1" 
const url = new URL("http://api.doitrip.com/api/auctions/1");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "DELETE",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

HTTP Request

DELETE /api/auctions/{id}

Blocked

Search Blocked


Requires authentication Search Blocked

Example request:

curl -X GET -G "http://api.doitrip.com/api/blocked" 
const url = new URL("http://api.doitrip.com/api/blocked");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

[
    {
        "id": null,
        "blocked": null
    }
]

HTTP Request

GET /api/blocked

Insert Blocked


Requires authentication Insert Blocked

Example request:

curl -X POST "http://api.doitrip.com/api/blocked" \
    -H "Content-Type: application/json" \
    -d '{"blocked_id":"dolorem"}'
const url = new URL("http://api.doitrip.com/api/blocked");

    let params = {
            "blocked_id": "dolorem",
        };
    Object.keys(params).forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
}

let body = {
    "blocked_id": "dolorem"
}

fetch(url, {
    method: "POST",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "id": null,
    "blocked": null
}

HTTP Request

POST /api/blocked

Body Parameters

Parameter Type Status Description
blocked_id string required Valid user id

Query Parameters

Parameter Status Description
blocked_id required Valid user id

Destroy Blocked


Requires authentication Destroy an Blocked

Example request:

curl -X DELETE "http://api.doitrip.com/api/blocked/1" 
const url = new URL("http://api.doitrip.com/api/blocked/1");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "DELETE",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

HTTP Request

DELETE /api/blocked/{blocked_id}

CarRents

Search RentableType

Search CarRents

Example request:

curl -X GET -G "http://api.doitrip.com/api/rents/rentable-types" 
const url = new URL("http://api.doitrip.com/api/rents/rentable-types");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

[
    {
        "id": 1,
        "value": "truck",
        "label": "Truck"
    }
]

HTTP Request

GET /api/rents/rentable-types

Show RentableType

Show the Detail of an CarRents

Example request:

curl -X GET -G "http://api.doitrip.com/api/rents/rentable-types/1" 
const url = new URL("http://api.doitrip.com/api/rents/rentable-types/1");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "id": 1,
    "value": "truck",
    "label": "Truck"
}

HTTP Request

GET /api/rents/rentable-types/{id}

Insert RentableType

Insert CarRents

Example request:

curl -X POST "http://api.doitrip.com/api/rents/rentableTypes" \
    -H "Content-Type: application/json" \
    -d '{"value":"nemo","label:it":"nemo","label:en":"nemo"}'
const url = new URL("http://api.doitrip.com/api/rents/rentableTypes");

    let params = {
            "value": "nemo",
            "label:it": "nemo",
            "label:en": "nemo",
        };
    Object.keys(params).forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
}

let body = {
    "value": "nemo",
    "label:it": "nemo",
    "label:en": "nemo"
}

fetch(url, {
    method: "POST",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "id": 1,
    "value": "truck",
    "label": "Truck"
}

HTTP Request

POST /api/rents/rentableTypes

Body Parameters

Parameter Type Status Description
value string required
label:it string required
label:en string required

Query Parameters

Parameter Status Description
value required
label:it required
label:en required

Destroy many RentableType

Example request:

curl -X DELETE "http://api.doitrip.com/api/rents/rentableTypes" \
    -H "Content-Type: application/json" \
    -d '{"ids":"nemo"}'
const url = new URL("http://api.doitrip.com/api/rents/rentableTypes");

    let params = {
            "ids": "nemo",
        };
    Object.keys(params).forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
}

let body = {
    "ids": "nemo"
}

fetch(url, {
    method: "DELETE",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

HTTP Request

DELETE /api/rents/rentableTypes

Body Parameters

Parameter Type Status Description
ids array required

Query Parameters

Parameter Status Description
ids required

Update RentableType

Update an CarRents

Example request:

curl -X PUT "http://api.doitrip.com/api/rents/rentableTypes/1" 
const url = new URL("http://api.doitrip.com/api/rents/rentableTypes/1");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "PUT",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "id": 1,
    "value": "truck",
    "label": "Truck"
}

HTTP Request

PUT /api/rents/rentableTypes/{id}

PATCH /api/rents/rentableTypes/{id}

Destroy RentableType

Destroy an CarRents

Example request:

curl -X DELETE "http://api.doitrip.com/api/rents/rentableTypes/1" 
const url = new URL("http://api.doitrip.com/api/rents/rentableTypes/1");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "DELETE",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

HTTP Request

DELETE /api/rents/rentableTypes/{id}

Search RentOptional

Search CarRents

Example request:

curl -X GET -G "http://api.doitrip.com/api/rents/rent-optionals" 
const url = new URL("http://api.doitrip.com/api/rents/rent-optionals");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

[
    {
        "id": 1,
        "value": "optional1",
        "label": "Optional 1 EN"
    }
]

HTTP Request

GET /api/rents/rent-optionals

Show RentOptional

Show the Detail of an CarRents

Example request:

curl -X GET -G "http://api.doitrip.com/api/rents/rent-optionals/1" 
const url = new URL("http://api.doitrip.com/api/rents/rent-optionals/1");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "id": 1,
    "value": "optional1",
    "label": "Optional 1 EN"
}

HTTP Request

GET /api/rents/rent-optionals/{id}

Insert RentOptional

Insert CarRents

Example request:

curl -X POST "http://api.doitrip.com/api/rents/rent-optionals" \
    -H "Content-Type: application/json" \
    -d '{"value":"consequatur","label:it":"consequatur","label:en":"consequatur"}'
const url = new URL("http://api.doitrip.com/api/rents/rent-optionals");

    let params = {
            "value": "consequatur",
            "label:it": "consequatur",
            "label:en": "consequatur",
        };
    Object.keys(params).forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
}

let body = {
    "value": "consequatur",
    "label:it": "consequatur",
    "label:en": "consequatur"
}

fetch(url, {
    method: "POST",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "id": 1,
    "value": "optional1",
    "label": "Optional 1 EN"
}

HTTP Request

POST /api/rents/rent-optionals

Body Parameters

Parameter Type Status Description
value string required
label:it string required
label:en string required

Query Parameters

Parameter Status Description
value required
label:it required
label:en required

Destroy many RentOptional

Example request:

curl -X DELETE "http://api.doitrip.com/api/rents/rent-optionals" \
    -H "Content-Type: application/json" \
    -d '{"ids":"consequatur"}'
const url = new URL("http://api.doitrip.com/api/rents/rent-optionals");

    let params = {
            "ids": "consequatur",
        };
    Object.keys(params).forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
}

let body = {
    "ids": "consequatur"
}

fetch(url, {
    method: "DELETE",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

HTTP Request

DELETE /api/rents/rent-optionals

Body Parameters

Parameter Type Status Description
ids array required

Query Parameters

Parameter Status Description
ids required

Update RentOptional

Update an CarRents

Example request:

curl -X PUT "http://api.doitrip.com/api/rents/rent-optionals/1" 
const url = new URL("http://api.doitrip.com/api/rents/rent-optionals/1");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "PUT",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "id": 1,
    "value": "optional1",
    "label": "Optional 1 EN"
}

HTTP Request

PUT /api/rents/rent-optionals/{id}

PATCH /api/rents/rent-optionals/{id}

Destroy RentOptional

Destroy an CarRents

Example request:

curl -X DELETE "http://api.doitrip.com/api/rents/rent-optionals/1" 
const url = new URL("http://api.doitrip.com/api/rents/rent-optionals/1");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "DELETE",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

HTTP Request

DELETE /api/rents/rent-optionals/{id}

Search Rentable

Search CarRents

Example request:

curl -X GET -G "http://api.doitrip.com/api/rents/rentables" \
    -H "Content-Type: application/json" \
    -d '{"profile":"modi","search":{"user_id":302,"model":"modi","locaiton":"modi","latitude":"modi","longitude":"modi","description":"modi","rentableType":{"id":"modi"}},"searchJoin":"and","perPage":302,"page":302,"orderBy":"id","sortedBy":"asc"}'
const url = new URL("http://api.doitrip.com/api/rents/rentables");

    let params = {
            "profile": "modi",
            "search.user_id": "302",
            "search.model": "modi",
            "search.locaiton": "modi",
            "search.latitude": "modi",
            "search.longitude": "modi",
            "search.description": "modi",
            "search.rentableType.id": "modi",
            "searchJoin": "and",
            "perPage": "302",
            "page": "302",
            "orderBy": "id",
            "sortedBy": "asc",
        };
    Object.keys(params).forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
}

let body = {
    "profile": "modi",
    "search": {
        "user_id": 302,
        "model": "modi",
        "locaiton": "modi",
        "latitude": "modi",
        "longitude": "modi",
        "description": "modi",
        "rentableType": {
            "id": "modi"
        }
    },
    "searchJoin": "and",
    "perPage": 302,
    "page": 302,
    "orderBy": "id",
    "sortedBy": "asc"
}

fetch(url, {
    method: "GET",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

[
    {
        "id": 1,
        "user": {
            "id": 12,
            "profile": {
                "user_id": 12,
                "accomodationType": "residence",
                "accomodationName": "Harvey-AuerLLC",
                "vatNumber": "3986266050683",
                "registeredOffice": "5868 Nadia Ridges\nPort Rosaliashire, ID 35878-7243",
                "country_id": {
                    "id": 50,
                    "code": "CC",
                    "name": "Cocos (Keeling) Islands",
                    "created_at": "2021-05-07 19:39:05",
                    "updated_at": "2021-05-07 19:39:05"
                },
                "province": "Slovakia (Slovak Republic)",
                "city": "East Eunaland",
                "address": "611 Deckow Street\nNorth Rae, IA 13640",
                "latitude": "-81.917132",
                "longitude": "-35.396466",
                "cityTax": 13,
                "phonePrefix": "+36",
                "phoneNumber": "0925926848",
                "mobilePrefix": "+48",
                "mobileNumber": "2546906408",
                "faxPrefix": "+37",
                "faxNumber": "0120423586",
                "contactEmail": "elmira55@hotmail.com",
                "image": "https:\/\/loremflickr.com\/362\/180\/hotel\/?lock=94870",
                "description": "Dolore voluptatum vitae repellat et. Illo illo repellendus totam laborum. Excepturi excepturi error eos aut magnam id eum voluptatem. Nobis nisi excepturi ut ut sed harum.",
                "recommendations": "Optio et ut nisi minus ipsum accusantium. At dolor ut omnis eos laudantium voluptate. Enim cumque nam in laborum velit. Hic ipsam nemo totam rem unde rem.",
                "yearOfConstruction": 1939,
                "lastRenovation": 1971,
                "rooms": 17,
                "nonSmokingRooms": 18,
                "beds": 14,
                "handicappedRooms": 6,
                "suites": 17,
                "plans": 15,
                "H24CheckIn": 1,
                "checkInHourStart": "20:01:56",
                "checkInHourEnd": "15:48:34",
                "checkOutHourStart": "00:15:13",
                "checkOutHourEnd": "20:29:33",
                "petsAllowed": 0,
                "petsSize": "medium",
                "stars": "3",
                "qualityMark": "Culpa et aliquid quia laudantium eaque.",
                "noClassification": 0,
                "accomodationGrade": 0,
                "roles": [
                    "user",
                    "accomodation"
                ],
                "roomPosts": 7,
                "hotelServicesIncluded": [
                    {
                        "id": 62,
                        "group": "activities",
                        "value": "tour-or-lessons-on-local-culture",
                        "label": "Tour or lessons on local culture"
                    },
                    {
                        "id": 108,
                        "group": "reception-services",
                        "value": "information-Office",
                        "label": "Information Office"
                    },
                    {
                        "id": 140,
                        "group": "general-services",
                        "value": "air-conditioning",
                        "label": "Air conditioning"
                    },
                    {
                        "id": 164,
                        "group": "ski",
                        "value": "ski-pass-sale",
                        "label": "Ski pass sale"
                    }
                ],
                "hotelServicesNotIncluded": [
                    {
                        "id": 30,
                        "group": "activities",
                        "value": "soccer",
                        "label": "Soccer",
                        "price": 91665
                    },
                    {
                        "id": 46,
                        "group": "activities",
                        "value": "miniclub",
                        "label": "Mini club",
                        "price": 91665
                    },
                    {
                        "id": 64,
                        "group": "activities",
                        "value": "wellness",
                        "label": "Wellness",
                        "price": 91665
                    },
                    {
                        "id": 69,
                        "group": "open-spaces",
                        "value": "pool",
                        "label": "Pool",
                        "price": 91665
                    },
                    {
                        "id": 108,
                        "group": "reception-services",
                        "value": "information-Office",
                        "label": "Information Office",
                        "price": 91665
                    },
                    {
                        "id": 113,
                        "group": "entertainment",
                        "value": "dance pub",
                        "label": "Dance pub",
                        "price": 91665
                    },
                    {
                        "id": 126,
                        "group": "cleaning-services",
                        "value": "ironing-service",
                        "label": "Ironing service",
                        "price": 91665
                    },
                    {
                        "id": 160,
                        "group": "ski",
                        "value": "Immediate access to the ski slope",
                        "label": "Immediate access to the ski slope",
                        "price": 91665
                    },
                    {
                        "id": 202,
                        "group": "outdoor-pool",
                        "value": "accessible-all-ages",
                        "label": "Accessible to all ages",
                        "price": 91665
                    },
                    {
                        "id": 203,
                        "group": "outdoor-pool",
                        "value": "poolside-bar",
                        "label": "Poolside bar",
                        "price": 91665
                    }
                ],
                "languages": [
                    {
                        "id": 1,
                        "code": "en",
                        "name": "English"
                    }
                ],
                "images": [
                    {
                        "id": 18,
                        "image": "https:\/\/loremflickr.com\/362\/180\/travel,italy\/?lock=50569",
                        "image_name": "",
                        "category": "gallery"
                    },
                    {
                        "id": 19,
                        "image": "https:\/\/loremflickr.com\/362\/180\/travel,italy\/?lock=75050",
                        "image_name": "",
                        "category": "gallery"
                    }
                ]
            },
            "roles": [
                "user",
                "accomodation"
            ],
            "permissions": [],
            "stripeAccount": {
                "user_id": 12,
                "accountId": "acct_1ITV4XFPn57bOta4",
                "chargeEnable": 1
            },
            "affiliation_code": "P5KVN0",
            "subscription": null
        },
        "created_at": "2021-05-07T19:47:36.000000Z",
        "rentable_type_id": 3,
        "model": "Trevor Schoen",
        "color": "Green",
        "seatsNumber": 4,
        "doorNumber": 4,
        "dailyCost": 991,
        "location": "4304 Collin Springs\nMarshallbury, NY 90261",
        "latitude": "66.350303",
        "longitude": "-58.538259",
        "description": "Totam quaerat quo incidunt iste maxime eveniet magni. Pariatur fugiat adipisci qui et. Molestias qui quia rerum ea dicta.",
        "obbligations": "Nesciunt optio iusto molestiae dolorem quidem similique suscipit. Saepe qui qui dolores laborum minus dignissimos repellat sint. Inventore consectetur est repellendus dignissimos.",
        "currency": null,
        "languages": [],
        "rentableType": {
            "id": 3,
            "value": "speedboat",
            "label": "Speedboat"
        },
        "rentOptionals": [
            {
                "id": 2,
                "value": "optional2",
                "label": "Optional 2 EN",
                "price": 38
            },
            {
                "id": 5,
                "value": "optional5",
                "label": "Optional 5 EN",
                "price": 38
            }
        ],
        "images": [
            {
                "id": 2211,
                "image": "https:\/\/loremflickr.com\/362\/180\/travel,italy\/?lock=77773",
                "image_name": "",
                "category": "gallery"
            },
            {
                "id": 2212,
                "image": "https:\/\/loremflickr.com\/362\/180\/travel,italy\/?lock=28760",
                "image_name": "",
                "category": "gallery"
            },
            {
                "id": 2213,
                "image": "https:\/\/loremflickr.com\/362\/180\/travel,italy\/?lock=12756",
                "image_name": "",
                "category": "gallery"
            },
            {
                "id": 2214,
                "image": "https:\/\/loremflickr.com\/362\/180\/travel,italy\/?lock=36721",
                "image_name": "",
                "category": "gallery"
            }
        ]
    }
]

HTTP Request

GET /api/rents/rentables

Body Parameters

Parameter Type Status Description
profile string optional Valid user id
search.user_id numeric optional
search.model string optional
search.locaiton string optional
search.latitude string optional
search.longitude string optional
search.description string optional
search.rentableType.id string optional Valid rentable_type id
searchJoin string optional and or or
perPage numeric optional
page numeric optional
orderBy string optional id
sortedBy string optional asc or desc

Query Parameters

Parameter Status Description
profile optional Valid user id
search.user_id optional
search.model optional
search.locaiton optional
search.latitude optional
search.longitude optional
search.description optional
search.rentableType.id optional Valid rentable_type id
searchJoin optional and or or
perPage optional
page optional
orderBy optional id
sortedBy optional asc or desc

Show Rentable

Show the Detail of an CarRents

Example request:

curl -X GET -G "http://api.doitrip.com/api/rents/rentables/1" 
const url = new URL("http://api.doitrip.com/api/rents/rentables/1");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "id": 1,
    "user": {
        "id": 12,
        "profile": {
            "user_id": 12,
            "accomodationType": "residence",
            "accomodationName": "Harvey-AuerLLC",
            "vatNumber": "3986266050683",
            "registeredOffice": "5868 Nadia Ridges\nPort Rosaliashire, ID 35878-7243",
            "country_id": {
                "id": 50,
                "code": "CC",
                "name": "Cocos (Keeling) Islands",
                "created_at": "2021-05-07 19:39:05",
                "updated_at": "2021-05-07 19:39:05"
            },
            "province": "Slovakia (Slovak Republic)",
            "city": "East Eunaland",
            "address": "611 Deckow Street\nNorth Rae, IA 13640",
            "latitude": "-81.917132",
            "longitude": "-35.396466",
            "cityTax": 13,
            "phonePrefix": "+36",
            "phoneNumber": "0925926848",
            "mobilePrefix": "+48",
            "mobileNumber": "2546906408",
            "faxPrefix": "+37",
            "faxNumber": "0120423586",
            "contactEmail": "elmira55@hotmail.com",
            "image": "https:\/\/loremflickr.com\/362\/180\/hotel\/?lock=94870",
            "description": "Dolore voluptatum vitae repellat et. Illo illo repellendus totam laborum. Excepturi excepturi error eos aut magnam id eum voluptatem. Nobis nisi excepturi ut ut sed harum.",
            "recommendations": "Optio et ut nisi minus ipsum accusantium. At dolor ut omnis eos laudantium voluptate. Enim cumque nam in laborum velit. Hic ipsam nemo totam rem unde rem.",
            "yearOfConstruction": 1939,
            "lastRenovation": 1971,
            "rooms": 17,
            "nonSmokingRooms": 18,
            "beds": 14,
            "handicappedRooms": 6,
            "suites": 17,
            "plans": 15,
            "H24CheckIn": 1,
            "checkInHourStart": "20:01:56",
            "checkInHourEnd": "15:48:34",
            "checkOutHourStart": "00:15:13",
            "checkOutHourEnd": "20:29:33",
            "petsAllowed": 0,
            "petsSize": "medium",
            "stars": "3",
            "qualityMark": "Culpa et aliquid quia laudantium eaque.",
            "noClassification": 0,
            "accomodationGrade": 0,
            "roles": [
                "user",
                "accomodation"
            ],
            "roomPosts": 7,
            "hotelServicesIncluded": [
                {
                    "id": 62,
                    "group": "activities",
                    "value": "tour-or-lessons-on-local-culture",
                    "label": "Tour or lessons on local culture"
                },
                {
                    "id": 108,
                    "group": "reception-services",
                    "value": "information-Office",
                    "label": "Information Office"
                },
                {
                    "id": 140,
                    "group": "general-services",
                    "value": "air-conditioning",
                    "label": "Air conditioning"
                },
                {
                    "id": 164,
                    "group": "ski",
                    "value": "ski-pass-sale",
                    "label": "Ski pass sale"
                }
            ],
            "hotelServicesNotIncluded": [
                {
                    "id": 30,
                    "group": "activities",
                    "value": "soccer",
                    "label": "Soccer",
                    "price": 91665
                },
                {
                    "id": 46,
                    "group": "activities",
                    "value": "miniclub",
                    "label": "Mini club",
                    "price": 91665
                },
                {
                    "id": 64,
                    "group": "activities",
                    "value": "wellness",
                    "label": "Wellness",
                    "price": 91665
                },
                {
                    "id": 69,
                    "group": "open-spaces",
                    "value": "pool",
                    "label": "Pool",
                    "price": 91665
                },
                {
                    "id": 108,
                    "group": "reception-services",
                    "value": "information-Office",
                    "label": "Information Office",
                    "price": 91665
                },
                {
                    "id": 113,
                    "group": "entertainment",
                    "value": "dance pub",
                    "label": "Dance pub",
                    "price": 91665
                },
                {
                    "id": 126,
                    "group": "cleaning-services",
                    "value": "ironing-service",
                    "label": "Ironing service",
                    "price": 91665
                },
                {
                    "id": 160,
                    "group": "ski",
                    "value": "Immediate access to the ski slope",
                    "label": "Immediate access to the ski slope",
                    "price": 91665
                },
                {
                    "id": 202,
                    "group": "outdoor-pool",
                    "value": "accessible-all-ages",
                    "label": "Accessible to all ages",
                    "price": 91665
                },
                {
                    "id": 203,
                    "group": "outdoor-pool",
                    "value": "poolside-bar",
                    "label": "Poolside bar",
                    "price": 91665
                }
            ],
            "languages": [
                {
                    "id": 1,
                    "code": "en",
                    "name": "English"
                }
            ],
            "images": [
                {
                    "id": 18,
                    "image": "https:\/\/loremflickr.com\/362\/180\/travel,italy\/?lock=50569",
                    "image_name": "",
                    "category": "gallery"
                },
                {
                    "id": 19,
                    "image": "https:\/\/loremflickr.com\/362\/180\/travel,italy\/?lock=75050",
                    "image_name": "",
                    "category": "gallery"
                }
            ]
        },
        "roles": [
            "user",
            "accomodation"
        ],
        "permissions": [],
        "stripeAccount": {
            "user_id": 12,
            "accountId": "acct_1ITV4XFPn57bOta4",
            "chargeEnable": 1
        },
        "affiliation_code": "P5KVN0",
        "subscription": null
    },
    "created_at": "2021-05-07T19:47:36.000000Z",
    "rentable_type_id": 3,
    "model": "Trevor Schoen",
    "color": "Green",
    "seatsNumber": 4,
    "doorNumber": 4,
    "dailyCost": 991,
    "location": "4304 Collin Springs\nMarshallbury, NY 90261",
    "latitude": "66.350303",
    "longitude": "-58.538259",
    "description": "Totam quaerat quo incidunt iste maxime eveniet magni. Pariatur fugiat adipisci qui et. Molestias qui quia rerum ea dicta.",
    "obbligations": "Nesciunt optio iusto molestiae dolorem quidem similique suscipit. Saepe qui qui dolores laborum minus dignissimos repellat sint. Inventore consectetur est repellendus dignissimos.",
    "currency": null,
    "languages": [],
    "rentableType": {
        "id": 3,
        "value": "speedboat",
        "label": "Speedboat"
    },
    "rentOptionals": [
        {
            "id": 2,
            "value": "optional2",
            "label": "Optional 2 EN",
            "price": 38
        },
        {
            "id": 5,
            "value": "optional5",
            "label": "Optional 5 EN",
            "price": 38
        }
    ],
    "images": [
        {
            "id": 2211,
            "image": "https:\/\/loremflickr.com\/362\/180\/travel,italy\/?lock=77773",
            "image_name": "",
            "category": "gallery"
        },
        {
            "id": 2212,
            "image": "https:\/\/loremflickr.com\/362\/180\/travel,italy\/?lock=28760",
            "image_name": "",
            "category": "gallery"
        },
        {
            "id": 2213,
            "image": "https:\/\/loremflickr.com\/362\/180\/travel,italy\/?lock=12756",
            "image_name": "",
            "category": "gallery"
        },
        {
            "id": 2214,
            "image": "https:\/\/loremflickr.com\/362\/180\/travel,italy\/?lock=36721",
            "image_name": "",
            "category": "gallery"
        }
    ]
}

HTTP Request

GET /api/rents/rentables/{id}

Insert Rentable

Insert CarRents

Example request:

curl -X POST "http://api.doitrip.com/api/rents/rentables" \
    -H "Content-Type: application/json" \
    -d '{"rentable_type_id":"modi","model":"modi","color":"modi","seatsNumber":302,"doorNumber":302,"dailyCost":302,"location":"modi","latitude":"modi","longitude":"modi","description":"modi","obbligations":"modi","currency_id":"modi","rentOptionals":[{"id":"modi","pivot":{"price":302}}],"images":[{"image":"modi","category":"gallery"}]}'
const url = new URL("http://api.doitrip.com/api/rents/rentables");

    let params = {
            "rentable_type_id": "modi",
            "model": "modi",
            "color": "modi",
            "seatsNumber": "302",
            "doorNumber": "302",
            "dailyCost": "302",
            "location": "modi",
            "latitude": "modi",
            "longitude": "modi",
            "description": "modi",
            "obbligations": "modi",
            "currency_id": "modi",
            "rentOptionals": "modi",
            "rentOptionals.*.id": "modi",
            "rentOptionals.*.pivot.price": "302",
            "images": "modi",
            "images.*.image": "modi",
            "images.*.category": "gallery",
        };
    Object.keys(params).forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
}

let body = {
    "rentable_type_id": "modi",
    "model": "modi",
    "color": "modi",
    "seatsNumber": 302,
    "doorNumber": 302,
    "dailyCost": 302,
    "location": "modi",
    "latitude": "modi",
    "longitude": "modi",
    "description": "modi",
    "obbligations": "modi",
    "currency_id": "modi",
    "rentOptionals": [
        {
            "id": "modi",
            "pivot": {
                "price": 302
            }
        }
    ],
    "images": [
        {
            "image": "modi",
            "category": "gallery"
        }
    ]
}

fetch(url, {
    method: "POST",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "id": 1,
    "user": {
        "id": 12,
        "profile": {
            "user_id": 12,
            "accomodationType": "residence",
            "accomodationName": "Harvey-AuerLLC",
            "vatNumber": "3986266050683",
            "registeredOffice": "5868 Nadia Ridges\nPort Rosaliashire, ID 35878-7243",
            "country_id": {
                "id": 50,
                "code": "CC",
                "name": "Cocos (Keeling) Islands",
                "created_at": "2021-05-07 19:39:05",
                "updated_at": "2021-05-07 19:39:05"
            },
            "province": "Slovakia (Slovak Republic)",
            "city": "East Eunaland",
            "address": "611 Deckow Street\nNorth Rae, IA 13640",
            "latitude": "-81.917132",
            "longitude": "-35.396466",
            "cityTax": 13,
            "phonePrefix": "+36",
            "phoneNumber": "0925926848",
            "mobilePrefix": "+48",
            "mobileNumber": "2546906408",
            "faxPrefix": "+37",
            "faxNumber": "0120423586",
            "contactEmail": "elmira55@hotmail.com",
            "image": "https:\/\/loremflickr.com\/362\/180\/hotel\/?lock=94870",
            "description": "Dolore voluptatum vitae repellat et. Illo illo repellendus totam laborum. Excepturi excepturi error eos aut magnam id eum voluptatem. Nobis nisi excepturi ut ut sed harum.",
            "recommendations": "Optio et ut nisi minus ipsum accusantium. At dolor ut omnis eos laudantium voluptate. Enim cumque nam in laborum velit. Hic ipsam nemo totam rem unde rem.",
            "yearOfConstruction": 1939,
            "lastRenovation": 1971,
            "rooms": 17,
            "nonSmokingRooms": 18,
            "beds": 14,
            "handicappedRooms": 6,
            "suites": 17,
            "plans": 15,
            "H24CheckIn": 1,
            "checkInHourStart": "20:01:56",
            "checkInHourEnd": "15:48:34",
            "checkOutHourStart": "00:15:13",
            "checkOutHourEnd": "20:29:33",
            "petsAllowed": 0,
            "petsSize": "medium",
            "stars": "3",
            "qualityMark": "Culpa et aliquid quia laudantium eaque.",
            "noClassification": 0,
            "accomodationGrade": 0,
            "roles": [
                "user",
                "accomodation"
            ],
            "roomPosts": 7,
            "hotelServicesIncluded": [
                {
                    "id": 62,
                    "group": "activities",
                    "value": "tour-or-lessons-on-local-culture",
                    "label": "Tour or lessons on local culture"
                },
                {
                    "id": 108,
                    "group": "reception-services",
                    "value": "information-Office",
                    "label": "Information Office"
                },
                {
                    "id": 140,
                    "group": "general-services",
                    "value": "air-conditioning",
                    "label": "Air conditioning"
                },
                {
                    "id": 164,
                    "group": "ski",
                    "value": "ski-pass-sale",
                    "label": "Ski pass sale"
                }
            ],
            "hotelServicesNotIncluded": [
                {
                    "id": 30,
                    "group": "activities",
                    "value": "soccer",
                    "label": "Soccer",
                    "price": 91665
                },
                {
                    "id": 46,
                    "group": "activities",
                    "value": "miniclub",
                    "label": "Mini club",
                    "price": 91665
                },
                {
                    "id": 64,
                    "group": "activities",
                    "value": "wellness",
                    "label": "Wellness",
                    "price": 91665
                },
                {
                    "id": 69,
                    "group": "open-spaces",
                    "value": "pool",
                    "label": "Pool",
                    "price": 91665
                },
                {
                    "id": 108,
                    "group": "reception-services",
                    "value": "information-Office",
                    "label": "Information Office",
                    "price": 91665
                },
                {
                    "id": 113,
                    "group": "entertainment",
                    "value": "dance pub",
                    "label": "Dance pub",
                    "price": 91665
                },
                {
                    "id": 126,
                    "group": "cleaning-services",
                    "value": "ironing-service",
                    "label": "Ironing service",
                    "price": 91665
                },
                {
                    "id": 160,
                    "group": "ski",
                    "value": "Immediate access to the ski slope",
                    "label": "Immediate access to the ski slope",
                    "price": 91665
                },
                {
                    "id": 202,
                    "group": "outdoor-pool",
                    "value": "accessible-all-ages",
                    "label": "Accessible to all ages",
                    "price": 91665
                },
                {
                    "id": 203,
                    "group": "outdoor-pool",
                    "value": "poolside-bar",
                    "label": "Poolside bar",
                    "price": 91665
                }
            ],
            "languages": [
                {
                    "id": 1,
                    "code": "en",
                    "name": "English"
                }
            ],
            "images": [
                {
                    "id": 18,
                    "image": "https:\/\/loremflickr.com\/362\/180\/travel,italy\/?lock=50569",
                    "image_name": "",
                    "category": "gallery"
                },
                {
                    "id": 19,
                    "image": "https:\/\/loremflickr.com\/362\/180\/travel,italy\/?lock=75050",
                    "image_name": "",
                    "category": "gallery"
                }
            ]
        },
        "roles": [
            "user",
            "accomodation"
        ],
        "permissions": [],
        "stripeAccount": {
            "user_id": 12,
            "accountId": "acct_1ITV4XFPn57bOta4",
            "chargeEnable": 1
        },
        "affiliation_code": "P5KVN0",
        "subscription": null
    },
    "created_at": "2021-05-07T19:47:36.000000Z",
    "rentable_type_id": 3,
    "model": "Trevor Schoen",
    "color": "Green",
    "seatsNumber": 4,
    "doorNumber": 4,
    "dailyCost": 991,
    "location": "4304 Collin Springs\nMarshallbury, NY 90261",
    "latitude": "66.350303",
    "longitude": "-58.538259",
    "description": "Totam quaerat quo incidunt iste maxime eveniet magni. Pariatur fugiat adipisci qui et. Molestias qui quia rerum ea dicta.",
    "obbligations": "Nesciunt optio iusto molestiae dolorem quidem similique suscipit. Saepe qui qui dolores laborum minus dignissimos repellat sint. Inventore consectetur est repellendus dignissimos.",
    "currency": null,
    "languages": [],
    "rentableType": {
        "id": 3,
        "value": "speedboat",
        "label": "Speedboat"
    },
    "rentOptionals": [
        {
            "id": 2,
            "value": "optional2",
            "label": "Optional 2 EN",
            "price": 38
        },
        {
            "id": 5,
            "value": "optional5",
            "label": "Optional 5 EN",
            "price": 38
        }
    ],
    "images": [
        {
            "id": 2211,
            "image": "https:\/\/loremflickr.com\/362\/180\/travel,italy\/?lock=77773",
            "image_name": "",
            "category": "gallery"
        },
        {
            "id": 2212,
            "image": "https:\/\/loremflickr.com\/362\/180\/travel,italy\/?lock=28760",
            "image_name": "",
            "category": "gallery"
        },
        {
            "id": 2213,
            "image": "https:\/\/loremflickr.com\/362\/180\/travel,italy\/?lock=12756",
            "image_name": "",
            "category": "gallery"
        },
        {
            "id": 2214,
            "image": "https:\/\/loremflickr.com\/362\/180\/travel,italy\/?lock=36721",
            "image_name": "",
            "category": "gallery"
        }
    ]
}

HTTP Request

POST /api/rents/rentables

Body Parameters

Parameter Type Status Description
rentable_type_id string optional Valid rentable_type id
model string required
color string required
seatsNumber numeric required
doorNumber numeric required
dailyCost numeric required
location string required
latitude string optional
longitude string optional
description string optional
obbligations string optional
currency_id string optional Required if the parameters budget are present.Valid currency id
rentOptionals array optional
rentOptionals.*.id string optional Valid rent_optional id
rentOptionals.*.pivot.price numeric required
images array optional
images.*.image image required Must be an image (jpeg, png, bmp, gif, or svg)
images.*.category string optional gallery or health_and_hygiene_surveys

Query Parameters

Parameter Status Description
rentable_type_id optional Valid rentable_type id
model required
color required
seatsNumber required
doorNumber required
dailyCost required
location required
latitude optional
longitude optional
description optional
obbligations optional
currency_id optional Required if the parameters budget are present.Valid currency id
rentOptionals optional
rentOptionals.*.id optional Valid rent_optional id
rentOptionals.*.pivot.price required
images optional
images.*.image required Must be an image (jpeg, png, bmp, gif, or svg)
images.*.category optional gallery or health_and_hygiene_surveys

Destroy many Rentable

Example request:

curl -X DELETE "http://api.doitrip.com/api/rents/rentables" \
    -H "Content-Type: application/json" \
    -d '{"ids":"modi"}'
const url = new URL("http://api.doitrip.com/api/rents/rentables");

    let params = {
            "ids": "modi",
        };
    Object.keys(params).forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
}

let body = {
    "ids": "modi"
}

fetch(url, {
    method: "DELETE",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

HTTP Request

DELETE /api/rents/rentables

Body Parameters

Parameter Type Status Description
ids array required

Query Parameters

Parameter Status Description
ids required

Update Rentable

Update an CarRents

Example request:

curl -X PUT "http://api.doitrip.com/api/rents/rentables/1" \
    -H "Content-Type: application/json" \
    -d '{"rentable_type_id":"modi","model":"modi","color":"modi","seatsNumber":302,"doorNumber":302,"dailyCost":302,"location":"modi","latitude":"modi","longitude":"modi","description":"modi","obbligations":"modi","currency_id":"modi","rentOptionals":[{"id":"modi","pivot":{"price":302}}],"images":[{"image":"modi","category":"gallery"}]}'
const url = new URL("http://api.doitrip.com/api/rents/rentables/1");

    let params = {
            "rentable_type_id": "modi",
            "model": "modi",
            "color": "modi",
            "seatsNumber": "302",
            "doorNumber": "302",
            "dailyCost": "302",
            "location": "modi",
            "latitude": "modi",
            "longitude": "modi",
            "description": "modi",
            "obbligations": "modi",
            "currency_id": "modi",
            "rentOptionals": "modi",
            "rentOptionals.*.id": "modi",
            "rentOptionals.*.pivot.price": "302",
            "images": "modi",
            "images.*.image": "modi",
            "images.*.category": "gallery",
        };
    Object.keys(params).forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
}

let body = {
    "rentable_type_id": "modi",
    "model": "modi",
    "color": "modi",
    "seatsNumber": 302,
    "doorNumber": 302,
    "dailyCost": 302,
    "location": "modi",
    "latitude": "modi",
    "longitude": "modi",
    "description": "modi",
    "obbligations": "modi",
    "currency_id": "modi",
    "rentOptionals": [
        {
            "id": "modi",
            "pivot": {
                "price": 302
            }
        }
    ],
    "images": [
        {
            "image": "modi",
            "category": "gallery"
        }
    ]
}

fetch(url, {
    method: "PUT",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "id": 1,
    "user": {
        "id": 12,
        "profile": {
            "user_id": 12,
            "accomodationType": "residence",
            "accomodationName": "Harvey-AuerLLC",
            "vatNumber": "3986266050683",
            "registeredOffice": "5868 Nadia Ridges\nPort Rosaliashire, ID 35878-7243",
            "country_id": {
                "id": 50,
                "code": "CC",
                "name": "Cocos (Keeling) Islands",
                "created_at": "2021-05-07 19:39:05",
                "updated_at": "2021-05-07 19:39:05"
            },
            "province": "Slovakia (Slovak Republic)",
            "city": "East Eunaland",
            "address": "611 Deckow Street\nNorth Rae, IA 13640",
            "latitude": "-81.917132",
            "longitude": "-35.396466",
            "cityTax": 13,
            "phonePrefix": "+36",
            "phoneNumber": "0925926848",
            "mobilePrefix": "+48",
            "mobileNumber": "2546906408",
            "faxPrefix": "+37",
            "faxNumber": "0120423586",
            "contactEmail": "elmira55@hotmail.com",
            "image": "https:\/\/loremflickr.com\/362\/180\/hotel\/?lock=94870",
            "description": "Dolore voluptatum vitae repellat et. Illo illo repellendus totam laborum. Excepturi excepturi error eos aut magnam id eum voluptatem. Nobis nisi excepturi ut ut sed harum.",
            "recommendations": "Optio et ut nisi minus ipsum accusantium. At dolor ut omnis eos laudantium voluptate. Enim cumque nam in laborum velit. Hic ipsam nemo totam rem unde rem.",
            "yearOfConstruction": 1939,
            "lastRenovation": 1971,
            "rooms": 17,
            "nonSmokingRooms": 18,
            "beds": 14,
            "handicappedRooms": 6,
            "suites": 17,
            "plans": 15,
            "H24CheckIn": 1,
            "checkInHourStart": "20:01:56",
            "checkInHourEnd": "15:48:34",
            "checkOutHourStart": "00:15:13",
            "checkOutHourEnd": "20:29:33",
            "petsAllowed": 0,
            "petsSize": "medium",
            "stars": "3",
            "qualityMark": "Culpa et aliquid quia laudantium eaque.",
            "noClassification": 0,
            "accomodationGrade": 0,
            "roles": [
                "user",
                "accomodation"
            ],
            "roomPosts": 7,
            "hotelServicesIncluded": [
                {
                    "id": 62,
                    "group": "activities",
                    "value": "tour-or-lessons-on-local-culture",
                    "label": "Tour or lessons on local culture"
                },
                {
                    "id": 108,
                    "group": "reception-services",
                    "value": "information-Office",
                    "label": "Information Office"
                },
                {
                    "id": 140,
                    "group": "general-services",
                    "value": "air-conditioning",
                    "label": "Air conditioning"
                },
                {
                    "id": 164,
                    "group": "ski",
                    "value": "ski-pass-sale",
                    "label": "Ski pass sale"
                }
            ],
            "hotelServicesNotIncluded": [
                {
                    "id": 30,
                    "group": "activities",
                    "value": "soccer",
                    "label": "Soccer",
                    "price": 91665
                },
                {
                    "id": 46,
                    "group": "activities",
                    "value": "miniclub",
                    "label": "Mini club",
                    "price": 91665
                },
                {
                    "id": 64,
                    "group": "activities",
                    "value": "wellness",
                    "label": "Wellness",
                    "price": 91665
                },
                {
                    "id": 69,
                    "group": "open-spaces",
                    "value": "pool",
                    "label": "Pool",
                    "price": 91665
                },
                {
                    "id": 108,
                    "group": "reception-services",
                    "value": "information-Office",
                    "label": "Information Office",
                    "price": 91665
                },
                {
                    "id": 113,
                    "group": "entertainment",
                    "value": "dance pub",
                    "label": "Dance pub",
                    "price": 91665
                },
                {
                    "id": 126,
                    "group": "cleaning-services",
                    "value": "ironing-service",
                    "label": "Ironing service",
                    "price": 91665
                },
                {
                    "id": 160,
                    "group": "ski",
                    "value": "Immediate access to the ski slope",
                    "label": "Immediate access to the ski slope",
                    "price": 91665
                },
                {
                    "id": 202,
                    "group": "outdoor-pool",
                    "value": "accessible-all-ages",
                    "label": "Accessible to all ages",
                    "price": 91665
                },
                {
                    "id": 203,
                    "group": "outdoor-pool",
                    "value": "poolside-bar",
                    "label": "Poolside bar",
                    "price": 91665
                }
            ],
            "languages": [
                {
                    "id": 1,
                    "code": "en",
                    "name": "English"
                }
            ],
            "images": [
                {
                    "id": 18,
                    "image": "https:\/\/loremflickr.com\/362\/180\/travel,italy\/?lock=50569",
                    "image_name": "",
                    "category": "gallery"
                },
                {
                    "id": 19,
                    "image": "https:\/\/loremflickr.com\/362\/180\/travel,italy\/?lock=75050",
                    "image_name": "",
                    "category": "gallery"
                }
            ]
        },
        "roles": [
            "user",
            "accomodation"
        ],
        "permissions": [],
        "stripeAccount": {
            "user_id": 12,
            "accountId": "acct_1ITV4XFPn57bOta4",
            "chargeEnable": 1
        },
        "affiliation_code": "P5KVN0",
        "subscription": null
    },
    "created_at": "2021-05-07T19:47:36.000000Z",
    "rentable_type_id": 3,
    "model": "Trevor Schoen",
    "color": "Green",
    "seatsNumber": 4,
    "doorNumber": 4,
    "dailyCost": 991,
    "location": "4304 Collin Springs\nMarshallbury, NY 90261",
    "latitude": "66.350303",
    "longitude": "-58.538259",
    "description": "Totam quaerat quo incidunt iste maxime eveniet magni. Pariatur fugiat adipisci qui et. Molestias qui quia rerum ea dicta.",
    "obbligations": "Nesciunt optio iusto molestiae dolorem quidem similique suscipit. Saepe qui qui dolores laborum minus dignissimos repellat sint. Inventore consectetur est repellendus dignissimos.",
    "currency": null,
    "languages": [],
    "rentableType": {
        "id": 3,
        "value": "speedboat",
        "label": "Speedboat"
    },
    "rentOptionals": [
        {
            "id": 2,
            "value": "optional2",
            "label": "Optional 2 EN",
            "price": 38
        },
        {
            "id": 5,
            "value": "optional5",
            "label": "Optional 5 EN",
            "price": 38
        }
    ],
    "images": [
        {
            "id": 2211,
            "image": "https:\/\/loremflickr.com\/362\/180\/travel,italy\/?lock=77773",
            "image_name": "",
            "category": "gallery"
        },
        {
            "id": 2212,
            "image": "https:\/\/loremflickr.com\/362\/180\/travel,italy\/?lock=28760",
            "image_name": "",
            "category": "gallery"
        },
        {
            "id": 2213,
            "image": "https:\/\/loremflickr.com\/362\/180\/travel,italy\/?lock=12756",
            "image_name": "",
            "category": "gallery"
        },
        {
            "id": 2214,
            "image": "https:\/\/loremflickr.com\/362\/180\/travel,italy\/?lock=36721",
            "image_name": "",
            "category": "gallery"
        }
    ]
}

HTTP Request

PUT /api/rents/rentables/{id}

PATCH /api/rents/rentables/{id}

Body Parameters

Parameter Type Status Description
rentable_type_id string optional Valid rentable_type id
model string required
color string required
seatsNumber numeric required
doorNumber numeric required
dailyCost numeric required
location string required
latitude string optional
longitude string optional
description string optional
obbligations string optional
currency_id string optional Required if the parameters budget are present.Valid currency id
rentOptionals array optional
rentOptionals.*.id string optional Valid rent_optional id
rentOptionals.*.pivot.price numeric required
images array optional
images.*.image image required Must be an image (jpeg, png, bmp, gif, or svg)
images.*.category string optional gallery or health_and_hygiene_surveys

Query Parameters

Parameter Status Description
rentable_type_id optional Valid rentable_type id
model required
color required
seatsNumber required
doorNumber required
dailyCost required
location required
latitude optional
longitude optional
description optional
obbligations optional
currency_id optional Required if the parameters budget are present.Valid currency id
rentOptionals optional
rentOptionals.*.id optional Valid rent_optional id
rentOptionals.*.pivot.price required
images optional
images.*.image required Must be an image (jpeg, png, bmp, gif, or svg)
images.*.category optional gallery or health_and_hygiene_surveys

Destroy Rentable

Destroy an CarRents

Example request:

curl -X DELETE "http://api.doitrip.com/api/rents/rentables/1" 
const url = new URL("http://api.doitrip.com/api/rents/rentables/1");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "DELETE",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

HTTP Request

DELETE /api/rents/rentables/{id}

Report Rentable


Requires authentication

Example request:

curl -X POST "http://api.doitrip.com/api/rents/rentables/1/report" 
const url = new URL("http://api.doitrip.com/api/rents/rentables/1/report");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "POST",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

HTTP Request

POST /api/rents/rentables/{id}/report

Insert RentPreorderReply

Insert CarRents

Example request:

curl -X POST "http://api.doitrip.com/api/rents/rentPreorderReplies" \
    -H "Content-Type: application/json" \
    -d '{"rent_preorder_id":"a","final_price":613201789,"note":"a","rent_state":"a"}'
const url = new URL("http://api.doitrip.com/api/rents/rentPreorderReplies");

    let params = {
            "rent_preorder_id": "a",
            "final_price": "613201789",
            "note": "a",
            "rent_state": "a",
        };
    Object.keys(params).forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
}

let body = {
    "rent_preorder_id": "a",
    "final_price": 613201789,
    "note": "a",
    "rent_state": "a"
}

fetch(url, {
    method: "POST",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "id": 1,
    "final_price": 420,
    "note": "Nam ut laborum rem in temporibus. Velit fuga et illo sint eius mollitia. Quisquam earum explicabo beatae iste.",
    "rent_state": "accepted",
    "user_state": "accepted"
}

HTTP Request

POST /api/rents/rentPreorderReplies

Body Parameters

Parameter Type Status Description
rent_preorder_id string required Valid rent_preorder id
final_price numeric required
note string optional
rent_state string required

Query Parameters

Parameter Status Description
rent_preorder_id required Valid rent_preorder id
final_price required
note optional
rent_state required

Show RentPreorderReply

Show the Detail of an CarRents

Example request:

curl -X GET -G "http://api.doitrip.com/api/rents/rentPreorderReplies/1" 
const url = new URL("http://api.doitrip.com/api/rents/rentPreorderReplies/1");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "id": 1,
    "final_price": 420,
    "note": "Nam ut laborum rem in temporibus. Velit fuga et illo sint eius mollitia. Quisquam earum explicabo beatae iste.",
    "rent_state": "accepted",
    "user_state": "accepted"
}

HTTP Request

GET /api/rents/rentPreorderReplies/{id}

Destroy RentPreorderReply

Destroy an CarRents

Example request:

curl -X DELETE "http://api.doitrip.com/api/rents/rentPreorderReplies/1" 
const url = new URL("http://api.doitrip.com/api/rents/rentPreorderReplies/1");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "DELETE",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

HTTP Request

DELETE /api/rents/rentPreorderReplies/{id}

/api/rents/rentPreorderReplies/{id}/userState

Example request:

curl -X POST "http://api.doitrip.com/api/rents/rentPreorderReplies/1/userState" \
    -H "Content-Type: application/json" \
    -d '{"state":"a"}'
const url = new URL("http://api.doitrip.com/api/rents/rentPreorderReplies/1/userState");

    let params = {
            "state": "a",
        };
    Object.keys(params).forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
}

let body = {
    "state": "a"
}

fetch(url, {
    method: "POST",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

HTTP Request

POST /api/rents/rentPreorderReplies/{id}/userState

Body Parameters

Parameter Type Status Description
state string required

Query Parameters

Parameter Status Description
state required

CarSharings

Search SharingOffer

Search CarSharings

Example request:

curl -X GET -G "http://api.doitrip.com/api/carSharings/SharingOffer" \
    -H "Content-Type: application/json" \
    -d '{"profile":"consequatur","search":{"user_id":0,"type":"consequatur","start_locaiton":"consequatur","start_latitude":"consequatur","start_longitude":"consequatur","end_locaiton":"consequatur","end_latitude":"consequatur","end_longitude":"consequatur","start_date":"consequatur","seatsNumber":0,"model":"consequatur"},"searchJoin":"and","perPage":0,"page":0,"orderBy":"id","sortedBy":"asc"}'
const url = new URL("http://api.doitrip.com/api/carSharings/SharingOffer");

    let params = {
            "profile": "consequatur",
            "search.user_id": "0",
            "search.type": "consequatur",
            "search.start_locaiton": "consequatur",
            "search.start_latitude": "consequatur",
            "search.start_longitude": "consequatur",
            "search.end_locaiton": "consequatur",
            "search.end_latitude": "consequatur",
            "search.end_longitude": "consequatur",
            "search.start_date": "consequatur",
            "search.seatsNumber": "0",
            "search.model": "consequatur",
            "searchJoin": "and",
            "perPage": "0",
            "page": "0",
            "orderBy": "id",
            "sortedBy": "asc",
        };
    Object.keys(params).forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
}

let body = {
    "profile": "consequatur",
    "search": {
        "user_id": 0,
        "type": "consequatur",
        "start_locaiton": "consequatur",
        "start_latitude": "consequatur",
        "start_longitude": "consequatur",
        "end_locaiton": "consequatur",
        "end_latitude": "consequatur",
        "end_longitude": "consequatur",
        "start_date": "consequatur",
        "seatsNumber": 0,
        "model": "consequatur"
    },
    "searchJoin": "and",
    "perPage": 0,
    "page": 0,
    "orderBy": "id",
    "sortedBy": "asc"
}

fetch(url, {
    method: "GET",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

[
    {
        "id": 1,
        "user": {
            "id": 19,
            "profile": {
                "user_id": 19,
                "firstName": "Jermey",
                "lastName": "Jenkins",
                "gender": "F",
                "birthDate": "1996-02-11",
                "country_id": 120,
                "city": "Port Guidofort",
                "image": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=84268",
                "description": "Quis praesentium illo ullam molestias soluta. Nisi atque doloribus voluptatem iusto ut esse. Est fuga ut molestias. Aspernatur earum porro est nemo itaque.",
                "paymentMethod": "stripe",
                "paymentOther": "aut",
                "companionGrade": 0,
                "roles": [
                    "user",
                    "traveler"
                ],
                "travelerTypes": [
                    {
                        "id": 3,
                        "value": "adventurer",
                        "label": "Adventurer"
                    }
                ],
                "languages": [
                    {
                        "id": 1,
                        "code": "en",
                        "name": "English"
                    }
                ],
                "natures": [
                    {
                        "id": 5,
                        "value": "foodandwine",
                        "label": "food and wine"
                    }
                ],
                "followers": 10,
                "email": "private field",
                "phoneNumber": "private field",
                "fiscalCode": "private field",
                "identityDoc": "private field"
            },
            "roles": [
                "user",
                "traveler"
            ],
            "permissions": [],
            "stripeAccount": null,
            "affiliation_code": "N8BKM5",
            "subscription": {
                "id": 18,
                "active": 1,
                "expirationDate": "2023-03-10",
                "subscription": {
                    "id": 1,
                    "role": "traveler",
                    "type": "free",
                    "price": 0,
                    "monthPrice": 0,
                    "maxPost": "unlimited"
                }
            }
        },
        "type": "motorcycle",
        "model": "Laurianne Romaguera Jr.",
        "start_date": "1988-10-26 07:17:26",
        "start_location": "80061 McClure Court Apt. 952\nRoweton, CA 71657-9055",
        "start_latitude": "-28.449222",
        "start_longitude": "136.154196",
        "end_location": "381 Koepp Tunnel Apt. 512\nNikohaven, UT 45659",
        "end_latitude": "-79.663429",
        "end_longitude": "-120.415866",
        "seatsNumber": 5,
        "cost": 1590,
        "freeSeats": 1,
        "sharingRuleTypes": [
            {
                "id": 1,
                "value": "noDogs",
                "label": "No Dogs"
            },
            {
                "id": 5,
                "value": "noStop",
                "label": "No Stops"
            }
        ],
        "currency": {
            "id": 1,
            "name": "Euro",
            "code": "EUR",
            "symbol": "€"
        },
        "languages": [],
        "images": [
            {
                "id": 2261,
                "image": "https:\/\/loremflickr.com\/362\/180\/travel,italy\/?lock=73803",
                "image_name": "",
                "category": "gallery"
            },
            {
                "id": 2262,
                "image": "https:\/\/loremflickr.com\/362\/180\/travel,italy\/?lock=58785",
                "image_name": "",
                "category": "gallery"
            }
        ]
    }
]

HTTP Request

GET /api/carSharings/SharingOffer

Body Parameters

Parameter Type Status Description
profile string optional Valid user id
search.user_id numeric optional
search.type string optional
search.start_locaiton string optional
search.start_latitude string optional
search.start_longitude string optional
search.end_locaiton string optional
search.end_latitude string optional
search.end_longitude string optional
search.start_date string optional
search.seatsNumber numeric optional
search.model string optional
searchJoin string optional and or or
perPage numeric optional
page numeric optional
orderBy string optional id
sortedBy string optional asc or desc

Query Parameters

Parameter Status Description
profile optional Valid user id
search.user_id optional
search.type optional
search.start_locaiton optional
search.start_latitude optional
search.start_longitude optional
search.end_locaiton optional
search.end_latitude optional
search.end_longitude optional
search.start_date optional
search.seatsNumber optional
search.model optional
searchJoin optional and or or
perPage optional
page optional
orderBy optional id
sortedBy optional asc or desc

Insert SharingOffer

Insert CarSharings

Example request:

curl -X POST "http://api.doitrip.com/api/carSharings/SharingOffer" \
    -H "Content-Type: application/json" \
    -d '{"type":"consequatur","model":"consequatur","note":"consequatur","start_date":"consequatur","start_location":"consequatur","start_latitude":"consequatur","start_longitude":"consequatur","end_location":"consequatur","end_latitude":"consequatur","end_longitude":"consequatur","seatsNumber":0,"currency_id":"consequatur","cost":0,"sharingRuleTypes":[{"id":"consequatur"}],"images":[{"image":"consequatur","category":"gallery"}]}'
const url = new URL("http://api.doitrip.com/api/carSharings/SharingOffer");

    let params = {
            "type": "consequatur",
            "model": "consequatur",
            "note": "consequatur",
            "start_date": "consequatur",
            "start_location": "consequatur",
            "start_latitude": "consequatur",
            "start_longitude": "consequatur",
            "end_location": "consequatur",
            "end_latitude": "consequatur",
            "end_longitude": "consequatur",
            "seatsNumber": "0",
            "currency_id": "consequatur",
            "cost": "0",
            "sharingRuleTypes": "consequatur",
            "sharingRuleTypes.*.id": "consequatur",
            "images": "consequatur",
            "images.*.image": "consequatur",
            "images.*.category": "gallery",
        };
    Object.keys(params).forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
}

let body = {
    "type": "consequatur",
    "model": "consequatur",
    "note": "consequatur",
    "start_date": "consequatur",
    "start_location": "consequatur",
    "start_latitude": "consequatur",
    "start_longitude": "consequatur",
    "end_location": "consequatur",
    "end_latitude": "consequatur",
    "end_longitude": "consequatur",
    "seatsNumber": 0,
    "currency_id": "consequatur",
    "cost": 0,
    "sharingRuleTypes": [
        {
            "id": "consequatur"
        }
    ],
    "images": [
        {
            "image": "consequatur",
            "category": "gallery"
        }
    ]
}

fetch(url, {
    method: "POST",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "id": 1,
    "user": {
        "id": 19,
        "profile": {
            "user_id": 19,
            "firstName": "Jermey",
            "lastName": "Jenkins",
            "gender": "F",
            "birthDate": "1996-02-11",
            "country_id": 120,
            "city": "Port Guidofort",
            "image": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=84268",
            "description": "Quis praesentium illo ullam molestias soluta. Nisi atque doloribus voluptatem iusto ut esse. Est fuga ut molestias. Aspernatur earum porro est nemo itaque.",
            "paymentMethod": "stripe",
            "paymentOther": "aut",
            "companionGrade": 0,
            "roles": [
                "user",
                "traveler"
            ],
            "travelerTypes": [
                {
                    "id": 3,
                    "value": "adventurer",
                    "label": "Adventurer"
                }
            ],
            "languages": [
                {
                    "id": 1,
                    "code": "en",
                    "name": "English"
                }
            ],
            "natures": [
                {
                    "id": 5,
                    "value": "foodandwine",
                    "label": "food and wine"
                }
            ],
            "followers": 10,
            "email": "private field",
            "phoneNumber": "private field",
            "fiscalCode": "private field",
            "identityDoc": "private field"
        },
        "roles": [
            "user",
            "traveler"
        ],
        "permissions": [],
        "stripeAccount": null,
        "affiliation_code": "N8BKM5",
        "subscription": {
            "id": 18,
            "active": 1,
            "expirationDate": "2023-03-10",
            "subscription": {
                "id": 1,
                "role": "traveler",
                "type": "free",
                "price": 0,
                "monthPrice": 0,
                "maxPost": "unlimited"
            }
        }
    },
    "type": "motorcycle",
    "model": "Laurianne Romaguera Jr.",
    "start_date": "1988-10-26 07:17:26",
    "start_location": "80061 McClure Court Apt. 952\nRoweton, CA 71657-9055",
    "start_latitude": "-28.449222",
    "start_longitude": "136.154196",
    "end_location": "381 Koepp Tunnel Apt. 512\nNikohaven, UT 45659",
    "end_latitude": "-79.663429",
    "end_longitude": "-120.415866",
    "seatsNumber": 5,
    "cost": 1590,
    "freeSeats": 1,
    "sharingRuleTypes": [
        {
            "id": 1,
            "value": "noDogs",
            "label": "No Dogs"
        },
        {
            "id": 5,
            "value": "noStop",
            "label": "No Stops"
        }
    ],
    "currency": {
        "id": 1,
        "name": "Euro",
        "code": "EUR",
        "symbol": "€"
    },
    "languages": [],
    "images": [
        {
            "id": 2261,
            "image": "https:\/\/loremflickr.com\/362\/180\/travel,italy\/?lock=73803",
            "image_name": "",
            "category": "gallery"
        },
        {
            "id": 2262,
            "image": "https:\/\/loremflickr.com\/362\/180\/travel,italy\/?lock=58785",
            "image_name": "",
            "category": "gallery"
        }
    ]
}

HTTP Request

POST /api/carSharings/SharingOffer

Body Parameters

Parameter Type Status Description
type string optional
model string required
note string optional
start_date string required
start_location string required
start_latitude string optional
start_longitude string optional
end_location string required
end_latitude string optional
end_longitude string optional
seatsNumber numeric required
currency_id string optional Required if the parameters budget are present.Valid currency id
cost numeric required
sharingRuleTypes array optional
sharingRuleTypes.*.id string optional Valid sharing_rule_type id
images array optional
images.*.image image optional Must be an image (jpeg, png, bmp, gif, or svg)
images.*.category string optional gallery or health_and_hygiene_surveys

Query Parameters

Parameter Status Description
type optional
model required
note optional
start_date required
start_location required
start_latitude optional
start_longitude optional
end_location required
end_latitude optional
end_longitude optional
seatsNumber required
currency_id optional Required if the parameters budget are present.Valid currency id
cost required
sharingRuleTypes optional
sharingRuleTypes.*.id optional Valid sharing_rule_type id
images optional
images.*.image optional Must be an image (jpeg, png, bmp, gif, or svg)
images.*.category optional gallery or health_and_hygiene_surveys

Show SharingOffer

Show the Detail of an CarSharings

Example request:

curl -X GET -G "http://api.doitrip.com/api/carSharings/SharingOffer/1" 
const url = new URL("http://api.doitrip.com/api/carSharings/SharingOffer/1");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "id": 1,
    "user": {
        "id": 19,
        "profile": {
            "user_id": 19,
            "firstName": "Jermey",
            "lastName": "Jenkins",
            "gender": "F",
            "birthDate": "1996-02-11",
            "country_id": 120,
            "city": "Port Guidofort",
            "image": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=84268",
            "description": "Quis praesentium illo ullam molestias soluta. Nisi atque doloribus voluptatem iusto ut esse. Est fuga ut molestias. Aspernatur earum porro est nemo itaque.",
            "paymentMethod": "stripe",
            "paymentOther": "aut",
            "companionGrade": 0,
            "roles": [
                "user",
                "traveler"
            ],
            "travelerTypes": [
                {
                    "id": 3,
                    "value": "adventurer",
                    "label": "Adventurer"
                }
            ],
            "languages": [
                {
                    "id": 1,
                    "code": "en",
                    "name": "English"
                }
            ],
            "natures": [
                {
                    "id": 5,
                    "value": "foodandwine",
                    "label": "food and wine"
                }
            ],
            "followers": 10,
            "email": "private field",
            "phoneNumber": "private field",
            "fiscalCode": "private field",
            "identityDoc": "private field"
        },
        "roles": [
            "user",
            "traveler"
        ],
        "permissions": [],
        "stripeAccount": null,
        "affiliation_code": "N8BKM5",
        "subscription": {
            "id": 18,
            "active": 1,
            "expirationDate": "2023-03-10",
            "subscription": {
                "id": 1,
                "role": "traveler",
                "type": "free",
                "price": 0,
                "monthPrice": 0,
                "maxPost": "unlimited"
            }
        }
    },
    "type": "motorcycle",
    "model": "Laurianne Romaguera Jr.",
    "start_date": "1988-10-26 07:17:26",
    "start_location": "80061 McClure Court Apt. 952\nRoweton, CA 71657-9055",
    "start_latitude": "-28.449222",
    "start_longitude": "136.154196",
    "end_location": "381 Koepp Tunnel Apt. 512\nNikohaven, UT 45659",
    "end_latitude": "-79.663429",
    "end_longitude": "-120.415866",
    "seatsNumber": 5,
    "cost": 1590,
    "freeSeats": 1,
    "sharingRuleTypes": [
        {
            "id": 1,
            "value": "noDogs",
            "label": "No Dogs"
        },
        {
            "id": 5,
            "value": "noStop",
            "label": "No Stops"
        }
    ],
    "currency": {
        "id": 1,
        "name": "Euro",
        "code": "EUR",
        "symbol": "€"
    },
    "languages": [],
    "images": [
        {
            "id": 2261,
            "image": "https:\/\/loremflickr.com\/362\/180\/travel,italy\/?lock=73803",
            "image_name": "",
            "category": "gallery"
        },
        {
            "id": 2262,
            "image": "https:\/\/loremflickr.com\/362\/180\/travel,italy\/?lock=58785",
            "image_name": "",
            "category": "gallery"
        }
    ]
}

HTTP Request

GET /api/carSharings/SharingOffer/{id}

/api/carSharings/SharingOffer/{id}/report

Example request:

curl -X POST "http://api.doitrip.com/api/carSharings/SharingOffer/1/report" 
const url = new URL("http://api.doitrip.com/api/carSharings/SharingOffer/1/report");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "POST",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

HTTP Request

POST /api/carSharings/SharingOffer/{id}/report

Destroy many SharingOffer

Example request:

curl -X DELETE "http://api.doitrip.com/api/carSharings/SharingOffer" \
    -H "Content-Type: application/json" \
    -d '{"ids":"consequatur"}'
const url = new URL("http://api.doitrip.com/api/carSharings/SharingOffer");

    let params = {
            "ids": "consequatur",
        };
    Object.keys(params).forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
}

let body = {
    "ids": "consequatur"
}

fetch(url, {
    method: "DELETE",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

HTTP Request

DELETE /api/carSharings/SharingOffer

Body Parameters

Parameter Type Status Description
ids array required

Query Parameters

Parameter Status Description
ids required

Update SharingOffer

Update an CarSharings

Example request:

curl -X PUT "http://api.doitrip.com/api/carSharings/SharingOffer/1" \
    -H "Content-Type: application/json" \
    -d '{"type":"consequatur","model":"consequatur","note":"consequatur","start_date":"consequatur","start_location":"consequatur","start_latitude":"consequatur","start_longitude":"consequatur","end_location":"consequatur","end_latitude":"consequatur","end_longitude":"consequatur","seatsNumber":0,"currency_id":"consequatur","cost":0,"sharingRuleTypes":[{"id":"consequatur"}],"images":[{"image":"consequatur","category":"gallery"}]}'
const url = new URL("http://api.doitrip.com/api/carSharings/SharingOffer/1");

    let params = {
            "type": "consequatur",
            "model": "consequatur",
            "note": "consequatur",
            "start_date": "consequatur",
            "start_location": "consequatur",
            "start_latitude": "consequatur",
            "start_longitude": "consequatur",
            "end_location": "consequatur",
            "end_latitude": "consequatur",
            "end_longitude": "consequatur",
            "seatsNumber": "0",
            "currency_id": "consequatur",
            "cost": "0",
            "sharingRuleTypes": "consequatur",
            "sharingRuleTypes.*.id": "consequatur",
            "images": "consequatur",
            "images.*.image": "consequatur",
            "images.*.category": "gallery",
        };
    Object.keys(params).forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
}

let body = {
    "type": "consequatur",
    "model": "consequatur",
    "note": "consequatur",
    "start_date": "consequatur",
    "start_location": "consequatur",
    "start_latitude": "consequatur",
    "start_longitude": "consequatur",
    "end_location": "consequatur",
    "end_latitude": "consequatur",
    "end_longitude": "consequatur",
    "seatsNumber": 0,
    "currency_id": "consequatur",
    "cost": 0,
    "sharingRuleTypes": [
        {
            "id": "consequatur"
        }
    ],
    "images": [
        {
            "image": "consequatur",
            "category": "gallery"
        }
    ]
}

fetch(url, {
    method: "PUT",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "id": 1,
    "user": {
        "id": 19,
        "profile": {
            "user_id": 19,
            "firstName": "Jermey",
            "lastName": "Jenkins",
            "gender": "F",
            "birthDate": "1996-02-11",
            "country_id": 120,
            "city": "Port Guidofort",
            "image": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=84268",
            "description": "Quis praesentium illo ullam molestias soluta. Nisi atque doloribus voluptatem iusto ut esse. Est fuga ut molestias. Aspernatur earum porro est nemo itaque.",
            "paymentMethod": "stripe",
            "paymentOther": "aut",
            "companionGrade": 0,
            "roles": [
                "user",
                "traveler"
            ],
            "travelerTypes": [
                {
                    "id": 3,
                    "value": "adventurer",
                    "label": "Adventurer"
                }
            ],
            "languages": [
                {
                    "id": 1,
                    "code": "en",
                    "name": "English"
                }
            ],
            "natures": [
                {
                    "id": 5,
                    "value": "foodandwine",
                    "label": "food and wine"
                }
            ],
            "followers": 10,
            "email": "private field",
            "phoneNumber": "private field",
            "fiscalCode": "private field",
            "identityDoc": "private field"
        },
        "roles": [
            "user",
            "traveler"
        ],
        "permissions": [],
        "stripeAccount": null,
        "affiliation_code": "N8BKM5",
        "subscription": {
            "id": 18,
            "active": 1,
            "expirationDate": "2023-03-10",
            "subscription": {
                "id": 1,
                "role": "traveler",
                "type": "free",
                "price": 0,
                "monthPrice": 0,
                "maxPost": "unlimited"
            }
        }
    },
    "type": "motorcycle",
    "model": "Laurianne Romaguera Jr.",
    "start_date": "1988-10-26 07:17:26",
    "start_location": "80061 McClure Court Apt. 952\nRoweton, CA 71657-9055",
    "start_latitude": "-28.449222",
    "start_longitude": "136.154196",
    "end_location": "381 Koepp Tunnel Apt. 512\nNikohaven, UT 45659",
    "end_latitude": "-79.663429",
    "end_longitude": "-120.415866",
    "seatsNumber": 5,
    "cost": 1590,
    "freeSeats": 1,
    "sharingRuleTypes": [
        {
            "id": 1,
            "value": "noDogs",
            "label": "No Dogs"
        },
        {
            "id": 5,
            "value": "noStop",
            "label": "No Stops"
        }
    ],
    "currency": {
        "id": 1,
        "name": "Euro",
        "code": "EUR",
        "symbol": "€"
    },
    "languages": [],
    "images": [
        {
            "id": 2261,
            "image": "https:\/\/loremflickr.com\/362\/180\/travel,italy\/?lock=73803",
            "image_name": "",
            "category": "gallery"
        },
        {
            "id": 2262,
            "image": "https:\/\/loremflickr.com\/362\/180\/travel,italy\/?lock=58785",
            "image_name": "",
            "category": "gallery"
        }
    ]
}

HTTP Request

PUT /api/carSharings/SharingOffer/{id}

PATCH /api/carSharings/SharingOffer/{id}

Body Parameters

Parameter Type Status Description
type string optional
model string required
note string optional
start_date string required
start_location string required
start_latitude string optional
start_longitude string optional
end_location string required
end_latitude string optional
end_longitude string optional
seatsNumber numeric required
currency_id string optional Required if the parameters budget are present.Valid currency id
cost numeric required
sharingRuleTypes array optional
sharingRuleTypes.*.id string optional Valid sharing_rule_type id
images array optional
images.*.image image optional Must be an image (jpeg, png, bmp, gif, or svg)
images.*.category string optional gallery or health_and_hygiene_surveys

Query Parameters

Parameter Status Description
type optional
model required
note optional
start_date required
start_location required
start_latitude optional
start_longitude optional
end_location required
end_latitude optional
end_longitude optional
seatsNumber required
currency_id optional Required if the parameters budget are present.Valid currency id
cost required
sharingRuleTypes optional
sharingRuleTypes.*.id optional Valid sharing_rule_type id
images optional
images.*.image optional Must be an image (jpeg, png, bmp, gif, or svg)
images.*.category optional gallery or health_and_hygiene_surveys

Destroy SharingOffer

Destroy an CarSharings

Example request:

curl -X DELETE "http://api.doitrip.com/api/carSharings/SharingOffer/1" 
const url = new URL("http://api.doitrip.com/api/carSharings/SharingOffer/1");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "DELETE",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

HTTP Request

DELETE /api/carSharings/SharingOffer/{id}

Search SharingPreorder

Search CarSharings

Example request:

curl -X GET -G "http://api.doitrip.com/api/carSharings/SharingPreorder" \
    -H "Content-Type: application/json" \
    -d '{"owner":"1","profile":"sed","search":{"user_id":84,"preorder_state":"accepted","sharing_offer_id":"sed"},"searchJoin":"and","perPage":84,"page":84,"orderBy":"id","sortedBy":"asc"}'
const url = new URL("http://api.doitrip.com/api/carSharings/SharingPreorder");

    let params = {
            "owner": "1",
            "profile": "sed",
            "search.user_id": "84",
            "search.preorder_state": "accepted",
            "search.sharing_offer_id": "sed",
            "searchJoin": "and",
            "perPage": "84",
            "page": "84",
            "orderBy": "id",
            "sortedBy": "asc",
        };
    Object.keys(params).forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
}

let body = {
    "owner": "1",
    "profile": "sed",
    "search": {
        "user_id": 84,
        "preorder_state": "accepted",
        "sharing_offer_id": "sed"
    },
    "searchJoin": "and",
    "perPage": 84,
    "page": 84,
    "orderBy": "id",
    "sortedBy": "asc"
}

fetch(url, {
    method: "GET",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

[
    {
        "id": 1,
        "user": {
            "id": 5,
            "profile": {
                "user_id": 5,
                "companyType": "society",
                "companyName": "Feest, Jast and RippinLtd",
                "firstName": "private field",
                "lastName": "private field",
                "country_id": 136,
                "city": "Gennaroland",
                "province": null,
                "address": null,
                "registeredOffice": "3731 Kuhlman Loaf\nPort Ada, NV 90702",
                "image": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=41686",
                "description": "Centralized interactive opensystem",
                "paymentMethod": "other",
                "paymentOther": "sit",
                "tourOperatorGrade": 0,
                "roles": [
                    "user",
                    "tourOperator"
                ],
                "tourPosts": 10,
                "followers": 10,
                "tourServices": [
                    {
                        "id": 11,
                        "value": "animation-and-entertainment-activities",
                        "label": "Animation and entertainment activities"
                    },
                    {
                        "id": 51,
                        "value": "hot-chocolate-or-tea",
                        "label": "Hot chocolate or tea"
                    },
                    {
                        "id": 70,
                        "value": "excursions",
                        "label": "Excursions"
                    },
                    {
                        "id": 89,
                        "value": "Tips",
                        "label": "Tips"
                    }
                ],
                "fiscalCode": "private field",
                "vatNumber": "private field",
                "phonePrefix": "private field",
                "phoneNumber": "private field",
                "mobilePrefix": "private field",
                "mobileNumber": "private field",
                "faxPrefix": "private field",
                "faxNumber": "private field",
                "internetSite": "private field",
                "pecEmail": "private field",
                "contactEmail": "private field",
                "chamberCommerceRegistration": "private field",
                "identityDoc": "private field",
                "fiscalCodeDoc": "private field"
            },
            "roles": [
                "user",
                "tourOperator"
            ],
            "permissions": [],
            "stripeAccount": {
                "user_id": 5,
                "accountId": "acct_1ITV4XFPn57bOta4",
                "chargeEnable": 1
            },
            "affiliation_code": "94HV08",
            "subscription": {
                "id": 4,
                "active": 1,
                "expirationDate": "2022-10-11",
                "subscription": {
                    "id": 8,
                    "role": "touristGuide",
                    "type": "mega",
                    "price": 10000,
                    "monthPrice": 0,
                    "maxPost": "unlimited"
                }
            }
        },
        "seatsNumber": 2,
        "preorder_state": "accepted",
        "sharing_offer_id": 1
    }
]

HTTP Request

GET /api/carSharings/SharingPreorder

Body Parameters

Parameter Type Status Description
owner integer optional 1
profile string optional Valid user id
search.user_id numeric optional
search.preorder_state string optional accepted, refused or pending
search.sharing_offer_id string optional Valid sharing_offer id
searchJoin string optional and or or
perPage numeric optional
page numeric optional
orderBy string optional id
sortedBy string optional asc or desc

Query Parameters

Parameter Status Description
owner optional 1
profile optional Valid user id
search.user_id optional
search.preorder_state optional accepted, refused or pending
search.sharing_offer_id optional Valid sharing_offer id
searchJoin optional and or or
perPage optional
page optional
orderBy optional id
sortedBy optional asc or desc

Insert SharingPreorder

Insert CarSharings

Example request:

curl -X POST "http://api.doitrip.com/api/carSharings/SharingPreorder" \
    -H "Content-Type: application/json" \
    -d '{"sharing_offer_id":"sed","seatsNumber":84,"preorder_state":"sed"}'
const url = new URL("http://api.doitrip.com/api/carSharings/SharingPreorder");

    let params = {
            "sharing_offer_id": "sed",
            "seatsNumber": "84",
            "preorder_state": "sed",
        };
    Object.keys(params).forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
}

let body = {
    "sharing_offer_id": "sed",
    "seatsNumber": 84,
    "preorder_state": "sed"
}

fetch(url, {
    method: "POST",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "id": 1,
    "user": {
        "id": 5,
        "profile": {
            "user_id": 5,
            "companyType": "society",
            "companyName": "Feest, Jast and RippinLtd",
            "firstName": "private field",
            "lastName": "private field",
            "country_id": 136,
            "city": "Gennaroland",
            "province": null,
            "address": null,
            "registeredOffice": "3731 Kuhlman Loaf\nPort Ada, NV 90702",
            "image": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=41686",
            "description": "Centralized interactive opensystem",
            "paymentMethod": "other",
            "paymentOther": "sit",
            "tourOperatorGrade": 0,
            "roles": [
                "user",
                "tourOperator"
            ],
            "tourPosts": 10,
            "followers": 10,
            "tourServices": [
                {
                    "id": 11,
                    "value": "animation-and-entertainment-activities",
                    "label": "Animation and entertainment activities"
                },
                {
                    "id": 51,
                    "value": "hot-chocolate-or-tea",
                    "label": "Hot chocolate or tea"
                },
                {
                    "id": 70,
                    "value": "excursions",
                    "label": "Excursions"
                },
                {
                    "id": 89,
                    "value": "Tips",
                    "label": "Tips"
                }
            ],
            "fiscalCode": "private field",
            "vatNumber": "private field",
            "phonePrefix": "private field",
            "phoneNumber": "private field",
            "mobilePrefix": "private field",
            "mobileNumber": "private field",
            "faxPrefix": "private field",
            "faxNumber": "private field",
            "internetSite": "private field",
            "pecEmail": "private field",
            "contactEmail": "private field",
            "chamberCommerceRegistration": "private field",
            "identityDoc": "private field",
            "fiscalCodeDoc": "private field"
        },
        "roles": [
            "user",
            "tourOperator"
        ],
        "permissions": [],
        "stripeAccount": {
            "user_id": 5,
            "accountId": "acct_1ITV4XFPn57bOta4",
            "chargeEnable": 1
        },
        "affiliation_code": "94HV08",
        "subscription": {
            "id": 4,
            "active": 1,
            "expirationDate": "2022-10-11",
            "subscription": {
                "id": 8,
                "role": "touristGuide",
                "type": "mega",
                "price": 10000,
                "monthPrice": 0,
                "maxPost": "unlimited"
            }
        }
    },
    "seatsNumber": 2,
    "preorder_state": "accepted",
    "sharing_offer_id": 1
}

HTTP Request

POST /api/carSharings/SharingPreorder

Body Parameters

Parameter Type Status Description
sharing_offer_id string optional Valid sharing_offer id
seatsNumber numeric required
preorder_state string optional

Query Parameters

Parameter Status Description
sharing_offer_id optional Valid sharing_offer id
seatsNumber required
preorder_state optional

Search SharingPreorder

Search CarSharings

Example request:

curl -X GET -G "http://api.doitrip.com/api/carSharings/SharingOffer/1/Preorders" \
    -H "Content-Type: application/json" \
    -d '{"owner":"1","profile":"sed","search":{"user_id":84,"preorder_state":"accepted","sharing_offer_id":"sed"},"searchJoin":"and","perPage":84,"page":84,"orderBy":"id","sortedBy":"asc"}'
const url = new URL("http://api.doitrip.com/api/carSharings/SharingOffer/1/Preorders");

    let params = {
            "owner": "1",
            "profile": "sed",
            "search.user_id": "84",
            "search.preorder_state": "accepted",
            "search.sharing_offer_id": "sed",
            "searchJoin": "and",
            "perPage": "84",
            "page": "84",
            "orderBy": "id",
            "sortedBy": "asc",
        };
    Object.keys(params).forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
}

let body = {
    "owner": "1",
    "profile": "sed",
    "search": {
        "user_id": 84,
        "preorder_state": "accepted",
        "sharing_offer_id": "sed"
    },
    "searchJoin": "and",
    "perPage": 84,
    "page": 84,
    "orderBy": "id",
    "sortedBy": "asc"
}

fetch(url, {
    method: "GET",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

[
    {
        "id": 1,
        "user": {
            "id": 5,
            "profile": {
                "user_id": 5,
                "companyType": "society",
                "companyName": "Feest, Jast and RippinLtd",
                "firstName": "private field",
                "lastName": "private field",
                "country_id": 136,
                "city": "Gennaroland",
                "province": null,
                "address": null,
                "registeredOffice": "3731 Kuhlman Loaf\nPort Ada, NV 90702",
                "image": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=41686",
                "description": "Centralized interactive opensystem",
                "paymentMethod": "other",
                "paymentOther": "sit",
                "tourOperatorGrade": 0,
                "roles": [
                    "user",
                    "tourOperator"
                ],
                "tourPosts": 10,
                "followers": 10,
                "tourServices": [
                    {
                        "id": 11,
                        "value": "animation-and-entertainment-activities",
                        "label": "Animation and entertainment activities"
                    },
                    {
                        "id": 51,
                        "value": "hot-chocolate-or-tea",
                        "label": "Hot chocolate or tea"
                    },
                    {
                        "id": 70,
                        "value": "excursions",
                        "label": "Excursions"
                    },
                    {
                        "id": 89,
                        "value": "Tips",
                        "label": "Tips"
                    }
                ],
                "fiscalCode": "private field",
                "vatNumber": "private field",
                "phonePrefix": "private field",
                "phoneNumber": "private field",
                "mobilePrefix": "private field",
                "mobileNumber": "private field",
                "faxPrefix": "private field",
                "faxNumber": "private field",
                "internetSite": "private field",
                "pecEmail": "private field",
                "contactEmail": "private field",
                "chamberCommerceRegistration": "private field",
                "identityDoc": "private field",
                "fiscalCodeDoc": "private field"
            },
            "roles": [
                "user",
                "tourOperator"
            ],
            "permissions": [],
            "stripeAccount": {
                "user_id": 5,
                "accountId": "acct_1ITV4XFPn57bOta4",
                "chargeEnable": 1
            },
            "affiliation_code": "94HV08",
            "subscription": {
                "id": 4,
                "active": 1,
                "expirationDate": "2022-10-11",
                "subscription": {
                    "id": 8,
                    "role": "touristGuide",
                    "type": "mega",
                    "price": 10000,
                    "monthPrice": 0,
                    "maxPost": "unlimited"
                }
            }
        },
        "seatsNumber": 2,
        "preorder_state": "accepted",
        "sharing_offer_id": 1
    }
]

HTTP Request

GET /api/carSharings/SharingOffer/{id}/Preorders

Body Parameters

Parameter Type Status Description
owner integer optional 1
profile string optional Valid user id
search.user_id numeric optional
search.preorder_state string optional accepted, refused or pending
search.sharing_offer_id string optional Valid sharing_offer id
searchJoin string optional and or or
perPage numeric optional
page numeric optional
orderBy string optional id
sortedBy string optional asc or desc

Query Parameters

Parameter Status Description
owner optional 1
profile optional Valid user id
search.user_id optional
search.preorder_state optional accepted, refused or pending
search.sharing_offer_id optional Valid sharing_offer id
searchJoin optional and or or
perPage optional
page optional
orderBy optional id
sortedBy optional asc or desc

Update SharingPreorder

Update an CarSharings

Example request:

curl -X PUT "http://api.doitrip.com/api/carSharings/SharingPreorder/1" \
    -H "Content-Type: application/json" \
    -d '{"preorder_state":"accepted"}'
const url = new URL("http://api.doitrip.com/api/carSharings/SharingPreorder/1");

    let params = {
            "preorder_state": "accepted",
        };
    Object.keys(params).forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
}

let body = {
    "preorder_state": "accepted"
}

fetch(url, {
    method: "PUT",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "id": 1,
    "user": {
        "id": 5,
        "profile": {
            "user_id": 5,
            "companyType": "society",
            "companyName": "Feest, Jast and RippinLtd",
            "firstName": "private field",
            "lastName": "private field",
            "country_id": 136,
            "city": "Gennaroland",
            "province": null,
            "address": null,
            "registeredOffice": "3731 Kuhlman Loaf\nPort Ada, NV 90702",
            "image": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=41686",
            "description": "Centralized interactive opensystem",
            "paymentMethod": "other",
            "paymentOther": "sit",
            "tourOperatorGrade": 0,
            "roles": [
                "user",
                "tourOperator"
            ],
            "tourPosts": 10,
            "followers": 10,
            "tourServices": [
                {
                    "id": 11,
                    "value": "animation-and-entertainment-activities",
                    "label": "Animation and entertainment activities"
                },
                {
                    "id": 51,
                    "value": "hot-chocolate-or-tea",
                    "label": "Hot chocolate or tea"
                },
                {
                    "id": 70,
                    "value": "excursions",
                    "label": "Excursions"
                },
                {
                    "id": 89,
                    "value": "Tips",
                    "label": "Tips"
                }
            ],
            "fiscalCode": "private field",
            "vatNumber": "private field",
            "phonePrefix": "private field",
            "phoneNumber": "private field",
            "mobilePrefix": "private field",
            "mobileNumber": "private field",
            "faxPrefix": "private field",
            "faxNumber": "private field",
            "internetSite": "private field",
            "pecEmail": "private field",
            "contactEmail": "private field",
            "chamberCommerceRegistration": "private field",
            "identityDoc": "private field",
            "fiscalCodeDoc": "private field"
        },
        "roles": [
            "user",
            "tourOperator"
        ],
        "permissions": [],
        "stripeAccount": {
            "user_id": 5,
            "accountId": "acct_1ITV4XFPn57bOta4",
            "chargeEnable": 1
        },
        "affiliation_code": "94HV08",
        "subscription": {
            "id": 4,
            "active": 1,
            "expirationDate": "2022-10-11",
            "subscription": {
                "id": 8,
                "role": "touristGuide",
                "type": "mega",
                "price": 10000,
                "monthPrice": 0,
                "maxPost": "unlimited"
            }
        }
    },
    "seatsNumber": 2,
    "preorder_state": "accepted",
    "sharing_offer_id": 1
}

HTTP Request

PUT /api/carSharings/SharingPreorder/{id}

PATCH /api/carSharings/SharingPreorder/{id}

Body Parameters

Parameter Type Status Description
preorder_state string required accepted or refused

Query Parameters

Parameter Status Description
preorder_state required accepted or refused

Show SharingPreorder

Show the Detail of an CarSharings

Example request:

curl -X GET -G "http://api.doitrip.com/api/carSharings/SharingPreorder/1" 
const url = new URL("http://api.doitrip.com/api/carSharings/SharingPreorder/1");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "id": 1,
    "user": {
        "id": 5,
        "profile": {
            "user_id": 5,
            "companyType": "society",
            "companyName": "Feest, Jast and RippinLtd",
            "firstName": "private field",
            "lastName": "private field",
            "country_id": 136,
            "city": "Gennaroland",
            "province": null,
            "address": null,
            "registeredOffice": "3731 Kuhlman Loaf\nPort Ada, NV 90702",
            "image": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=41686",
            "description": "Centralized interactive opensystem",
            "paymentMethod": "other",
            "paymentOther": "sit",
            "tourOperatorGrade": 0,
            "roles": [
                "user",
                "tourOperator"
            ],
            "tourPosts": 10,
            "followers": 10,
            "tourServices": [
                {
                    "id": 11,
                    "value": "animation-and-entertainment-activities",
                    "label": "Animation and entertainment activities"
                },
                {
                    "id": 51,
                    "value": "hot-chocolate-or-tea",
                    "label": "Hot chocolate or tea"
                },
                {
                    "id": 70,
                    "value": "excursions",
                    "label": "Excursions"
                },
                {
                    "id": 89,
                    "value": "Tips",
                    "label": "Tips"
                }
            ],
            "fiscalCode": "private field",
            "vatNumber": "private field",
            "phonePrefix": "private field",
            "phoneNumber": "private field",
            "mobilePrefix": "private field",
            "mobileNumber": "private field",
            "faxPrefix": "private field",
            "faxNumber": "private field",
            "internetSite": "private field",
            "pecEmail": "private field",
            "contactEmail": "private field",
            "chamberCommerceRegistration": "private field",
            "identityDoc": "private field",
            "fiscalCodeDoc": "private field"
        },
        "roles": [
            "user",
            "tourOperator"
        ],
        "permissions": [],
        "stripeAccount": {
            "user_id": 5,
            "accountId": "acct_1ITV4XFPn57bOta4",
            "chargeEnable": 1
        },
        "affiliation_code": "94HV08",
        "subscription": {
            "id": 4,
            "active": 1,
            "expirationDate": "2022-10-11",
            "subscription": {
                "id": 8,
                "role": "touristGuide",
                "type": "mega",
                "price": 10000,
                "monthPrice": 0,
                "maxPost": "unlimited"
            }
        }
    },
    "seatsNumber": 2,
    "preorder_state": "accepted",
    "sharing_offer_id": 1
}

HTTP Request

GET /api/carSharings/SharingPreorder/{id}

Destroy SharingPreorder

Destroy an CarSharings

Example request:

curl -X DELETE "http://api.doitrip.com/api/carSharings/SharingPreorder/1" 
const url = new URL("http://api.doitrip.com/api/carSharings/SharingPreorder/1");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "DELETE",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

HTTP Request

DELETE /api/carSharings/SharingPreorder/{id}

Search SharingRuleType

Search CarSharings

Example request:

curl -X GET -G "http://api.doitrip.com/api/carSharings/SharingRuleType" 
const url = new URL("http://api.doitrip.com/api/carSharings/SharingRuleType");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

[
    {
        "id": 1,
        "value": "noDogs",
        "label": "No Dogs"
    }
]

HTTP Request

GET /api/carSharings/SharingRuleType

Show SharingRuleType

Show the Detail of an CarSharings

Example request:

curl -X GET -G "http://api.doitrip.com/api/carSharings/SharingRuleType/1" 
const url = new URL("http://api.doitrip.com/api/carSharings/SharingRuleType/1");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "id": 1,
    "value": "noDogs",
    "label": "No Dogs"
}

HTTP Request

GET /api/carSharings/SharingRuleType/{id}

Insert SharingRuleType

Insert CarSharings

Example request:

curl -X POST "http://api.doitrip.com/api/carSharings/SharingRuleType" \
    -H "Content-Type: application/json" \
    -d '{"value":"et","label:it":"et","label:en":"et"}'
const url = new URL("http://api.doitrip.com/api/carSharings/SharingRuleType");

    let params = {
            "value": "et",
            "label:it": "et",
            "label:en": "et",
        };
    Object.keys(params).forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
}

let body = {
    "value": "et",
    "label:it": "et",
    "label:en": "et"
}

fetch(url, {
    method: "POST",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "id": 1,
    "value": "noDogs",
    "label": "No Dogs"
}

HTTP Request

POST /api/carSharings/SharingRuleType

Body Parameters

Parameter Type Status Description
value string required
label:it string required
label:en string required

Query Parameters

Parameter Status Description
value required
label:it required
label:en required

Destroy many SharingRuleType

Example request:

curl -X DELETE "http://api.doitrip.com/api/carSharings/SharingRuleType" \
    -H "Content-Type: application/json" \
    -d '{"ids":"et"}'
const url = new URL("http://api.doitrip.com/api/carSharings/SharingRuleType");

    let params = {
            "ids": "et",
        };
    Object.keys(params).forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
}

let body = {
    "ids": "et"
}

fetch(url, {
    method: "DELETE",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

HTTP Request

DELETE /api/carSharings/SharingRuleType

Body Parameters

Parameter Type Status Description
ids array required

Query Parameters

Parameter Status Description
ids required

Update SharingRuleType

Update an CarSharings

Example request:

curl -X PUT "http://api.doitrip.com/api/carSharings/SharingRuleType/1" 
const url = new URL("http://api.doitrip.com/api/carSharings/SharingRuleType/1");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "PUT",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "id": 1,
    "value": "noDogs",
    "label": "No Dogs"
}

HTTP Request

PUT /api/carSharings/SharingRuleType/{id}

PATCH /api/carSharings/SharingRuleType/{id}

Destroy SharingRuleType

Destroy an CarSharings

Example request:

curl -X DELETE "http://api.doitrip.com/api/carSharings/SharingRuleType/1" 
const url = new URL("http://api.doitrip.com/api/carSharings/SharingRuleType/1");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "DELETE",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

HTTP Request

DELETE /api/carSharings/SharingRuleType/{id}

Chats

Search Chats


Requires authentication Search Chats

Example request:

curl -X GET -G "http://api.doitrip.com/api/chats" 
const url = new URL("http://api.doitrip.com/api/chats");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

[
    {
        "id": 1,
        "read": 0,
        "last_writer": 2,
        "last_message_data": null,
        "last_message": {
            "id": 303,
            "message": "Excepturi dolorem autem culpa natus et facilis.",
            "read": 1,
            "chat_id": 1,
            "user_id": 2,
            "user_name": " ",
            "user_img": "https:\/\/loremflickr.com\/362\/180\/hotel\/?lock=63032",
            "created_at": "07\/05\/2021 19:05:09"
        },
        "other": {
            "id": 2,
            "name": " ",
            "img": "https:\/\/loremflickr.com\/362\/180\/hotel\/?lock=63032"
        }
    }
]

HTTP Request

GET /api/chats

Insert Chat Message


Requires authentication Insert Chats

Example request:

curl -X POST "http://api.doitrip.com/api/chat/message" \
    -H "Content-Type: application/json" \
    -d '{"message":"in","chat_id":"in","chat":{"receiver":"in"}}'
const url = new URL("http://api.doitrip.com/api/chat/message");

    let params = {
            "message": "in",
            "chat_id": "in",
            "chat": "in",
            "chat.receiver": "in",
        };
    Object.keys(params).forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
}

let body = {
    "message": "in",
    "chat_id": "in",
    "chat": {
        "receiver": "in"
    }
}

fetch(url, {
    method: "POST",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "id": 1,
    "message": "Eum distinctio omnis a in sit iusto.",
    "read": 1,
    "chat_id": 1,
    "user_id": 1,
    "user_name": "Sylvester Dach",
    "user_img": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=31482",
    "created_at": "07\/05\/2021 19:05:01"
}

HTTP Request

POST /api/chat/message

Body Parameters

Parameter Type Status Description
message string required
chat_id string optional Valid chat id
chat array optional Required if the parameters chat_id are not present.
chat.receiver string optional Required if the parameters chat_id are not present.Valid user idNot in: (logged_user_id)

Query Parameters

Parameter Status Description
message required
chat_id optional Valid chat id
chat optional Required if the parameters chat_id are not present.
chat.receiver optional Required if the parameters chat_id are not present.Valid user idNot in: (logged_user_id)

Show Chat


Requires authentication Show the Detail of an Chats

Example request:

curl -X GET -G "http://api.doitrip.com/api/chats/1" 
const url = new URL("http://api.doitrip.com/api/chats/1");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "id": 1,
    "read": 0,
    "last_writer": 2,
    "last_message_data": null,
    "messages": [
        {
            "id": 303,
            "message": "Excepturi dolorem autem culpa natus et facilis.",
            "read": 1,
            "chat_id": 1,
            "user_id": 2,
            "user_name": " ",
            "user_img": "https:\/\/loremflickr.com\/362\/180\/hotel\/?lock=63032",
            "created_at": "07\/05\/2021 19:05:09"
        },
        {
            "id": 304,
            "message": "Nisi dicta ut sed dolorem aperiam minima esse quia.",
            "read": 1,
            "chat_id": 1,
            "user_id": 2,
            "user_name": " ",
            "user_img": "https:\/\/loremflickr.com\/362\/180\/hotel\/?lock=63032",
            "created_at": "07\/05\/2021 19:05:09"
        },
        {
            "id": 305,
            "message": "Ad est quasi officiis quis ipsam non repellat.",
            "read": 1,
            "chat_id": 1,
            "user_id": 2,
            "user_name": " ",
            "user_img": "https:\/\/loremflickr.com\/362\/180\/hotel\/?lock=63032",
            "created_at": "07\/05\/2021 19:05:09"
        },
        {
            "id": 306,
            "message": "Tempora quasi ab asperiores aut.",
            "read": 1,
            "chat_id": 1,
            "user_id": 2,
            "user_name": " ",
            "user_img": "https:\/\/loremflickr.com\/362\/180\/hotel\/?lock=63032",
            "created_at": "07\/05\/2021 19:05:09"
        },
        {
            "id": 307,
            "message": "Quasi nesciunt ullam quos doloremque dolores temporibus rerum.",
            "read": 1,
            "chat_id": 1,
            "user_id": 2,
            "user_name": " ",
            "user_img": "https:\/\/loremflickr.com\/362\/180\/hotel\/?lock=63032",
            "created_at": "07\/05\/2021 19:05:09"
        },
        {
            "id": 308,
            "message": "Est voluptatem dolorum vel ea ab non.",
            "read": 1,
            "chat_id": 1,
            "user_id": 2,
            "user_name": " ",
            "user_img": "https:\/\/loremflickr.com\/362\/180\/hotel\/?lock=63032",
            "created_at": "07\/05\/2021 19:05:09"
        },
        {
            "id": 309,
            "message": "Reprehenderit dolores cumque est debitis quis voluptas sint.",
            "read": 1,
            "chat_id": 1,
            "user_id": 2,
            "user_name": " ",
            "user_img": "https:\/\/loremflickr.com\/362\/180\/hotel\/?lock=63032",
            "created_at": "07\/05\/2021 19:05:09"
        },
        {
            "id": 310,
            "message": "Illo cum aut est delectus ut.",
            "read": 1,
            "chat_id": 1,
            "user_id": 2,
            "user_name": " ",
            "user_img": "https:\/\/loremflickr.com\/362\/180\/hotel\/?lock=63032",
            "created_at": "07\/05\/2021 19:05:09"
        },
        {
            "id": 311,
            "message": "Et voluptatem eligendi eum odio sunt velit.",
            "read": 1,
            "chat_id": 1,
            "user_id": 2,
            "user_name": " ",
            "user_img": "https:\/\/loremflickr.com\/362\/180\/hotel\/?lock=63032",
            "created_at": "07\/05\/2021 19:05:09"
        },
        {
            "id": 312,
            "message": "Similique aliquam ullam magnam aut.",
            "read": 1,
            "chat_id": 1,
            "user_id": 2,
            "user_name": " ",
            "user_img": "https:\/\/loremflickr.com\/362\/180\/hotel\/?lock=63032",
            "created_at": "07\/05\/2021 19:05:09"
        },
        {
            "id": 313,
            "message": "Doloribus quia eaque aut dolorem voluptatem facilis dolorum.",
            "read": 1,
            "chat_id": 1,
            "user_id": 2,
            "user_name": " ",
            "user_img": "https:\/\/loremflickr.com\/362\/180\/hotel\/?lock=63032",
            "created_at": "07\/05\/2021 19:05:09"
        },
        {
            "id": 314,
            "message": "Tenetur dolores natus soluta minima omnis sapiente.",
            "read": 1,
            "chat_id": 1,
            "user_id": 2,
            "user_name": " ",
            "user_img": "https:\/\/loremflickr.com\/362\/180\/hotel\/?lock=63032",
            "created_at": "07\/05\/2021 19:05:09"
        },
        {
            "id": 315,
            "message": "Voluptas modi explicabo eum magnam consectetur ea ut totam.",
            "read": 1,
            "chat_id": 1,
            "user_id": 2,
            "user_name": " ",
            "user_img": "https:\/\/loremflickr.com\/362\/180\/hotel\/?lock=63032",
            "created_at": "07\/05\/2021 19:05:09"
        },
        {
            "id": 316,
            "message": "Veniam consequatur ipsum ad tenetur.",
            "read": 1,
            "chat_id": 1,
            "user_id": 2,
            "user_name": " ",
            "user_img": "https:\/\/loremflickr.com\/362\/180\/hotel\/?lock=63032",
            "created_at": "07\/05\/2021 19:05:09"
        },
        {
            "id": 317,
            "message": "Dolore eaque qui inventore.",
            "read": 1,
            "chat_id": 1,
            "user_id": 2,
            "user_name": " ",
            "user_img": "https:\/\/loremflickr.com\/362\/180\/hotel\/?lock=63032",
            "created_at": "07\/05\/2021 19:05:09"
        },
        {
            "id": 318,
            "message": "Voluptatem esse molestiae ut.",
            "read": 1,
            "chat_id": 1,
            "user_id": 2,
            "user_name": " ",
            "user_img": "https:\/\/loremflickr.com\/362\/180\/hotel\/?lock=63032",
            "created_at": "07\/05\/2021 19:05:09"
        },
        {
            "id": 319,
            "message": "Aut facilis sit accusantium maiores.",
            "read": 1,
            "chat_id": 1,
            "user_id": 2,
            "user_name": " ",
            "user_img": "https:\/\/loremflickr.com\/362\/180\/hotel\/?lock=63032",
            "created_at": "07\/05\/2021 19:05:09"
        },
        {
            "id": 320,
            "message": "Vel et esse harum sint pariatur et velit.",
            "read": 1,
            "chat_id": 1,
            "user_id": 2,
            "user_name": " ",
            "user_img": "https:\/\/loremflickr.com\/362\/180\/hotel\/?lock=63032",
            "created_at": "07\/05\/2021 19:05:09"
        },
        {
            "id": 301,
            "message": "Ipsum ipsa fugiat tempora explicabo reiciendis ut vel.",
            "read": 1,
            "chat_id": 1,
            "user_id": 2,
            "user_name": " ",
            "user_img": "https:\/\/loremflickr.com\/362\/180\/hotel\/?lock=63032",
            "created_at": "07\/05\/2021 19:05:08"
        },
        {
            "id": 302,
            "message": "Ipsum saepe numquam consectetur ut nihil porro odio.",
            "read": 1,
            "chat_id": 1,
            "user_id": 2,
            "user_name": " ",
            "user_img": "https:\/\/loremflickr.com\/362\/180\/hotel\/?lock=63032",
            "created_at": "07\/05\/2021 19:05:08"
        },
        {
            "id": 219,
            "message": "Et qui facere commodi dolorem non quibusdam non.",
            "read": 1,
            "chat_id": 1,
            "user_id": 1,
            "user_name": "Sylvester Dach",
            "user_img": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=31482",
            "created_at": "07\/05\/2021 19:05:07"
        },
        {
            "id": 220,
            "message": "Debitis accusantium consequatur impedit.",
            "read": 1,
            "chat_id": 1,
            "user_id": 1,
            "user_name": "Sylvester Dach",
            "user_img": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=31482",
            "created_at": "07\/05\/2021 19:05:07"
        },
        {
            "id": 201,
            "message": "Maiores enim blanditiis quam et.",
            "read": 1,
            "chat_id": 1,
            "user_id": 1,
            "user_name": "Sylvester Dach",
            "user_img": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=31482",
            "created_at": "07\/05\/2021 19:05:06"
        },
        {
            "id": 202,
            "message": "Ea voluptates harum laborum quod sed veritatis.",
            "read": 1,
            "chat_id": 1,
            "user_id": 1,
            "user_name": "Sylvester Dach",
            "user_img": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=31482",
            "created_at": "07\/05\/2021 19:05:06"
        },
        {
            "id": 203,
            "message": "Nisi et id excepturi harum vel qui quidem.",
            "read": 1,
            "chat_id": 1,
            "user_id": 1,
            "user_name": "Sylvester Dach",
            "user_img": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=31482",
            "created_at": "07\/05\/2021 19:05:06"
        },
        {
            "id": 204,
            "message": "Doloribus illum maiores eos molestiae unde error et fuga.",
            "read": 1,
            "chat_id": 1,
            "user_id": 1,
            "user_name": "Sylvester Dach",
            "user_img": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=31482",
            "created_at": "07\/05\/2021 19:05:06"
        },
        {
            "id": 205,
            "message": "Officia rerum voluptatem quam iste a at natus officiis.",
            "read": 1,
            "chat_id": 1,
            "user_id": 1,
            "user_name": "Sylvester Dach",
            "user_img": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=31482",
            "created_at": "07\/05\/2021 19:05:06"
        },
        {
            "id": 206,
            "message": "Quisquam velit optio iste qui magni quae.",
            "read": 1,
            "chat_id": 1,
            "user_id": 1,
            "user_name": "Sylvester Dach",
            "user_img": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=31482",
            "created_at": "07\/05\/2021 19:05:06"
        },
        {
            "id": 207,
            "message": "Repellendus nihil ratione quasi possimus corporis quaerat.",
            "read": 1,
            "chat_id": 1,
            "user_id": 1,
            "user_name": "Sylvester Dach",
            "user_img": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=31482",
            "created_at": "07\/05\/2021 19:05:06"
        },
        {
            "id": 208,
            "message": "Sed possimus impedit corrupti assumenda sit cum.",
            "read": 1,
            "chat_id": 1,
            "user_id": 1,
            "user_name": "Sylvester Dach",
            "user_img": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=31482",
            "created_at": "07\/05\/2021 19:05:06"
        },
        {
            "id": 209,
            "message": "Modi odit facere amet deserunt ea nemo nam.",
            "read": 1,
            "chat_id": 1,
            "user_id": 1,
            "user_name": "Sylvester Dach",
            "user_img": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=31482",
            "created_at": "07\/05\/2021 19:05:06"
        },
        {
            "id": 210,
            "message": "Est et quibusdam optio quas quidem nam placeat.",
            "read": 1,
            "chat_id": 1,
            "user_id": 1,
            "user_name": "Sylvester Dach",
            "user_img": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=31482",
            "created_at": "07\/05\/2021 19:05:06"
        },
        {
            "id": 211,
            "message": "Aut sed ullam culpa et.",
            "read": 1,
            "chat_id": 1,
            "user_id": 1,
            "user_name": "Sylvester Dach",
            "user_img": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=31482",
            "created_at": "07\/05\/2021 19:05:06"
        },
        {
            "id": 212,
            "message": "Est numquam quae dolorem et accusamus dolores.",
            "read": 1,
            "chat_id": 1,
            "user_id": 1,
            "user_name": "Sylvester Dach",
            "user_img": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=31482",
            "created_at": "07\/05\/2021 19:05:06"
        },
        {
            "id": 213,
            "message": "Voluptas adipisci saepe quaerat.",
            "read": 1,
            "chat_id": 1,
            "user_id": 1,
            "user_name": "Sylvester Dach",
            "user_img": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=31482",
            "created_at": "07\/05\/2021 19:05:06"
        },
        {
            "id": 214,
            "message": "Asperiores quibusdam eos perferendis numquam unde occaecati.",
            "read": 1,
            "chat_id": 1,
            "user_id": 1,
            "user_name": "Sylvester Dach",
            "user_img": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=31482",
            "created_at": "07\/05\/2021 19:05:06"
        },
        {
            "id": 215,
            "message": "A quia quia amet est.",
            "read": 1,
            "chat_id": 1,
            "user_id": 1,
            "user_name": "Sylvester Dach",
            "user_img": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=31482",
            "created_at": "07\/05\/2021 19:05:06"
        },
        {
            "id": 216,
            "message": "Asperiores sed omnis dolores excepturi autem sit.",
            "read": 1,
            "chat_id": 1,
            "user_id": 1,
            "user_name": "Sylvester Dach",
            "user_img": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=31482",
            "created_at": "07\/05\/2021 19:05:06"
        },
        {
            "id": 217,
            "message": "Et molestiae est voluptatem qui recusandae explicabo at.",
            "read": 1,
            "chat_id": 1,
            "user_id": 1,
            "user_name": "Sylvester Dach",
            "user_img": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=31482",
            "created_at": "07\/05\/2021 19:05:06"
        },
        {
            "id": 218,
            "message": "Non voluptate quam voluptas autem perferendis eaque.",
            "read": 1,
            "chat_id": 1,
            "user_id": 1,
            "user_name": "Sylvester Dach",
            "user_img": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=31482",
            "created_at": "07\/05\/2021 19:05:06"
        },
        {
            "id": 121,
            "message": "Aliquam eum dignissimos nam sed blanditiis accusantium dolorem.",
            "read": 1,
            "chat_id": 1,
            "user_id": 2,
            "user_name": " ",
            "user_img": "https:\/\/loremflickr.com\/362\/180\/hotel\/?lock=63032",
            "created_at": "07\/05\/2021 19:05:04"
        },
        {
            "id": 122,
            "message": "Est pariatur delectus voluptatem sit aliquid sequi.",
            "read": 1,
            "chat_id": 1,
            "user_id": 2,
            "user_name": " ",
            "user_img": "https:\/\/loremflickr.com\/362\/180\/hotel\/?lock=63032",
            "created_at": "07\/05\/2021 19:05:04"
        },
        {
            "id": 123,
            "message": "Impedit corrupti sint dicta blanditiis.",
            "read": 1,
            "chat_id": 1,
            "user_id": 2,
            "user_name": " ",
            "user_img": "https:\/\/loremflickr.com\/362\/180\/hotel\/?lock=63032",
            "created_at": "07\/05\/2021 19:05:04"
        },
        {
            "id": 124,
            "message": "Eos placeat assumenda debitis iure laborum.",
            "read": 1,
            "chat_id": 1,
            "user_id": 2,
            "user_name": " ",
            "user_img": "https:\/\/loremflickr.com\/362\/180\/hotel\/?lock=63032",
            "created_at": "07\/05\/2021 19:05:04"
        },
        {
            "id": 125,
            "message": "Commodi aut aut recusandae.",
            "read": 1,
            "chat_id": 1,
            "user_id": 2,
            "user_name": " ",
            "user_img": "https:\/\/loremflickr.com\/362\/180\/hotel\/?lock=63032",
            "created_at": "07\/05\/2021 19:05:04"
        },
        {
            "id": 126,
            "message": "Tempore aut dolorum sunt corporis repudiandae at qui.",
            "read": 1,
            "chat_id": 1,
            "user_id": 2,
            "user_name": " ",
            "user_img": "https:\/\/loremflickr.com\/362\/180\/hotel\/?lock=63032",
            "created_at": "07\/05\/2021 19:05:04"
        },
        {
            "id": 127,
            "message": "Nihil voluptates reprehenderit necessitatibus veniam esse aut et.",
            "read": 1,
            "chat_id": 1,
            "user_id": 2,
            "user_name": " ",
            "user_img": "https:\/\/loremflickr.com\/362\/180\/hotel\/?lock=63032",
            "created_at": "07\/05\/2021 19:05:04"
        },
        {
            "id": 128,
            "message": "Libero porro architecto minus accusantium.",
            "read": 1,
            "chat_id": 1,
            "user_id": 2,
            "user_name": " ",
            "user_img": "https:\/\/loremflickr.com\/362\/180\/hotel\/?lock=63032",
            "created_at": "07\/05\/2021 19:05:04"
        },
        {
            "id": 129,
            "message": "Inventore eius ut magnam omnis laudantium rerum officia.",
            "read": 1,
            "chat_id": 1,
            "user_id": 2,
            "user_name": " ",
            "user_img": "https:\/\/loremflickr.com\/362\/180\/hotel\/?lock=63032",
            "created_at": "07\/05\/2021 19:05:04"
        },
        {
            "id": 130,
            "message": "Dolores quasi aut amet ullam delectus quaerat inventore.",
            "read": 1,
            "chat_id": 1,
            "user_id": 2,
            "user_name": " ",
            "user_img": "https:\/\/loremflickr.com\/362\/180\/hotel\/?lock=63032",
            "created_at": "07\/05\/2021 19:05:04"
        },
        {
            "id": 131,
            "message": "Saepe voluptates asperiores porro laborum itaque atque.",
            "read": 1,
            "chat_id": 1,
            "user_id": 2,
            "user_name": " ",
            "user_img": "https:\/\/loremflickr.com\/362\/180\/hotel\/?lock=63032",
            "created_at": "07\/05\/2021 19:05:04"
        },
        {
            "id": 132,
            "message": "Qui illum ea sint cumque est illo maxime.",
            "read": 1,
            "chat_id": 1,
            "user_id": 2,
            "user_name": " ",
            "user_img": "https:\/\/loremflickr.com\/362\/180\/hotel\/?lock=63032",
            "created_at": "07\/05\/2021 19:05:04"
        },
        {
            "id": 133,
            "message": "Commodi occaecati aut voluptatem ipsa.",
            "read": 1,
            "chat_id": 1,
            "user_id": 2,
            "user_name": " ",
            "user_img": "https:\/\/loremflickr.com\/362\/180\/hotel\/?lock=63032",
            "created_at": "07\/05\/2021 19:05:04"
        },
        {
            "id": 134,
            "message": "Quasi est repellendus vel debitis esse.",
            "read": 1,
            "chat_id": 1,
            "user_id": 2,
            "user_name": " ",
            "user_img": "https:\/\/loremflickr.com\/362\/180\/hotel\/?lock=63032",
            "created_at": "07\/05\/2021 19:05:04"
        },
        {
            "id": 135,
            "message": "Maiores quia explicabo ab exercitationem commodi.",
            "read": 1,
            "chat_id": 1,
            "user_id": 2,
            "user_name": " ",
            "user_img": "https:\/\/loremflickr.com\/362\/180\/hotel\/?lock=63032",
            "created_at": "07\/05\/2021 19:05:04"
        },
        {
            "id": 136,
            "message": "Velit amet eos accusantium mollitia.",
            "read": 1,
            "chat_id": 1,
            "user_id": 2,
            "user_name": " ",
            "user_img": "https:\/\/loremflickr.com\/362\/180\/hotel\/?lock=63032",
            "created_at": "07\/05\/2021 19:05:04"
        },
        {
            "id": 137,
            "message": "Unde ducimus qui deserunt beatae minus rerum perspiciatis.",
            "read": 1,
            "chat_id": 1,
            "user_id": 2,
            "user_name": " ",
            "user_img": "https:\/\/loremflickr.com\/362\/180\/hotel\/?lock=63032",
            "created_at": "07\/05\/2021 19:05:04"
        },
        {
            "id": 138,
            "message": "Eveniet rerum tempore libero tenetur.",
            "read": 1,
            "chat_id": 1,
            "user_id": 2,
            "user_name": " ",
            "user_img": "https:\/\/loremflickr.com\/362\/180\/hotel\/?lock=63032",
            "created_at": "07\/05\/2021 19:05:04"
        },
        {
            "id": 139,
            "message": "Et expedita rerum et quas modi architecto.",
            "read": 1,
            "chat_id": 1,
            "user_id": 2,
            "user_name": " ",
            "user_img": "https:\/\/loremflickr.com\/362\/180\/hotel\/?lock=63032",
            "created_at": "07\/05\/2021 19:05:04"
        },
        {
            "id": 140,
            "message": "Alias repellat animi amet dolore.",
            "read": 1,
            "chat_id": 1,
            "user_id": 2,
            "user_name": " ",
            "user_img": "https:\/\/loremflickr.com\/362\/180\/hotel\/?lock=63032",
            "created_at": "07\/05\/2021 19:05:04"
        },
        {
            "id": 34,
            "message": "Molestiae in provident voluptatem aut tenetur minima.",
            "read": 1,
            "chat_id": 1,
            "user_id": 2,
            "user_name": " ",
            "user_img": "https:\/\/loremflickr.com\/362\/180\/hotel\/?lock=63032",
            "created_at": "07\/05\/2021 19:05:02"
        },
        {
            "id": 35,
            "message": "Quae cumque necessitatibus quia sit.",
            "read": 1,
            "chat_id": 1,
            "user_id": 2,
            "user_name": " ",
            "user_img": "https:\/\/loremflickr.com\/362\/180\/hotel\/?lock=63032",
            "created_at": "07\/05\/2021 19:05:02"
        },
        {
            "id": 36,
            "message": "Rerum alias qui eligendi atque nemo veniam facere.",
            "read": 1,
            "chat_id": 1,
            "user_id": 2,
            "user_name": " ",
            "user_img": "https:\/\/loremflickr.com\/362\/180\/hotel\/?lock=63032",
            "created_at": "07\/05\/2021 19:05:02"
        },
        {
            "id": 37,
            "message": "Iusto sint blanditiis est deserunt molestiae accusamus.",
            "read": 1,
            "chat_id": 1,
            "user_id": 2,
            "user_name": " ",
            "user_img": "https:\/\/loremflickr.com\/362\/180\/hotel\/?lock=63032",
            "created_at": "07\/05\/2021 19:05:02"
        },
        {
            "id": 38,
            "message": "Iusto sint molestiae fugit consequatur consectetur nulla provident.",
            "read": 1,
            "chat_id": 1,
            "user_id": 2,
            "user_name": " ",
            "user_img": "https:\/\/loremflickr.com\/362\/180\/hotel\/?lock=63032",
            "created_at": "07\/05\/2021 19:05:02"
        },
        {
            "id": 39,
            "message": "Tenetur facilis accusamus ut et.",
            "read": 1,
            "chat_id": 1,
            "user_id": 2,
            "user_name": " ",
            "user_img": "https:\/\/loremflickr.com\/362\/180\/hotel\/?lock=63032",
            "created_at": "07\/05\/2021 19:05:02"
        },
        {
            "id": 40,
            "message": "Unde molestiae laborum possimus eum est beatae.",
            "read": 1,
            "chat_id": 1,
            "user_id": 2,
            "user_name": " ",
            "user_img": "https:\/\/loremflickr.com\/362\/180\/hotel\/?lock=63032",
            "created_at": "07\/05\/2021 19:05:02"
        },
        {
            "id": 61,
            "message": "Quo et magni ut consequuntur voluptatem quidem.",
            "read": 1,
            "chat_id": 1,
            "user_id": 1,
            "user_name": "Sylvester Dach",
            "user_img": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=31482",
            "created_at": "07\/05\/2021 19:05:02"
        },
        {
            "id": 62,
            "message": "Qui voluptatem numquam fuga dolor eveniet.",
            "read": 1,
            "chat_id": 1,
            "user_id": 1,
            "user_name": "Sylvester Dach",
            "user_img": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=31482",
            "created_at": "07\/05\/2021 19:05:02"
        },
        {
            "id": 63,
            "message": "Culpa temporibus libero aperiam et unde incidunt.",
            "read": 1,
            "chat_id": 1,
            "user_id": 1,
            "user_name": "Sylvester Dach",
            "user_img": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=31482",
            "created_at": "07\/05\/2021 19:05:02"
        },
        {
            "id": 64,
            "message": "Deserunt tenetur inventore ab at illo.",
            "read": 1,
            "chat_id": 1,
            "user_id": 1,
            "user_name": "Sylvester Dach",
            "user_img": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=31482",
            "created_at": "07\/05\/2021 19:05:02"
        },
        {
            "id": 65,
            "message": "Sunt officiis consequatur illo quae et.",
            "read": 1,
            "chat_id": 1,
            "user_id": 1,
            "user_name": "Sylvester Dach",
            "user_img": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=31482",
            "created_at": "07\/05\/2021 19:05:02"
        },
        {
            "id": 66,
            "message": "Exercitationem alias quam dolorem et beatae blanditiis.",
            "read": 1,
            "chat_id": 1,
            "user_id": 1,
            "user_name": "Sylvester Dach",
            "user_img": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=31482",
            "created_at": "07\/05\/2021 19:05:02"
        },
        {
            "id": 67,
            "message": "Dolores enim rerum consequatur odio rem eos velit.",
            "read": 1,
            "chat_id": 1,
            "user_id": 1,
            "user_name": "Sylvester Dach",
            "user_img": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=31482",
            "created_at": "07\/05\/2021 19:05:02"
        },
        {
            "id": 68,
            "message": "Aut eum et perspiciatis voluptas fuga fuga.",
            "read": 1,
            "chat_id": 1,
            "user_id": 1,
            "user_name": "Sylvester Dach",
            "user_img": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=31482",
            "created_at": "07\/05\/2021 19:05:02"
        },
        {
            "id": 69,
            "message": "Esse maiores et recusandae voluptatum totam recusandae.",
            "read": 1,
            "chat_id": 1,
            "user_id": 1,
            "user_name": "Sylvester Dach",
            "user_img": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=31482",
            "created_at": "07\/05\/2021 19:05:02"
        },
        {
            "id": 70,
            "message": "Laboriosam earum ut neque.",
            "read": 1,
            "chat_id": 1,
            "user_id": 1,
            "user_name": "Sylvester Dach",
            "user_img": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=31482",
            "created_at": "07\/05\/2021 19:05:02"
        },
        {
            "id": 71,
            "message": "Accusantium blanditiis itaque aut autem quia ducimus officia.",
            "read": 1,
            "chat_id": 1,
            "user_id": 1,
            "user_name": "Sylvester Dach",
            "user_img": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=31482",
            "created_at": "07\/05\/2021 19:05:02"
        },
        {
            "id": 72,
            "message": "Iste in illum officiis incidunt voluptate reprehenderit.",
            "read": 1,
            "chat_id": 1,
            "user_id": 1,
            "user_name": "Sylvester Dach",
            "user_img": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=31482",
            "created_at": "07\/05\/2021 19:05:02"
        },
        {
            "id": 73,
            "message": "Doloremque tenetur tempora consequatur quam quis reiciendis.",
            "read": 1,
            "chat_id": 1,
            "user_id": 1,
            "user_name": "Sylvester Dach",
            "user_img": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=31482",
            "created_at": "07\/05\/2021 19:05:02"
        },
        {
            "id": 74,
            "message": "Sint in architecto numquam aut aut.",
            "read": 1,
            "chat_id": 1,
            "user_id": 1,
            "user_name": "Sylvester Dach",
            "user_img": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=31482",
            "created_at": "07\/05\/2021 19:05:02"
        },
        {
            "id": 75,
            "message": "Unde expedita molestias commodi maxime deleniti.",
            "read": 1,
            "chat_id": 1,
            "user_id": 1,
            "user_name": "Sylvester Dach",
            "user_img": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=31482",
            "created_at": "07\/05\/2021 19:05:02"
        },
        {
            "id": 76,
            "message": "Omnis distinctio inventore id animi dolor voluptas.",
            "read": 1,
            "chat_id": 1,
            "user_id": 1,
            "user_name": "Sylvester Dach",
            "user_img": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=31482",
            "created_at": "07\/05\/2021 19:05:02"
        },
        {
            "id": 77,
            "message": "Saepe ad earum omnis esse rem minus vero.",
            "read": 1,
            "chat_id": 1,
            "user_id": 1,
            "user_name": "Sylvester Dach",
            "user_img": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=31482",
            "created_at": "07\/05\/2021 19:05:02"
        },
        {
            "id": 78,
            "message": "Necessitatibus eum eos iusto.",
            "read": 1,
            "chat_id": 1,
            "user_id": 1,
            "user_name": "Sylvester Dach",
            "user_img": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=31482",
            "created_at": "07\/05\/2021 19:05:02"
        },
        {
            "id": 79,
            "message": "Rerum aspernatur perspiciatis iste rem non.",
            "read": 1,
            "chat_id": 1,
            "user_id": 1,
            "user_name": "Sylvester Dach",
            "user_img": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=31482",
            "created_at": "07\/05\/2021 19:05:02"
        },
        {
            "id": 80,
            "message": "Ut dolor eos esse nulla occaecati quidem explicabo sapiente.",
            "read": 1,
            "chat_id": 1,
            "user_id": 1,
            "user_name": "Sylvester Dach",
            "user_img": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=31482",
            "created_at": "07\/05\/2021 19:05:02"
        },
        {
            "id": 1,
            "message": "Eum distinctio omnis a in sit iusto.",
            "read": 1,
            "chat_id": 1,
            "user_id": 1,
            "user_name": "Sylvester Dach",
            "user_img": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=31482",
            "created_at": "07\/05\/2021 19:05:01"
        },
        {
            "id": 2,
            "message": "Dolorem magni eius quo quis.",
            "read": 1,
            "chat_id": 1,
            "user_id": 1,
            "user_name": "Sylvester Dach",
            "user_img": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=31482",
            "created_at": "07\/05\/2021 19:05:01"
        },
        {
            "id": 3,
            "message": "Et temporibus facilis dolores consequatur.",
            "read": 1,
            "chat_id": 1,
            "user_id": 1,
            "user_name": "Sylvester Dach",
            "user_img": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=31482",
            "created_at": "07\/05\/2021 19:05:01"
        },
        {
            "id": 4,
            "message": "Suscipit voluptas omnis porro exercitationem ut fuga.",
            "read": 1,
            "chat_id": 1,
            "user_id": 1,
            "user_name": "Sylvester Dach",
            "user_img": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=31482",
            "created_at": "07\/05\/2021 19:05:01"
        },
        {
            "id": 5,
            "message": "Voluptas voluptatibus quae nemo maiores aut expedita.",
            "read": 1,
            "chat_id": 1,
            "user_id": 1,
            "user_name": "Sylvester Dach",
            "user_img": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=31482",
            "created_at": "07\/05\/2021 19:05:01"
        },
        {
            "id": 6,
            "message": "Ut labore debitis quos molestias soluta provident vel.",
            "read": 1,
            "chat_id": 1,
            "user_id": 1,
            "user_name": "Sylvester Dach",
            "user_img": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=31482",
            "created_at": "07\/05\/2021 19:05:01"
        },
        {
            "id": 7,
            "message": "Ducimus soluta aliquid voluptates eligendi sunt minus.",
            "read": 1,
            "chat_id": 1,
            "user_id": 1,
            "user_name": "Sylvester Dach",
            "user_img": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=31482",
            "created_at": "07\/05\/2021 19:05:01"
        },
        {
            "id": 8,
            "message": "Non consectetur voluptatibus enim quod quas.",
            "read": 1,
            "chat_id": 1,
            "user_id": 1,
            "user_name": "Sylvester Dach",
            "user_img": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=31482",
            "created_at": "07\/05\/2021 19:05:01"
        },
        {
            "id": 9,
            "message": "Consectetur quas nesciunt iure laudantium.",
            "read": 1,
            "chat_id": 1,
            "user_id": 1,
            "user_name": "Sylvester Dach",
            "user_img": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=31482",
            "created_at": "07\/05\/2021 19:05:01"
        },
        {
            "id": 10,
            "message": "Non qui aut iusto aut.",
            "read": 1,
            "chat_id": 1,
            "user_id": 1,
            "user_name": "Sylvester Dach",
            "user_img": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=31482",
            "created_at": "07\/05\/2021 19:05:01"
        },
        {
            "id": 11,
            "message": "Laudantium dolorem vel aspernatur.",
            "read": 1,
            "chat_id": 1,
            "user_id": 1,
            "user_name": "Sylvester Dach",
            "user_img": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=31482",
            "created_at": "07\/05\/2021 19:05:01"
        },
        {
            "id": 12,
            "message": "Tenetur culpa quas neque et eum.",
            "read": 1,
            "chat_id": 1,
            "user_id": 1,
            "user_name": "Sylvester Dach",
            "user_img": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=31482",
            "created_at": "07\/05\/2021 19:05:01"
        },
        {
            "id": 13,
            "message": "Dolorem velit et quam et.",
            "read": 1,
            "chat_id": 1,
            "user_id": 1,
            "user_name": "Sylvester Dach",
            "user_img": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=31482",
            "created_at": "07\/05\/2021 19:05:01"
        },
        {
            "id": 14,
            "message": "Vel quod necessitatibus voluptas aut fuga quae laboriosam iure.",
            "read": 1,
            "chat_id": 1,
            "user_id": 1,
            "user_name": "Sylvester Dach",
            "user_img": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=31482",
            "created_at": "07\/05\/2021 19:05:01"
        },
        {
            "id": 15,
            "message": "Pariatur pariatur voluptas et officiis nobis.",
            "read": 1,
            "chat_id": 1,
            "user_id": 1,
            "user_name": "Sylvester Dach",
            "user_img": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=31482",
            "created_at": "07\/05\/2021 19:05:01"
        },
        {
            "id": 16,
            "message": "Enim officia sit necessitatibus aliquam.",
            "read": 1,
            "chat_id": 1,
            "user_id": 1,
            "user_name": "Sylvester Dach",
            "user_img": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=31482",
            "created_at": "07\/05\/2021 19:05:01"
        },
        {
            "id": 17,
            "message": "Asperiores quia distinctio enim.",
            "read": 1,
            "chat_id": 1,
            "user_id": 1,
            "user_name": "Sylvester Dach",
            "user_img": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=31482",
            "created_at": "07\/05\/2021 19:05:01"
        },
        {
            "id": 18,
            "message": "Laboriosam maxime fuga recusandae quis.",
            "read": 1,
            "chat_id": 1,
            "user_id": 1,
            "user_name": "Sylvester Dach",
            "user_img": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=31482",
            "created_at": "07\/05\/2021 19:05:01"
        },
        {
            "id": 19,
            "message": "Ut natus nemo perferendis officiis qui mollitia recusandae minus.",
            "read": 1,
            "chat_id": 1,
            "user_id": 1,
            "user_name": "Sylvester Dach",
            "user_img": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=31482",
            "created_at": "07\/05\/2021 19:05:01"
        },
        {
            "id": 20,
            "message": "Recusandae autem quis voluptas qui hic dolorum.",
            "read": 1,
            "chat_id": 1,
            "user_id": 1,
            "user_name": "Sylvester Dach",
            "user_img": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=31482",
            "created_at": "07\/05\/2021 19:05:01"
        },
        {
            "id": 21,
            "message": "Facilis cupiditate eligendi esse sint veniam quo.",
            "read": 1,
            "chat_id": 1,
            "user_id": 2,
            "user_name": " ",
            "user_img": "https:\/\/loremflickr.com\/362\/180\/hotel\/?lock=63032",
            "created_at": "07\/05\/2021 19:05:01"
        },
        {
            "id": 22,
            "message": "Ut qui error cupiditate aut.",
            "read": 1,
            "chat_id": 1,
            "user_id": 2,
            "user_name": " ",
            "user_img": "https:\/\/loremflickr.com\/362\/180\/hotel\/?lock=63032",
            "created_at": "07\/05\/2021 19:05:01"
        },
        {
            "id": 23,
            "message": "Deleniti quasi ut optio rerum vel voluptas qui.",
            "read": 1,
            "chat_id": 1,
            "user_id": 2,
            "user_name": " ",
            "user_img": "https:\/\/loremflickr.com\/362\/180\/hotel\/?lock=63032",
            "created_at": "07\/05\/2021 19:05:01"
        },
        {
            "id": 24,
            "message": "Quas ut similique rerum eligendi.",
            "read": 1,
            "chat_id": 1,
            "user_id": 2,
            "user_name": " ",
            "user_img": "https:\/\/loremflickr.com\/362\/180\/hotel\/?lock=63032",
            "created_at": "07\/05\/2021 19:05:01"
        },
        {
            "id": 25,
            "message": "Deleniti totam aut ut enim dignissimos eos ratione amet.",
            "read": 1,
            "chat_id": 1,
            "user_id": 2,
            "user_name": " ",
            "user_img": "https:\/\/loremflickr.com\/362\/180\/hotel\/?lock=63032",
            "created_at": "07\/05\/2021 19:05:01"
        },
        {
            "id": 26,
            "message": "Deleniti dicta animi voluptatem explicabo qui ut.",
            "read": 1,
            "chat_id": 1,
            "user_id": 2,
            "user_name": " ",
            "user_img": "https:\/\/loremflickr.com\/362\/180\/hotel\/?lock=63032",
            "created_at": "07\/05\/2021 19:05:01"
        },
        {
            "id": 27,
            "message": "Tempora itaque rerum laboriosam sapiente harum vel eligendi consequatur.",
            "read": 1,
            "chat_id": 1,
            "user_id": 2,
            "user_name": " ",
            "user_img": "https:\/\/loremflickr.com\/362\/180\/hotel\/?lock=63032",
            "created_at": "07\/05\/2021 19:05:01"
        },
        {
            "id": 28,
            "message": "Doloremque aperiam adipisci enim laudantium vel rerum sunt.",
            "read": 1,
            "chat_id": 1,
            "user_id": 2,
            "user_name": " ",
            "user_img": "https:\/\/loremflickr.com\/362\/180\/hotel\/?lock=63032",
            "created_at": "07\/05\/2021 19:05:01"
        },
        {
            "id": 29,
            "message": "Sit debitis culpa ipsum molestiae explicabo est.",
            "read": 1,
            "chat_id": 1,
            "user_id": 2,
            "user_name": " ",
            "user_img": "https:\/\/loremflickr.com\/362\/180\/hotel\/?lock=63032",
            "created_at": "07\/05\/2021 19:05:01"
        },
        {
            "id": 30,
            "message": "Corporis voluptatum qui quia accusantium beatae et ut.",
            "read": 1,
            "chat_id": 1,
            "user_id": 2,
            "user_name": " ",
            "user_img": "https:\/\/loremflickr.com\/362\/180\/hotel\/?lock=63032",
            "created_at": "07\/05\/2021 19:05:01"
        },
        {
            "id": 31,
            "message": "Distinctio veniam ut ab sequi.",
            "read": 1,
            "chat_id": 1,
            "user_id": 2,
            "user_name": " ",
            "user_img": "https:\/\/loremflickr.com\/362\/180\/hotel\/?lock=63032",
            "created_at": "07\/05\/2021 19:05:01"
        },
        {
            "id": 32,
            "message": "Eaque neque reprehenderit totam et et.",
            "read": 1,
            "chat_id": 1,
            "user_id": 2,
            "user_name": " ",
            "user_img": "https:\/\/loremflickr.com\/362\/180\/hotel\/?lock=63032",
            "created_at": "07\/05\/2021 19:05:01"
        },
        {
            "id": 33,
            "message": "Magnam aut minima aut rem corporis expedita amet qui.",
            "read": 1,
            "chat_id": 1,
            "user_id": 2,
            "user_name": " ",
            "user_img": "https:\/\/loremflickr.com\/362\/180\/hotel\/?lock=63032",
            "created_at": "07\/05\/2021 19:05:01"
        }
    ]
}

HTTP Request

GET /api/chats/{id}

Destroy Chat


Requires authentication Destroy an Chats

Example request:

curl -X DELETE "http://api.doitrip.com/api/chats/1" 
const url = new URL("http://api.doitrip.com/api/chats/1");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "DELETE",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

HTTP Request

DELETE /api/chats/{id}

Comments

Search Comment


Requires authentication Search Comments

Example request:

curl -X GET -G "http://api.doitrip.com/api/comments" 
const url = new URL("http://api.doitrip.com/api/comments");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

[
    {
        "id": 1,
        "user_id": 1,
        "user_name": "Sylvester Dach",
        "user_img": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=31482",
        "content": "Quibusdam ut quam dignissimos deserunt fuga. Commodi natus ut placeat id mollitia perferendis."
    }
]

HTTP Request

GET /api/comments

Insert Comment


Requires authentication Insert Comments

Example request:

curl -X POST "http://api.doitrip.com/api/comments" \
    -H "Content-Type: application/json" \
    -d '{"content":"sunt","travel":{"id":"sunt"}}'
const url = new URL("http://api.doitrip.com/api/comments");

    let params = {
            "content": "sunt",
            "travel.id": "sunt",
        };
    Object.keys(params).forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
}

let body = {
    "content": "sunt",
    "travel": {
        "id": "sunt"
    }
}

fetch(url, {
    method: "POST",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "id": 1,
    "user_id": 1,
    "user_name": "Sylvester Dach",
    "user_img": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=31482",
    "content": "Quibusdam ut quam dignissimos deserunt fuga. Commodi natus ut placeat id mollitia perferendis."
}

HTTP Request

POST /api/comments

Body Parameters

Parameter Type Status Description
content string required
travel.id string required Valid travel id

Query Parameters

Parameter Status Description
content required
travel.id required Valid travel id

Show Comment


Requires authentication Show the Detail of an Comments

Example request:

curl -X GET -G "http://api.doitrip.com/api/comments/1" 
const url = new URL("http://api.doitrip.com/api/comments/1");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "id": 1,
    "user_id": 1,
    "user_name": "Sylvester Dach",
    "user_img": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=31482",
    "content": "Quibusdam ut quam dignissimos deserunt fuga. Commodi natus ut placeat id mollitia perferendis."
}

HTTP Request

GET /api/comments/{id}

Update Comment


Requires authentication Update an Comments

Example request:

curl -X PUT "http://api.doitrip.com/api/comments/1" \
    -H "Content-Type: application/json" \
    -d '{"content":"sunt"}'
const url = new URL("http://api.doitrip.com/api/comments/1");

    let params = {
            "content": "sunt",
        };
    Object.keys(params).forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
}

let body = {
    "content": "sunt"
}

fetch(url, {
    method: "PUT",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "id": 1,
    "user_id": 1,
    "user_name": "Sylvester Dach",
    "user_img": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=31482",
    "content": "Quibusdam ut quam dignissimos deserunt fuga. Commodi natus ut placeat id mollitia perferendis."
}

HTTP Request

PUT /api/comments/{id}

PATCH /api/comments/{id}

Body Parameters

Parameter Type Status Description
content string required

Query Parameters

Parameter Status Description
content required

Destroy Comment


Requires authentication Destroy an Comments

Example request:

curl -X DELETE "http://api.doitrip.com/api/comments/1" 
const url = new URL("http://api.doitrip.com/api/comments/1");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "DELETE",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

HTTP Request

DELETE /api/comments/{id}

Countries

Search Country


Requires authentication Search countries

Example request:

curl -X GET -G "http://api.doitrip.com/api/countries" 
const url = new URL("http://api.doitrip.com/api/countries");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

[
    {
        "id": 1,
        "name": "Afghanistan",
        "code": "AF"
    }
]

HTTP Request

GET /api/countries

Currencies

Search currencies

Search currencies

Example request:

curl -X GET -G "http://api.doitrip.com/api/currencies" 
const url = new URL("http://api.doitrip.com/api/currencies");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

[
    {
        "id": 1,
        "name": "Euro",
        "code": "EUR",
        "symbol": "€"
    }
]

HTTP Request

GET /api/currencies

Events

Search Event Types

Search Events

Example request:

curl -X GET -G "http://api.doitrip.com/api/event-types" 
const url = new URL("http://api.doitrip.com/api/event-types");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

[
    {
        "id": 1,
        "value": "attraction",
        "label": "Attraction"
    }
]

HTTP Request

GET /api/event-types

Search Event Categories

Search Events

Example request:

curl -X GET -G "http://api.doitrip.com/api/event-categories" 
const url = new URL("http://api.doitrip.com/api/event-categories");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

[
    {
        "id": 1,
        "value": "performing-visual-arts",
        "label": "Performing and Visual Arts"
    }
]

HTTP Request

GET /api/event-categories

Search Event

Search Events

Example request:

curl -X GET -G "http://api.doitrip.com/api/events" \
    -H "Content-Type: application/json" \
    -d '{"owner":"1","search":{"user_id":"consequatur","manager":"consequatur","categories":{"id":"consequatur"},"latitude":"consequatur","longitude":"consequatur","availabilityPeriods":{"dateStart":"2021-05-07","dateEnd":"2021-05-07"}},"searchJoin":"and","perPage":5,"page":5,"orderBy":"id","sortedBy":"asc"}'
const url = new URL("http://api.doitrip.com/api/events");

    let params = {
            "owner": "1",
            "search.user_id": "consequatur",
            "search.manager": "consequatur",
            "search.categories.id": "consequatur",
            "search.latitude": "consequatur",
            "search.longitude": "consequatur",
            "search.availabilityPeriods.dateStart": "2021-05-07",
            "search.availabilityPeriods.dateEnd": "2021-05-07",
            "searchJoin": "and",
            "perPage": "5",
            "page": "5",
            "orderBy": "id",
            "sortedBy": "asc",
        };
    Object.keys(params).forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
}

let body = {
    "owner": "1",
    "search": {
        "user_id": "consequatur",
        "manager": "consequatur",
        "categories": {
            "id": "consequatur"
        },
        "latitude": "consequatur",
        "longitude": "consequatur",
        "availabilityPeriods": {
            "dateStart": "2021-05-07",
            "dateEnd": "2021-05-07"
        }
    },
    "searchJoin": "and",
    "perPage": 5,
    "page": 5,
    "orderBy": "id",
    "sortedBy": "asc"
}

fetch(url, {
    method: "GET",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

[
    {
        "id": 1,
        "title": "Nam rerum ullam nobis minima suscipit et repudiandae.",
        "description": "Delectus dolorum et consectetur ut dolore qui aut reiciendis. Et quae fugiat assumenda aut aspernatur ut eveniet. Dolores qui earum consequatur aut quae.",
        "creationDate": "2021-05-07T19:45:40.000000Z",
        "subcategory": "Alias aut cupiditate vel sapiente rerum.",
        "minAge": 99,
        "maxAge": 62,
        "manager": "D'Amore Group",
        "scope": "Aut saepe accusantium harum omnis.",
        "initiativeAndOwnership": "Et omnis esse minus aut.",
        "location": "74544 Bernhard Isle Apt. 124\nNew Eloiseton, WA 19966-0803",
        "latitude": "-8.442519",
        "longitude": "56.721943",
        "numPartecipants": null,
        "access": null,
        "accessExpirationDate": null,
        "dressCode": null,
        "user": {
            "id": 6,
            "profile": {
                "user_id": 6,
                "companyType": "society",
                "companyName": "Rippin, Thompson and ZemlakGroup",
                "firstName": "private field",
                "lastName": "private field",
                "country_id": 111,
                "city": "West Freida",
                "province": null,
                "address": null,
                "registeredOffice": "4691 Schowalter Forest\nLexiview, RI 24916-8234",
                "image": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=34086",
                "description": "Reverse-engineered executive encryption",
                "paymentMethod": "both",
                "paymentOther": "sint",
                "roles": [
                    "user",
                    "eventManager"
                ],
                "followers": 6,
                "fiscalCode": "private field",
                "vatNumber": "private field",
                "phonePrefix": "private field",
                "phoneNumber": "private field",
                "mobilePrefix": "private field",
                "mobileNumber": "private field",
                "faxPrefix": "private field",
                "faxNumber": "private field",
                "internetSite": "private field",
                "pecEmail": "private field",
                "contactEmail": "private field",
                "chamberCommerceRegistration": "private field",
                "identityDoc": "private field",
                "fiscalCodeDoc": "private field"
            },
            "roles": [
                "user",
                "eventManager"
            ],
            "permissions": [],
            "stripeAccount": {
                "user_id": 6,
                "accountId": "acct_1ITV4XFPn57bOta4",
                "chargeEnable": 1
            },
            "affiliation_code": "07PU8J",
            "subscription": null
        },
        "types": [
            {
                "id": 33,
                "value": "convivial",
                "label": "Convivial"
            }
        ],
        "categories": [
            {
                "id": 6,
                "value": "community-culture",
                "label": "Community and Culture"
            },
            {
                "id": 11,
                "value": "government-politics",
                "label": "Government and Politics"
            }
        ],
        "images": [
            {
                "id": 1748,
                "image": "https:\/\/loremflickr.com\/362\/180\/travel,italy\/?lock=64895",
                "image_name": "",
                "category": "gallery"
            },
            {
                "id": 1749,
                "image": "https:\/\/loremflickr.com\/362\/180\/travel,italy\/?lock=83686",
                "image_name": "",
                "category": "gallery"
            }
        ],
        "tags": [
            {
                "id": 10,
                "name": "temporibus"
            },
            {
                "id": 17,
                "name": "nisi"
            }
        ],
        "availabilityPeriods": [
            {
                "id": 1,
                "description": "Placeat magnam ab eligendi dignissimos nihil velit quia. Sit qui qui natus. Quos hic repellat assumenda occaecati dolores. Dicta quia a odio corporis et quasi optio.",
                "dateStart": "2049-10-06",
                "dateEnd": "2582-07-10",
                "hourStart": "01:04:20",
                "hourEnd": "14:23:57",
                "priceType": "single_day",
                "price": 72309,
                "presalePrice": 79629,
                "lastMinutePrice": 40925,
                "currency": {
                    "id": 1,
                    "name": "Euro",
                    "code": "EUR",
                    "symbol": "€",
                    "created_at": null,
                    "updated_at": null
                },
                "numPartecipants": 16,
                "accessType": "presale",
                "accessExpiration": "2192-10-29",
                "paymentMethod": "entrance",
                "cancellationPolicy": "free",
                "cancellationDay": 14,
                "dressCode": "Qui hic ut ut eveniet.",
                "partners": [
                    {
                        "id": 3,
                        "profile": {
                            "user_id": 3,
                            "companyType": "society",
                            "companyName": "Pouros-GusikowskiGroup",
                            "firstName": "private field",
                            "lastName": "private field",
                            "country_id": 96,
                            "city": "Lake Davonchester",
                            "province": null,
                            "address": null,
                            "registeredOffice": "751 Brayan Via Suite 806\nChanelborough, CO 34207-4693",
                            "image": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=32707",
                            "description": "Optional non-volatile emulation",
                            "paymentMethod": "stripe",
                            "paymentOther": "est",
                            "roles": [
                                "user",
                                "accomodationManager"
                            ],
                            "followers": 9,
                            "fiscalCode": "private field",
                            "vatNumber": "private field",
                            "phonePrefix": "private field",
                            "phoneNumber": "private field",
                            "mobilePrefix": "private field",
                            "mobileNumber": "private field",
                            "faxPrefix": "private field",
                            "faxNumber": "private field",
                            "internetSite": "private field",
                            "pecEmail": "private field",
                            "contactEmail": "private field",
                            "chamberCommerceRegistration": "private field",
                            "identityDoc": "private field",
                            "fiscalCodeDoc": "private field"
                        },
                        "roles": [
                            "user",
                            "accomodationManager"
                        ],
                        "permissions": [],
                        "stripeAccount": {
                            "user_id": 3,
                            "accountId": "acct_1ITV4XFPn57bOta4",
                            "chargeEnable": 1
                        },
                        "affiliation_code": "W6BD2M",
                        "subscription": null,
                        "tagStatus": "accepted"
                    }
                ]
            },
            {
                "id": 3,
                "description": "Occaecati quis et ut nihil. Tempore iusto nostrum rerum. Ut provident blanditiis facilis autem ut voluptates asperiores. Ducimus quas natus dolorem ut et recusandae est quas.",
                "dateStart": "2274-10-18",
                "dateEnd": "3484-11-23",
                "hourStart": "15:41:56",
                "hourEnd": "19:57:26",
                "priceType": "single_day",
                "price": 90388,
                "presalePrice": 63688,
                "lastMinutePrice": 47097,
                "currency": {
                    "id": 1,
                    "name": "Euro",
                    "code": "EUR",
                    "symbol": "€",
                    "created_at": null,
                    "updated_at": null
                },
                "numPartecipants": 26,
                "accessType": "no_reservation",
                "accessExpiration": "3321-07-24",
                "paymentMethod": "entrance",
                "cancellationPolicy": "free",
                "cancellationDay": 16,
                "dressCode": "Eligendi dolores animi iure similique aspernatur.",
                "partners": [
                    {
                        "id": 19,
                        "profile": {
                            "user_id": 19,
                            "firstName": "Jermey",
                            "lastName": "Jenkins",
                            "gender": "F",
                            "birthDate": "1996-02-11",
                            "country_id": 120,
                            "city": "Port Guidofort",
                            "image": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=84268",
                            "description": "Quis praesentium illo ullam molestias soluta. Nisi atque doloribus voluptatem iusto ut esse. Est fuga ut molestias. Aspernatur earum porro est nemo itaque.",
                            "paymentMethod": "stripe",
                            "paymentOther": "aut",
                            "companionGrade": 0,
                            "roles": [
                                "user",
                                "traveler"
                            ],
                            "travelerTypes": [
                                {
                                    "id": 3,
                                    "value": "adventurer",
                                    "label": "Adventurer"
                                }
                            ],
                            "languages": [
                                {
                                    "id": 1,
                                    "code": "en",
                                    "name": "English"
                                }
                            ],
                            "natures": [
                                {
                                    "id": 5,
                                    "value": "foodandwine",
                                    "label": "food and wine"
                                }
                            ],
                            "followers": 10,
                            "email": "private field",
                            "phoneNumber": "private field",
                            "fiscalCode": "private field",
                            "identityDoc": "private field"
                        },
                        "roles": [
                            "user",
                            "traveler"
                        ],
                        "permissions": [],
                        "stripeAccount": null,
                        "affiliation_code": "N8BKM5",
                        "subscription": {
                            "id": 18,
                            "active": 1,
                            "expirationDate": "2023-03-10",
                            "subscription": {
                                "id": 1,
                                "role": "traveler",
                                "type": "free",
                                "price": 0,
                                "monthPrice": 0,
                                "maxPost": "unlimited"
                            }
                        },
                        "tagStatus": "accepted"
                    }
                ]
            },
            {
                "id": 2,
                "description": "Qui laudantium consequatur voluptas nostrum commodi rerum. Assumenda nihil sed magnam dignissimos qui harum quisquam. Deleniti non incidunt officia quibusdam quibusdam.",
                "dateStart": "2856-01-06",
                "dateEnd": "3148-06-05",
                "hourStart": "02:11:45",
                "hourEnd": "08:56:41",
                "priceType": "single_day",
                "price": 94626,
                "presalePrice": 98352,
                "lastMinutePrice": 21276,
                "currency": {
                    "id": 1,
                    "name": "Euro",
                    "code": "EUR",
                    "symbol": "€",
                    "created_at": null,
                    "updated_at": null
                },
                "numPartecipants": 50,
                "accessType": "reservation",
                "accessExpiration": "2236-03-12",
                "paymentMethod": "entrance",
                "cancellationPolicy": "no_refundable",
                "cancellationDay": 15,
                "dressCode": "Aut vitae voluptate velit et illum molestiae eius voluptates.",
                "partners": [
                    {
                        "id": 2,
                        "profile": {
                            "user_id": 2,
                            "accomodationType": "alpine_refuge",
                            "accomodationName": "Reilly, Stamm and VonRuedenand Sons",
                            "vatNumber": "8765373403026",
                            "registeredOffice": "7750 Paxton Park\nGersonberg, KY 10487",
                            "country_id": {
                                "id": 184,
                                "code": "QA",
                                "name": "Qatar",
                                "created_at": "2021-05-07 19:39:09",
                                "updated_at": "2021-05-07 19:39:09"
                            },
                            "province": "Trinidad and Tobago",
                            "city": "New Clark",
                            "address": "685 Harris Trail Suite 721\nEast Julietfort, ME 72941-6111",
                            "latitude": "-79.336225",
                            "longitude": "136.131302",
                            "cityTax": 13,
                            "phonePrefix": "+83",
                            "phoneNumber": "2893022859",
                            "mobilePrefix": "+22",
                            "mobileNumber": "9169087732",
                            "faxPrefix": "+73",
                            "faxNumber": "6600753559",
                            "contactEmail": "terry.delaney@gmail.com",
                            "image": "https:\/\/loremflickr.com\/362\/180\/hotel\/?lock=63032",
                            "description": "Quidem voluptas atque nulla necessitatibus magni. Nihil quis non optio veniam dolores quod perspiciatis.",
                            "recommendations": "Non possimus voluptas beatae quaerat eos qui. Fugiat excepturi atque qui esse ipsum. Corrupti libero est atque.",
                            "yearOfConstruction": 1939,
                            "lastRenovation": 1925,
                            "rooms": 6,
                            "nonSmokingRooms": 6,
                            "beds": 18,
                            "handicappedRooms": 8,
                            "suites": 5,
                            "plans": 13,
                            "H24CheckIn": 1,
                            "checkInHourStart": "17:38:26",
                            "checkInHourEnd": "03:33:26",
                            "checkOutHourStart": "14:11:05",
                            "checkOutHourEnd": "18:05:09",
                            "petsAllowed": 0,
                            "petsSize": "big",
                            "stars": "2",
                            "qualityMark": "Rem est ipsam voluptatem ut ut quibusdam voluptas.",
                            "noClassification": 0,
                            "accomodationGrade": 0,
                            "roles": [
                                "user",
                                "accomodation"
                            ],
                            "roomPosts": 8,
                            "hotelServicesIncluded": [
                                {
                                    "id": 32,
                                    "group": "activities",
                                    "value": "tennis-court",
                                    "label": "Tennis court"
                                },
                                {
                                    "id": 45,
                                    "group": "activities",
                                    "value": "Nightclub\/DJ",
                                    "label": "Nightclub \/ DJ"
                                },
                                {
                                    "id": 56,
                                    "group": "activities",
                                    "value": "snorkeling",
                                    "label": "Snorkeling"
                                },
                                {
                                    "id": 58,
                                    "group": "activities",
                                    "value": "equipped-and-supervised-beach",
                                    "label": "Equipped and supervised beach"
                                },
                                {
                                    "id": 121,
                                    "group": "entertainment",
                                    "value": "theater",
                                    "label": "Theater"
                                },
                                {
                                    "id": 126,
                                    "group": "cleaning-services",
                                    "value": "ironing-service",
                                    "label": "Ironing service"
                                },
                                {
                                    "id": 130,
                                    "group": "business-services",
                                    "value": "spaces-for-meetings\/banquets",
                                    "label": "Spaces for meetings\/banquets"
                                },
                                {
                                    "id": 137,
                                    "group": "security",
                                    "value": "CCTV-cameras-outside-the-facility",
                                    "label": "CCTV cameras outside the facility"
                                }
                            ],
                            "hotelServicesNotIncluded": [
                                {
                                    "id": 49,
                                    "group": "activities",
                                    "value": "nature-trails-in-the-lagoon",
                                    "label": "Nature trails in the lagoon",
                                    "price": 57255
                                },
                                {
                                    "id": 107,
                                    "group": "reception-services",
                                    "value": "atm-machine",
                                    "label": "ATM machine",
                                    "price": 57255
                                },
                                {
                                    "id": 168,
                                    "group": "wellness-services",
                                    "value": "body-bandages",
                                    "label": "Body bandages",
                                    "price": 57255
                                },
                                {
                                    "id": 179,
                                    "group": "wellness-services",
                                    "value": "foot-massage",
                                    "label": "Foot massage",
                                    "price": 57255
                                }
                            ],
                            "languages": [
                                {
                                    "id": 1,
                                    "code": "en",
                                    "name": "English"
                                },
                                {
                                    "id": 2,
                                    "code": "it",
                                    "name": "Italian"
                                }
                            ],
                            "images": [
                                {
                                    "id": 1,
                                    "image": "https:\/\/loremflickr.com\/362\/180\/travel,italy\/?lock=43912",
                                    "image_name": "",
                                    "category": "gallery"
                                },
                                {
                                    "id": 2,
                                    "image": "https:\/\/loremflickr.com\/362\/180\/travel,italy\/?lock=58259",
                                    "image_name": "",
                                    "category": "gallery"
                                },
                                {
                                    "id": 3,
                                    "image": "https:\/\/loremflickr.com\/362\/180\/travel,italy\/?lock=54165",
                                    "image_name": "",
                                    "category": "gallery"
                                },
                                {
                                    "id": 4,
                                    "image": "https:\/\/loremflickr.com\/362\/180\/travel,italy\/?lock=71534",
                                    "image_name": "",
                                    "category": "gallery"
                                },
                                {
                                    "id": 5,
                                    "image": "https:\/\/loremflickr.com\/362\/180\/travel,italy\/?lock=62822",
                                    "image_name": "",
                                    "category": "gallery"
                                }
                            ]
                        },
                        "roles": [
                            "user",
                            "accomodation"
                        ],
                        "permissions": [],
                        "stripeAccount": {
                            "user_id": 2,
                            "accountId": "acct_1ITV4XFPn57bOta4",
                            "chargeEnable": 1
                        },
                        "affiliation_code": "APRA0D",
                        "subscription": {
                            "id": 2,
                            "active": 1,
                            "expirationDate": "2023-05-03",
                            "subscription": {
                                "id": 8,
                                "role": "touristGuide",
                                "type": "mega",
                                "price": 10000,
                                "monthPrice": 0,
                                "maxPost": "unlimited"
                            }
                        },
                        "tagStatus": "accepted"
                    }
                ]
            }
        ]
    }
]

HTTP Request

GET /api/events

Body Parameters

Parameter Type Status Description
owner integer optional 1
search.user_id string optional Valid user id
search.manager string optional
search.categories.id string optional Valid event_category id
search.latitude string optional
search.longitude string optional
search.availabilityPeriods.dateStart date optional Date format: Y-m-d
search.availabilityPeriods.dateEnd date optional Date format: Y-m-d
searchJoin string optional and or or
perPage numeric optional
page numeric optional
orderBy string optional id or created_at
sortedBy string optional asc or desc

Query Parameters

Parameter Status Description
owner optional 1
search.user_id optional Valid user id
search.manager optional
search.categories.id optional Valid event_category id
search.latitude optional
search.longitude optional
search.availabilityPeriods.dateStart optional Date format: Y-m-d
search.availabilityPeriods.dateEnd optional Date format: Y-m-d
searchJoin optional and or or
perPage optional
page optional
orderBy optional id or created_at
sortedBy optional asc or desc

Show Event

Show the Detail of an Events

Example request:

curl -X GET -G "http://api.doitrip.com/api/events/1" 
const url = new URL("http://api.doitrip.com/api/events/1");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "id": 1,
    "title": "Nam rerum ullam nobis minima suscipit et repudiandae.",
    "description": "Delectus dolorum et consectetur ut dolore qui aut reiciendis. Et quae fugiat assumenda aut aspernatur ut eveniet. Dolores qui earum consequatur aut quae.",
    "creationDate": "2021-05-07T19:45:40.000000Z",
    "subcategory": "Alias aut cupiditate vel sapiente rerum.",
    "minAge": 99,
    "maxAge": 62,
    "manager": "D'Amore Group",
    "scope": "Aut saepe accusantium harum omnis.",
    "initiativeAndOwnership": "Et omnis esse minus aut.",
    "location": "74544 Bernhard Isle Apt. 124\nNew Eloiseton, WA 19966-0803",
    "latitude": "-8.442519",
    "longitude": "56.721943",
    "numPartecipants": null,
    "access": null,
    "accessExpirationDate": null,
    "dressCode": null,
    "user": {
        "id": 6,
        "profile": {
            "user_id": 6,
            "companyType": "society",
            "companyName": "Rippin, Thompson and ZemlakGroup",
            "firstName": "private field",
            "lastName": "private field",
            "country_id": 111,
            "city": "West Freida",
            "province": null,
            "address": null,
            "registeredOffice": "4691 Schowalter Forest\nLexiview, RI 24916-8234",
            "image": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=34086",
            "description": "Reverse-engineered executive encryption",
            "paymentMethod": "both",
            "paymentOther": "sint",
            "roles": [
                "user",
                "eventManager"
            ],
            "followers": 6,
            "fiscalCode": "private field",
            "vatNumber": "private field",
            "phonePrefix": "private field",
            "phoneNumber": "private field",
            "mobilePrefix": "private field",
            "mobileNumber": "private field",
            "faxPrefix": "private field",
            "faxNumber": "private field",
            "internetSite": "private field",
            "pecEmail": "private field",
            "contactEmail": "private field",
            "chamberCommerceRegistration": "private field",
            "identityDoc": "private field",
            "fiscalCodeDoc": "private field"
        },
        "roles": [
            "user",
            "eventManager"
        ],
        "permissions": [],
        "stripeAccount": {
            "user_id": 6,
            "accountId": "acct_1ITV4XFPn57bOta4",
            "chargeEnable": 1
        },
        "affiliation_code": "07PU8J",
        "subscription": null
    },
    "types": [
        {
            "id": 33,
            "value": "convivial",
            "label": "Convivial"
        }
    ],
    "categories": [
        {
            "id": 6,
            "value": "community-culture",
            "label": "Community and Culture"
        },
        {
            "id": 11,
            "value": "government-politics",
            "label": "Government and Politics"
        }
    ],
    "images": [
        {
            "id": 1748,
            "image": "https:\/\/loremflickr.com\/362\/180\/travel,italy\/?lock=64895",
            "image_name": "",
            "category": "gallery"
        },
        {
            "id": 1749,
            "image": "https:\/\/loremflickr.com\/362\/180\/travel,italy\/?lock=83686",
            "image_name": "",
            "category": "gallery"
        }
    ],
    "tags": [
        {
            "id": 10,
            "name": "temporibus"
        },
        {
            "id": 17,
            "name": "nisi"
        }
    ],
    "availabilityPeriods": [
        {
            "id": 1,
            "description": "Placeat magnam ab eligendi dignissimos nihil velit quia. Sit qui qui natus. Quos hic repellat assumenda occaecati dolores. Dicta quia a odio corporis et quasi optio.",
            "dateStart": "2049-10-06",
            "dateEnd": "2582-07-10",
            "hourStart": "01:04:20",
            "hourEnd": "14:23:57",
            "priceType": "single_day",
            "price": 72309,
            "presalePrice": 79629,
            "lastMinutePrice": 40925,
            "currency": {
                "id": 1,
                "name": "Euro",
                "code": "EUR",
                "symbol": "€",
                "created_at": null,
                "updated_at": null
            },
            "numPartecipants": 16,
            "accessType": "presale",
            "accessExpiration": "2192-10-29",
            "paymentMethod": "entrance",
            "cancellationPolicy": "free",
            "cancellationDay": 14,
            "dressCode": "Qui hic ut ut eveniet.",
            "partners": [
                {
                    "id": 3,
                    "profile": {
                        "user_id": 3,
                        "companyType": "society",
                        "companyName": "Pouros-GusikowskiGroup",
                        "firstName": "private field",
                        "lastName": "private field",
                        "country_id": 96,
                        "city": "Lake Davonchester",
                        "province": null,
                        "address": null,
                        "registeredOffice": "751 Brayan Via Suite 806\nChanelborough, CO 34207-4693",
                        "image": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=32707",
                        "description": "Optional non-volatile emulation",
                        "paymentMethod": "stripe",
                        "paymentOther": "est",
                        "roles": [
                            "user",
                            "accomodationManager"
                        ],
                        "followers": 9,
                        "fiscalCode": "private field",
                        "vatNumber": "private field",
                        "phonePrefix": "private field",
                        "phoneNumber": "private field",
                        "mobilePrefix": "private field",
                        "mobileNumber": "private field",
                        "faxPrefix": "private field",
                        "faxNumber": "private field",
                        "internetSite": "private field",
                        "pecEmail": "private field",
                        "contactEmail": "private field",
                        "chamberCommerceRegistration": "private field",
                        "identityDoc": "private field",
                        "fiscalCodeDoc": "private field"
                    },
                    "roles": [
                        "user",
                        "accomodationManager"
                    ],
                    "permissions": [],
                    "stripeAccount": {
                        "user_id": 3,
                        "accountId": "acct_1ITV4XFPn57bOta4",
                        "chargeEnable": 1
                    },
                    "affiliation_code": "W6BD2M",
                    "subscription": null,
                    "tagStatus": "accepted"
                }
            ]
        },
        {
            "id": 3,
            "description": "Occaecati quis et ut nihil. Tempore iusto nostrum rerum. Ut provident blanditiis facilis autem ut voluptates asperiores. Ducimus quas natus dolorem ut et recusandae est quas.",
            "dateStart": "2274-10-18",
            "dateEnd": "3484-11-23",
            "hourStart": "15:41:56",
            "hourEnd": "19:57:26",
            "priceType": "single_day",
            "price": 90388,
            "presalePrice": 63688,
            "lastMinutePrice": 47097,
            "currency": {
                "id": 1,
                "name": "Euro",
                "code": "EUR",
                "symbol": "€",
                "created_at": null,
                "updated_at": null
            },
            "numPartecipants": 26,
            "accessType": "no_reservation",
            "accessExpiration": "3321-07-24",
            "paymentMethod": "entrance",
            "cancellationPolicy": "free",
            "cancellationDay": 16,
            "dressCode": "Eligendi dolores animi iure similique aspernatur.",
            "partners": [
                {
                    "id": 19,
                    "profile": {
                        "user_id": 19,
                        "firstName": "Jermey",
                        "lastName": "Jenkins",
                        "gender": "F",
                        "birthDate": "1996-02-11",
                        "country_id": 120,
                        "city": "Port Guidofort",
                        "image": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=84268",
                        "description": "Quis praesentium illo ullam molestias soluta. Nisi atque doloribus voluptatem iusto ut esse. Est fuga ut molestias. Aspernatur earum porro est nemo itaque.",
                        "paymentMethod": "stripe",
                        "paymentOther": "aut",
                        "companionGrade": 0,
                        "roles": [
                            "user",
                            "traveler"
                        ],
                        "travelerTypes": [
                            {
                                "id": 3,
                                "value": "adventurer",
                                "label": "Adventurer"
                            }
                        ],
                        "languages": [
                            {
                                "id": 1,
                                "code": "en",
                                "name": "English"
                            }
                        ],
                        "natures": [
                            {
                                "id": 5,
                                "value": "foodandwine",
                                "label": "food and wine"
                            }
                        ],
                        "followers": 10,
                        "email": "private field",
                        "phoneNumber": "private field",
                        "fiscalCode": "private field",
                        "identityDoc": "private field"
                    },
                    "roles": [
                        "user",
                        "traveler"
                    ],
                    "permissions": [],
                    "stripeAccount": null,
                    "affiliation_code": "N8BKM5",
                    "subscription": {
                        "id": 18,
                        "active": 1,
                        "expirationDate": "2023-03-10",
                        "subscription": {
                            "id": 1,
                            "role": "traveler",
                            "type": "free",
                            "price": 0,
                            "monthPrice": 0,
                            "maxPost": "unlimited"
                        }
                    },
                    "tagStatus": "accepted"
                }
            ]
        },
        {
            "id": 2,
            "description": "Qui laudantium consequatur voluptas nostrum commodi rerum. Assumenda nihil sed magnam dignissimos qui harum quisquam. Deleniti non incidunt officia quibusdam quibusdam.",
            "dateStart": "2856-01-06",
            "dateEnd": "3148-06-05",
            "hourStart": "02:11:45",
            "hourEnd": "08:56:41",
            "priceType": "single_day",
            "price": 94626,
            "presalePrice": 98352,
            "lastMinutePrice": 21276,
            "currency": {
                "id": 1,
                "name": "Euro",
                "code": "EUR",
                "symbol": "€",
                "created_at": null,
                "updated_at": null
            },
            "numPartecipants": 50,
            "accessType": "reservation",
            "accessExpiration": "2236-03-12",
            "paymentMethod": "entrance",
            "cancellationPolicy": "no_refundable",
            "cancellationDay": 15,
            "dressCode": "Aut vitae voluptate velit et illum molestiae eius voluptates.",
            "partners": [
                {
                    "id": 2,
                    "profile": {
                        "user_id": 2,
                        "accomodationType": "alpine_refuge",
                        "accomodationName": "Reilly, Stamm and VonRuedenand Sons",
                        "vatNumber": "8765373403026",
                        "registeredOffice": "7750 Paxton Park\nGersonberg, KY 10487",
                        "country_id": {
                            "id": 184,
                            "code": "QA",
                            "name": "Qatar",
                            "created_at": "2021-05-07 19:39:09",
                            "updated_at": "2021-05-07 19:39:09"
                        },
                        "province": "Trinidad and Tobago",
                        "city": "New Clark",
                        "address": "685 Harris Trail Suite 721\nEast Julietfort, ME 72941-6111",
                        "latitude": "-79.336225",
                        "longitude": "136.131302",
                        "cityTax": 13,
                        "phonePrefix": "+83",
                        "phoneNumber": "2893022859",
                        "mobilePrefix": "+22",
                        "mobileNumber": "9169087732",
                        "faxPrefix": "+73",
                        "faxNumber": "6600753559",
                        "contactEmail": "terry.delaney@gmail.com",
                        "image": "https:\/\/loremflickr.com\/362\/180\/hotel\/?lock=63032",
                        "description": "Quidem voluptas atque nulla necessitatibus magni. Nihil quis non optio veniam dolores quod perspiciatis.",
                        "recommendations": "Non possimus voluptas beatae quaerat eos qui. Fugiat excepturi atque qui esse ipsum. Corrupti libero est atque.",
                        "yearOfConstruction": 1939,
                        "lastRenovation": 1925,
                        "rooms": 6,
                        "nonSmokingRooms": 6,
                        "beds": 18,
                        "handicappedRooms": 8,
                        "suites": 5,
                        "plans": 13,
                        "H24CheckIn": 1,
                        "checkInHourStart": "17:38:26",
                        "checkInHourEnd": "03:33:26",
                        "checkOutHourStart": "14:11:05",
                        "checkOutHourEnd": "18:05:09",
                        "petsAllowed": 0,
                        "petsSize": "big",
                        "stars": "2",
                        "qualityMark": "Rem est ipsam voluptatem ut ut quibusdam voluptas.",
                        "noClassification": 0,
                        "accomodationGrade": 0,
                        "roles": [
                            "user",
                            "accomodation"
                        ],
                        "roomPosts": 8,
                        "hotelServicesIncluded": [
                            {
                                "id": 32,
                                "group": "activities",
                                "value": "tennis-court",
                                "label": "Tennis court"
                            },
                            {
                                "id": 45,
                                "group": "activities",
                                "value": "Nightclub\/DJ",
                                "label": "Nightclub \/ DJ"
                            },
                            {
                                "id": 56,
                                "group": "activities",
                                "value": "snorkeling",
                                "label": "Snorkeling"
                            },
                            {
                                "id": 58,
                                "group": "activities",
                                "value": "equipped-and-supervised-beach",
                                "label": "Equipped and supervised beach"
                            },
                            {
                                "id": 121,
                                "group": "entertainment",
                                "value": "theater",
                                "label": "Theater"
                            },
                            {
                                "id": 126,
                                "group": "cleaning-services",
                                "value": "ironing-service",
                                "label": "Ironing service"
                            },
                            {
                                "id": 130,
                                "group": "business-services",
                                "value": "spaces-for-meetings\/banquets",
                                "label": "Spaces for meetings\/banquets"
                            },
                            {
                                "id": 137,
                                "group": "security",
                                "value": "CCTV-cameras-outside-the-facility",
                                "label": "CCTV cameras outside the facility"
                            }
                        ],
                        "hotelServicesNotIncluded": [
                            {
                                "id": 49,
                                "group": "activities",
                                "value": "nature-trails-in-the-lagoon",
                                "label": "Nature trails in the lagoon",
                                "price": 57255
                            },
                            {
                                "id": 107,
                                "group": "reception-services",
                                "value": "atm-machine",
                                "label": "ATM machine",
                                "price": 57255
                            },
                            {
                                "id": 168,
                                "group": "wellness-services",
                                "value": "body-bandages",
                                "label": "Body bandages",
                                "price": 57255
                            },
                            {
                                "id": 179,
                                "group": "wellness-services",
                                "value": "foot-massage",
                                "label": "Foot massage",
                                "price": 57255
                            }
                        ],
                        "languages": [
                            {
                                "id": 1,
                                "code": "en",
                                "name": "English"
                            },
                            {
                                "id": 2,
                                "code": "it",
                                "name": "Italian"
                            }
                        ],
                        "images": [
                            {
                                "id": 1,
                                "image": "https:\/\/loremflickr.com\/362\/180\/travel,italy\/?lock=43912",
                                "image_name": "",
                                "category": "gallery"
                            },
                            {
                                "id": 2,
                                "image": "https:\/\/loremflickr.com\/362\/180\/travel,italy\/?lock=58259",
                                "image_name": "",
                                "category": "gallery"
                            },
                            {
                                "id": 3,
                                "image": "https:\/\/loremflickr.com\/362\/180\/travel,italy\/?lock=54165",
                                "image_name": "",
                                "category": "gallery"
                            },
                            {
                                "id": 4,
                                "image": "https:\/\/loremflickr.com\/362\/180\/travel,italy\/?lock=71534",
                                "image_name": "",
                                "category": "gallery"
                            },
                            {
                                "id": 5,
                                "image": "https:\/\/loremflickr.com\/362\/180\/travel,italy\/?lock=62822",
                                "image_name": "",
                                "category": "gallery"
                            }
                        ]
                    },
                    "roles": [
                        "user",
                        "accomodation"
                    ],
                    "permissions": [],
                    "stripeAccount": {
                        "user_id": 2,
                        "accountId": "acct_1ITV4XFPn57bOta4",
                        "chargeEnable": 1
                    },
                    "affiliation_code": "APRA0D",
                    "subscription": {
                        "id": 2,
                        "active": 1,
                        "expirationDate": "2023-05-03",
                        "subscription": {
                            "id": 8,
                            "role": "touristGuide",
                            "type": "mega",
                            "price": 10000,
                            "monthPrice": 0,
                            "maxPost": "unlimited"
                        }
                    },
                    "tagStatus": "accepted"
                }
            ]
        }
    ]
}

HTTP Request

GET /api/events/{id}

Report Event


Requires authentication

Example request:

curl -X POST "http://api.doitrip.com/api/events/1/report" 
const url = new URL("http://api.doitrip.com/api/events/1/report");

    let params = {
            "message": "dolor",
        };
    Object.keys(params).forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "POST",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

HTTP Request

POST /api/events/{id}/report

Query Parameters

Parameter Status Description
message required

Insert Event

Insert Events

Example request:

curl -X POST "http://api.doitrip.com/api/events" \
    -H "Content-Type: application/json" \
    -d '{"title":"consequatur","description":"consequatur","subcategory":"consequatur","minAge":5,"maxAge":5,"manager":"consequatur","scope":"consequatur","initiativeAndOwnership":"consequatur","location":"consequatur","latitude":"consequatur","longitude":"consequatur","types":[{"id":"consequatur"}],"categories":[{"id":"consequatur"}],"images":[{"image":"consequatur","category":"gallery"}],"tags":[{"id":"consequatur"}],"services":[{"id":"consequatur"}],"languages":[{"id":"consequatur"}],"recommended":[{"id":"consequatur"}],"availabilityPeriods":[{"dateStart":"2021-05-07","dateEnd":"2021-05-07","hourStart":"20:14","hourEnd":"20:14","priceType":"single_day","price":5,"lastMinutePrice":5,"currency_id":"consequatur","numPartecipants":5,"accessType":"presale","accessExpiration":"2021-05-07","paymentMethod":"credit_card","cancellationPolicy":"free","cancellationDay":5,"description":"consequatur","dressCode":"consequatur","partners":[{"user_id":"consequatur"}]}]}'
const url = new URL("http://api.doitrip.com/api/events");

    let params = {
            "title": "consequatur",
            "description": "consequatur",
            "subcategory": "consequatur",
            "minAge": "5",
            "maxAge": "5",
            "manager": "consequatur",
            "scope": "consequatur",
            "initiativeAndOwnership": "consequatur",
            "location": "consequatur",
            "latitude": "consequatur",
            "longitude": "consequatur",
            "types": "consequatur",
            "types.*.id": "consequatur",
            "categories": "consequatur",
            "categories.*.id": "consequatur",
            "images": "consequatur",
            "images.*.image": "consequatur",
            "images.*.category": "gallery",
            "tags": "consequatur",
            "tags.*.id": "consequatur",
            "services": "consequatur",
            "services.*.id": "consequatur",
            "languages": "consequatur",
            "languages.*.id": "consequatur",
            "recommended": "consequatur",
            "recommended.*.id": "consequatur",
            "availabilityPeriods": "consequatur",
            "availabilityPeriods.*.dateStart": "2021-05-07",
            "availabilityPeriods.*.dateEnd": "2021-05-07",
            "availabilityPeriods.*.hourStart": "20:14",
            "availabilityPeriods.*.hourEnd": "20:14",
            "availabilityPeriods.*.priceType": "single_day",
            "availabilityPeriods.*.price": "5",
            "availabilityPeriods.*.lastMinutePrice": "5",
            "availabilityPeriods.*.currency_id": "consequatur",
            "availabilityPeriods.*.numPartecipants": "5",
            "availabilityPeriods.*.accessType": "presale",
            "availabilityPeriods.*.accessExpiration": "2021-05-07",
            "availabilityPeriods.*.paymentMethod": "credit_card",
            "availabilityPeriods.*.cancellationPolicy": "free",
            "availabilityPeriods.*.cancellationDay": "5",
            "availabilityPeriods.*.description": "consequatur",
            "availabilityPeriods.*.dressCode": "consequatur",
            "availabilityPeriods.*.partners": "consequatur",
            "availabilityPeriods.*.partners.*.user_id": "consequatur",
        };
    Object.keys(params).forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
}

let body = {
    "title": "consequatur",
    "description": "consequatur",
    "subcategory": "consequatur",
    "minAge": 5,
    "maxAge": 5,
    "manager": "consequatur",
    "scope": "consequatur",
    "initiativeAndOwnership": "consequatur",
    "location": "consequatur",
    "latitude": "consequatur",
    "longitude": "consequatur",
    "types": [
        {
            "id": "consequatur"
        }
    ],
    "categories": [
        {
            "id": "consequatur"
        }
    ],
    "images": [
        {
            "image": "consequatur",
            "category": "gallery"
        }
    ],
    "tags": [
        {
            "id": "consequatur"
        }
    ],
    "services": [
        {
            "id": "consequatur"
        }
    ],
    "languages": [
        {
            "id": "consequatur"
        }
    ],
    "recommended": [
        {
            "id": "consequatur"
        }
    ],
    "availabilityPeriods": [
        {
            "dateStart": "2021-05-07",
            "dateEnd": "2021-05-07",
            "hourStart": "20:14",
            "hourEnd": "20:14",
            "priceType": "single_day",
            "price": 5,
            "lastMinutePrice": 5,
            "currency_id": "consequatur",
            "numPartecipants": 5,
            "accessType": "presale",
            "accessExpiration": "2021-05-07",
            "paymentMethod": "credit_card",
            "cancellationPolicy": "free",
            "cancellationDay": 5,
            "description": "consequatur",
            "dressCode": "consequatur",
            "partners": [
                {
                    "user_id": "consequatur"
                }
            ]
        }
    ]
}

fetch(url, {
    method: "POST",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "id": 1,
    "title": "Nam rerum ullam nobis minima suscipit et repudiandae.",
    "description": "Delectus dolorum et consectetur ut dolore qui aut reiciendis. Et quae fugiat assumenda aut aspernatur ut eveniet. Dolores qui earum consequatur aut quae.",
    "creationDate": "2021-05-07T19:45:40.000000Z",
    "subcategory": "Alias aut cupiditate vel sapiente rerum.",
    "minAge": 99,
    "maxAge": 62,
    "manager": "D'Amore Group",
    "scope": "Aut saepe accusantium harum omnis.",
    "initiativeAndOwnership": "Et omnis esse minus aut.",
    "location": "74544 Bernhard Isle Apt. 124\nNew Eloiseton, WA 19966-0803",
    "latitude": "-8.442519",
    "longitude": "56.721943",
    "numPartecipants": null,
    "access": null,
    "accessExpirationDate": null,
    "dressCode": null,
    "user": {
        "id": 6,
        "profile": {
            "user_id": 6,
            "companyType": "society",
            "companyName": "Rippin, Thompson and ZemlakGroup",
            "firstName": "private field",
            "lastName": "private field",
            "country_id": 111,
            "city": "West Freida",
            "province": null,
            "address": null,
            "registeredOffice": "4691 Schowalter Forest\nLexiview, RI 24916-8234",
            "image": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=34086",
            "description": "Reverse-engineered executive encryption",
            "paymentMethod": "both",
            "paymentOther": "sint",
            "roles": [
                "user",
                "eventManager"
            ],
            "followers": 6,
            "fiscalCode": "private field",
            "vatNumber": "private field",
            "phonePrefix": "private field",
            "phoneNumber": "private field",
            "mobilePrefix": "private field",
            "mobileNumber": "private field",
            "faxPrefix": "private field",
            "faxNumber": "private field",
            "internetSite": "private field",
            "pecEmail": "private field",
            "contactEmail": "private field",
            "chamberCommerceRegistration": "private field",
            "identityDoc": "private field",
            "fiscalCodeDoc": "private field"
        },
        "roles": [
            "user",
            "eventManager"
        ],
        "permissions": [],
        "stripeAccount": {
            "user_id": 6,
            "accountId": "acct_1ITV4XFPn57bOta4",
            "chargeEnable": 1
        },
        "affiliation_code": "07PU8J",
        "subscription": null
    },
    "types": [
        {
            "id": 33,
            "value": "convivial",
            "label": "Convivial"
        }
    ],
    "categories": [
        {
            "id": 6,
            "value": "community-culture",
            "label": "Community and Culture"
        },
        {
            "id": 11,
            "value": "government-politics",
            "label": "Government and Politics"
        }
    ],
    "images": [
        {
            "id": 1748,
            "image": "https:\/\/loremflickr.com\/362\/180\/travel,italy\/?lock=64895",
            "image_name": "",
            "category": "gallery"
        },
        {
            "id": 1749,
            "image": "https:\/\/loremflickr.com\/362\/180\/travel,italy\/?lock=83686",
            "image_name": "",
            "category": "gallery"
        }
    ],
    "tags": [
        {
            "id": 10,
            "name": "temporibus"
        },
        {
            "id": 17,
            "name": "nisi"
        }
    ],
    "availabilityPeriods": [
        {
            "id": 1,
            "description": "Placeat magnam ab eligendi dignissimos nihil velit quia. Sit qui qui natus. Quos hic repellat assumenda occaecati dolores. Dicta quia a odio corporis et quasi optio.",
            "dateStart": "2049-10-06",
            "dateEnd": "2582-07-10",
            "hourStart": "01:04:20",
            "hourEnd": "14:23:57",
            "priceType": "single_day",
            "price": 72309,
            "presalePrice": 79629,
            "lastMinutePrice": 40925,
            "currency": {
                "id": 1,
                "name": "Euro",
                "code": "EUR",
                "symbol": "€",
                "created_at": null,
                "updated_at": null
            },
            "numPartecipants": 16,
            "accessType": "presale",
            "accessExpiration": "2192-10-29",
            "paymentMethod": "entrance",
            "cancellationPolicy": "free",
            "cancellationDay": 14,
            "dressCode": "Qui hic ut ut eveniet.",
            "partners": [
                {
                    "id": 3,
                    "profile": {
                        "user_id": 3,
                        "companyType": "society",
                        "companyName": "Pouros-GusikowskiGroup",
                        "firstName": "private field",
                        "lastName": "private field",
                        "country_id": 96,
                        "city": "Lake Davonchester",
                        "province": null,
                        "address": null,
                        "registeredOffice": "751 Brayan Via Suite 806\nChanelborough, CO 34207-4693",
                        "image": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=32707",
                        "description": "Optional non-volatile emulation",
                        "paymentMethod": "stripe",
                        "paymentOther": "est",
                        "roles": [
                            "user",
                            "accomodationManager"
                        ],
                        "followers": 9,
                        "fiscalCode": "private field",
                        "vatNumber": "private field",
                        "phonePrefix": "private field",
                        "phoneNumber": "private field",
                        "mobilePrefix": "private field",
                        "mobileNumber": "private field",
                        "faxPrefix": "private field",
                        "faxNumber": "private field",
                        "internetSite": "private field",
                        "pecEmail": "private field",
                        "contactEmail": "private field",
                        "chamberCommerceRegistration": "private field",
                        "identityDoc": "private field",
                        "fiscalCodeDoc": "private field"
                    },
                    "roles": [
                        "user",
                        "accomodationManager"
                    ],
                    "permissions": [],
                    "stripeAccount": {
                        "user_id": 3,
                        "accountId": "acct_1ITV4XFPn57bOta4",
                        "chargeEnable": 1
                    },
                    "affiliation_code": "W6BD2M",
                    "subscription": null,
                    "tagStatus": "accepted"
                }
            ]
        },
        {
            "id": 3,
            "description": "Occaecati quis et ut nihil. Tempore iusto nostrum rerum. Ut provident blanditiis facilis autem ut voluptates asperiores. Ducimus quas natus dolorem ut et recusandae est quas.",
            "dateStart": "2274-10-18",
            "dateEnd": "3484-11-23",
            "hourStart": "15:41:56",
            "hourEnd": "19:57:26",
            "priceType": "single_day",
            "price": 90388,
            "presalePrice": 63688,
            "lastMinutePrice": 47097,
            "currency": {
                "id": 1,
                "name": "Euro",
                "code": "EUR",
                "symbol": "€",
                "created_at": null,
                "updated_at": null
            },
            "numPartecipants": 26,
            "accessType": "no_reservation",
            "accessExpiration": "3321-07-24",
            "paymentMethod": "entrance",
            "cancellationPolicy": "free",
            "cancellationDay": 16,
            "dressCode": "Eligendi dolores animi iure similique aspernatur.",
            "partners": [
                {
                    "id": 19,
                    "profile": {
                        "user_id": 19,
                        "firstName": "Jermey",
                        "lastName": "Jenkins",
                        "gender": "F",
                        "birthDate": "1996-02-11",
                        "country_id": 120,
                        "city": "Port Guidofort",
                        "image": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=84268",
                        "description": "Quis praesentium illo ullam molestias soluta. Nisi atque doloribus voluptatem iusto ut esse. Est fuga ut molestias. Aspernatur earum porro est nemo itaque.",
                        "paymentMethod": "stripe",
                        "paymentOther": "aut",
                        "companionGrade": 0,
                        "roles": [
                            "user",
                            "traveler"
                        ],
                        "travelerTypes": [
                            {
                                "id": 3,
                                "value": "adventurer",
                                "label": "Adventurer"
                            }
                        ],
                        "languages": [
                            {
                                "id": 1,
                                "code": "en",
                                "name": "English"
                            }
                        ],
                        "natures": [
                            {
                                "id": 5,
                                "value": "foodandwine",
                                "label": "food and wine"
                            }
                        ],
                        "followers": 10,
                        "email": "private field",
                        "phoneNumber": "private field",
                        "fiscalCode": "private field",
                        "identityDoc": "private field"
                    },
                    "roles": [
                        "user",
                        "traveler"
                    ],
                    "permissions": [],
                    "stripeAccount": null,
                    "affiliation_code": "N8BKM5",
                    "subscription": {
                        "id": 18,
                        "active": 1,
                        "expirationDate": "2023-03-10",
                        "subscription": {
                            "id": 1,
                            "role": "traveler",
                            "type": "free",
                            "price": 0,
                            "monthPrice": 0,
                            "maxPost": "unlimited"
                        }
                    },
                    "tagStatus": "accepted"
                }
            ]
        },
        {
            "id": 2,
            "description": "Qui laudantium consequatur voluptas nostrum commodi rerum. Assumenda nihil sed magnam dignissimos qui harum quisquam. Deleniti non incidunt officia quibusdam quibusdam.",
            "dateStart": "2856-01-06",
            "dateEnd": "3148-06-05",
            "hourStart": "02:11:45",
            "hourEnd": "08:56:41",
            "priceType": "single_day",
            "price": 94626,
            "presalePrice": 98352,
            "lastMinutePrice": 21276,
            "currency": {
                "id": 1,
                "name": "Euro",
                "code": "EUR",
                "symbol": "€",
                "created_at": null,
                "updated_at": null
            },
            "numPartecipants": 50,
            "accessType": "reservation",
            "accessExpiration": "2236-03-12",
            "paymentMethod": "entrance",
            "cancellationPolicy": "no_refundable",
            "cancellationDay": 15,
            "dressCode": "Aut vitae voluptate velit et illum molestiae eius voluptates.",
            "partners": [
                {
                    "id": 2,
                    "profile": {
                        "user_id": 2,
                        "accomodationType": "alpine_refuge",
                        "accomodationName": "Reilly, Stamm and VonRuedenand Sons",
                        "vatNumber": "8765373403026",
                        "registeredOffice": "7750 Paxton Park\nGersonberg, KY 10487",
                        "country_id": {
                            "id": 184,
                            "code": "QA",
                            "name": "Qatar",
                            "created_at": "2021-05-07 19:39:09",
                            "updated_at": "2021-05-07 19:39:09"
                        },
                        "province": "Trinidad and Tobago",
                        "city": "New Clark",
                        "address": "685 Harris Trail Suite 721\nEast Julietfort, ME 72941-6111",
                        "latitude": "-79.336225",
                        "longitude": "136.131302",
                        "cityTax": 13,
                        "phonePrefix": "+83",
                        "phoneNumber": "2893022859",
                        "mobilePrefix": "+22",
                        "mobileNumber": "9169087732",
                        "faxPrefix": "+73",
                        "faxNumber": "6600753559",
                        "contactEmail": "terry.delaney@gmail.com",
                        "image": "https:\/\/loremflickr.com\/362\/180\/hotel\/?lock=63032",
                        "description": "Quidem voluptas atque nulla necessitatibus magni. Nihil quis non optio veniam dolores quod perspiciatis.",
                        "recommendations": "Non possimus voluptas beatae quaerat eos qui. Fugiat excepturi atque qui esse ipsum. Corrupti libero est atque.",
                        "yearOfConstruction": 1939,
                        "lastRenovation": 1925,
                        "rooms": 6,
                        "nonSmokingRooms": 6,
                        "beds": 18,
                        "handicappedRooms": 8,
                        "suites": 5,
                        "plans": 13,
                        "H24CheckIn": 1,
                        "checkInHourStart": "17:38:26",
                        "checkInHourEnd": "03:33:26",
                        "checkOutHourStart": "14:11:05",
                        "checkOutHourEnd": "18:05:09",
                        "petsAllowed": 0,
                        "petsSize": "big",
                        "stars": "2",
                        "qualityMark": "Rem est ipsam voluptatem ut ut quibusdam voluptas.",
                        "noClassification": 0,
                        "accomodationGrade": 0,
                        "roles": [
                            "user",
                            "accomodation"
                        ],
                        "roomPosts": 8,
                        "hotelServicesIncluded": [
                            {
                                "id": 32,
                                "group": "activities",
                                "value": "tennis-court",
                                "label": "Tennis court"
                            },
                            {
                                "id": 45,
                                "group": "activities",
                                "value": "Nightclub\/DJ",
                                "label": "Nightclub \/ DJ"
                            },
                            {
                                "id": 56,
                                "group": "activities",
                                "value": "snorkeling",
                                "label": "Snorkeling"
                            },
                            {
                                "id": 58,
                                "group": "activities",
                                "value": "equipped-and-supervised-beach",
                                "label": "Equipped and supervised beach"
                            },
                            {
                                "id": 121,
                                "group": "entertainment",
                                "value": "theater",
                                "label": "Theater"
                            },
                            {
                                "id": 126,
                                "group": "cleaning-services",
                                "value": "ironing-service",
                                "label": "Ironing service"
                            },
                            {
                                "id": 130,
                                "group": "business-services",
                                "value": "spaces-for-meetings\/banquets",
                                "label": "Spaces for meetings\/banquets"
                            },
                            {
                                "id": 137,
                                "group": "security",
                                "value": "CCTV-cameras-outside-the-facility",
                                "label": "CCTV cameras outside the facility"
                            }
                        ],
                        "hotelServicesNotIncluded": [
                            {
                                "id": 49,
                                "group": "activities",
                                "value": "nature-trails-in-the-lagoon",
                                "label": "Nature trails in the lagoon",
                                "price": 57255
                            },
                            {
                                "id": 107,
                                "group": "reception-services",
                                "value": "atm-machine",
                                "label": "ATM machine",
                                "price": 57255
                            },
                            {
                                "id": 168,
                                "group": "wellness-services",
                                "value": "body-bandages",
                                "label": "Body bandages",
                                "price": 57255
                            },
                            {
                                "id": 179,
                                "group": "wellness-services",
                                "value": "foot-massage",
                                "label": "Foot massage",
                                "price": 57255
                            }
                        ],
                        "languages": [
                            {
                                "id": 1,
                                "code": "en",
                                "name": "English"
                            },
                            {
                                "id": 2,
                                "code": "it",
                                "name": "Italian"
                            }
                        ],
                        "images": [
                            {
                                "id": 1,
                                "image": "https:\/\/loremflickr.com\/362\/180\/travel,italy\/?lock=43912",
                                "image_name": "",
                                "category": "gallery"
                            },
                            {
                                "id": 2,
                                "image": "https:\/\/loremflickr.com\/362\/180\/travel,italy\/?lock=58259",
                                "image_name": "",
                                "category": "gallery"
                            },
                            {
                                "id": 3,
                                "image": "https:\/\/loremflickr.com\/362\/180\/travel,italy\/?lock=54165",
                                "image_name": "",
                                "category": "gallery"
                            },
                            {
                                "id": 4,
                                "image": "https:\/\/loremflickr.com\/362\/180\/travel,italy\/?lock=71534",
                                "image_name": "",
                                "category": "gallery"
                            },
                            {
                                "id": 5,
                                "image": "https:\/\/loremflickr.com\/362\/180\/travel,italy\/?lock=62822",
                                "image_name": "",
                                "category": "gallery"
                            }
                        ]
                    },
                    "roles": [
                        "user",
                        "accomodation"
                    ],
                    "permissions": [],
                    "stripeAccount": {
                        "user_id": 2,
                        "accountId": "acct_1ITV4XFPn57bOta4",
                        "chargeEnable": 1
                    },
                    "affiliation_code": "APRA0D",
                    "subscription": {
                        "id": 2,
                        "active": 1,
                        "expirationDate": "2023-05-03",
                        "subscription": {
                            "id": 8,
                            "role": "touristGuide",
                            "type": "mega",
                            "price": 10000,
                            "monthPrice": 0,
                            "maxPost": "unlimited"
                        }
                    },
                    "tagStatus": "accepted"
                }
            ]
        }
    ]
}

HTTP Request

POST /api/events

Body Parameters

Parameter Type Status Description
title string required
description string optional
subcategory string optional
minAge integer optional
maxAge integer optional
manager string optional
scope string optional
initiativeAndOwnership string optional
location string required
latitude string required
longitude string required
types array required
types.*.id string required Valid event_type id
categories array required
categories.*.id string required Valid event_category id
images array required
images.*.image image required Must be an image (jpeg, png, bmp, gif, or svg)
images.*.category string optional gallery or health_and_hygiene_surveys
tags array optional
tags.*.id string required Valid tag id
services array optional
services.*.id string required Valid service id
languages array optional
languages.*.id string required Valid language id
recommended array optional
recommended.*.id string required Valid recommended id
availabilityPeriods array required
availabilityPeriods.*.dateStart date required Date format: Y-m-d
availabilityPeriods.*.dateEnd date required Date format: Y-m-d
availabilityPeriods.*.hourStart date required Date format: H:i
availabilityPeriods.*.hourEnd date required Date format: H:i
availabilityPeriods.*.priceType string required single_day or all_day
availabilityPeriods.*.price integer required
availabilityPeriods.*.lastMinutePrice integer required
availabilityPeriods.*.currency_id string required Valid currency id
availabilityPeriods.*.numPartecipants integer optional
availabilityPeriods.*.accessType string required presale, reservation or no_reservation
availabilityPeriods.*.accessExpiration date optional Date format: Y-m-d
availabilityPeriods.*.paymentMethod string optional credit_card or entrance
availabilityPeriods.*.cancellationPolicy string optional free or no_refundable
availabilityPeriods.*.cancellationDay integer optional
availabilityPeriods.*.description string optional
availabilityPeriods.*.dressCode string optional
availabilityPeriods.*.partners array optional
availabilityPeriods..partners..user_id string required Valid user id

Query Parameters

Parameter Status Description
title required
description optional
subcategory optional
minAge optional
maxAge optional
manager optional
scope optional
initiativeAndOwnership optional
location required
latitude required
longitude required
types required
types.*.id required Valid event_type id
categories required
categories.*.id required Valid event_category id
images required
images.*.image required Must be an image (jpeg, png, bmp, gif, or svg)
images.*.category optional gallery or health_and_hygiene_surveys
tags optional
tags.*.id required Valid tag id
services optional
services.*.id required Valid service id
languages optional
languages.*.id required Valid language id
recommended optional
recommended.*.id required Valid recommended id
availabilityPeriods required
availabilityPeriods.*.dateStart required Date format: Y-m-d
availabilityPeriods.*.dateEnd required Date format: Y-m-d
availabilityPeriods.*.hourStart required Date format: H:i
availabilityPeriods.*.hourEnd required Date format: H:i
availabilityPeriods.*.priceType required single_day or all_day
availabilityPeriods.*.price required
availabilityPeriods.*.lastMinutePrice required
availabilityPeriods.*.currency_id required Valid currency id
availabilityPeriods.*.numPartecipants optional
availabilityPeriods.*.accessType required presale, reservation or no_reservation
availabilityPeriods.*.accessExpiration optional Date format: Y-m-d
availabilityPeriods.*.paymentMethod optional credit_card or entrance
availabilityPeriods.*.cancellationPolicy optional free or no_refundable
availabilityPeriods.*.cancellationDay optional
availabilityPeriods.*.description optional
availabilityPeriods.*.dressCode optional
availabilityPeriods.*.partners optional
availabilityPeriods..partners..user_id required Valid user id

Update Event

Update an Events

Example request:

curl -X PUT "http://api.doitrip.com/api/events/1" \
    -H "Content-Type: application/json" \
    -d '{"title":"consequatur","description":"consequatur","types":[{"id":"consequatur"}],"categories":[{"id":"consequatur"}],"subcategory":"consequatur","minAge":5,"maxAge":5,"manager":"consequatur","scope":"consequatur","initiativeAndOwnership":"consequatur","numPartecipants":5,"location":"consequatur","latitude":"consequatur","longitude":"consequatur","access":"free","accessExpirationDate":"2021-05-07","dressCode":"consequatur","images":[{"image":"consequatur","category":"gallery"}],"tags":[{"id":"consequatur"}],"services":[{"id":"consequatur"}],"languages":[{"id":"consequatur"}],"recommended":[{"id":"consequatur"}],"availabilityPeriods":[{"dateStart":"2021-05-07","dateEnd":"2021-05-07","hourStart":"20:14","hourEnd":"20:14","priceType":"single_day","price":5,"presalePrice":5,"lastMinutePrice":5,"currency_id":"consequatur","numPartecipants":5,"accessType":"presale","accessExpiration":"2021-05-07","paymentMethod":"credit_card","cancellationPolicy":"free","cancellationDay":5,"description":"consequatur","dressCode":"consequatur","partners":[{"user_id":"consequatur"}]}]}'
const url = new URL("http://api.doitrip.com/api/events/1");

    let params = {
            "title": "consequatur",
            "description": "consequatur",
            "types": "consequatur",
            "types.*.id": "consequatur",
            "categories": "consequatur",
            "categories.*.id": "consequatur",
            "subcategory": "consequatur",
            "minAge": "5",
            "maxAge": "5",
            "manager": "consequatur",
            "scope": "consequatur",
            "initiativeAndOwnership": "consequatur",
            "numPartecipants": "5",
            "location": "consequatur",
            "latitude": "consequatur",
            "longitude": "consequatur",
            "access": "free",
            "accessExpirationDate": "2021-05-07",
            "dressCode": "consequatur",
            "images": "consequatur",
            "images.*.image": "consequatur",
            "images.*.category": "gallery",
            "tags": "consequatur",
            "tags.*.id": "consequatur",
            "services": "consequatur",
            "services.*.id": "consequatur",
            "languages": "consequatur",
            "languages.*.id": "consequatur",
            "recommended": "consequatur",
            "recommended.*.id": "consequatur",
            "availabilityPeriods": "consequatur",
            "availabilityPeriods.*.dateStart": "2021-05-07",
            "availabilityPeriods.*.dateEnd": "2021-05-07",
            "availabilityPeriods.*.hourStart": "20:14",
            "availabilityPeriods.*.hourEnd": "20:14",
            "availabilityPeriods.*.priceType": "single_day",
            "availabilityPeriods.*.price": "5",
            "availabilityPeriods.*.presalePrice": "5",
            "availabilityPeriods.*.lastMinutePrice": "5",
            "availabilityPeriods.*.currency_id": "consequatur",
            "availabilityPeriods.*.numPartecipants": "5",
            "availabilityPeriods.*.accessType": "presale",
            "availabilityPeriods.*.accessExpiration": "2021-05-07",
            "availabilityPeriods.*.paymentMethod": "credit_card",
            "availabilityPeriods.*.cancellationPolicy": "free",
            "availabilityPeriods.*.cancellationDay": "5",
            "availabilityPeriods.*.description": "consequatur",
            "availabilityPeriods.*.dressCode": "consequatur",
            "availabilityPeriods.*.partners": "consequatur",
            "availabilityPeriods.*.partners.*.user_id": "consequatur",
        };
    Object.keys(params).forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
}

let body = {
    "title": "consequatur",
    "description": "consequatur",
    "types": [
        {
            "id": "consequatur"
        }
    ],
    "categories": [
        {
            "id": "consequatur"
        }
    ],
    "subcategory": "consequatur",
    "minAge": 5,
    "maxAge": 5,
    "manager": "consequatur",
    "scope": "consequatur",
    "initiativeAndOwnership": "consequatur",
    "numPartecipants": 5,
    "location": "consequatur",
    "latitude": "consequatur",
    "longitude": "consequatur",
    "access": "free",
    "accessExpirationDate": "2021-05-07",
    "dressCode": "consequatur",
    "images": [
        {
            "image": "consequatur",
            "category": "gallery"
        }
    ],
    "tags": [
        {
            "id": "consequatur"
        }
    ],
    "services": [
        {
            "id": "consequatur"
        }
    ],
    "languages": [
        {
            "id": "consequatur"
        }
    ],
    "recommended": [
        {
            "id": "consequatur"
        }
    ],
    "availabilityPeriods": [
        {
            "dateStart": "2021-05-07",
            "dateEnd": "2021-05-07",
            "hourStart": "20:14",
            "hourEnd": "20:14",
            "priceType": "single_day",
            "price": 5,
            "presalePrice": 5,
            "lastMinutePrice": 5,
            "currency_id": "consequatur",
            "numPartecipants": 5,
            "accessType": "presale",
            "accessExpiration": "2021-05-07",
            "paymentMethod": "credit_card",
            "cancellationPolicy": "free",
            "cancellationDay": 5,
            "description": "consequatur",
            "dressCode": "consequatur",
            "partners": [
                {
                    "user_id": "consequatur"
                }
            ]
        }
    ]
}

fetch(url, {
    method: "PUT",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "id": 1,
    "title": "Nam rerum ullam nobis minima suscipit et repudiandae.",
    "description": "Delectus dolorum et consectetur ut dolore qui aut reiciendis. Et quae fugiat assumenda aut aspernatur ut eveniet. Dolores qui earum consequatur aut quae.",
    "creationDate": "2021-05-07T19:45:40.000000Z",
    "subcategory": "Alias aut cupiditate vel sapiente rerum.",
    "minAge": 99,
    "maxAge": 62,
    "manager": "D'Amore Group",
    "scope": "Aut saepe accusantium harum omnis.",
    "initiativeAndOwnership": "Et omnis esse minus aut.",
    "location": "74544 Bernhard Isle Apt. 124\nNew Eloiseton, WA 19966-0803",
    "latitude": "-8.442519",
    "longitude": "56.721943",
    "numPartecipants": null,
    "access": null,
    "accessExpirationDate": null,
    "dressCode": null,
    "user": {
        "id": 6,
        "profile": {
            "user_id": 6,
            "companyType": "society",
            "companyName": "Rippin, Thompson and ZemlakGroup",
            "firstName": "private field",
            "lastName": "private field",
            "country_id": 111,
            "city": "West Freida",
            "province": null,
            "address": null,
            "registeredOffice": "4691 Schowalter Forest\nLexiview, RI 24916-8234",
            "image": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=34086",
            "description": "Reverse-engineered executive encryption",
            "paymentMethod": "both",
            "paymentOther": "sint",
            "roles": [
                "user",
                "eventManager"
            ],
            "followers": 6,
            "fiscalCode": "private field",
            "vatNumber": "private field",
            "phonePrefix": "private field",
            "phoneNumber": "private field",
            "mobilePrefix": "private field",
            "mobileNumber": "private field",
            "faxPrefix": "private field",
            "faxNumber": "private field",
            "internetSite": "private field",
            "pecEmail": "private field",
            "contactEmail": "private field",
            "chamberCommerceRegistration": "private field",
            "identityDoc": "private field",
            "fiscalCodeDoc": "private field"
        },
        "roles": [
            "user",
            "eventManager"
        ],
        "permissions": [],
        "stripeAccount": {
            "user_id": 6,
            "accountId": "acct_1ITV4XFPn57bOta4",
            "chargeEnable": 1
        },
        "affiliation_code": "07PU8J",
        "subscription": null
    },
    "types": [
        {
            "id": 33,
            "value": "convivial",
            "label": "Convivial"
        }
    ],
    "categories": [
        {
            "id": 6,
            "value": "community-culture",
            "label": "Community and Culture"
        },
        {
            "id": 11,
            "value": "government-politics",
            "label": "Government and Politics"
        }
    ],
    "images": [
        {
            "id": 1748,
            "image": "https:\/\/loremflickr.com\/362\/180\/travel,italy\/?lock=64895",
            "image_name": "",
            "category": "gallery"
        },
        {
            "id": 1749,
            "image": "https:\/\/loremflickr.com\/362\/180\/travel,italy\/?lock=83686",
            "image_name": "",
            "category": "gallery"
        }
    ],
    "tags": [
        {
            "id": 10,
            "name": "temporibus"
        },
        {
            "id": 17,
            "name": "nisi"
        }
    ],
    "availabilityPeriods": [
        {
            "id": 1,
            "description": "Placeat magnam ab eligendi dignissimos nihil velit quia. Sit qui qui natus. Quos hic repellat assumenda occaecati dolores. Dicta quia a odio corporis et quasi optio.",
            "dateStart": "2049-10-06",
            "dateEnd": "2582-07-10",
            "hourStart": "01:04:20",
            "hourEnd": "14:23:57",
            "priceType": "single_day",
            "price": 72309,
            "presalePrice": 79629,
            "lastMinutePrice": 40925,
            "currency": {
                "id": 1,
                "name": "Euro",
                "code": "EUR",
                "symbol": "€",
                "created_at": null,
                "updated_at": null
            },
            "numPartecipants": 16,
            "accessType": "presale",
            "accessExpiration": "2192-10-29",
            "paymentMethod": "entrance",
            "cancellationPolicy": "free",
            "cancellationDay": 14,
            "dressCode": "Qui hic ut ut eveniet.",
            "partners": [
                {
                    "id": 3,
                    "profile": {
                        "user_id": 3,
                        "companyType": "society",
                        "companyName": "Pouros-GusikowskiGroup",
                        "firstName": "private field",
                        "lastName": "private field",
                        "country_id": 96,
                        "city": "Lake Davonchester",
                        "province": null,
                        "address": null,
                        "registeredOffice": "751 Brayan Via Suite 806\nChanelborough, CO 34207-4693",
                        "image": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=32707",
                        "description": "Optional non-volatile emulation",
                        "paymentMethod": "stripe",
                        "paymentOther": "est",
                        "roles": [
                            "user",
                            "accomodationManager"
                        ],
                        "followers": 9,
                        "fiscalCode": "private field",
                        "vatNumber": "private field",
                        "phonePrefix": "private field",
                        "phoneNumber": "private field",
                        "mobilePrefix": "private field",
                        "mobileNumber": "private field",
                        "faxPrefix": "private field",
                        "faxNumber": "private field",
                        "internetSite": "private field",
                        "pecEmail": "private field",
                        "contactEmail": "private field",
                        "chamberCommerceRegistration": "private field",
                        "identityDoc": "private field",
                        "fiscalCodeDoc": "private field"
                    },
                    "roles": [
                        "user",
                        "accomodationManager"
                    ],
                    "permissions": [],
                    "stripeAccount": {
                        "user_id": 3,
                        "accountId": "acct_1ITV4XFPn57bOta4",
                        "chargeEnable": 1
                    },
                    "affiliation_code": "W6BD2M",
                    "subscription": null,
                    "tagStatus": "accepted"
                }
            ]
        },
        {
            "id": 3,
            "description": "Occaecati quis et ut nihil. Tempore iusto nostrum rerum. Ut provident blanditiis facilis autem ut voluptates asperiores. Ducimus quas natus dolorem ut et recusandae est quas.",
            "dateStart": "2274-10-18",
            "dateEnd": "3484-11-23",
            "hourStart": "15:41:56",
            "hourEnd": "19:57:26",
            "priceType": "single_day",
            "price": 90388,
            "presalePrice": 63688,
            "lastMinutePrice": 47097,
            "currency": {
                "id": 1,
                "name": "Euro",
                "code": "EUR",
                "symbol": "€",
                "created_at": null,
                "updated_at": null
            },
            "numPartecipants": 26,
            "accessType": "no_reservation",
            "accessExpiration": "3321-07-24",
            "paymentMethod": "entrance",
            "cancellationPolicy": "free",
            "cancellationDay": 16,
            "dressCode": "Eligendi dolores animi iure similique aspernatur.",
            "partners": [
                {
                    "id": 19,
                    "profile": {
                        "user_id": 19,
                        "firstName": "Jermey",
                        "lastName": "Jenkins",
                        "gender": "F",
                        "birthDate": "1996-02-11",
                        "country_id": 120,
                        "city": "Port Guidofort",
                        "image": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=84268",
                        "description": "Quis praesentium illo ullam molestias soluta. Nisi atque doloribus voluptatem iusto ut esse. Est fuga ut molestias. Aspernatur earum porro est nemo itaque.",
                        "paymentMethod": "stripe",
                        "paymentOther": "aut",
                        "companionGrade": 0,
                        "roles": [
                            "user",
                            "traveler"
                        ],
                        "travelerTypes": [
                            {
                                "id": 3,
                                "value": "adventurer",
                                "label": "Adventurer"
                            }
                        ],
                        "languages": [
                            {
                                "id": 1,
                                "code": "en",
                                "name": "English"
                            }
                        ],
                        "natures": [
                            {
                                "id": 5,
                                "value": "foodandwine",
                                "label": "food and wine"
                            }
                        ],
                        "followers": 10,
                        "email": "private field",
                        "phoneNumber": "private field",
                        "fiscalCode": "private field",
                        "identityDoc": "private field"
                    },
                    "roles": [
                        "user",
                        "traveler"
                    ],
                    "permissions": [],
                    "stripeAccount": null,
                    "affiliation_code": "N8BKM5",
                    "subscription": {
                        "id": 18,
                        "active": 1,
                        "expirationDate": "2023-03-10",
                        "subscription": {
                            "id": 1,
                            "role": "traveler",
                            "type": "free",
                            "price": 0,
                            "monthPrice": 0,
                            "maxPost": "unlimited"
                        }
                    },
                    "tagStatus": "accepted"
                }
            ]
        },
        {
            "id": 2,
            "description": "Qui laudantium consequatur voluptas nostrum commodi rerum. Assumenda nihil sed magnam dignissimos qui harum quisquam. Deleniti non incidunt officia quibusdam quibusdam.",
            "dateStart": "2856-01-06",
            "dateEnd": "3148-06-05",
            "hourStart": "02:11:45",
            "hourEnd": "08:56:41",
            "priceType": "single_day",
            "price": 94626,
            "presalePrice": 98352,
            "lastMinutePrice": 21276,
            "currency": {
                "id": 1,
                "name": "Euro",
                "code": "EUR",
                "symbol": "€",
                "created_at": null,
                "updated_at": null
            },
            "numPartecipants": 50,
            "accessType": "reservation",
            "accessExpiration": "2236-03-12",
            "paymentMethod": "entrance",
            "cancellationPolicy": "no_refundable",
            "cancellationDay": 15,
            "dressCode": "Aut vitae voluptate velit et illum molestiae eius voluptates.",
            "partners": [
                {
                    "id": 2,
                    "profile": {
                        "user_id": 2,
                        "accomodationType": "alpine_refuge",
                        "accomodationName": "Reilly, Stamm and VonRuedenand Sons",
                        "vatNumber": "8765373403026",
                        "registeredOffice": "7750 Paxton Park\nGersonberg, KY 10487",
                        "country_id": {
                            "id": 184,
                            "code": "QA",
                            "name": "Qatar",
                            "created_at": "2021-05-07 19:39:09",
                            "updated_at": "2021-05-07 19:39:09"
                        },
                        "province": "Trinidad and Tobago",
                        "city": "New Clark",
                        "address": "685 Harris Trail Suite 721\nEast Julietfort, ME 72941-6111",
                        "latitude": "-79.336225",
                        "longitude": "136.131302",
                        "cityTax": 13,
                        "phonePrefix": "+83",
                        "phoneNumber": "2893022859",
                        "mobilePrefix": "+22",
                        "mobileNumber": "9169087732",
                        "faxPrefix": "+73",
                        "faxNumber": "6600753559",
                        "contactEmail": "terry.delaney@gmail.com",
                        "image": "https:\/\/loremflickr.com\/362\/180\/hotel\/?lock=63032",
                        "description": "Quidem voluptas atque nulla necessitatibus magni. Nihil quis non optio veniam dolores quod perspiciatis.",
                        "recommendations": "Non possimus voluptas beatae quaerat eos qui. Fugiat excepturi atque qui esse ipsum. Corrupti libero est atque.",
                        "yearOfConstruction": 1939,
                        "lastRenovation": 1925,
                        "rooms": 6,
                        "nonSmokingRooms": 6,
                        "beds": 18,
                        "handicappedRooms": 8,
                        "suites": 5,
                        "plans": 13,
                        "H24CheckIn": 1,
                        "checkInHourStart": "17:38:26",
                        "checkInHourEnd": "03:33:26",
                        "checkOutHourStart": "14:11:05",
                        "checkOutHourEnd": "18:05:09",
                        "petsAllowed": 0,
                        "petsSize": "big",
                        "stars": "2",
                        "qualityMark": "Rem est ipsam voluptatem ut ut quibusdam voluptas.",
                        "noClassification": 0,
                        "accomodationGrade": 0,
                        "roles": [
                            "user",
                            "accomodation"
                        ],
                        "roomPosts": 8,
                        "hotelServicesIncluded": [
                            {
                                "id": 32,
                                "group": "activities",
                                "value": "tennis-court",
                                "label": "Tennis court"
                            },
                            {
                                "id": 45,
                                "group": "activities",
                                "value": "Nightclub\/DJ",
                                "label": "Nightclub \/ DJ"
                            },
                            {
                                "id": 56,
                                "group": "activities",
                                "value": "snorkeling",
                                "label": "Snorkeling"
                            },
                            {
                                "id": 58,
                                "group": "activities",
                                "value": "equipped-and-supervised-beach",
                                "label": "Equipped and supervised beach"
                            },
                            {
                                "id": 121,
                                "group": "entertainment",
                                "value": "theater",
                                "label": "Theater"
                            },
                            {
                                "id": 126,
                                "group": "cleaning-services",
                                "value": "ironing-service",
                                "label": "Ironing service"
                            },
                            {
                                "id": 130,
                                "group": "business-services",
                                "value": "spaces-for-meetings\/banquets",
                                "label": "Spaces for meetings\/banquets"
                            },
                            {
                                "id": 137,
                                "group": "security",
                                "value": "CCTV-cameras-outside-the-facility",
                                "label": "CCTV cameras outside the facility"
                            }
                        ],
                        "hotelServicesNotIncluded": [
                            {
                                "id": 49,
                                "group": "activities",
                                "value": "nature-trails-in-the-lagoon",
                                "label": "Nature trails in the lagoon",
                                "price": 57255
                            },
                            {
                                "id": 107,
                                "group": "reception-services",
                                "value": "atm-machine",
                                "label": "ATM machine",
                                "price": 57255
                            },
                            {
                                "id": 168,
                                "group": "wellness-services",
                                "value": "body-bandages",
                                "label": "Body bandages",
                                "price": 57255
                            },
                            {
                                "id": 179,
                                "group": "wellness-services",
                                "value": "foot-massage",
                                "label": "Foot massage",
                                "price": 57255
                            }
                        ],
                        "languages": [
                            {
                                "id": 1,
                                "code": "en",
                                "name": "English"
                            },
                            {
                                "id": 2,
                                "code": "it",
                                "name": "Italian"
                            }
                        ],
                        "images": [
                            {
                                "id": 1,
                                "image": "https:\/\/loremflickr.com\/362\/180\/travel,italy\/?lock=43912",
                                "image_name": "",
                                "category": "gallery"
                            },
                            {
                                "id": 2,
                                "image": "https:\/\/loremflickr.com\/362\/180\/travel,italy\/?lock=58259",
                                "image_name": "",
                                "category": "gallery"
                            },
                            {
                                "id": 3,
                                "image": "https:\/\/loremflickr.com\/362\/180\/travel,italy\/?lock=54165",
                                "image_name": "",
                                "category": "gallery"
                            },
                            {
                                "id": 4,
                                "image": "https:\/\/loremflickr.com\/362\/180\/travel,italy\/?lock=71534",
                                "image_name": "",
                                "category": "gallery"
                            },
                            {
                                "id": 5,
                                "image": "https:\/\/loremflickr.com\/362\/180\/travel,italy\/?lock=62822",
                                "image_name": "",
                                "category": "gallery"
                            }
                        ]
                    },
                    "roles": [
                        "user",
                        "accomodation"
                    ],
                    "permissions": [],
                    "stripeAccount": {
                        "user_id": 2,
                        "accountId": "acct_1ITV4XFPn57bOta4",
                        "chargeEnable": 1
                    },
                    "affiliation_code": "APRA0D",
                    "subscription": {
                        "id": 2,
                        "active": 1,
                        "expirationDate": "2023-05-03",
                        "subscription": {
                            "id": 8,
                            "role": "touristGuide",
                            "type": "mega",
                            "price": 10000,
                            "monthPrice": 0,
                            "maxPost": "unlimited"
                        }
                    },
                    "tagStatus": "accepted"
                }
            ]
        }
    ]
}

HTTP Request

PUT /api/events/{id}

PATCH /api/events/{id}

Body Parameters

Parameter Type Status Description
title string required
description string optional
types array required
types.*.id string required Valid event_type id
categories array required
categories.*.id string required Valid event_category id
subcategory string optional
minAge integer optional
maxAge integer optional
manager string optional
scope string optional
initiativeAndOwnership string optional
numPartecipants integer optional
location string required
latitude string required
longitude string required
access string required free, free_ticket or paid
accessExpirationDate date required Date format: Y-m-d
dressCode string optional
images array optional
images.*.image image required Must be an image (jpeg, png, bmp, gif, or svg)
images.*.category string optional gallery or health_and_hygiene_surveys
tags array optional
tags.*.id string required Valid tag id
services array optional
services.*.id string required Valid service id
languages array optional
languages.*.id string required Valid language id
recommended array optional
recommended.*.id string required Valid recommended id
availabilityPeriods array required
availabilityPeriods.*.dateStart date required Date format: Y-m-d
availabilityPeriods.*.dateEnd date required Date format: Y-m-d
availabilityPeriods.*.hourStart date required Date format: H:i
availabilityPeriods.*.hourEnd date required Date format: H:i
availabilityPeriods.*.priceType string required single_day or all_day
availabilityPeriods.*.price integer required
availabilityPeriods.*.presalePrice integer required
availabilityPeriods.*.lastMinutePrice integer required
availabilityPeriods.*.currency_id string required Valid currency id
availabilityPeriods.*.numPartecipants integer optional
availabilityPeriods.*.accessType string required presale, reservation or no_reservation
availabilityPeriods.*.accessExpiration date optional Date format: Y-m-d
availabilityPeriods.*.paymentMethod string optional credit_card or entrance
availabilityPeriods.*.cancellationPolicy string optional free or no_refundable
availabilityPeriods.*.cancellationDay integer optional
availabilityPeriods.*.description string optional
availabilityPeriods.*.dressCode string optional
availabilityPeriods.*.partners array optional
availabilityPeriods..partners..user_id string required Valid user id

Query Parameters

Parameter Status Description
title required
description optional
types required
types.*.id required Valid event_type id
categories required
categories.*.id required Valid event_category id
subcategory optional
minAge optional
maxAge optional
manager optional
scope optional
initiativeAndOwnership optional
numPartecipants optional
location required
latitude required
longitude required
access required free, free_ticket or paid
accessExpirationDate required Date format: Y-m-d
dressCode optional
images optional
images.*.image required Must be an image (jpeg, png, bmp, gif, or svg)
images.*.category optional gallery or health_and_hygiene_surveys
tags optional
tags.*.id required Valid tag id
services optional
services.*.id required Valid service id
languages optional
languages.*.id required Valid language id
recommended optional
recommended.*.id required Valid recommended id
availabilityPeriods required
availabilityPeriods.*.dateStart required Date format: Y-m-d
availabilityPeriods.*.dateEnd required Date format: Y-m-d
availabilityPeriods.*.hourStart required Date format: H:i
availabilityPeriods.*.hourEnd required Date format: H:i
availabilityPeriods.*.priceType required single_day or all_day
availabilityPeriods.*.price required
availabilityPeriods.*.presalePrice required
availabilityPeriods.*.lastMinutePrice required
availabilityPeriods.*.currency_id required Valid currency id
availabilityPeriods.*.numPartecipants optional
availabilityPeriods.*.accessType required presale, reservation or no_reservation
availabilityPeriods.*.accessExpiration optional Date format: Y-m-d
availabilityPeriods.*.paymentMethod optional credit_card or entrance
availabilityPeriods.*.cancellationPolicy optional free or no_refundable
availabilityPeriods.*.cancellationDay optional
availabilityPeriods.*.description optional
availabilityPeriods.*.dressCode optional
availabilityPeriods.*.partners optional
availabilityPeriods..partners..user_id required Valid user id

Destroy Event

Destroy an Events

Example request:

curl -X DELETE "http://api.doitrip.com/api/events/1" 
const url = new URL("http://api.doitrip.com/api/events/1");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "DELETE",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

HTTP Request

DELETE /api/events/{id}

Search Reservations of Logged EventManager


Requires authentication

Example request:

curl -X GET -G "http://api.doitrip.com/api/event-reservations/eventManager" 
const url = new URL("http://api.doitrip.com/api/event-reservations/eventManager");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response:

null

HTTP Request

GET /api/event-reservations/eventManager

Search Reservations of Logged Traveler


Requires authentication

Example request:

curl -X GET -G "http://api.doitrip.com/api/event-reservations/traveler" \
    -H "Content-Type: application/json" \
    -d '{"search":{"event_id":"quibusdam","event":{"user_id":"quibusdam"},"date":"2021-05-07"},"searchJoin":"or","perPage":25932082,"page":25932082,"orderBy":"id","sortedBy":"desc"}'
const url = new URL("http://api.doitrip.com/api/event-reservations/traveler");

    let params = {
            "search.event_id": "quibusdam",
            "search.event.user_id": "quibusdam",
            "search.date": "2021-05-07",
            "searchJoin": "or",
            "perPage": "25932082",
            "page": "25932082",
            "orderBy": "id",
            "sortedBy": "desc",
        };
    Object.keys(params).forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
}

let body = {
    "search": {
        "event_id": "quibusdam",
        "event": {
            "user_id": "quibusdam"
        },
        "date": "2021-05-07"
    },
    "searchJoin": "or",
    "perPage": 25932082,
    "page": 25932082,
    "orderBy": "id",
    "sortedBy": "desc"
}

fetch(url, {
    method: "GET",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response:

null

HTTP Request

GET /api/event-reservations/traveler

Body Parameters

Parameter Type Status Description
search.event_id string optional
search.event.user_id string optional
search.date date optional Date format: Y-m-d
searchJoin string optional and or or
perPage numeric optional
page numeric optional
orderBy string optional id
sortedBy string optional asc or desc

Query Parameters

Parameter Status Description
search.event_id optional
search.event.user_id optional
search.date optional Date format: Y-m-d
searchJoin optional and or or
perPage optional
page optional
orderBy optional id
sortedBy optional asc or desc

Insert Reservation Event


Requires authentication Insert Events

Example request:

curl -X POST "http://api.doitrip.com/api/event-reservations" \
    -H "Content-Type: application/json" \
    -d '{"event_availability_period_id":"quibusdam","date":"2021-05-07","numPartecipants":25932082}'
const url = new URL("http://api.doitrip.com/api/event-reservations");

    let params = {
            "event_availability_period_id": "quibusdam",
            "date": "2021-05-07",
            "numPartecipants": "25932082",
        };
    Object.keys(params).forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
}

let body = {
    "event_availability_period_id": "quibusdam",
    "date": "2021-05-07",
    "numPartecipants": 25932082
}

fetch(url, {
    method: "POST",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "id": 1,
    "user": {
        "id": 7,
        "profile": {
            "user_id": 7,
            "companyType": "society",
            "companyName": "Prosacco, Emmerich and Donnellyand Sons",
            "firstName": "private field",
            "lastName": "private field",
            "country_id": 243,
            "city": "Port Jackeline",
            "province": null,
            "address": null,
            "registeredOffice": "552 Wolf Stream\nSouth Cloyd, IN 52050",
            "image": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=18118",
            "description": "Realigned assymetric circuit",
            "paymentMethod": "both",
            "paymentOther": "tempore",
            "roles": [
                "user",
                "ecommerceSeller"
            ],
            "followers": 11,
            "fiscalCode": "private field",
            "vatNumber": "private field",
            "phonePrefix": "private field",
            "phoneNumber": "private field",
            "mobilePrefix": "private field",
            "mobileNumber": "private field",
            "faxPrefix": "private field",
            "faxNumber": "private field",
            "internetSite": "private field",
            "pecEmail": "private field",
            "contactEmail": "private field",
            "chamberCommerceRegistration": "private field",
            "identityDoc": "private field",
            "fiscalCodeDoc": "private field"
        },
        "roles": [
            "user",
            "ecommerceSeller"
        ],
        "permissions": [],
        "stripeAccount": {
            "user_id": 7,
            "accountId": "acct_1ITV4XFPn57bOta4",
            "chargeEnable": 1
        },
        "affiliation_code": "1EZC5P",
        "subscription": null
    },
    "event": {
        "id": 1,
        "title": "Nam rerum ullam nobis minima suscipit et repudiandae.",
        "description": "Delectus dolorum et consectetur ut dolore qui aut reiciendis. Et quae fugiat assumenda aut aspernatur ut eveniet. Dolores qui earum consequatur aut quae.",
        "creationDate": "2021-05-07T19:45:40.000000Z",
        "subcategory": "Alias aut cupiditate vel sapiente rerum.",
        "minAge": 99,
        "maxAge": 62,
        "manager": "D'Amore Group",
        "scope": "Aut saepe accusantium harum omnis.",
        "initiativeAndOwnership": "Et omnis esse minus aut.",
        "location": "74544 Bernhard Isle Apt. 124\nNew Eloiseton, WA 19966-0803",
        "latitude": "-8.442519",
        "longitude": "56.721943",
        "numPartecipants": null,
        "access": null,
        "accessExpirationDate": null,
        "dressCode": null,
        "user": {
            "id": 6,
            "profile": {
                "user_id": 6,
                "companyType": "society",
                "companyName": "Rippin, Thompson and ZemlakGroup",
                "firstName": "private field",
                "lastName": "private field",
                "country_id": 111,
                "city": "West Freida",
                "province": null,
                "address": null,
                "registeredOffice": "4691 Schowalter Forest\nLexiview, RI 24916-8234",
                "image": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=34086",
                "description": "Reverse-engineered executive encryption",
                "paymentMethod": "both",
                "paymentOther": "sint",
                "roles": [
                    "user",
                    "eventManager"
                ],
                "followers": 6,
                "fiscalCode": "private field",
                "vatNumber": "private field",
                "phonePrefix": "private field",
                "phoneNumber": "private field",
                "mobilePrefix": "private field",
                "mobileNumber": "private field",
                "faxPrefix": "private field",
                "faxNumber": "private field",
                "internetSite": "private field",
                "pecEmail": "private field",
                "contactEmail": "private field",
                "chamberCommerceRegistration": "private field",
                "identityDoc": "private field",
                "fiscalCodeDoc": "private field"
            },
            "roles": [
                "user",
                "eventManager"
            ],
            "permissions": [],
            "stripeAccount": {
                "user_id": 6,
                "accountId": "acct_1ITV4XFPn57bOta4",
                "chargeEnable": 1
            },
            "affiliation_code": "07PU8J",
            "subscription": null
        },
        "types": [
            {
                "id": 33,
                "value": "convivial",
                "label": "Convivial"
            }
        ],
        "categories": [
            {
                "id": 6,
                "value": "community-culture",
                "label": "Community and Culture"
            },
            {
                "id": 11,
                "value": "government-politics",
                "label": "Government and Politics"
            }
        ],
        "images": [
            {
                "id": 1748,
                "image": "https:\/\/loremflickr.com\/362\/180\/travel,italy\/?lock=64895",
                "image_name": "",
                "category": "gallery"
            },
            {
                "id": 1749,
                "image": "https:\/\/loremflickr.com\/362\/180\/travel,italy\/?lock=83686",
                "image_name": "",
                "category": "gallery"
            }
        ],
        "tags": [
            {
                "id": 10,
                "name": "temporibus"
            },
            {
                "id": 17,
                "name": "nisi"
            }
        ],
        "availabilityPeriods": [
            {
                "id": 1,
                "description": "Placeat magnam ab eligendi dignissimos nihil velit quia. Sit qui qui natus. Quos hic repellat assumenda occaecati dolores. Dicta quia a odio corporis et quasi optio.",
                "dateStart": "2049-10-06",
                "dateEnd": "2582-07-10",
                "hourStart": "01:04:20",
                "hourEnd": "14:23:57",
                "priceType": "single_day",
                "price": 72309,
                "presalePrice": 79629,
                "lastMinutePrice": 40925,
                "currency": {
                    "id": 1,
                    "name": "Euro",
                    "code": "EUR",
                    "symbol": "€",
                    "created_at": null,
                    "updated_at": null
                },
                "numPartecipants": 16,
                "accessType": "presale",
                "accessExpiration": "2192-10-29",
                "paymentMethod": "entrance",
                "cancellationPolicy": "free",
                "cancellationDay": 14,
                "dressCode": "Qui hic ut ut eveniet.",
                "partners": [
                    {
                        "id": 3,
                        "profile": {
                            "user_id": 3,
                            "companyType": "society",
                            "companyName": "Pouros-GusikowskiGroup",
                            "firstName": "private field",
                            "lastName": "private field",
                            "country_id": 96,
                            "city": "Lake Davonchester",
                            "province": null,
                            "address": null,
                            "registeredOffice": "751 Brayan Via Suite 806\nChanelborough, CO 34207-4693",
                            "image": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=32707",
                            "description": "Optional non-volatile emulation",
                            "paymentMethod": "stripe",
                            "paymentOther": "est",
                            "roles": [
                                "user",
                                "accomodationManager"
                            ],
                            "followers": 9,
                            "fiscalCode": "private field",
                            "vatNumber": "private field",
                            "phonePrefix": "private field",
                            "phoneNumber": "private field",
                            "mobilePrefix": "private field",
                            "mobileNumber": "private field",
                            "faxPrefix": "private field",
                            "faxNumber": "private field",
                            "internetSite": "private field",
                            "pecEmail": "private field",
                            "contactEmail": "private field",
                            "chamberCommerceRegistration": "private field",
                            "identityDoc": "private field",
                            "fiscalCodeDoc": "private field"
                        },
                        "roles": [
                            "user",
                            "accomodationManager"
                        ],
                        "permissions": [],
                        "stripeAccount": {
                            "user_id": 3,
                            "accountId": "acct_1ITV4XFPn57bOta4",
                            "chargeEnable": 1
                        },
                        "affiliation_code": "W6BD2M",
                        "subscription": null,
                        "tagStatus": "accepted"
                    }
                ]
            },
            {
                "id": 3,
                "description": "Occaecati quis et ut nihil. Tempore iusto nostrum rerum. Ut provident blanditiis facilis autem ut voluptates asperiores. Ducimus quas natus dolorem ut et recusandae est quas.",
                "dateStart": "2274-10-18",
                "dateEnd": "3484-11-23",
                "hourStart": "15:41:56",
                "hourEnd": "19:57:26",
                "priceType": "single_day",
                "price": 90388,
                "presalePrice": 63688,
                "lastMinutePrice": 47097,
                "currency": {
                    "id": 1,
                    "name": "Euro",
                    "code": "EUR",
                    "symbol": "€",
                    "created_at": null,
                    "updated_at": null
                },
                "numPartecipants": 26,
                "accessType": "no_reservation",
                "accessExpiration": "3321-07-24",
                "paymentMethod": "entrance",
                "cancellationPolicy": "free",
                "cancellationDay": 16,
                "dressCode": "Eligendi dolores animi iure similique aspernatur.",
                "partners": [
                    {
                        "id": 19,
                        "profile": {
                            "user_id": 19,
                            "firstName": "Jermey",
                            "lastName": "Jenkins",
                            "gender": "F",
                            "birthDate": "1996-02-11",
                            "country_id": 120,
                            "city": "Port Guidofort",
                            "image": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=84268",
                            "description": "Quis praesentium illo ullam molestias soluta. Nisi atque doloribus voluptatem iusto ut esse. Est fuga ut molestias. Aspernatur earum porro est nemo itaque.",
                            "paymentMethod": "stripe",
                            "paymentOther": "aut",
                            "companionGrade": 0,
                            "roles": [
                                "user",
                                "traveler"
                            ],
                            "travelerTypes": [
                                {
                                    "id": 3,
                                    "value": "adventurer",
                                    "label": "Adventurer"
                                }
                            ],
                            "languages": [
                                {
                                    "id": 1,
                                    "code": "en",
                                    "name": "English"
                                }
                            ],
                            "natures": [
                                {
                                    "id": 5,
                                    "value": "foodandwine",
                                    "label": "food and wine"
                                }
                            ],
                            "followers": 10,
                            "email": "private field",
                            "phoneNumber": "private field",
                            "fiscalCode": "private field",
                            "identityDoc": "private field"
                        },
                        "roles": [
                            "user",
                            "traveler"
                        ],
                        "permissions": [],
                        "stripeAccount": null,
                        "affiliation_code": "N8BKM5",
                        "subscription": {
                            "id": 18,
                            "active": 1,
                            "expirationDate": "2023-03-10",
                            "subscription": {
                                "id": 1,
                                "role": "traveler",
                                "type": "free",
                                "price": 0,
                                "monthPrice": 0,
                                "maxPost": "unlimited"
                            }
                        },
                        "tagStatus": "accepted"
                    }
                ]
            },
            {
                "id": 2,
                "description": "Qui laudantium consequatur voluptas nostrum commodi rerum. Assumenda nihil sed magnam dignissimos qui harum quisquam. Deleniti non incidunt officia quibusdam quibusdam.",
                "dateStart": "2856-01-06",
                "dateEnd": "3148-06-05",
                "hourStart": "02:11:45",
                "hourEnd": "08:56:41",
                "priceType": "single_day",
                "price": 94626,
                "presalePrice": 98352,
                "lastMinutePrice": 21276,
                "currency": {
                    "id": 1,
                    "name": "Euro",
                    "code": "EUR",
                    "symbol": "€",
                    "created_at": null,
                    "updated_at": null
                },
                "numPartecipants": 50,
                "accessType": "reservation",
                "accessExpiration": "2236-03-12",
                "paymentMethod": "entrance",
                "cancellationPolicy": "no_refundable",
                "cancellationDay": 15,
                "dressCode": "Aut vitae voluptate velit et illum molestiae eius voluptates.",
                "partners": [
                    {
                        "id": 2,
                        "profile": {
                            "user_id": 2,
                            "accomodationType": "alpine_refuge",
                            "accomodationName": "Reilly, Stamm and VonRuedenand Sons",
                            "vatNumber": "8765373403026",
                            "registeredOffice": "7750 Paxton Park\nGersonberg, KY 10487",
                            "country_id": {
                                "id": 184,
                                "code": "QA",
                                "name": "Qatar",
                                "created_at": "2021-05-07 19:39:09",
                                "updated_at": "2021-05-07 19:39:09"
                            },
                            "province": "Trinidad and Tobago",
                            "city": "New Clark",
                            "address": "685 Harris Trail Suite 721\nEast Julietfort, ME 72941-6111",
                            "latitude": "-79.336225",
                            "longitude": "136.131302",
                            "cityTax": 13,
                            "phonePrefix": "+83",
                            "phoneNumber": "2893022859",
                            "mobilePrefix": "+22",
                            "mobileNumber": "9169087732",
                            "faxPrefix": "+73",
                            "faxNumber": "6600753559",
                            "contactEmail": "terry.delaney@gmail.com",
                            "image": "https:\/\/loremflickr.com\/362\/180\/hotel\/?lock=63032",
                            "description": "Quidem voluptas atque nulla necessitatibus magni. Nihil quis non optio veniam dolores quod perspiciatis.",
                            "recommendations": "Non possimus voluptas beatae quaerat eos qui. Fugiat excepturi atque qui esse ipsum. Corrupti libero est atque.",
                            "yearOfConstruction": 1939,
                            "lastRenovation": 1925,
                            "rooms": 6,
                            "nonSmokingRooms": 6,
                            "beds": 18,
                            "handicappedRooms": 8,
                            "suites": 5,
                            "plans": 13,
                            "H24CheckIn": 1,
                            "checkInHourStart": "17:38:26",
                            "checkInHourEnd": "03:33:26",
                            "checkOutHourStart": "14:11:05",
                            "checkOutHourEnd": "18:05:09",
                            "petsAllowed": 0,
                            "petsSize": "big",
                            "stars": "2",
                            "qualityMark": "Rem est ipsam voluptatem ut ut quibusdam voluptas.",
                            "noClassification": 0,
                            "accomodationGrade": 0,
                            "roles": [
                                "user",
                                "accomodation"
                            ],
                            "roomPosts": 8,
                            "hotelServicesIncluded": [
                                {
                                    "id": 32,
                                    "group": "activities",
                                    "value": "tennis-court",
                                    "label": "Tennis court"
                                },
                                {
                                    "id": 45,
                                    "group": "activities",
                                    "value": "Nightclub\/DJ",
                                    "label": "Nightclub \/ DJ"
                                },
                                {
                                    "id": 56,
                                    "group": "activities",
                                    "value": "snorkeling",
                                    "label": "Snorkeling"
                                },
                                {
                                    "id": 58,
                                    "group": "activities",
                                    "value": "equipped-and-supervised-beach",
                                    "label": "Equipped and supervised beach"
                                },
                                {
                                    "id": 121,
                                    "group": "entertainment",
                                    "value": "theater",
                                    "label": "Theater"
                                },
                                {
                                    "id": 126,
                                    "group": "cleaning-services",
                                    "value": "ironing-service",
                                    "label": "Ironing service"
                                },
                                {
                                    "id": 130,
                                    "group": "business-services",
                                    "value": "spaces-for-meetings\/banquets",
                                    "label": "Spaces for meetings\/banquets"
                                },
                                {
                                    "id": 137,
                                    "group": "security",
                                    "value": "CCTV-cameras-outside-the-facility",
                                    "label": "CCTV cameras outside the facility"
                                }
                            ],
                            "hotelServicesNotIncluded": [
                                {
                                    "id": 49,
                                    "group": "activities",
                                    "value": "nature-trails-in-the-lagoon",
                                    "label": "Nature trails in the lagoon",
                                    "price": 57255
                                },
                                {
                                    "id": 107,
                                    "group": "reception-services",
                                    "value": "atm-machine",
                                    "label": "ATM machine",
                                    "price": 57255
                                },
                                {
                                    "id": 168,
                                    "group": "wellness-services",
                                    "value": "body-bandages",
                                    "label": "Body bandages",
                                    "price": 57255
                                },
                                {
                                    "id": 179,
                                    "group": "wellness-services",
                                    "value": "foot-massage",
                                    "label": "Foot massage",
                                    "price": 57255
                                }
                            ],
                            "languages": [
                                {
                                    "id": 1,
                                    "code": "en",
                                    "name": "English"
                                },
                                {
                                    "id": 2,
                                    "code": "it",
                                    "name": "Italian"
                                }
                            ],
                            "images": [
                                {
                                    "id": 1,
                                    "image": "https:\/\/loremflickr.com\/362\/180\/travel,italy\/?lock=43912",
                                    "image_name": "",
                                    "category": "gallery"
                                },
                                {
                                    "id": 2,
                                    "image": "https:\/\/loremflickr.com\/362\/180\/travel,italy\/?lock=58259",
                                    "image_name": "",
                                    "category": "gallery"
                                },
                                {
                                    "id": 3,
                                    "image": "https:\/\/loremflickr.com\/362\/180\/travel,italy\/?lock=54165",
                                    "image_name": "",
                                    "category": "gallery"
                                },
                                {
                                    "id": 4,
                                    "image": "https:\/\/loremflickr.com\/362\/180\/travel,italy\/?lock=71534",
                                    "image_name": "",
                                    "category": "gallery"
                                },
                                {
                                    "id": 5,
                                    "image": "https:\/\/loremflickr.com\/362\/180\/travel,italy\/?lock=62822",
                                    "image_name": "",
                                    "category": "gallery"
                                }
                            ]
                        },
                        "roles": [
                            "user",
                            "accomodation"
                        ],
                        "permissions": [],
                        "stripeAccount": {
                            "user_id": 2,
                            "accountId": "acct_1ITV4XFPn57bOta4",
                            "chargeEnable": 1
                        },
                        "affiliation_code": "APRA0D",
                        "subscription": {
                            "id": 2,
                            "active": 1,
                            "expirationDate": "2023-05-03",
                            "subscription": {
                                "id": 8,
                                "role": "touristGuide",
                                "type": "mega",
                                "price": 10000,
                                "monthPrice": 0,
                                "maxPost": "unlimited"
                            }
                        },
                        "tagStatus": "accepted"
                    }
                ]
            }
        ]
    },
    "period": {
        "id": 1,
        "description": "Placeat magnam ab eligendi dignissimos nihil velit quia. Sit qui qui natus. Quos hic repellat assumenda occaecati dolores. Dicta quia a odio corporis et quasi optio.",
        "dateStart": "2049-10-06",
        "dateEnd": "2582-07-10",
        "hourStart": "01:04:20",
        "hourEnd": "14:23:57",
        "priceType": "single_day",
        "price": 72309,
        "presalePrice": 79629,
        "lastMinutePrice": 40925,
        "currency": {
            "id": 1,
            "name": "Euro",
            "code": "EUR",
            "symbol": "€",
            "created_at": null,
            "updated_at": null
        },
        "numPartecipants": 16,
        "accessType": "presale",
        "accessExpiration": "2192-10-29",
        "paymentMethod": "entrance",
        "cancellationPolicy": "free",
        "cancellationDay": 14,
        "dressCode": "Qui hic ut ut eveniet.",
        "partners": [
            {
                "id": 3,
                "profile": {
                    "user_id": 3,
                    "companyType": "society",
                    "companyName": "Pouros-GusikowskiGroup",
                    "firstName": "private field",
                    "lastName": "private field",
                    "country_id": 96,
                    "city": "Lake Davonchester",
                    "province": null,
                    "address": null,
                    "registeredOffice": "751 Brayan Via Suite 806\nChanelborough, CO 34207-4693",
                    "image": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=32707",
                    "description": "Optional non-volatile emulation",
                    "paymentMethod": "stripe",
                    "paymentOther": "est",
                    "roles": [
                        "user",
                        "accomodationManager"
                    ],
                    "followers": 9,
                    "fiscalCode": "private field",
                    "vatNumber": "private field",
                    "phonePrefix": "private field",
                    "phoneNumber": "private field",
                    "mobilePrefix": "private field",
                    "mobileNumber": "private field",
                    "faxPrefix": "private field",
                    "faxNumber": "private field",
                    "internetSite": "private field",
                    "pecEmail": "private field",
                    "contactEmail": "private field",
                    "chamberCommerceRegistration": "private field",
                    "identityDoc": "private field",
                    "fiscalCodeDoc": "private field"
                },
                "roles": [
                    "user",
                    "accomodationManager"
                ],
                "permissions": [],
                "stripeAccount": {
                    "user_id": 3,
                    "accountId": "acct_1ITV4XFPn57bOta4",
                    "chargeEnable": 1
                },
                "affiliation_code": "W6BD2M",
                "subscription": null,
                "tagStatus": "accepted"
            }
        ]
    },
    "date": "1994-06-09",
    "numPartecipants": 1
}

HTTP Request

POST /api/event-reservations

Body Parameters

Parameter Type Status Description
event_availability_period_id string required Valid event_availability_period id
date date optional Date format: Y-m-d
numPartecipants integer required

Query Parameters

Parameter Status Description
event_availability_period_id required Valid event_availability_period id
date optional Date format: Y-m-d
numPartecipants required

Request Delete Event Reservation


Requires authentication

Example request:

curl -X POST "http://api.doitrip.com/api/event-reservations/1/request-delete" 
const url = new URL("http://api.doitrip.com/api/event-reservations/1/request-delete");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "POST",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

HTTP Request

POST /api/event-reservations/{id}/request-delete

Update Partner Tags


Requires authentication Update an Events

Example request:

curl -X PUT "http://api.doitrip.com/api/event/partner/1" \
    -H "Content-Type: application/json" \
    -d '{"tagStatus":"accepted"}'
const url = new URL("http://api.doitrip.com/api/event/partner/1");

    let params = {
            "tagStatus": "accepted",
        };
    Object.keys(params).forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
}

let body = {
    "tagStatus": "accepted"
}

fetch(url, {
    method: "PUT",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "id": 1,
    "tagStatus": "accepted",
    "partner": {
        "id": 3,
        "profile": {
            "user_id": 3,
            "companyType": "society",
            "companyName": "Pouros-GusikowskiGroup",
            "firstName": "private field",
            "lastName": "private field",
            "country_id": 96,
            "city": "Lake Davonchester",
            "province": null,
            "address": null,
            "registeredOffice": "751 Brayan Via Suite 806\nChanelborough, CO 34207-4693",
            "image": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=32707",
            "description": "Optional non-volatile emulation",
            "paymentMethod": "stripe",
            "paymentOther": "est",
            "roles": [
                "user",
                "accomodationManager"
            ],
            "followers": 9,
            "fiscalCode": "private field",
            "vatNumber": "private field",
            "phonePrefix": "private field",
            "phoneNumber": "private field",
            "mobilePrefix": "private field",
            "mobileNumber": "private field",
            "faxPrefix": "private field",
            "faxNumber": "private field",
            "internetSite": "private field",
            "pecEmail": "private field",
            "contactEmail": "private field",
            "chamberCommerceRegistration": "private field",
            "identityDoc": "private field",
            "fiscalCodeDoc": "private field"
        },
        "roles": [
            "user",
            "accomodationManager"
        ],
        "permissions": [],
        "stripeAccount": {
            "user_id": 3,
            "accountId": "acct_1ITV4XFPn57bOta4",
            "chargeEnable": 1
        },
        "affiliation_code": "W6BD2M",
        "subscription": null
    },
    "event": {
        "id": 1,
        "title": "Nam rerum ullam nobis minima suscipit et repudiandae.",
        "description": "Delectus dolorum et consectetur ut dolore qui aut reiciendis. Et quae fugiat assumenda aut aspernatur ut eveniet. Dolores qui earum consequatur aut quae.",
        "creationDate": "2021-05-07T19:45:40.000000Z",
        "subcategory": "Alias aut cupiditate vel sapiente rerum.",
        "minAge": 99,
        "maxAge": 62,
        "manager": "D'Amore Group",
        "scope": "Aut saepe accusantium harum omnis.",
        "initiativeAndOwnership": "Et omnis esse minus aut.",
        "location": "74544 Bernhard Isle Apt. 124\nNew Eloiseton, WA 19966-0803",
        "latitude": "-8.442519",
        "longitude": "56.721943",
        "numPartecipants": null,
        "access": null,
        "accessExpirationDate": null,
        "dressCode": null,
        "user": {
            "id": 6,
            "profile": {
                "user_id": 6,
                "companyType": "society",
                "companyName": "Rippin, Thompson and ZemlakGroup",
                "firstName": "private field",
                "lastName": "private field",
                "country_id": 111,
                "city": "West Freida",
                "province": null,
                "address": null,
                "registeredOffice": "4691 Schowalter Forest\nLexiview, RI 24916-8234",
                "image": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=34086",
                "description": "Reverse-engineered executive encryption",
                "paymentMethod": "both",
                "paymentOther": "sint",
                "roles": [
                    "user",
                    "eventManager"
                ],
                "followers": 6,
                "fiscalCode": "private field",
                "vatNumber": "private field",
                "phonePrefix": "private field",
                "phoneNumber": "private field",
                "mobilePrefix": "private field",
                "mobileNumber": "private field",
                "faxPrefix": "private field",
                "faxNumber": "private field",
                "internetSite": "private field",
                "pecEmail": "private field",
                "contactEmail": "private field",
                "chamberCommerceRegistration": "private field",
                "identityDoc": "private field",
                "fiscalCodeDoc": "private field"
            },
            "roles": [
                "user",
                "eventManager"
            ],
            "permissions": [],
            "stripeAccount": {
                "user_id": 6,
                "accountId": "acct_1ITV4XFPn57bOta4",
                "chargeEnable": 1
            },
            "affiliation_code": "07PU8J",
            "subscription": null
        },
        "types": [
            {
                "id": 33,
                "value": "convivial",
                "label": "Convivial"
            }
        ],
        "categories": [
            {
                "id": 6,
                "value": "community-culture",
                "label": "Community and Culture"
            },
            {
                "id": 11,
                "value": "government-politics",
                "label": "Government and Politics"
            }
        ],
        "images": [
            {
                "id": 1748,
                "image": "https:\/\/loremflickr.com\/362\/180\/travel,italy\/?lock=64895",
                "image_name": "",
                "category": "gallery"
            },
            {
                "id": 1749,
                "image": "https:\/\/loremflickr.com\/362\/180\/travel,italy\/?lock=83686",
                "image_name": "",
                "category": "gallery"
            }
        ],
        "tags": [
            {
                "id": 10,
                "name": "temporibus"
            },
            {
                "id": 17,
                "name": "nisi"
            }
        ],
        "availabilityPeriods": [
            {
                "id": 1,
                "description": "Placeat magnam ab eligendi dignissimos nihil velit quia. Sit qui qui natus. Quos hic repellat assumenda occaecati dolores. Dicta quia a odio corporis et quasi optio.",
                "dateStart": "2049-10-06",
                "dateEnd": "2582-07-10",
                "hourStart": "01:04:20",
                "hourEnd": "14:23:57",
                "priceType": "single_day",
                "price": 72309,
                "presalePrice": 79629,
                "lastMinutePrice": 40925,
                "currency": {
                    "id": 1,
                    "name": "Euro",
                    "code": "EUR",
                    "symbol": "€",
                    "created_at": null,
                    "updated_at": null
                },
                "numPartecipants": 16,
                "accessType": "presale",
                "accessExpiration": "2192-10-29",
                "paymentMethod": "entrance",
                "cancellationPolicy": "free",
                "cancellationDay": 14,
                "dressCode": "Qui hic ut ut eveniet.",
                "partners": [
                    {
                        "id": 3,
                        "profile": {
                            "user_id": 3,
                            "companyType": "society",
                            "companyName": "Pouros-GusikowskiGroup",
                            "firstName": "private field",
                            "lastName": "private field",
                            "country_id": 96,
                            "city": "Lake Davonchester",
                            "province": null,
                            "address": null,
                            "registeredOffice": "751 Brayan Via Suite 806\nChanelborough, CO 34207-4693",
                            "image": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=32707",
                            "description": "Optional non-volatile emulation",
                            "paymentMethod": "stripe",
                            "paymentOther": "est",
                            "roles": [
                                "user",
                                "accomodationManager"
                            ],
                            "followers": 9,
                            "fiscalCode": "private field",
                            "vatNumber": "private field",
                            "phonePrefix": "private field",
                            "phoneNumber": "private field",
                            "mobilePrefix": "private field",
                            "mobileNumber": "private field",
                            "faxPrefix": "private field",
                            "faxNumber": "private field",
                            "internetSite": "private field",
                            "pecEmail": "private field",
                            "contactEmail": "private field",
                            "chamberCommerceRegistration": "private field",
                            "identityDoc": "private field",
                            "fiscalCodeDoc": "private field"
                        },
                        "roles": [
                            "user",
                            "accomodationManager"
                        ],
                        "permissions": [],
                        "stripeAccount": {
                            "user_id": 3,
                            "accountId": "acct_1ITV4XFPn57bOta4",
                            "chargeEnable": 1
                        },
                        "affiliation_code": "W6BD2M",
                        "subscription": null,
                        "tagStatus": "accepted"
                    }
                ]
            },
            {
                "id": 3,
                "description": "Occaecati quis et ut nihil. Tempore iusto nostrum rerum. Ut provident blanditiis facilis autem ut voluptates asperiores. Ducimus quas natus dolorem ut et recusandae est quas.",
                "dateStart": "2274-10-18",
                "dateEnd": "3484-11-23",
                "hourStart": "15:41:56",
                "hourEnd": "19:57:26",
                "priceType": "single_day",
                "price": 90388,
                "presalePrice": 63688,
                "lastMinutePrice": 47097,
                "currency": {
                    "id": 1,
                    "name": "Euro",
                    "code": "EUR",
                    "symbol": "€",
                    "created_at": null,
                    "updated_at": null
                },
                "numPartecipants": 26,
                "accessType": "no_reservation",
                "accessExpiration": "3321-07-24",
                "paymentMethod": "entrance",
                "cancellationPolicy": "free",
                "cancellationDay": 16,
                "dressCode": "Eligendi dolores animi iure similique aspernatur.",
                "partners": [
                    {
                        "id": 19,
                        "profile": {
                            "user_id": 19,
                            "firstName": "Jermey",
                            "lastName": "Jenkins",
                            "gender": "F",
                            "birthDate": "1996-02-11",
                            "country_id": 120,
                            "city": "Port Guidofort",
                            "image": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=84268",
                            "description": "Quis praesentium illo ullam molestias soluta. Nisi atque doloribus voluptatem iusto ut esse. Est fuga ut molestias. Aspernatur earum porro est nemo itaque.",
                            "paymentMethod": "stripe",
                            "paymentOther": "aut",
                            "companionGrade": 0,
                            "roles": [
                                "user",
                                "traveler"
                            ],
                            "travelerTypes": [
                                {
                                    "id": 3,
                                    "value": "adventurer",
                                    "label": "Adventurer"
                                }
                            ],
                            "languages": [
                                {
                                    "id": 1,
                                    "code": "en",
                                    "name": "English"
                                }
                            ],
                            "natures": [
                                {
                                    "id": 5,
                                    "value": "foodandwine",
                                    "label": "food and wine"
                                }
                            ],
                            "followers": 10,
                            "email": "private field",
                            "phoneNumber": "private field",
                            "fiscalCode": "private field",
                            "identityDoc": "private field"
                        },
                        "roles": [
                            "user",
                            "traveler"
                        ],
                        "permissions": [],
                        "stripeAccount": null,
                        "affiliation_code": "N8BKM5",
                        "subscription": {
                            "id": 18,
                            "active": 1,
                            "expirationDate": "2023-03-10",
                            "subscription": {
                                "id": 1,
                                "role": "traveler",
                                "type": "free",
                                "price": 0,
                                "monthPrice": 0,
                                "maxPost": "unlimited"
                            }
                        },
                        "tagStatus": "accepted"
                    }
                ]
            },
            {
                "id": 2,
                "description": "Qui laudantium consequatur voluptas nostrum commodi rerum. Assumenda nihil sed magnam dignissimos qui harum quisquam. Deleniti non incidunt officia quibusdam quibusdam.",
                "dateStart": "2856-01-06",
                "dateEnd": "3148-06-05",
                "hourStart": "02:11:45",
                "hourEnd": "08:56:41",
                "priceType": "single_day",
                "price": 94626,
                "presalePrice": 98352,
                "lastMinutePrice": 21276,
                "currency": {
                    "id": 1,
                    "name": "Euro",
                    "code": "EUR",
                    "symbol": "€",
                    "created_at": null,
                    "updated_at": null
                },
                "numPartecipants": 50,
                "accessType": "reservation",
                "accessExpiration": "2236-03-12",
                "paymentMethod": "entrance",
                "cancellationPolicy": "no_refundable",
                "cancellationDay": 15,
                "dressCode": "Aut vitae voluptate velit et illum molestiae eius voluptates.",
                "partners": [
                    {
                        "id": 2,
                        "profile": {
                            "user_id": 2,
                            "accomodationType": "alpine_refuge",
                            "accomodationName": "Reilly, Stamm and VonRuedenand Sons",
                            "vatNumber": "8765373403026",
                            "registeredOffice": "7750 Paxton Park\nGersonberg, KY 10487",
                            "country_id": {
                                "id": 184,
                                "code": "QA",
                                "name": "Qatar",
                                "created_at": "2021-05-07 19:39:09",
                                "updated_at": "2021-05-07 19:39:09"
                            },
                            "province": "Trinidad and Tobago",
                            "city": "New Clark",
                            "address": "685 Harris Trail Suite 721\nEast Julietfort, ME 72941-6111",
                            "latitude": "-79.336225",
                            "longitude": "136.131302",
                            "cityTax": 13,
                            "phonePrefix": "+83",
                            "phoneNumber": "2893022859",
                            "mobilePrefix": "+22",
                            "mobileNumber": "9169087732",
                            "faxPrefix": "+73",
                            "faxNumber": "6600753559",
                            "contactEmail": "terry.delaney@gmail.com",
                            "image": "https:\/\/loremflickr.com\/362\/180\/hotel\/?lock=63032",
                            "description": "Quidem voluptas atque nulla necessitatibus magni. Nihil quis non optio veniam dolores quod perspiciatis.",
                            "recommendations": "Non possimus voluptas beatae quaerat eos qui. Fugiat excepturi atque qui esse ipsum. Corrupti libero est atque.",
                            "yearOfConstruction": 1939,
                            "lastRenovation": 1925,
                            "rooms": 6,
                            "nonSmokingRooms": 6,
                            "beds": 18,
                            "handicappedRooms": 8,
                            "suites": 5,
                            "plans": 13,
                            "H24CheckIn": 1,
                            "checkInHourStart": "17:38:26",
                            "checkInHourEnd": "03:33:26",
                            "checkOutHourStart": "14:11:05",
                            "checkOutHourEnd": "18:05:09",
                            "petsAllowed": 0,
                            "petsSize": "big",
                            "stars": "2",
                            "qualityMark": "Rem est ipsam voluptatem ut ut quibusdam voluptas.",
                            "noClassification": 0,
                            "accomodationGrade": 0,
                            "roles": [
                                "user",
                                "accomodation"
                            ],
                            "roomPosts": 8,
                            "hotelServicesIncluded": [
                                {
                                    "id": 32,
                                    "group": "activities",
                                    "value": "tennis-court",
                                    "label": "Tennis court"
                                },
                                {
                                    "id": 45,
                                    "group": "activities",
                                    "value": "Nightclub\/DJ",
                                    "label": "Nightclub \/ DJ"
                                },
                                {
                                    "id": 56,
                                    "group": "activities",
                                    "value": "snorkeling",
                                    "label": "Snorkeling"
                                },
                                {
                                    "id": 58,
                                    "group": "activities",
                                    "value": "equipped-and-supervised-beach",
                                    "label": "Equipped and supervised beach"
                                },
                                {
                                    "id": 121,
                                    "group": "entertainment",
                                    "value": "theater",
                                    "label": "Theater"
                                },
                                {
                                    "id": 126,
                                    "group": "cleaning-services",
                                    "value": "ironing-service",
                                    "label": "Ironing service"
                                },
                                {
                                    "id": 130,
                                    "group": "business-services",
                                    "value": "spaces-for-meetings\/banquets",
                                    "label": "Spaces for meetings\/banquets"
                                },
                                {
                                    "id": 137,
                                    "group": "security",
                                    "value": "CCTV-cameras-outside-the-facility",
                                    "label": "CCTV cameras outside the facility"
                                }
                            ],
                            "hotelServicesNotIncluded": [
                                {
                                    "id": 49,
                                    "group": "activities",
                                    "value": "nature-trails-in-the-lagoon",
                                    "label": "Nature trails in the lagoon",
                                    "price": 57255
                                },
                                {
                                    "id": 107,
                                    "group": "reception-services",
                                    "value": "atm-machine",
                                    "label": "ATM machine",
                                    "price": 57255
                                },
                                {
                                    "id": 168,
                                    "group": "wellness-services",
                                    "value": "body-bandages",
                                    "label": "Body bandages",
                                    "price": 57255
                                },
                                {
                                    "id": 179,
                                    "group": "wellness-services",
                                    "value": "foot-massage",
                                    "label": "Foot massage",
                                    "price": 57255
                                }
                            ],
                            "languages": [
                                {
                                    "id": 1,
                                    "code": "en",
                                    "name": "English"
                                },
                                {
                                    "id": 2,
                                    "code": "it",
                                    "name": "Italian"
                                }
                            ],
                            "images": [
                                {
                                    "id": 1,
                                    "image": "https:\/\/loremflickr.com\/362\/180\/travel,italy\/?lock=43912",
                                    "image_name": "",
                                    "category": "gallery"
                                },
                                {
                                    "id": 2,
                                    "image": "https:\/\/loremflickr.com\/362\/180\/travel,italy\/?lock=58259",
                                    "image_name": "",
                                    "category": "gallery"
                                },
                                {
                                    "id": 3,
                                    "image": "https:\/\/loremflickr.com\/362\/180\/travel,italy\/?lock=54165",
                                    "image_name": "",
                                    "category": "gallery"
                                },
                                {
                                    "id": 4,
                                    "image": "https:\/\/loremflickr.com\/362\/180\/travel,italy\/?lock=71534",
                                    "image_name": "",
                                    "category": "gallery"
                                },
                                {
                                    "id": 5,
                                    "image": "https:\/\/loremflickr.com\/362\/180\/travel,italy\/?lock=62822",
                                    "image_name": "",
                                    "category": "gallery"
                                }
                            ]
                        },
                        "roles": [
                            "user",
                            "accomodation"
                        ],
                        "permissions": [],
                        "stripeAccount": {
                            "user_id": 2,
                            "accountId": "acct_1ITV4XFPn57bOta4",
                            "chargeEnable": 1
                        },
                        "affiliation_code": "APRA0D",
                        "subscription": {
                            "id": 2,
                            "active": 1,
                            "expirationDate": "2023-05-03",
                            "subscription": {
                                "id": 8,
                                "role": "touristGuide",
                                "type": "mega",
                                "price": 10000,
                                "monthPrice": 0,
                                "maxPost": "unlimited"
                            }
                        },
                        "tagStatus": "accepted"
                    }
                ]
            }
        ]
    }
}

HTTP Request

PUT /api/event/partner/{id}

PATCH /api/event/partner/{id}

Body Parameters

Parameter Type Status Description
tagStatus string required accepted or refused

Query Parameters

Parameter Status Description
tagStatus required accepted or refused

Destroy Partner Tags


Requires authentication Destroy an Events

Example request:

curl -X DELETE "http://api.doitrip.com/api/event/partner/1" 
const url = new URL("http://api.doitrip.com/api/event/partner/1");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "DELETE",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

HTTP Request

DELETE /api/event/partner/{id}

Followers

Search Followers


Requires authentication Search Followers

Example request:

curl -X GET -G "http://api.doitrip.com/api/followers" \
    -H "Content-Type: application/json" \
    -d '{"search":{"user_id":"quod","follower":{"profile":{"firstName":"quod","lastName":"quod"}}},"searchJoin":"and","perPage":6500181,"page":6500181,"orderBy":"id","sortedBy":"desc"}'
const url = new URL("http://api.doitrip.com/api/followers");

    let params = {
            "search.user_id": "quod",
            "search.follower.profile.firstName": "quod",
            "search.follower.profile.lastName": "quod",
            "searchJoin": "and",
            "perPage": "6500181",
            "page": "6500181",
            "orderBy": "id",
            "sortedBy": "desc",
        };
    Object.keys(params).forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
}

let body = {
    "search": {
        "user_id": "quod",
        "follower": {
            "profile": {
                "firstName": "quod",
                "lastName": "quod"
            }
        }
    },
    "searchJoin": "and",
    "perPage": 6500181,
    "page": 6500181,
    "orderBy": "id",
    "sortedBy": "desc"
}

fetch(url, {
    method: "GET",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

[
    {
        "id": 1,
        "user_id": 1,
        "follower": {
            "id": 5,
            "profile": {
                "user_id": 5,
                "companyType": "society",
                "companyName": "Feest, Jast and RippinLtd",
                "firstName": "private field",
                "lastName": "private field",
                "country_id": 136,
                "city": "Gennaroland",
                "province": null,
                "address": null,
                "registeredOffice": "3731 Kuhlman Loaf\nPort Ada, NV 90702",
                "image": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=41686",
                "description": "Centralized interactive opensystem",
                "paymentMethod": "other",
                "paymentOther": "sit",
                "tourOperatorGrade": 0,
                "roles": [
                    "user",
                    "tourOperator"
                ],
                "tourPosts": 10,
                "followers": 10,
                "tourServices": [
                    {
                        "id": 11,
                        "value": "animation-and-entertainment-activities",
                        "label": "Animation and entertainment activities"
                    },
                    {
                        "id": 51,
                        "value": "hot-chocolate-or-tea",
                        "label": "Hot chocolate or tea"
                    },
                    {
                        "id": 70,
                        "value": "excursions",
                        "label": "Excursions"
                    },
                    {
                        "id": 89,
                        "value": "Tips",
                        "label": "Tips"
                    }
                ],
                "fiscalCode": "private field",
                "vatNumber": "private field",
                "phonePrefix": "private field",
                "phoneNumber": "private field",
                "mobilePrefix": "private field",
                "mobileNumber": "private field",
                "faxPrefix": "private field",
                "faxNumber": "private field",
                "internetSite": "private field",
                "pecEmail": "private field",
                "contactEmail": "private field",
                "chamberCommerceRegistration": "private field",
                "identityDoc": "private field",
                "fiscalCodeDoc": "private field"
            },
            "roles": [
                "user",
                "tourOperator"
            ],
            "permissions": [],
            "stripeAccount": {
                "user_id": 5,
                "accountId": "acct_1ITV4XFPn57bOta4",
                "chargeEnable": 1
            },
            "affiliation_code": "94HV08",
            "subscription": {
                "id": 4,
                "active": 1,
                "expirationDate": "2022-10-11",
                "subscription": {
                    "id": 8,
                    "role": "touristGuide",
                    "type": "mega",
                    "price": 10000,
                    "monthPrice": 0,
                    "maxPost": "unlimited"
                }
            }
        }
    }
]

HTTP Request

GET /api/followers

Body Parameters

Parameter Type Status Description
search.user_id string required Valid user id
search.follower.profile.firstName string optional
search.follower.profile.lastName string optional
searchJoin string required and
perPage numeric optional
page numeric optional
orderBy string optional id
sortedBy string optional asc or desc

Query Parameters

Parameter Status Description
search.user_id required Valid user id
search.follower.profile.firstName optional
search.follower.profile.lastName optional
searchJoin required and
perPage optional
page optional
orderBy optional id
sortedBy optional asc or desc

Insert Follower


Requires authentication Insert Followers

Example request:

curl -X POST "http://api.doitrip.com/api/followers" \
    -H "Content-Type: application/json" \
    -d '{"follower_id":"quod"}'
const url = new URL("http://api.doitrip.com/api/followers");

    let params = {
            "follower_id": "quod",
        };
    Object.keys(params).forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
}

let body = {
    "follower_id": "quod"
}

fetch(url, {
    method: "POST",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "id": 1,
    "user_id": 1,
    "follower": {
        "id": 5,
        "profile": {
            "user_id": 5,
            "companyType": "society",
            "companyName": "Feest, Jast and RippinLtd",
            "firstName": "private field",
            "lastName": "private field",
            "country_id": 136,
            "city": "Gennaroland",
            "province": null,
            "address": null,
            "registeredOffice": "3731 Kuhlman Loaf\nPort Ada, NV 90702",
            "image": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=41686",
            "description": "Centralized interactive opensystem",
            "paymentMethod": "other",
            "paymentOther": "sit",
            "tourOperatorGrade": 0,
            "roles": [
                "user",
                "tourOperator"
            ],
            "tourPosts": 10,
            "followers": 10,
            "tourServices": [
                {
                    "id": 11,
                    "value": "animation-and-entertainment-activities",
                    "label": "Animation and entertainment activities"
                },
                {
                    "id": 51,
                    "value": "hot-chocolate-or-tea",
                    "label": "Hot chocolate or tea"
                },
                {
                    "id": 70,
                    "value": "excursions",
                    "label": "Excursions"
                },
                {
                    "id": 89,
                    "value": "Tips",
                    "label": "Tips"
                }
            ],
            "fiscalCode": "private field",
            "vatNumber": "private field",
            "phonePrefix": "private field",
            "phoneNumber": "private field",
            "mobilePrefix": "private field",
            "mobileNumber": "private field",
            "faxPrefix": "private field",
            "faxNumber": "private field",
            "internetSite": "private field",
            "pecEmail": "private field",
            "contactEmail": "private field",
            "chamberCommerceRegistration": "private field",
            "identityDoc": "private field",
            "fiscalCodeDoc": "private field"
        },
        "roles": [
            "user",
            "tourOperator"
        ],
        "permissions": [],
        "stripeAccount": {
            "user_id": 5,
            "accountId": "acct_1ITV4XFPn57bOta4",
            "chargeEnable": 1
        },
        "affiliation_code": "94HV08",
        "subscription": {
            "id": 4,
            "active": 1,
            "expirationDate": "2022-10-11",
            "subscription": {
                "id": 8,
                "role": "touristGuide",
                "type": "mega",
                "price": 10000,
                "monthPrice": 0,
                "maxPost": "unlimited"
            }
        }
    }
}

HTTP Request

POST /api/followers

Body Parameters

Parameter Type Status Description
follower_id string required Valid user id

Query Parameters

Parameter Status Description
follower_id required Valid user id

Destroy Follower


Requires authentication Destroy an Followers

Example request:

curl -X DELETE "http://api.doitrip.com/api/followers/1" 
const url = new URL("http://api.doitrip.com/api/followers/1");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "DELETE",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

HTTP Request

DELETE /api/followers/{follower_id}

GuideAvailabilities

Search Travel Types


Requires authentication Search GuideAvailabilities

Example request:

curl -X GET -G "http://api.doitrip.com/api/traveler-guideAvailabilities" 
const url = new URL("http://api.doitrip.com/api/traveler-guideAvailabilities");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

[
    {
        "id": 1,
        "value": "beach",
        "label": "Beach & Sea"
    }
]

HTTP Request

GET /api/traveler-guideAvailabilities

Guides

Search Guide Types


Requires authentication Search Guides

Example request:

curl -X GET -G "http://api.doitrip.com/api/guide-types" 
const url = new URL("http://api.doitrip.com/api/guide-types");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

[
    {
        "id": 1,
        "value": "beach",
        "label": "Beach & Sea"
    }
]

HTTP Request

GET /api/guide-types

Search Guide


Requires authentication Search Guides

Example request:

curl -X GET -G "http://api.doitrip.com/api/guides" \
    -H "Content-Type: application/json" \
    -d '{"owner":"1","notReviewed":"dicta","search":{"latitude":"dicta","longitude":"dicta","budget":1,"dateStart":"2021-05-07","dateEnd":"2021-05-07","types":{"guide_type_id":"dicta"},"services":{"id":"dicta"},"recommended":{"id":"dicta"},"user":{"guideProfile":{"guideGrade":"1"}},"reservations":{"user_id":"dicta"}},"searchJoin":"and","perPage":1,"page":1,"orderBy":"id","sortedBy":"asc"}'
const url = new URL("http://api.doitrip.com/api/guides");

    let params = {
            "owner": "1",
            "notReviewed": "dicta",
            "search.latitude": "dicta",
            "search.longitude": "dicta",
            "search.budget": "1",
            "search.dateStart": "2021-05-07",
            "search.dateEnd": "2021-05-07",
            "search.types.guide_type_id": "dicta",
            "search.services.id": "dicta",
            "search.recommended.id": "dicta",
            "search.user.guideProfile.guideGrade": "1",
            "search.reservations.user_id": "dicta",
            "searchJoin": "and",
            "perPage": "1",
            "page": "1",
            "orderBy": "id",
            "sortedBy": "asc",
        };
    Object.keys(params).forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
}

let body = {
    "owner": "1",
    "notReviewed": "dicta",
    "search": {
        "latitude": "dicta",
        "longitude": "dicta",
        "budget": 1,
        "dateStart": "2021-05-07",
        "dateEnd": "2021-05-07",
        "types": {
            "guide_type_id": "dicta"
        },
        "services": {
            "id": "dicta"
        },
        "recommended": {
            "id": "dicta"
        },
        "user": {
            "guideProfile": {
                "guideGrade": "1"
            }
        },
        "reservations": {
            "user_id": "dicta"
        }
    },
    "searchJoin": "and",
    "perPage": 1,
    "page": 1,
    "orderBy": "id",
    "sortedBy": "asc"
}

fetch(url, {
    method: "GET",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

[
    {
        "id": 1,
        "title": "Omnis ea impedit et expedita quo quas.",
        "description": "Atque omnis neque dignissimos ut rerum. Dolorum doloribus fugit modi quia est illo qui dolorem. Est sint unde et provident similique soluta rerum. Tempora fugiat perferendis magnam similique.",
        "dateStart": "2507-12-22",
        "dateEnd": "2742-08-07",
        "budget": 193081,
        "lowCost": 763959,
        "currency": {
            "id": 1,
            "name": "Euro",
            "code": "EUR",
            "symbol": "€",
            "created_at": null,
            "updated_at": null
        },
        "location": "23055 Connor Summit Apt. 281\nSengerview, AZ 08198",
        "latitude": "-41.903559",
        "longitude": "146.683211",
        "bookablePlaces": 6,
        "periodicity": "tuesday,saturday",
        "cancellation": "non_refundable",
        "cancellationDays": 5,
        "dressCode": "Expedita repellat doloremque earum quibusdam magni.",
        "user": {
            "id": 4,
            "profile": {
                "user_id": 4,
                "firstName": "Ashtyn",
                "lastName": "Bruen",
                "gender": "F",
                "birthDate": "1977-01-02",
                "country_id": 175,
                "phonePrefix": "+16",
                "city": "New Camillafurt",
                "image": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=90419",
                "description": "Facilis est molestiae aut aspernatur. Impedit vel sunt fugiat quas eos cumque enim. Possimus doloremque ut veritatis eius.",
                "paymentMethod": null,
                "paymentOther": "maxime",
                "guideGrade": 0,
                "subscription": "Beatty, Lang and Nitzsche",
                "guideType": "both",
                "licenseNumber": "9791939043114",
                "specificTitles": "Library Science Teacher",
                "role": "Precision Aircraft Systems Assemblers",
                "tariff": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=72029",
                "roles": [
                    "user",
                    "touristGuide"
                ],
                "guidePosts": 100,
                "languages": [
                    {
                        "id": 1,
                        "code": "en",
                        "name": "English"
                    },
                    {
                        "id": 2,
                        "code": "it",
                        "name": "Italian"
                    }
                ],
                "services": [
                    {
                        "id": 2,
                        "value": "b&b",
                        "label": "Bed & Breakfast"
                    }
                ],
                "guideAvailabilities": [
                    {
                        "id": 1,
                        "value": "beach",
                        "label": "Beach & Sea"
                    }
                ],
                "followers": 10,
                "email": "private field",
                "phoneNumber": "private field",
                "fiscalCode": "private field",
                "vatNumber": "private field",
                "card": "private field",
                "expiredCard": "private field",
                "certificate": "private field"
            },
            "roles": [
                "user",
                "touristGuide"
            ],
            "permissions": [],
            "stripeAccount": {
                "user_id": 4,
                "accountId": "acct_1ITV4XFPn57bOta4",
                "chargeEnable": 1
            },
            "affiliation_code": "W453V6",
            "subscription": null
        },
        "images": [
            {
                "id": 968,
                "image": "https:\/\/loremflickr.com\/362\/180\/travel,italy\/?lock=97139",
                "image_name": "",
                "category": "gallery"
            }
        ],
        "types": [
            {
                "id": 2,
                "value": "work",
                "label": "Work"
            }
        ],
        "recommended": [
            {
                "id": 2,
                "value": "couple",
                "label": "Couple"
            },
            {
                "id": 8,
                "value": "groups",
                "label": "Groups"
            }
        ],
        "languages": [
            {
                "id": 1,
                "code": "en",
                "name": "English"
            }
        ],
        "services": [
            {
                "id": 1,
                "value": "hotel",
                "label": "Hotel"
            },
            {
                "id": 3,
                "value": "hostel",
                "label": "Hostel"
            }
        ],
        "hasReservations": true
    }
]

HTTP Request

GET /api/guides

Body Parameters

Parameter Type Status Description
owner integer optional 1
notReviewed string optional
search.latitude string optional
search.longitude string optional
search.budget integer optional
search.dateStart date optional Date format: Y-m-d
search.dateEnd date optional Date format: Y-m-d
search.types.guide_type_id string optional
search.services.id string optional
search.recommended.id string optional
search.user.guideProfile.guideGrade integer optional 1, 2, 3, 4 or 5
search.reservations.user_id string optional Valid user id
searchJoin string optional and or or
perPage numeric optional
page numeric optional
orderBy string optional id
sortedBy string optional asc or desc

Query Parameters

Parameter Status Description
owner optional 1
notReviewed optional
search.latitude optional
search.longitude optional
search.budget optional
search.dateStart optional Date format: Y-m-d
search.dateEnd optional Date format: Y-m-d
search.types.guide_type_id optional
search.services.id optional
search.recommended.id optional
search.user.guideProfile.guideGrade optional 1, 2, 3, 4 or 5
search.reservations.user_id optional Valid user id
searchJoin optional and or or
perPage optional
page optional
orderBy optional id
sortedBy optional asc or desc

Show Guide


Requires authentication Show the Detail of an Guides

Example request:

curl -X GET -G "http://api.doitrip.com/api/guides/1" 
const url = new URL("http://api.doitrip.com/api/guides/1");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "id": 1,
    "title": "Omnis ea impedit et expedita quo quas.",
    "description": "Atque omnis neque dignissimos ut rerum. Dolorum doloribus fugit modi quia est illo qui dolorem. Est sint unde et provident similique soluta rerum. Tempora fugiat perferendis magnam similique.",
    "dateStart": "2507-12-22",
    "dateEnd": "2742-08-07",
    "budget": 193081,
    "lowCost": 763959,
    "currency": {
        "id": 1,
        "name": "Euro",
        "code": "EUR",
        "symbol": "€",
        "created_at": null,
        "updated_at": null
    },
    "location": "23055 Connor Summit Apt. 281\nSengerview, AZ 08198",
    "latitude": "-41.903559",
    "longitude": "146.683211",
    "bookablePlaces": 6,
    "periodicity": "tuesday,saturday",
    "cancellation": "non_refundable",
    "cancellationDays": 5,
    "dressCode": "Expedita repellat doloremque earum quibusdam magni.",
    "user": {
        "id": 4,
        "profile": {
            "user_id": 4,
            "firstName": "Ashtyn",
            "lastName": "Bruen",
            "gender": "F",
            "birthDate": "1977-01-02",
            "country_id": 175,
            "phonePrefix": "+16",
            "city": "New Camillafurt",
            "image": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=90419",
            "description": "Facilis est molestiae aut aspernatur. Impedit vel sunt fugiat quas eos cumque enim. Possimus doloremque ut veritatis eius.",
            "paymentMethod": null,
            "paymentOther": "maxime",
            "guideGrade": 0,
            "subscription": "Beatty, Lang and Nitzsche",
            "guideType": "both",
            "licenseNumber": "9791939043114",
            "specificTitles": "Library Science Teacher",
            "role": "Precision Aircraft Systems Assemblers",
            "tariff": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=72029",
            "roles": [
                "user",
                "touristGuide"
            ],
            "guidePosts": 100,
            "languages": [
                {
                    "id": 1,
                    "code": "en",
                    "name": "English"
                },
                {
                    "id": 2,
                    "code": "it",
                    "name": "Italian"
                }
            ],
            "services": [
                {
                    "id": 2,
                    "value": "b&b",
                    "label": "Bed & Breakfast"
                }
            ],
            "guideAvailabilities": [
                {
                    "id": 1,
                    "value": "beach",
                    "label": "Beach & Sea"
                }
            ],
            "followers": 10,
            "email": "private field",
            "phoneNumber": "private field",
            "fiscalCode": "private field",
            "vatNumber": "private field",
            "card": "private field",
            "expiredCard": "private field",
            "certificate": "private field"
        },
        "roles": [
            "user",
            "touristGuide"
        ],
        "permissions": [],
        "stripeAccount": {
            "user_id": 4,
            "accountId": "acct_1ITV4XFPn57bOta4",
            "chargeEnable": 1
        },
        "affiliation_code": "W453V6",
        "subscription": null
    },
    "images": [
        {
            "id": 968,
            "image": "https:\/\/loremflickr.com\/362\/180\/travel,italy\/?lock=97139",
            "image_name": "",
            "category": "gallery"
        }
    ],
    "types": [
        {
            "id": 2,
            "value": "work",
            "label": "Work"
        }
    ],
    "recommended": [
        {
            "id": 2,
            "value": "couple",
            "label": "Couple"
        },
        {
            "id": 8,
            "value": "groups",
            "label": "Groups"
        }
    ],
    "languages": [
        {
            "id": 1,
            "code": "en",
            "name": "English"
        }
    ],
    "services": [
        {
            "id": 1,
            "value": "hotel",
            "label": "Hotel"
        },
        {
            "id": 3,
            "value": "hostel",
            "label": "Hostel"
        }
    ],
    "hasReservations": true
}

HTTP Request

GET /api/guides/{id}

Report Guide


Requires authentication

Example request:

curl -X POST "http://api.doitrip.com/api/guides/1/report" 
const url = new URL("http://api.doitrip.com/api/guides/1/report");

    let params = {
            "message": "perspiciatis",
        };
    Object.keys(params).forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "POST",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

HTTP Request

POST /api/guides/{id}/report

Query Parameters

Parameter Status Description
message required

Availability period of a Guide


Requires authentication

Example request:

curl -X GET -G "http://api.doitrip.com/api/guides/1/availability-period" \
    -H "Content-Type: application/json" \
    -d '{"dateStart":"2021-05-07","dateEnd":"Friday, 02-Jan-70 00:00:00 UTC"}'
const url = new URL("http://api.doitrip.com/api/guides/1/availability-period");

    let params = {
            "dateStart": "2021-05-07",
            "dateEnd": "Friday, 02-Jan-70 00:00:00 UTC",
        };
    Object.keys(params).forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
}

let body = {
    "dateStart": "2021-05-07",
    "dateEnd": "Friday, 02-Jan-70 00:00:00 UTC"
}

fetch(url, {
    method: "GET",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

[]

HTTP Request

GET /api/guides/{id}/availability-period

Body Parameters

Parameter Type Status Description
dateStart date required Date format: Y-m-d
dateEnd date required Date format: Y-m-dMust be a date after: Thursday, 01-Jan-70 00:00:00 UTC

Query Parameters

Parameter Status Description
dateStart required Date format: Y-m-d
dateEnd required Date format: Y-m-dMust be a date after: Thursday, 01-Jan-70 00:00:00 UTC

Insert Guide


Requires authentication Insert Guides

Example request:

curl -X POST "http://api.doitrip.com/api/guides" \
    -H "Content-Type: application/json" \
    -d '{"title":"dicta","description":"dicta","dateStart":"2021-05-07","dateEnd":"2021-05-07","budget":1,"lowCost":1,"currency_id":"dicta","location":"dicta","latitude":"dicta","longitude":"dicta","bookablePlaces":1,"periodicity":"dicta","cancellation":"free","cancellationDays":1,"dressCode":"dicta","images":[{"image":"dicta","category":"gallery"}],"types":[{"id":"dicta"}],"services":[{"id":"dicta"}],"languages":[{"id":"dicta"}],"recommended":[{"id":"dicta"}]}'
const url = new URL("http://api.doitrip.com/api/guides");

    let params = {
            "title": "dicta",
            "description": "dicta",
            "dateStart": "2021-05-07",
            "dateEnd": "2021-05-07",
            "budget": "1",
            "lowCost": "1",
            "currency_id": "dicta",
            "location": "dicta",
            "latitude": "dicta",
            "longitude": "dicta",
            "bookablePlaces": "1",
            "periodicity": "dicta",
            "cancellation": "free",
            "cancellationDays": "1",
            "dressCode": "dicta",
            "images": "dicta",
            "images.*.image": "dicta",
            "images.*.category": "gallery",
            "types": "dicta",
            "types.*.id": "dicta",
            "services": "dicta",
            "services.*.id": "dicta",
            "languages": "dicta",
            "languages.*.id": "dicta",
            "recommended": "dicta",
            "recommended.*.id": "dicta",
        };
    Object.keys(params).forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
}

let body = {
    "title": "dicta",
    "description": "dicta",
    "dateStart": "2021-05-07",
    "dateEnd": "2021-05-07",
    "budget": 1,
    "lowCost": 1,
    "currency_id": "dicta",
    "location": "dicta",
    "latitude": "dicta",
    "longitude": "dicta",
    "bookablePlaces": 1,
    "periodicity": "dicta",
    "cancellation": "free",
    "cancellationDays": 1,
    "dressCode": "dicta",
    "images": [
        {
            "image": "dicta",
            "category": "gallery"
        }
    ],
    "types": [
        {
            "id": "dicta"
        }
    ],
    "services": [
        {
            "id": "dicta"
        }
    ],
    "languages": [
        {
            "id": "dicta"
        }
    ],
    "recommended": [
        {
            "id": "dicta"
        }
    ]
}

fetch(url, {
    method: "POST",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "id": 1,
    "title": "Omnis ea impedit et expedita quo quas.",
    "description": "Atque omnis neque dignissimos ut rerum. Dolorum doloribus fugit modi quia est illo qui dolorem. Est sint unde et provident similique soluta rerum. Tempora fugiat perferendis magnam similique.",
    "dateStart": "2507-12-22",
    "dateEnd": "2742-08-07",
    "budget": 193081,
    "lowCost": 763959,
    "currency": {
        "id": 1,
        "name": "Euro",
        "code": "EUR",
        "symbol": "€",
        "created_at": null,
        "updated_at": null
    },
    "location": "23055 Connor Summit Apt. 281\nSengerview, AZ 08198",
    "latitude": "-41.903559",
    "longitude": "146.683211",
    "bookablePlaces": 6,
    "periodicity": "tuesday,saturday",
    "cancellation": "non_refundable",
    "cancellationDays": 5,
    "dressCode": "Expedita repellat doloremque earum quibusdam magni.",
    "user": {
        "id": 4,
        "profile": {
            "user_id": 4,
            "firstName": "Ashtyn",
            "lastName": "Bruen",
            "gender": "F",
            "birthDate": "1977-01-02",
            "country_id": 175,
            "phonePrefix": "+16",
            "city": "New Camillafurt",
            "image": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=90419",
            "description": "Facilis est molestiae aut aspernatur. Impedit vel sunt fugiat quas eos cumque enim. Possimus doloremque ut veritatis eius.",
            "paymentMethod": null,
            "paymentOther": "maxime",
            "guideGrade": 0,
            "subscription": "Beatty, Lang and Nitzsche",
            "guideType": "both",
            "licenseNumber": "9791939043114",
            "specificTitles": "Library Science Teacher",
            "role": "Precision Aircraft Systems Assemblers",
            "tariff": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=72029",
            "roles": [
                "user",
                "touristGuide"
            ],
            "guidePosts": 100,
            "languages": [
                {
                    "id": 1,
                    "code": "en",
                    "name": "English"
                },
                {
                    "id": 2,
                    "code": "it",
                    "name": "Italian"
                }
            ],
            "services": [
                {
                    "id": 2,
                    "value": "b&b",
                    "label": "Bed & Breakfast"
                }
            ],
            "guideAvailabilities": [
                {
                    "id": 1,
                    "value": "beach",
                    "label": "Beach & Sea"
                }
            ],
            "followers": 10,
            "email": "private field",
            "phoneNumber": "private field",
            "fiscalCode": "private field",
            "vatNumber": "private field",
            "card": "private field",
            "expiredCard": "private field",
            "certificate": "private field"
        },
        "roles": [
            "user",
            "touristGuide"
        ],
        "permissions": [],
        "stripeAccount": {
            "user_id": 4,
            "accountId": "acct_1ITV4XFPn57bOta4",
            "chargeEnable": 1
        },
        "affiliation_code": "W453V6",
        "subscription": null
    },
    "images": [
        {
            "id": 968,
            "image": "https:\/\/loremflickr.com\/362\/180\/travel,italy\/?lock=97139",
            "image_name": "",
            "category": "gallery"
        }
    ],
    "types": [
        {
            "id": 2,
            "value": "work",
            "label": "Work"
        }
    ],
    "recommended": [
        {
            "id": 2,
            "value": "couple",
            "label": "Couple"
        },
        {
            "id": 8,
            "value": "groups",
            "label": "Groups"
        }
    ],
    "languages": [
        {
            "id": 1,
            "code": "en",
            "name": "English"
        }
    ],
    "services": [
        {
            "id": 1,
            "value": "hotel",
            "label": "Hotel"
        },
        {
            "id": 3,
            "value": "hostel",
            "label": "Hostel"
        }
    ],
    "hasReservations": true
}

HTTP Request

POST /api/guides

Body Parameters

Parameter Type Status Description
title string required
description string optional
dateStart date required Date format: Y-m-d
dateEnd date required Date format: Y-m-d
budget integer required
lowCost integer optional
currency_id string required Required if the parameters budget are present.Valid currency id
location string required
latitude string required
longitude string required
bookablePlaces integer required
periodicity string required
cancellation string required free or non_refundable
cancellationDays integer required
dressCode string optional
images array required
images.*.image image required Must be an image (jpeg, png, bmp, gif, or svg)
images.*.category string optional gallery or health_and_hygiene_surveys
types array required
types.*.id string required Valid guide_type id
services array required
services.*.id string required Valid service id
languages array required
languages.*.id string required Valid language id
recommended array required
recommended.*.id string required Valid recommended id

Query Parameters

Parameter Status Description
title required
description optional
dateStart required Date format: Y-m-d
dateEnd required Date format: Y-m-d
budget required
lowCost optional
currency_id required Required if the parameters budget are present.Valid currency id
location required
latitude required
longitude required
bookablePlaces required
periodicity required
cancellation required free or non_refundable
cancellationDays required
dressCode optional
images required
images.*.image required Must be an image (jpeg, png, bmp, gif, or svg)
images.*.category optional gallery or health_and_hygiene_surveys
types required
types.*.id required Valid guide_type id
services required
services.*.id required Valid service id
languages required
languages.*.id required Valid language id
recommended required
recommended.*.id required Valid recommended id

Update Guide


Requires authentication Update an Guides

Example request:

curl -X PUT "http://api.doitrip.com/api/guides/1" \
    -H "Content-Type: application/json" \
    -d '{"title":"dicta","description":"dicta","dateStart":"2021-05-07","dateEnd":"2021-05-07","budget":1,"lowCost":1,"currency_id":"dicta","location":"dicta","latitude":"dicta","longitude":"dicta","bookablePlaces":1,"periodicity":"dicta","cancellation":"free","cancellationDays":1,"dressCode":"dicta","images":[{"image":"dicta","category":"gallery"}],"types":[{"id":"dicta"}],"services":[{"id":"dicta"}],"languages":[{"id":"dicta"}],"recommended":[{"id":"dicta"}]}'
const url = new URL("http://api.doitrip.com/api/guides/1");

    let params = {
            "title": "dicta",
            "description": "dicta",
            "dateStart": "2021-05-07",
            "dateEnd": "2021-05-07",
            "budget": "1",
            "lowCost": "1",
            "currency_id": "dicta",
            "location": "dicta",
            "latitude": "dicta",
            "longitude": "dicta",
            "bookablePlaces": "1",
            "periodicity": "dicta",
            "cancellation": "free",
            "cancellationDays": "1",
            "dressCode": "dicta",
            "images": "dicta",
            "images.*.image": "dicta",
            "images.*.category": "gallery",
            "types": "dicta",
            "types.*.id": "dicta",
            "services": "dicta",
            "services.*.id": "dicta",
            "languages": "dicta",
            "languages.*.id": "dicta",
            "recommended": "dicta",
            "recommended.*.id": "dicta",
        };
    Object.keys(params).forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
}

let body = {
    "title": "dicta",
    "description": "dicta",
    "dateStart": "2021-05-07",
    "dateEnd": "2021-05-07",
    "budget": 1,
    "lowCost": 1,
    "currency_id": "dicta",
    "location": "dicta",
    "latitude": "dicta",
    "longitude": "dicta",
    "bookablePlaces": 1,
    "periodicity": "dicta",
    "cancellation": "free",
    "cancellationDays": 1,
    "dressCode": "dicta",
    "images": [
        {
            "image": "dicta",
            "category": "gallery"
        }
    ],
    "types": [
        {
            "id": "dicta"
        }
    ],
    "services": [
        {
            "id": "dicta"
        }
    ],
    "languages": [
        {
            "id": "dicta"
        }
    ],
    "recommended": [
        {
            "id": "dicta"
        }
    ]
}

fetch(url, {
    method: "PUT",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "id": 1,
    "title": "Omnis ea impedit et expedita quo quas.",
    "description": "Atque omnis neque dignissimos ut rerum. Dolorum doloribus fugit modi quia est illo qui dolorem. Est sint unde et provident similique soluta rerum. Tempora fugiat perferendis magnam similique.",
    "dateStart": "2507-12-22",
    "dateEnd": "2742-08-07",
    "budget": 193081,
    "lowCost": 763959,
    "currency": {
        "id": 1,
        "name": "Euro",
        "code": "EUR",
        "symbol": "€",
        "created_at": null,
        "updated_at": null
    },
    "location": "23055 Connor Summit Apt. 281\nSengerview, AZ 08198",
    "latitude": "-41.903559",
    "longitude": "146.683211",
    "bookablePlaces": 6,
    "periodicity": "tuesday,saturday",
    "cancellation": "non_refundable",
    "cancellationDays": 5,
    "dressCode": "Expedita repellat doloremque earum quibusdam magni.",
    "user": {
        "id": 4,
        "profile": {
            "user_id": 4,
            "firstName": "Ashtyn",
            "lastName": "Bruen",
            "gender": "F",
            "birthDate": "1977-01-02",
            "country_id": 175,
            "phonePrefix": "+16",
            "city": "New Camillafurt",
            "image": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=90419",
            "description": "Facilis est molestiae aut aspernatur. Impedit vel sunt fugiat quas eos cumque enim. Possimus doloremque ut veritatis eius.",
            "paymentMethod": null,
            "paymentOther": "maxime",
            "guideGrade": 0,
            "subscription": "Beatty, Lang and Nitzsche",
            "guideType": "both",
            "licenseNumber": "9791939043114",
            "specificTitles": "Library Science Teacher",
            "role": "Precision Aircraft Systems Assemblers",
            "tariff": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=72029",
            "roles": [
                "user",
                "touristGuide"
            ],
            "guidePosts": 100,
            "languages": [
                {
                    "id": 1,
                    "code": "en",
                    "name": "English"
                },
                {
                    "id": 2,
                    "code": "it",
                    "name": "Italian"
                }
            ],
            "services": [
                {
                    "id": 2,
                    "value": "b&b",
                    "label": "Bed & Breakfast"
                }
            ],
            "guideAvailabilities": [
                {
                    "id": 1,
                    "value": "beach",
                    "label": "Beach & Sea"
                }
            ],
            "followers": 10,
            "email": "private field",
            "phoneNumber": "private field",
            "fiscalCode": "private field",
            "vatNumber": "private field",
            "card": "private field",
            "expiredCard": "private field",
            "certificate": "private field"
        },
        "roles": [
            "user",
            "touristGuide"
        ],
        "permissions": [],
        "stripeAccount": {
            "user_id": 4,
            "accountId": "acct_1ITV4XFPn57bOta4",
            "chargeEnable": 1
        },
        "affiliation_code": "W453V6",
        "subscription": null
    },
    "images": [
        {
            "id": 968,
            "image": "https:\/\/loremflickr.com\/362\/180\/travel,italy\/?lock=97139",
            "image_name": "",
            "category": "gallery"
        }
    ],
    "types": [
        {
            "id": 2,
            "value": "work",
            "label": "Work"
        }
    ],
    "recommended": [
        {
            "id": 2,
            "value": "couple",
            "label": "Couple"
        },
        {
            "id": 8,
            "value": "groups",
            "label": "Groups"
        }
    ],
    "languages": [
        {
            "id": 1,
            "code": "en",
            "name": "English"
        }
    ],
    "services": [
        {
            "id": 1,
            "value": "hotel",
            "label": "Hotel"
        },
        {
            "id": 3,
            "value": "hostel",
            "label": "Hostel"
        }
    ],
    "hasReservations": true
}

HTTP Request

PUT /api/guides/{id}

PATCH /api/guides/{id}

Body Parameters

Parameter Type Status Description
title string required
description string optional
dateStart date required Date format: Y-m-d
dateEnd date required Date format: Y-m-d
budget integer required
lowCost integer optional
currency_id string required Required if the parameters budget are present.Valid currency id
location string required
latitude string required
longitude string required
bookablePlaces integer required
periodicity string required
cancellation string required free or non_refundable
cancellationDays integer required
dressCode string optional
images array optional
images.*.image image required Must be an image (jpeg, png, bmp, gif, or svg)
images.*.category string optional gallery or health_and_hygiene_surveys
types array required
types.*.id string required Valid guide_type id
services array required
services.*.id string required Valid service id
languages array required
languages.*.id string required Valid language id
recommended array required
recommended.*.id string required Valid recommended id

Query Parameters

Parameter Status Description
title required
description optional
dateStart required Date format: Y-m-d
dateEnd required Date format: Y-m-d
budget required
lowCost optional
currency_id required Required if the parameters budget are present.Valid currency id
location required
latitude required
longitude required
bookablePlaces required
periodicity required
cancellation required free or non_refundable
cancellationDays required
dressCode optional
images optional
images.*.image required Must be an image (jpeg, png, bmp, gif, or svg)
images.*.category optional gallery or health_and_hygiene_surveys
types required
types.*.id required Valid guide_type id
services required
services.*.id required Valid service id
languages required
languages.*.id required Valid language id
recommended required
recommended.*.id required Valid recommended id

Destroy Guide


Requires authentication Destroy an Guides

Example request:

curl -X DELETE "http://api.doitrip.com/api/guides/1" 
const url = new URL("http://api.doitrip.com/api/guides/1");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "DELETE",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

HTTP Request

DELETE /api/guides/{id}

Update Guide Reservation


Requires authentication Update an Guides

Example request:

curl -X PUT "http://api.doitrip.com/api/guides/1/reservations/1" \
    -H "Content-Type: application/json" \
    -d '{"date":"2021-05-07","numPartecipants":718,"paid":true}'
const url = new URL("http://api.doitrip.com/api/guides/1/reservations/1");

    let params = {
            "date": "2021-05-07",
            "numPartecipants": "718",
            "paid": "1",
        };
    Object.keys(params).forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
}

let body = {
    "date": "2021-05-07",
    "numPartecipants": 718,
    "paid": true
}

fetch(url, {
    method: "PUT",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "id": 1,
    "user": {
        "id": 15,
        "profile": {
            "user_id": 15,
            "firstName": "Dameon",
            "lastName": "Smith",
            "gender": "F",
            "birthDate": "2013-04-27",
            "country_id": 162,
            "city": "Handfurt",
            "image": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=22869",
            "description": "Quis sint vero consequuntur itaque. Veniam esse nihil quia vitae eaque. Consequatur dolores ut velit quis voluptatibus. Autem accusamus blanditiis ea provident optio ut ratione aut.",
            "paymentMethod": "both",
            "paymentOther": "architecto",
            "companionGrade": 0,
            "roles": [
                "user",
                "traveler"
            ],
            "travelerTypes": [
                {
                    "id": 9,
                    "value": "luxury",
                    "label": "Luxury"
                },
                {
                    "id": 12,
                    "value": "all-inclusive",
                    "label": "All Inclusive"
                }
            ],
            "languages": [
                {
                    "id": 1,
                    "code": "en",
                    "name": "English"
                },
                {
                    "id": 2,
                    "code": "it",
                    "name": "Italian"
                }
            ],
            "natures": [
                {
                    "id": 4,
                    "value": "cruise",
                    "label": "Cruise"
                }
            ],
            "followers": 9,
            "email": "private field",
            "phoneNumber": "private field",
            "fiscalCode": "private field",
            "identityDoc": "private field"
        },
        "roles": [
            "user",
            "traveler"
        ],
        "permissions": [],
        "stripeAccount": null,
        "affiliation_code": "MVAJXA",
        "subscription": null
    },
    "guide": {
        "id": 1,
        "title": "Omnis ea impedit et expedita quo quas.",
        "description": "Atque omnis neque dignissimos ut rerum. Dolorum doloribus fugit modi quia est illo qui dolorem. Est sint unde et provident similique soluta rerum. Tempora fugiat perferendis magnam similique.",
        "dateStart": "2507-12-22",
        "dateEnd": "2742-08-07",
        "budget": 193081,
        "lowCost": 763959,
        "currency": {
            "id": 1,
            "name": "Euro",
            "code": "EUR",
            "symbol": "€",
            "created_at": null,
            "updated_at": null
        },
        "location": "23055 Connor Summit Apt. 281\nSengerview, AZ 08198",
        "latitude": "-41.903559",
        "longitude": "146.683211",
        "bookablePlaces": 6,
        "periodicity": "tuesday,saturday",
        "cancellation": "non_refundable",
        "cancellationDays": 5,
        "dressCode": "Expedita repellat doloremque earum quibusdam magni.",
        "user": {
            "id": 4,
            "profile": {
                "user_id": 4,
                "firstName": "Ashtyn",
                "lastName": "Bruen",
                "gender": "F",
                "birthDate": "1977-01-02",
                "country_id": 175,
                "phonePrefix": "+16",
                "city": "New Camillafurt",
                "image": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=90419",
                "description": "Facilis est molestiae aut aspernatur. Impedit vel sunt fugiat quas eos cumque enim. Possimus doloremque ut veritatis eius.",
                "paymentMethod": null,
                "paymentOther": "maxime",
                "guideGrade": 0,
                "subscription": "Beatty, Lang and Nitzsche",
                "guideType": "both",
                "licenseNumber": "9791939043114",
                "specificTitles": "Library Science Teacher",
                "role": "Precision Aircraft Systems Assemblers",
                "tariff": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=72029",
                "roles": [
                    "user",
                    "touristGuide"
                ],
                "guidePosts": 100,
                "languages": [
                    {
                        "id": 1,
                        "code": "en",
                        "name": "English"
                    },
                    {
                        "id": 2,
                        "code": "it",
                        "name": "Italian"
                    }
                ],
                "services": [
                    {
                        "id": 2,
                        "value": "b&b",
                        "label": "Bed & Breakfast"
                    }
                ],
                "guideAvailabilities": [
                    {
                        "id": 1,
                        "value": "beach",
                        "label": "Beach & Sea"
                    }
                ],
                "followers": 10,
                "email": "private field",
                "phoneNumber": "private field",
                "fiscalCode": "private field",
                "vatNumber": "private field",
                "card": "private field",
                "expiredCard": "private field",
                "certificate": "private field"
            },
            "roles": [
                "user",
                "touristGuide"
            ],
            "permissions": [],
            "stripeAccount": {
                "user_id": 4,
                "accountId": "acct_1ITV4XFPn57bOta4",
                "chargeEnable": 1
            },
            "affiliation_code": "W453V6",
            "subscription": null
        },
        "images": [
            {
                "id": 968,
                "image": "https:\/\/loremflickr.com\/362\/180\/travel,italy\/?lock=97139",
                "image_name": "",
                "category": "gallery"
            }
        ],
        "types": [
            {
                "id": 2,
                "value": "work",
                "label": "Work"
            }
        ],
        "recommended": [
            {
                "id": 2,
                "value": "couple",
                "label": "Couple"
            },
            {
                "id": 8,
                "value": "groups",
                "label": "Groups"
            }
        ],
        "languages": [
            {
                "id": 1,
                "code": "en",
                "name": "English"
            }
        ],
        "services": [
            {
                "id": 1,
                "value": "hotel",
                "label": "Hotel"
            },
            {
                "id": 3,
                "value": "hostel",
                "label": "Hostel"
            }
        ],
        "hasReservations": true
    },
    "date": "1973-12-06",
    "numPartecipants": 4
}

HTTP Request

PUT /api/guides/{guide_id}/reservations/{id}

PATCH /api/guides/{guide_id}/reservations/{id}

Body Parameters

Parameter Type Status Description
date date optional Date format: Y-m-d
numPartecipants integer optional
paid boolean optional

Query Parameters

Parameter Status Description
date optional Date format: Y-m-d
numPartecipants optional
paid optional

Destroy Guide Reservation


Requires authentication Destroy an Guides

Example request:

curl -X DELETE "http://api.doitrip.com/api/guides/1/reservations/1" 
const url = new URL("http://api.doitrip.com/api/guides/1/reservations/1");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "DELETE",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

HTTP Request

DELETE /api/guides/{guide_id}/reservations/{id}

Calendar reservation for touristGuide


Requires authentication

Example request:

curl -X GET -G "http://api.doitrip.com/api/guide-reservations/calendar" \
    -H "Content-Type: application/json" \
    -d '{"dateStart":"2021-05-07","dateEnd":"Friday, 02-Jan-70 00:00:00 UTC"}'
const url = new URL("http://api.doitrip.com/api/guide-reservations/calendar");

    let params = {
            "dateStart": "2021-05-07",
            "dateEnd": "Friday, 02-Jan-70 00:00:00 UTC",
        };
    Object.keys(params).forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
}

let body = {
    "dateStart": "2021-05-07",
    "dateEnd": "Friday, 02-Jan-70 00:00:00 UTC"
}

fetch(url, {
    method: "GET",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "1973-12-06": {
        "guides": [
            {
                "id": 1,
                "user_id": 4,
                "title": "Omnis ea impedit et expedita quo quas.",
                "description": "Atque omnis neque dignissimos ut rerum. Dolorum doloribus fugit modi quia est illo qui dolorem. Est sint unde et provident similique soluta rerum. Tempora fugiat perferendis magnam similique.",
                "dateStart": "2507-12-22",
                "dateEnd": "2742-08-07",
                "budget": 193081,
                "lowCost": 763959,
                "currency_id": 1,
                "location": "23055 Connor Summit Apt. 281\nSengerview, AZ 08198",
                "latitude": "-41.903559",
                "longitude": "146.683211",
                "bookablePlaces": 6,
                "periodicity": "tuesday,saturday",
                "cancellation": "non_refundable",
                "cancellationDays": 5,
                "dressCode": "Expedita repellat doloremque earum quibusdam magni.",
                "created_at": "2021-05-07 19:43:14",
                "updated_at": "2021-05-07 19:43:14"
            }
        ]
    },
    "1973-12-07": {
        "guides": []
    }
}

HTTP Request

GET /api/guide-reservations/calendar

Body Parameters

Parameter Type Status Description
dateStart date required Date format: Y-m-d
dateEnd date required Date format: Y-m-dMust be a date after: Thursday, 01-Jan-70 00:00:00 UTC

Query Parameters

Parameter Status Description
dateStart required Date format: Y-m-d
dateEnd required Date format: Y-m-dMust be a date after: Thursday, 01-Jan-70 00:00:00 UTC

Search Reservations of Logged TouristGuide


Requires authentication

Example request:

curl -X GET -G "http://api.doitrip.com/api/guide-reservations/touristGuide" \
    -H "Content-Type: application/json" \
    -d '{"search":{"guide_id":"magnam","date":"2021-05-07"},"searchJoin":"and","perPage":718,"page":718,"orderBy":"id","sortedBy":"asc"}'
const url = new URL("http://api.doitrip.com/api/guide-reservations/touristGuide");

    let params = {
            "search.guide_id": "magnam",
            "search.date": "2021-05-07",
            "searchJoin": "and",
            "perPage": "718",
            "page": "718",
            "orderBy": "id",
            "sortedBy": "asc",
        };
    Object.keys(params).forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
}

let body = {
    "search": {
        "guide_id": "magnam",
        "date": "2021-05-07"
    },
    "searchJoin": "and",
    "perPage": 718,
    "page": 718,
    "orderBy": "id",
    "sortedBy": "asc"
}

fetch(url, {
    method: "GET",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response:

null

HTTP Request

GET /api/guide-reservations/touristGuide

Body Parameters

Parameter Type Status Description
search.guide_id string optional
search.date date optional Date format: Y-m-d
searchJoin string optional and or or
perPage numeric optional
page numeric optional
orderBy string optional id
sortedBy string optional asc or desc

Query Parameters

Parameter Status Description
search.guide_id optional
search.date optional Date format: Y-m-d
searchJoin optional and or or
perPage optional
page optional
orderBy optional id
sortedBy optional asc or desc

Search Reservations of Logged Traveler


Requires authentication

Example request:

curl -X GET -G "http://api.doitrip.com/api/guide-reservations/traveler" \
    -H "Content-Type: application/json" \
    -d '{"search":{"guide_id":"magnam","guide":{"user_id":"magnam"},"date":"2021-05-07"},"searchJoin":"and","perPage":718,"page":718,"orderBy":"id","sortedBy":"asc"}'
const url = new URL("http://api.doitrip.com/api/guide-reservations/traveler");

    let params = {
            "search.guide_id": "magnam",
            "search.guide.user_id": "magnam",
            "search.date": "2021-05-07",
            "searchJoin": "and",
            "perPage": "718",
            "page": "718",
            "orderBy": "id",
            "sortedBy": "asc",
        };
    Object.keys(params).forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
}

let body = {
    "search": {
        "guide_id": "magnam",
        "guide": {
            "user_id": "magnam"
        },
        "date": "2021-05-07"
    },
    "searchJoin": "and",
    "perPage": 718,
    "page": 718,
    "orderBy": "id",
    "sortedBy": "asc"
}

fetch(url, {
    method: "GET",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response:

null

HTTP Request

GET /api/guide-reservations/traveler

Body Parameters

Parameter Type Status Description
search.guide_id string optional
search.guide.user_id string optional
search.date date optional Date format: Y-m-d
searchJoin string optional and or or
perPage numeric optional
page numeric optional
orderBy string optional id
sortedBy string optional asc or desc

Query Parameters

Parameter Status Description
search.guide_id optional
search.guide.user_id optional
search.date optional Date format: Y-m-d
searchJoin optional and or or
perPage optional
page optional
orderBy optional id
sortedBy optional asc or desc

Insert Reservation Guide


Requires authentication Insert Guides

Example request:

curl -X POST "http://api.doitrip.com/api/guide-reservations" \
    -H "Content-Type: application/json" \
    -d '{"guide_id":"magnam","date":"2021-05-07","numPartecipants":718,"onlinePayment":true}'
const url = new URL("http://api.doitrip.com/api/guide-reservations");

    let params = {
            "guide_id": "magnam",
            "date": "2021-05-07",
            "numPartecipants": "718",
            "onlinePayment": "1",
        };
    Object.keys(params).forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
}

let body = {
    "guide_id": "magnam",
    "date": "2021-05-07",
    "numPartecipants": 718,
    "onlinePayment": true
}

fetch(url, {
    method: "POST",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "id": 1,
    "user": {
        "id": 15,
        "profile": {
            "user_id": 15,
            "firstName": "Dameon",
            "lastName": "Smith",
            "gender": "F",
            "birthDate": "2013-04-27",
            "country_id": 162,
            "city": "Handfurt",
            "image": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=22869",
            "description": "Quis sint vero consequuntur itaque. Veniam esse nihil quia vitae eaque. Consequatur dolores ut velit quis voluptatibus. Autem accusamus blanditiis ea provident optio ut ratione aut.",
            "paymentMethod": "both",
            "paymentOther": "architecto",
            "companionGrade": 0,
            "roles": [
                "user",
                "traveler"
            ],
            "travelerTypes": [
                {
                    "id": 9,
                    "value": "luxury",
                    "label": "Luxury"
                },
                {
                    "id": 12,
                    "value": "all-inclusive",
                    "label": "All Inclusive"
                }
            ],
            "languages": [
                {
                    "id": 1,
                    "code": "en",
                    "name": "English"
                },
                {
                    "id": 2,
                    "code": "it",
                    "name": "Italian"
                }
            ],
            "natures": [
                {
                    "id": 4,
                    "value": "cruise",
                    "label": "Cruise"
                }
            ],
            "followers": 9,
            "email": "private field",
            "phoneNumber": "private field",
            "fiscalCode": "private field",
            "identityDoc": "private field"
        },
        "roles": [
            "user",
            "traveler"
        ],
        "permissions": [],
        "stripeAccount": null,
        "affiliation_code": "MVAJXA",
        "subscription": null
    },
    "guide": {
        "id": 1,
        "title": "Omnis ea impedit et expedita quo quas.",
        "description": "Atque omnis neque dignissimos ut rerum. Dolorum doloribus fugit modi quia est illo qui dolorem. Est sint unde et provident similique soluta rerum. Tempora fugiat perferendis magnam similique.",
        "dateStart": "2507-12-22",
        "dateEnd": "2742-08-07",
        "budget": 193081,
        "lowCost": 763959,
        "currency": {
            "id": 1,
            "name": "Euro",
            "code": "EUR",
            "symbol": "€",
            "created_at": null,
            "updated_at": null
        },
        "location": "23055 Connor Summit Apt. 281\nSengerview, AZ 08198",
        "latitude": "-41.903559",
        "longitude": "146.683211",
        "bookablePlaces": 6,
        "periodicity": "tuesday,saturday",
        "cancellation": "non_refundable",
        "cancellationDays": 5,
        "dressCode": "Expedita repellat doloremque earum quibusdam magni.",
        "user": {
            "id": 4,
            "profile": {
                "user_id": 4,
                "firstName": "Ashtyn",
                "lastName": "Bruen",
                "gender": "F",
                "birthDate": "1977-01-02",
                "country_id": 175,
                "phonePrefix": "+16",
                "city": "New Camillafurt",
                "image": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=90419",
                "description": "Facilis est molestiae aut aspernatur. Impedit vel sunt fugiat quas eos cumque enim. Possimus doloremque ut veritatis eius.",
                "paymentMethod": null,
                "paymentOther": "maxime",
                "guideGrade": 0,
                "subscription": "Beatty, Lang and Nitzsche",
                "guideType": "both",
                "licenseNumber": "9791939043114",
                "specificTitles": "Library Science Teacher",
                "role": "Precision Aircraft Systems Assemblers",
                "tariff": "https:\/\/loremflickr.com\/362\/180\/boy,girl\/?lock=72029",
                "roles": [
                    "user",
                    "touristGuide"
                ],
                "guidePosts": 100,
                "languages": [
                    {
                        "id": 1,
                        "code": "en",
                        "name": "English"
                    },
                    {
                        "id": 2,
                        "code": "it",
                        "name": "Italian"
                    }
                ],
                "services": [
                    {
                        "id": 2,
                        "value": "b&b",
                        "label": "Bed & Breakfast"
                    }
                ],
                "guideAvailabilities": [
                    {
                        "id": 1,
                        "value": "beach",
                        "label": "Beach & Sea"
                    }
                ],
                "followers": 10,
                "email": "private field",
                "phoneNumber": "private field",
                "fiscalCode": "private field",
                "vatNumber": "private field",
                "card": "private field",
                "expiredCard": "private field",
                "certificate": "private field"
            },
            "roles": [
                "user",
                "touristGuide"
            ],
            "permissions": [],
            "stripeAccount": {
                "user_id": 4,
                "accountId": "acct_1ITV4XFPn57bOta4",
                "chargeEnable": 1
            },
            "affiliation_code": "W453V6",
            "subscription": null
        },
        "images": [
            {
                "id": 968,
                "image": "https:\/\/loremflickr.com\/362\/180\/travel,italy\/?lock=97139",
                "image_name": "",
                "category": "gallery"
            }
        ],
        "types": [
            {
                "id": 2,
                "value": "work",
                "label": "Work"
            }
        ],
        "recommended": [
            {
                "id": 2,
                "value": "couple",
                "label": "Couple"
            },
            {
                "id": 8,
                "value": "groups",
                "label": "Groups"
            }
        ],
        "languages": [
            {
                "id": 1,
                "code": "en",
                "name": "English"
            }
        ],
        "services": [
            {
                "id": 1,
                "value": "hotel",
                "label": "Hotel"
            },
            {
                "id": 3,
                "value": "hostel",
                "label": "Hostel"
            }
        ],
        "hasReservations": true
    },
    "date": "1973-12-06",
    "numPartecipants": 4
}

HTTP Request

POST /api/guide-reservations

Body Parameters

Parameter Type Status Description
guide_id string required Valid guide id
date date required Date format: Y-m-d
numPartecipants integer required
onlinePayment boolean required

Query Parameters

Parameter Status Description
guide_id required Valid guide id
date required Date format: Y-m-d
numPartecipants required
onlinePayment required

Request Delete Guide Reservation


Requires authentication

Example request:

curl -X POST "http://api.doitrip.com/api/guide-reservations/1/request-delete" 
const url = new URL("http://api.doitrip.com/api/guide-reservations/1/request-delete");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "POST",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

HTTP Request

POST /api/guide-reservations/{id}/request-delete

HotelRooms

Search Hotel Service Type

Search TourPackages

Example request:

curl -X GET -G "http://api.doitrip.com/api/hotel-services" 
const url = new URL("http://api.doitrip.com/api/hotel-services");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

[
    {
        "id": 1,
        "group": "accessibility",
        "value": "wheelchair-accessible",
        "label": "Wheelchair accessible"
    }
]

HTTP Request

GET /api/hotel-services

Search Room Service Type

Search TourPackages

Example request:

curl -X GET -G "http://api.doitrip.com/api/room-services" 
const url = new URL("http://api.doitrip.com/api/room-services");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

[
    {
        "id": 1,
        "group": "accessibility",
        "value": "wheelchair-accessible",
        "label": "Wheelchair accessible"
    }
]

HTTP Request

GET /api/room-services

Search With Filter HotelRoom

Example request:

curl -X GET -G "http://api.doitrip.com/api/search-rooms" \
    -H "Content-Type: application/json" \
    -d '{"search_id":"aut","search":{"dateStart":"2021-05-07","dateEnd":"2021-05-07","latitude":"aut","longitude":"aut","capacity":1,"user_id":"aut","lastMinute":"1","accomodationType":"pitch","user":{"accomodationProfile":{"accomodationType":"guest_houses","accomodationGrade":"1"}}},"searchJoin":"and","perPage":1,"page":1,"orderBy":"id","sortedBy":"asc"}'
const url = new URL("http://api.doitrip.com/api/search-rooms");

    let params = {
            "search_id": "aut",
            "search": "aut",
            "search.dateStart": "2021-05-07",
            "search.dateEnd": "2021-05-07",
            "search.latitude": "aut",
            "search.longitude": "aut",
            "search.capacity": "1",
            "search.user_id": "aut",
            "search.lastMinute": "1",
            "search.accomodationType": "pitch",
            "search.user.accomodationProfile.accomodationType": "guest_houses",
            "search.user.accomodationProfile.accomodationGrade": "1",
            "searchJoin": "and",
            "perPage": "1",
            "page": "1",
            "orderBy": "id",
            "sortedBy": "asc",
        };
    Object.keys(params).forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
}

let body = {
    "search_id": "aut",
    "search": {
        "dateStart": "2021-05-07",
        "dateEnd": "2021-05-07",
        "latitude": "aut",
        "longitude": "aut",
        "capacity": 1,
        "user_id": "aut",
        "lastMinute": "1",
        "accomodationType": "pitch",
        "user": {
            "accomodationProfile": {
                "accomodationType": "guest_houses",
                "accomodationGrade": "1"
            }
        }
    },
    "searchJoin": "and",
    "perPage": 1,
    "page": 1,
    "orderBy": "id",
    "sortedBy": "asc"
}

fetch(url, {
    method: "GET",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response:

null

HTTP Request

GET /api/search-rooms

Body Parameters

Parameter Type Status Description
search_id string optional
search array optional Required if the parameters search_id are not present.
search.dateStart date optional Required if the parameters search_id are not present.Date format: Y-m-d
search.dateEnd date optional Required if the parameters search_id are not present.Date format: Y-m-d
search.latitude string optional Required if the parameters search_id are not present.
search.longitude string optional Required if the parameters search_id are not present.
search.capacity integer optional Required if the parameters search_id are not present.
search.user_id string optional Valid accomodation_profile user_id
search.lastMinute string optional 1
search.accomodationType string optional pitch, room or accommodation
search.user.accomodationProfile.accomodationType string optional guest_houses, hotel, widespread_hotel, holiday_house, furnished_housing_unit_for_hotelist_use, residence, youth_hostel, accommodation_within_the_agrihotelism_business, accommodation_activity_in_rural_residences, guest_house, bed&breakfast, fixed_bivouacs, camping, campsite_as_part_of_agrihotelism_activities, holiday_park, study_stay_center, non-hotel_period_residence, hiking_refuge, glamping, inn, motel, hotel_period_residence, health_residence/beauty_farm, hotelist_hotel_residence, alpine_refuge, mountain_retreat, hotelistic_village or village-hotel
search.user.accomodationProfile.accomodationGrade string optional 1, 2, 3, 4 or 5
searchJoin string optional and or or
perPage numeric optional
page numeric optional
orderBy string optional id
sortedBy string optional asc or desc

Query Parameters

Parameter Status Description
search_id optional
search optional Required if the parameters search_id are not present.
search.dateStart optional Required if the parameters search_id are not present.Date format: Y-m-d
search.dateEnd optional Required if the parameters search_id are not present.Date format: Y-m-d
search.latitude optional Required if the parameters search_id are not present.
search.longitude optional Required if the parameters search_id are not present.
search.capacity optional Required if the parameters search_id are not present.
search.user_id optional Valid accomodation_profile user_id
search.lastMinute optional 1
search.accomodationType optional pitch, room or accommodation
search.user.accomodationProfile.accomodationType optional guest_houses, hotel, widespread_hotel, holiday_house, furnished_housing_unit_for_hotelist_use, residence, youth_hostel, accommodation_within_the_agrihotelism_business, accommodation_activity_in_rural_residences, guest_house, bed&breakfast, fixed_bivouacs, camping, campsite_as_part_of_agrihotelism_activities, holiday_park, study_stay_center, non-hotel_period_residence, hiking_refuge, glamping, inn, motel, hotel_period_residence, health_residence/beauty_farm, hotelist_hotel_residence, alpine_refuge, mountain_retreat, hotelistic_village or village-hotel
search.user.accomodationProfile.accomodationGrade optional 1, 2, 3, 4 or 5
searchJoin optional and or or
perPage optional
page optional
orderBy optional id
sortedBy optional asc or desc

Search HotelRoom

Search HotelRooms

Example request:

curl -X GET -G "http://api.doitrip.com/api/hotel-rooms" \
    -H "Content-Type: application/json" \
    -d '{"search":"aut","searchJoin":"and","perPage":1,"page":1,"orderBy":"id","sortedBy":"asc"}'
const url = new URL("http://api.doitrip.com/api/hotel-rooms");

    let params = {
            "search": "aut",
            "searchJoin": "and",
            "perPage": "1",
            "page": "1",
            "orderBy": "id",
            "sortedBy": "asc",
        };
    Object.keys(params).forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
}

let body = {
    "search": "aut",
    "searchJoin": "and",
    "perPage": 1,
    "page": 1,
    "orderBy": "id",
    "sortedBy": "asc"
}

fetch(url, {
    method: "GET",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

[
    {
        "id": 1,
        "user": {
            "id": 18,
            "profile": {
                "user_id": 18,
                "accomodationType": "inn",
                "accomodationName": "Runolfsdottir, Bosco and SpinkaInc",
                "vatNumber": "1892976349233",
                "registeredOffice": "14118 Treutel Route\nEast Bridie, NH 70845",
                "country_id": {
                    "id": 42,
                    "code": "BQ",
                    "name": "Caribbean Netherlands",
                    "created_at": "2021-05-07 19:39:05",
                    "updated_at": "2021-05-07 19:39:05"
                },
                "province": "Djibouti",
                "city": "Wiltonmouth",
                "address": "459 Hegmann Causeway Apt. 905\nPort Ovaberg, SD 20113-8155",
                "latitude": "59.645506",
                "longitude": "105.727194",
                "cityTax": 13,
                "phonePrefix": "+04",
                "phoneNumber": "8640132089",
                "mobilePrefix": "+97",
                "mobileNumber": "6937091501",
                "faxPrefix": "+95",
                "faxNumber": "4163322614",
                "contactEmail": "quigley.mollie@mueller.com",
                "image": "https:\/\/loremflickr.com\/362\/180\/hotel\/?lock=49848",
                "description": "Minus totam molestiae consectetur corporis dolores. Sed dicta adipisci non quasi sit. Ducimus tempora sunt eius.",
                "recommendations": "Perspiciatis rerum pariatur fuga maxime dolorum reprehenderit. Aspernatur facilis est cum inventore dolore animi. Molestias omnis itaque error impedit tenetur odit qui.",
                "yearOfConstruction": 1987,
                "lastRenovation": 1900,
                "rooms": 9,
                "nonSmokingRooms": 15,
                "beds": 9,
                "handicappedRooms": 20,
                "suites": 8,
                "plans": 11,
                "H24CheckIn": 1,
                "checkInHourStart": "12:41:25",
                "checkInHourEnd": "18:45:38",
                "checkOutHourStart": "07:51:49",
                "checkOutHourEnd": "10:24:34",
                "petsAllowed": 1,
                "petsSize": "big",
                "stars": "5+",
                "qualityMark": "Qui nihil ullam beatae dolor laudantium assumenda qui.",
                "noClassification": 0,
                "accomodationGrade": 0,
                "roles": [
                    "user",
                    "accomodation"
                ],
                "roomPosts": 10,
                "hotelServicesIncluded": [
                    {
                        "id": 27,
                        "group": "activities",
                        "value": "beach-volley",
                        "label": "Beach volley"
                    },
                    {
                        "id": 29,
                        "group": "activities",
                        "value": "bowling",
                        "label": "Bowling"
                    },
                    {
                        "id": 146,
                        "group": "general-services",
                        "value": "family-rooms-available",
                        "label": "Family rooms available"
                    },
                    {
                        "id": 210,
                        "group": "transport",
                        "value": "shuttle-from-the-airport",
                        "label": "Shuttle from the airport"
                    }
                ],
                "hotelServicesNotIncluded": [
                    {
                        "id": 36,
                        "group": "activities",
                        "value": "boat-excursions",
                        "label": "Boat excursions",
                        "price": 86336
                    },
                    {
                        "id": 109,
                        "group": "entertainment",
                        "value": "animation",
                        "label": "Animation",
                        "price": 86336
                    },
                    {
                        "id": 120,
                        "group": "entertainment",
                        "value": "babysitting-service",
                        "label": "Babysitting service",
                        "price": 86336
                    },
                    {
                        "id": 130,
                        "group": "business-services",
                        "value": "spaces-for-meetings\/banquets",
                        "label": "Spaces for meetings\/banquets",
                        "price": 86336
                    },
                    {
                        "id": 141,
                        "group": "general-services",
                        "value": "hot\/cold-air-conditioning",
                        "label": "Hot \/ cold air conditioning",
                        "price": 86336
                    },
                    {
                        "id": 154,
                        "group": "general-services",
                        "value": "VIP-room-services",
                        "label": "VIP room services",
                        "price": 86336
                    },
                    {
                        "id": 163,
                        "group": "ski",
                        "value": "ski-school",
                        "label": "Ski school",
                        "price": 86336
                    },
                    {
                        "id": 169,
                        "group": "wellness-services",
                        "value": "depilation-with-wax",
                        "label": "Depilation with wax",
                        "price": 86336
                    }
                ],
                "languages": [
                    {
                        "id": 1,
                        "code": "en",
                        "name": "English"
                    }
                ],
                "images": [
                    {
                        "id": 20,
                        "image": "https:\/\/loremflickr.com\/362\/180\/travel,italy\/?lock=17106",
                        "image_name": "",
                        "category": "gallery"
                    },
                    {
                        "id": 21,
                        "image": "https:\/\/loremflickr.com\/362\/180\/travel,italy\/?lock=44911",
                        "image_name": "",
                        "category": "gallery"
                    }
                ]
            },
            "roles": [
                "user",
                "accomodation"
            ],
            "permissions": [],
            "stripeAccount": {
                "user_id": 18,
                "accountId": "acct_1ITV4XFPn57bOta4",
                "chargeEnable": 1
            },
            "affiliation_code": "W5YJC3",
            "subscription": null
        },
        "accomodationType": "room",
        "roomType": "Quis omnis nihil omnis.",
        "bedType": "Est ad id doloremque vel culpa quis aut.",
        "roomNumbers": 171,
        "maxCapacity": 9,
        "capacity": 7,
        "additionalCapacity": 2,
        "extraBedPrice": 99277,
        "minReservationDay": 2,
        "maxReservationDay": 10,
        "paymentType": "prepayment",
        "prepaymentFee": 91189,
        "breakfast": "yes",
        "breakfastPrice": 54442,
        "cancellationPolicy": "free",
        "cancellationDay": 41,
        "recommendations": "Optio quia eos dolores quas. Eum ad ut eveniet sequi sit. Dicta neque dolorem aut qui sit quas.",
        "attached": "https:\/\/loremflickr.com\/362\/180\/pdf\/?lock=45252",
        "roomAvailabilities": [
            {
                "id": 1,
                "hotel_room_id": 1,
                "dateStart": "2519-10-24",
                "dateEnd": "3180-10-24",
                "dateLastMinuteStart": "2610-02-11",
                "dateLastMinuteEnd": "2941-08-10",
                "price": 69441,
                "lastMinutePrice": 69392,
                "currency_id": {
                    "id": 1,
                    "name": "Euro",
                    "code": "EUR",
                    "symbol": "€",
                    "created_at": null,
                    "updated_at": null
                }
            },
            {
                "id": 2,
                "hotel_room_id": 1,
                "dateStart": "2058-10-10",
                "dateEnd": "2716-07-25",
                "dateLastMinuteStart": "2089-12-13",
                "dateLastMinuteEnd": "2357-01-07",
                "price": 58246,
                "lastMinutePrice": 59588,
                "currency_id": {
                    "id": 1,
                    "name": "Euro",
                    "code": "EUR",
                    "symbol": "€",
                    "created_at": null,
                    "updated_at": null
                }
            },
            {
                "id": 3,
                "hotel_room_id": 1,
                "dateStart": "2298-09-26",
                "dateEnd": "2603-06-26",
                "dateLastMinuteStart": "2320-08-09",
                "dateLastMinuteEnd": "2548-03-12",
                "price": 68623,
                "lastMinutePrice": 90809,
                "currency_id": {
                    "id": 1,
                    "name": "Euro",
                    "code": "EUR",
                    "symbol": "€",
                    "created_at": null,
                    "updated_at": null
                }
            },
            {
                "id": 4,
                "hotel_room_id": 1,
                "dateStart": "2113-01-03",
                "dateEnd": "3104-11-04",
                "dateLastMinuteStart": "2488-11-20",
                "dateLastMinuteEnd": "2767-11-10",
                "price": 54225,
                "lastMinutePrice": 92960,
                "currency_id": {
                    "id": 1,
                    "name": "Euro",
                    "code": "EUR",
                    "symbol": "€",
                    "created_at": null,
                    "updated_at": null
                }
            }
        ],
        "roomServicesIncluded": [
            {
                "id": 4,
                "group": "accessibility",
                "value": "upper-floors-accessible-by-lift",
                "label": "Upper floors accessible by lift"
            },
            {
                "id": 22,
                "group": "health-services",
                "value": "slippers",
                "label": "Slippers"
            },
            {
                "id": 48,
                "group": "equipment",
                "value": "Sofa bed",
                "label": "Sofa bed"
            },
            {
                "id": 57,
                "group": "equipment",
                "value": "soundproofing",
                "label": "Soundproofing"
            },
            {
                "id": 81,
                "group": "equipment",
                "value": "Stand",
                "label": "Stand"
            },
            {
                "id": 123,
                "group": "media-and-technology",
                "value": "ipod-docking-station",
                "label": "IPod docking station"
            },
            {
                "id": 164,
                "group": "security",
                "value": "safe",
                "label": "Safe"
            },
            {
                "id": 175,
                "group": "wellness-services",
                "value": "garden-table",
                "label": "Garden table"
            }
        ],
        "roomServicesNotIncluded": [
            {
                "id": 36,
                "group": "equipment",
                "value": "linen",
                "label": "Linen",
                "price": 97081,
                "discountedPrice": 75801
            },
            {
                "id": 64,
                "group": "equipment",
                "value": "coffee-machine",
                "label": "Coffee machine",
                "price": 97081,
                "discountedPrice": 75801
            },
            {
                "id": 68,
                "group": "equipment",
                "value": "hob",
                "label": "Hob",
                "price": 97081,
                "discountedPrice": 75801
            },
            {
                "id": 72,
                "group": "equipment",
                "value": "electric-socket-near-the-bed",
                "label": "Electric socket near the bed",
                "price": 97081,
                "discountedPrice": 75801
            },
            {
                "id": 80,
                "group": "equipment",
                "value": "hypoallergenic-solutions",
                "label": "Hypoallergenic solutions",
                "price": 97081,
                "discountedPrice": 75801
            },
            {
                "id": 82,
                "group": "equipment",
                "value": "clothesline",
                "label": "Clothesline",
                "price": 97081,
                "discountedPrice": 75801
            },
            {
                "id": 121,
                "group": "open-spaces",
                "value": "Partially covered wooden terrace",
                "label": "Partially covered wooden terrace",
                "price": 97081,
                "discountedPrice": 75801
            },
            {
                "id": 141,
                "group": "catering-services",
                "value": "fruit",
                "label": "Fruit",
                "price": 97081,
                "discountedPrice": 75801
            }
        ],
        "gallery": [
            {
                "id": 2310,
                "image": "https:\/\/loremflickr.com\/362\/180\/travel,italy\/?lock=75210",
                "image_name": "",
                "category": "gallery"
            },
            {
                "id": 2311,
                "image": "https:\/\/loremflickr.com\/362\/180\/travel,italy\/?lock=88315",
                "image_name": "",
                "category": "gallery"
            }
        ],
        "sanitaries": []
    }
]

HTTP Request

GET /api/hotel-rooms

Body Parameters

Parameter Type Status Description
search array optional
searchJoin string optional and or or
perPage numeric optional
page numeric optional
orderBy string optional id
sortedBy string optional asc or desc

Query Parameters

Parameter Status Description
search optional
searchJoin optional and or or
perPage optional
page optional
orderBy optional id
sortedBy optional asc or desc

Insert HotelRoom

Insert HotelRooms

Example request:

curl -X POST "http://api.doitrip.com/api/hotel-rooms" \
    -H "Content-Type: application/json" \
    -d '{"accomodationType":"pitch","roomType":"aut","bedType":"aut","roomNumbers":1,"capacity":1,"additionalCapacity":1,"extraBedPrice":1,"minReservationDay":1,"maxReservationDay":1,"paymentType":"prepayment","prepaymentFee":1,"breakfast":"yes","breakfastPrice":1,"cancellationPolicy":"free","cancellationDay":1,"recommendations":"aut","attached":"aut","images":[{"image":"aut","category":"gallery"}],"roomAvailabilities":[{"dateStart":"2021-05-07","dateEnd":"2021-05-07","dateLastMinuteStart":"2021-05-07","dateLastMinuteEnd":"2021-05-07","price":1,"lastMinutePrice":1,"currency_id":"aut"}],"roomServicesIncluded":[{"id":"aut","pivot":{"included":"1"}}],"roomServicesNotIncluded":[{"id":"aut","pivot":{"included":"0","price":1,"discountedPrice":1}}]}'
const url = new URL("http://api.doitrip.com/api/hotel-rooms");

    let params = {
            "accomodationType": "pitch",
            "roomType": "aut",
            "bedType": "aut",
            "roomNumbers": "1",
            "capacity": "1",
            "additionalCapacity": "1",
            "extraBedPrice": "1",
            "minReservationDay": "1",
            "maxReservationDay": "1",
            "paymentType": "prepayment",
            "prepaymentFee": "1",
            "breakfast": "yes",
            "breakfastPrice": "1",
            "cancellationPolicy": "free",
            "cancellationDay": "1",
            "recommendations": "aut",
            "attached": "aut",
            "images": "aut",
            "images.*.image": "aut",
            "images.*.category": "gallery",
            "roomAvailabilities.*.dateStart": "2021-05-07",
            "roomAvailabilities.*.dateEnd": "2021-05-07",
            "roomAvailabilities.*.dateLastMinuteStart": "2021-05-07",
            "roomAvailabilities.*.dateLastMinuteEnd": "2021-05-07",
            "roomAvailabilities.*.price": "1",
            "roomAvailabilities.*.lastMinutePrice": "1",
            "roomAvailabilities.*.currency_id": "aut",
            "roomServicesIncluded": "aut",
            "roomServicesIncluded.*.id": "aut",
            "roomServicesIncluded.*.pivot.included": "1",
            "roomServicesNotIncluded": "aut",
            "roomServicesNotIncluded.*.id": "aut",
            "roomServicesNotIncluded.*.pivot.included": "0",
            "roomServicesNotIncluded.*.pivot.price": "1",
            "roomServicesNotIncluded.*.pivot.discountedPrice": "1",
        };
    Object.keys(params).forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
}

let body = {
    "accomodationType": "pitch",
    "roomType": "aut",
    "bedType": "aut",
    "roomNumbers": 1,
    "capacity": 1,
    "additionalCapacity": 1,
    "extraBedPrice": 1,
    "minReservationDay": 1,
    "maxReservationDay": 1,
    "paymentType": "prepayment",
    "prepaymentFee": 1,
    "breakfast": "yes",
    "breakfastPrice": 1,
    "cancellationPolicy": "free",
    "cancellationDay": 1,
    "recommendations": "aut",
    "attached": "aut",
    "images": [
        {
            "image": "aut",
            "category": "gallery"
        }
    ],
    "roomAvailabilities": [
        {
            "dateStart": "2021-05-07",
            "dateEnd": "2021-05-07",
            "dateLastMinuteStart": "2021-05-07",
            "dateLastMinuteEnd": "2021-05-07",
            "price": 1,
            "lastMinutePrice": 1,
            "currency_id": "aut"
        }
    ],
    "roomServicesIncluded": [
        {
            "id": "aut",
            "pivot": {
                "included": "1"
            }
        }
    ],
    "roomServicesNotIncluded": [
        {
            "id": "aut",
            "pivot": {
                "included": "0",
                "price": 1,
                "discountedPrice": 1
            }
        }
    ]
}

fetch(url, {
    method: "POST",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "id": 1,
    "user": {
        "id": 18,
        "profile": {
            "user_id": 18,
            "accomodationType": "inn",
            "accomodationName": "Runolfsdottir, Bosco and SpinkaInc",
            "vatNumber": "1892976349233",
            "registeredOffice": "14118 Treutel Route\nEast Bridie, NH 70845",
            "country_id": {
                "id": 42,
                "code": "BQ",
                "name": "Caribbean Netherlands",
                "created_at": "2021-05-07 19:39:05",
                "updated_at": "2021-05-07 19:39:05"
            },
            "province": "Djibouti",
            "city": "Wiltonmouth",
            "address": "459 Hegmann Causeway Apt. 905\nPort Ovaberg, SD 20113-8155",
            "latitude": "59.645506",
            "longitude": "105.727194",
            "cityTax": 13,
            "phonePrefix": "+04",
            "phoneNumber": "8640132089",
            "mobilePrefix": "+97",
            "mobileNumber": "6937091501",
            "faxPrefix": "+95",
            "faxNumber": "4163322614",
            "contactEmail": "quigley.mollie@mueller.com",
            "image": "https:\/\/loremflickr.com\/362\/180\/hotel\/?lock=49848",
            "description": "Minus totam molestiae consectetur corporis dolores. Sed dicta adipisci non quasi sit. Ducimus tempora sunt eius.",
            "recommendations": "Perspiciatis rerum pariatur fuga maxime dolorum reprehenderit. Aspernatur facilis est cum inventore dolore animi. Molestias omnis itaque error impedit tenetur odit qui.",
            "yearOfConstruction": 1987,
            "lastRenovation": 1900,
            "rooms": 9,
            "nonSmokingRooms": 15,
            "beds": 9,
            "handicappedRooms": 20,
            "suites": 8,
            "plans": 11,
            "H24CheckIn": 1,
            "checkInHourStart": "12:41:25",
            "checkInHourEnd": "18:45:38",
            "checkOutHourStart": "07:51:49",
            "checkOutHourEnd": "10:24:34",
            "petsAllowed": 1,
            "petsSize": "big",
            "stars": "5+",
            "qualityMark": "Qui nihil ullam beatae dolor laudantium assumenda qui.",
            "noClassification": 0,
            "accomodationGrade": 0,
            "roles": [
                "user",
                "accomodation"
            ],
            "roomPosts": 10,
            "hotelServicesIncluded": [
                {
                    "id": 27,
                    "group": "activities",
                    "value": "beach-volley",
                    "label": "Beach volley"
                },
                {
                    "id": 29,
                    "group": "activities",
                    "value": "bowling",
                    "label": "Bowling"
                },
                {
                    "id": 146,
                    "group": "general-services",
                    "value": "family-rooms-available",
                    "label": "Family rooms available"
                },
                {
                    "id": 210,
                    "group": "transport",
                    "value": "shuttle-from-the-airport",
                    "label": "Shuttle from the airport"
                }
            ],
            "hotelServicesNotIncluded": [
                {
                    "id": 36,
                    "group": "activities",
                    "value": "boat-excursions",
                    "label": "Boat excursions",
                    "price": 86336
                },
                {
                    "id": 109,
                    "group": "entertainment",
                    "value": "animation",
                    "label": "Animation",
                    "price": 86336
                },
                {
                    "id": 120,
                    "group": "entertainment",
                    "value": "babysitting-service",
                    "label": "Babysitting service",
                    "price": 86336
                },
                {
                    "id": 130,
                    "group": "business-services",
                    "value": "spaces-for-meetings\/banquets",
                    "label": "Spaces for meetings\/banquets",
                    "price": 86336
                },
                {
                    "id": 141,
                    "group": "general-services",
                    "value": "hot\/cold-air-conditioning",
                    "label": "Hot \/ cold air conditioning",
                    "price": 86336
                },
                {
                    "id": 154,
                    "group": "general-services",
                    "value": "VIP-room-services",
                    "label": "VIP room services",
                    "price": 86336
                },
                {
                    "id": 163,
                    "group": "ski",
                    "value": "ski-school",
                    "label": "Ski school",
                    "price": 86336
                },
                {
                    "id": 169,
                    "group": "wellness-services",
                    "value": "depilation-with-wax",
                    "label": "Depilation with wax",
                    "price": 86336
                }
            ],
            "languages": [
                {
                    "id": 1,
                    "code": "en",
                    "name": "English"
                }
            ],
            "images": [
                {
                    "id": 20,
                    "image": "https:\/\/loremflickr.com\/362\/180\/travel,italy\/?lock=17106",
                    "image_name": "",
                    "category": "gallery"
                },
                {
                    "id": 21,
                    "image": "https:\/\/loremflickr.com\/362\/180\/travel,italy\/?lock=44911",
                    "image_name": "",
                    "category": "gallery"
                }
            ]
        },
        "roles": [
            "user",
            "accomodation"
        ],
        "permissions": [],
        "stripeAccount": {
            "user_id": 18,
            "accountId": "acct_1ITV4XFPn57bOta4",
            "chargeEnable": 1
        },
        "affiliation_code": "W5YJC3",
        "subscription": null
    },
    "accomodationType": "room",
    "roomType": "Quis omnis nihil omnis.",
    "bedType": "Est ad id doloremque vel culpa quis aut.",
    "roomNumbers": 171,
    "maxCapacity": 9,
    "capacity": 7,
    "additionalCapacity": 2,
    "extraBedPrice": 99277,
    "minReservationDay": 2,
    "maxReservationDay": 10,
    "paymentType": "prepayment",
    "prepaymentFee": 91189,
    "breakfast": "yes",
    "breakfastPrice": 54442,
    "cancellationPolicy": "free",
    "cancellationDay": 41,
    "recommendations": "Optio quia eos dolores quas. Eum ad ut eveniet sequi sit. Dicta neque dolorem aut qui sit quas.",
    "attached": "https:\/\/loremflickr.com\/362\/180\/pdf\/?lock=45252",
    "roomAvailabilities": [
        {
            "id": 1,
            "hotel_room_id": 1,
            "dateStart": "2519-10-24",
            "dateEnd": "3180-10-24",
            "dateLastMinuteStart": "2610-02-11",
            "dateLastMinuteEnd": "2941-08-10",
            "price": 69441,
            "lastMinutePrice": 69392,
            "currency_id": {
                "id": 1,
                "name": "Euro",
                "code": "EUR",
                "symbol": "€",
                "created_at": null,
                "updated_at": null
            }
        },
        {
            "id": 2,
            "hotel_room_id": 1,
            "dateStart": "2058-10-10",
            "dateEnd": "2716-07-25",
            "dateLastMinuteStart": "2089-12-13",
            "dateLastMinuteEnd": "2357-01-07",
            "price": 58246,
            "lastMinutePrice": 59588,
            "currency_id": {
                "id": 1,
                "name": "Euro",
                "code": "EUR",
                "symbol": "€",
                "created_at": null,
                "updated_at": null
            }
        },
        {
            "id": 3,
            "hotel_room_id": 1,
            "dateStart": "2298-09-26",
            "dateEnd": "2603-06-26",
            "dateLastMinuteStart": "2320-08-09",
            "dateLastMinuteEnd": "2548-03-12",
            "price": 68623,
            "lastMinutePrice": 90809,
            "currency_id": {
                "id": 1,
                "name": "Euro",
                "code": "EUR",
                "symbol": "€",
                "created_at": null,
                "updated_at": null
            }
        },
        {
            "id": 4,
            "hotel_room_id": 1,
            "dateStart": "2113-01-03",
            "dateEnd": "3104-11-04",
            "dateLastMinuteStart": "2488-11-20",
            "dateLastMinuteEnd": "2767-11-10",
            "price": 54225,
            "lastMinutePrice": 92960,
            "currency_id": {
                "id": 1,
                "name": "Euro",
                "code": "EUR",
                "symbol": "€",
                "created_at": null,
                "updated_at": null
            }
        }
    ],
    "roomServicesIncluded": [
        {
            "id": 4,
            "group": "accessibility",
            "value": "upper-floors-accessible-by-lift",
            "label": "Upper floors accessible by lift"
        },
        {
            "id": 22,
            "group": "health-services",
            "value": "slippers",
            "label": "Slippers"
        },
        {
            "id": 48,
            "group": "equipment",
            "value": "Sofa bed",
            "label": "Sofa bed"
        },
        {
            "id": 57,
            "group": "equipment",
            "value": "soundproofing",
            "label": "Soundproofing"
        },
        {
            "id": 81,
            "group": "equipment",
            "value": "Stand",
            "label": "Stand"
        },
        {
            "id": 123,
            "group": "media-and-technology",
            "value": "ipod-docking-station",
            "label": "IPod docking station"
        },
        {
            "id": 164,
            "group": "security",
            "value": "safe",
            "label": "Safe"
        },
        {
            "id": 175,
            "group": "wellness-services",
            "value": "garden-table",
            "label": "Garden table"
        }
    ],
    "roomServicesNotIncluded": [
        {
            "id": 36,
            "group": "equipment",
            "value": "linen",
            "label": "Linen",
            "price": 97081,
            "discountedPrice": 75801
        },
        {
            "id": 64,
            "group": "equipment",
            "value": "coffee-machine",
            "label": "Coffee machine",
            "price": 97081,
            "discountedPrice": 75801
        },
        {
            "id": 68,
            "group": "equipment",
            "value": "hob",
            "label": "Hob",
            "price": 97081,
            "discountedPrice": 75801
        },
        {
            "id": 72,
            "group": "equipment",
            "value": "electric-socket-near-the-bed",
            "label": "Electric socket near the bed",
            "price": 97081,
            "discountedPrice": 75801
        },
        {
            "id": 80,
            "group": "equipment",
            "value": "hypoallergenic-solutions",
            "label": "Hypoallergenic solutions",
            "price": 97081,
            "discountedPrice": 75801
        },
        {
            "id": 82,
            "group": "equipment",
            "value": "clothesline",
            "label": "Clothesline",
            "price": 97081,
            "discountedPrice": 75801
        },
        {
            "id": 121,
            "group": "open-spaces",
            "value": "Partially covered wooden terrace",
            "label": "Partially covered wooden terrace",
            "price": 97081,
            "discountedPrice": 75801
        },
        {
            "id": 141,
            "group": "catering-services",
            "value": "fruit",
            "label": "Fruit",
            "price": 97081,
            "discountedPrice": 75801
        }
    ],
    "gallery": [
        {
            "id": 2310,
            "image": "https:\/\/loremflickr.com\/362\/180\/travel,italy\/?lock=75210",
            "image_name": "",
            "category": "gallery"
        },
        {
            "id": 2311,
            "image": "https:\/\/loremflickr.com\/362\/180\/travel,italy\/?lock=88315",
            "image_name": "",
            "category": "gallery"
        }
    ],
    "sanitaries": []
}

HTTP Request

POST /api/hotel-rooms

Body Parameters

Parameter Type Status Description
accomodationType string required pitch, room or accommodation
roomType string required
bedType string required
roomNumbers integer required
capacity integer required
additionalCapacity integer optional
extraBedPrice integer optional
minReservationDay integer optional
maxReservationDay integer optional
paymentType string required prepayment or pay_at_the_facility
prepaymentFee integer optional
breakfast string required yes, no or for_a_fee
breakfastPrice integer optional Required if breakfast is for_a_fee
cancellationPolicy string optional free or no_refundable
cancellationDay integer optional
recommendations string optional
attached file optional Must be a file upload
images array required
images.*.image image required Must be an image (jpeg, png, bmp, gif, or svg)
images.*.category string optional gallery or health_and_hygiene_surveys
roomAvailabilities.*.dateStart date required Date format: Y-m-d
roomAvailabilities.*.dateEnd date required Date format: Y-m-d
roomAvailabilities.*.dateLastMinuteStart date optional Date format: Y-m-d
roomAvailabilities.*.dateLastMinuteEnd date optional Date format: Y-m-d
roomAvailabilities.*.price integer required
roomAvailabilities.*.lastMinutePrice integer optional
roomAvailabilities.*.currency_id string required Valid currency id
roomServicesIncluded array optional
roomServicesIncluded.*.id string required Valid room_service_type id
roomServicesIncluded.*.pivot.included string required 1
roomServicesNotIncluded array optional
roomServicesNotIncluded.*.id string required Valid room_service_type id
roomServicesNotIncluded.*.pivot.included string required 0
roomServicesNotIncluded.*.pivot.price integer required
roomServicesNotIncluded.*.pivot.discountedPrice integer optional

Query Parameters

Parameter Status Description
accomodationType required pitch, room or accommodation
roomType required
bedType required
roomNumbers required
capacity required
additionalCapacity optional
extraBedPrice optional
minReservationDay optional
maxReservationDay optional
paymentType required prepayment or pay_at_the_facility
prepaymentFee optional
breakfast required yes, no or for_a_fee
breakfastPrice optional Required if breakfast is for_a_fee
cancellationPolicy optional free or no_refundable
cancellationDay optional
recommendations optional
attached optional Must be a file upload
images required
images.*.image required Must be an image (jpeg, png, bmp, gif, or svg)
images.*.category optional gallery or health_and_hygiene_surveys
roomAvailabilities.*.dateStart required Date format: Y-m-d
roomAvailabilities.*.dateEnd required Date format: Y-m-d
roomAvailabilities.*.dateLastMinuteStart optional Date format: Y-m-d
roomAvailabilities.*.dateLastMinuteEnd optional Date format: Y-m-d
roomAvailabilities.*.price required
roomAvailabilities.*.lastMinutePrice optional
roomAvailabilities.*.currency_id required Valid currency id
roomServicesIncluded optional
roomServicesIncluded.*.id required Valid room_service_type id
roomServicesIncluded.*.pivot.included required 1
roomServicesNotIncluded optional
roomServicesNotIncluded.*.id required Valid room_service_type id
roomServicesNotIncluded.*.pivot.included required 0
roomServicesNotIncluded.*.pivot.price required
roomServicesNotIncluded.*.pivot.discountedPrice optional

Update HotelRoom

Update an HotelRooms

Example request:

curl -X PUT "http://api.doitrip.com/api/hotel-rooms/1" \
    -H "Content-Type: application/json" \
    -d '{"accomodationType":"pitch","roomType":"aut","bedType":"aut","roomNumbers":1,"capacity":1,"additionalCapacity":1,"extraBedPrice":1,"minReservationDay":1,"maxReservationDay":1,"paymentType":"prepayment","prepaymentFee":1,"breakfast":"yes","breakfastPrice":1,"cancellationPolicy":"free","cancellationDay":1,"recommendations":"aut","attached":"aut","images":[{"image":"aut","category":"gallery"}],"roomAvailabilities":[{"dateStart":"2021-05-07","dateEnd":"2021-05-07","dateLastMinuteStart":"2021-05-07","price":1,"lastMinutePrice":1,"currency_id":"aut"}],"roomServicesIncluded":[{"id":"aut","pivot":{"included":"1"}}],"roomServicesNotIncluded":[{"id":"aut","pivot":{"included":"0","price":1,"discountedPrice":1}}]}'
const url = new URL("http://api.doitrip.com/api/hotel-rooms/1");

    let params = {
            "accomodationType": "pitch",
            "roomType": "aut",
            "bedType": "aut",
            "roomNumbers": "1",
            "capacity": "1",
            "additionalCapacity": "1",
            "extraBedPrice": "1",
            "minReservationDay": "1",
            "maxReservationDay": "1",
            "paymentType": "prepayment",
            "prepaymentFee": "1",
            "breakfast": "yes",
            "breakfastPrice": "1",
            "cancellationPolicy": "free",
            "cancellationDay": "1",
            "recommendations": "aut",
            "attached": "aut",
            "images": "aut",
            "images.*.image": "aut",
            "images.*.category": "gallery",
            "roomAvailabilities.*.dateStart": "2021-05-07",
            "roomAvailabilities.*.dateEnd": "2021-05-07",
            "roomAvailabilities.*.dateLastMinuteStart": "2021-05-07",
            "roomAvailabilities.*.price": "1",
            "roomAvailabilities.*.lastMinutePrice": "1",
            "roomAvailabilities.*.currency_id": "aut",
            "roomServicesIncluded": "aut",
            "roomServicesIncluded.*.id": "aut",
            "roomServicesIncluded.*.pivot.included": "1",
            "roomServicesNotIncluded": "aut",
            "roomServicesNotIncluded.*.id": "aut",
            "roomServicesNotIncluded.*.pivot.included": "0",
            "roomServicesNotIncluded.*.pivot.price": "1",
            "roomServicesNotIncluded.*.pivot.discountedPrice": "1",
        };
    Object.keys(params).forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
}

let body = {
    "accomodationType": "pitch",
    "roomType": "aut",
    "bedType": "aut",
    "roomNumbers": 1,
    "capacity": 1,
    "additionalCapacity": 1,
    "extraBedPrice": 1,
    "minReservationDay": 1,
    "maxReservationDay": 1,
    "paymentType": "prepayment",
    "prepaymentFee": 1,
    "breakfast": "yes",
    "breakfastPrice": 1,
    "cancellationPolicy": "free",
    "cancellationDay": 1,
    "recommendations": "aut",
    "attached": "aut",
    "images": [
        {
            "image": "aut",
            "category": "gallery"
        }
    ],
    "roomAvailabilities": [
        {
            "dateStart": "2021-05-07",
            "dateEnd": "2021-05-07",
            "dateLastMinuteStart": "2021-05-07",
            "price": 1,
            "lastMinutePrice": 1,
            "currency_id": "aut"
        }
    ],
    "roomServicesIncluded": [
        {
            "id": "aut",
            "pivot": {
                "included": "1"
            }
        }
    ],
    "roomServicesNotIncluded": [
        {
            "id": "aut",
            "pivot": {
                "included": "0",
                "price": 1,
                "discountedPrice": 1
            }
        }
    ]
}

fetch(url, {
    method: "PUT",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "id": 1,
    "user": {
        "id": 18,
        "profile": {
            "user_id": 18,
            "accomodationType": "inn",
            "accomodationName": "Runolfsdottir, Bosco and SpinkaInc",
            "vatNumber": "1892976349233",
            "registeredOffice": "14118 Treutel Route\nEast Bridie, NH 70845",
            "country_id": {
                "id": 42,
                "code": "BQ",
                "name": "Caribbean Netherlands",
                "created_at": "2021-05-07 19:39:05",
                "updated_at": "2021-05-07 19:39:05"
            },
            "province": "Djibouti",
            "city": "Wiltonmouth",
            "address": "459 Hegmann Causeway Apt. 905\nPort Ovaberg, SD 20113-8155",
            "latitude": "59.645506",
            "longitude": "105.727194",
            "cityTax": 13,
            "phonePrefix": "+04",
            "phoneNumber": "8640132089",
            "mobilePrefix": "+97",
            "mobileNumber": "6937091501",
            "faxPrefix": "+95",
            "faxNumber": "4163322614",
            "contactEmail": "quigley.mollie@mueller.com",
            "image": "https:\/\/loremflickr.com\/362\/180\/hotel\/?lock=49848",
            "description": "Minus totam molestiae consectetur corporis dolores. Sed dicta adipisci non quasi sit. Ducimus tempora sunt eius.",
            "recommendations": "Perspiciatis rerum pariatur fuga maxime dolorum reprehenderit. Aspernatur facilis est cum inventore dolore animi. Molestias omnis itaque error impedit tenetur odit qui.",
            "yearOfConstruction": 1987,
            "lastRenovation": 1900,
            "rooms": 9,
            "nonSmokingRooms": 15,
            "beds": 9,
            "handicappedRooms": 20,
            "suites": 8,
            "plans": 11,
            "H24CheckIn": 1,
            "checkInHourStart": "12:41:25",
            "checkInHourEnd": "18:45:38",
            "checkOutHourStart": "07:51:49",
            "checkOutHourEnd": "10:24:34",
            "petsAllowed": 1,
            "petsSize": "big",
            "stars": "5+",
            "qualityMark": "Qui nihil ullam beatae dolor laudantium assumenda qui.",
            "noClassification": 0,
            "accomodationGrade": 0,
            "roles": [
                "user",
                "accomodation"
            ],
            "roomPosts": 10,
            "hotelServicesIncluded": [
                {
                    "id": 27,
                    "group": "activities",
                    "value": "beach-volley",
                    "label": "Beach volley"
                },
                {
                    "id": 29,
                    "group": "activities",
                    "value": "bowling",
                    "label": "Bowling"
                },
                {
                    "id": 146,
                    "group": "general-services",
                    "value": "family-rooms-available",
                    "label": "Family rooms available"
                },
                {
                    "id": 210,
                    "group": "transport",
                    "value": "shuttle-from-the-airport",
                    "label": "Shuttle from the airport"
                }
            ],
            "hotelServicesNotIncluded": [
                {
                    "id": 36,
                    "group": "activities",
                    "value": "boat-excursions",
                    "label": "Boat excursions",
                    "price": 86336
                },
                {
                    "id": 109,
                    "group": "entertainment",
                    "value": "animation",
                    "label": "Animation",
                    "price": 86336
                },
                {
                    "id": 120,
                    "group": "entertainment",
                    "value": "babysitting-service",
                    "label": "Babysitting service",
                    "price": 86336
                },
                {
                    "id": 130,
                    "group": "business-services",
                    "value": "spaces-for-meetings\/banquets",
                    "label": "Spaces for meetings\/banquets",
                    "price": 86336
                },
                {
                    "id": 141,
                    "group": "general-services",
                    "value": "hot\/cold-air-conditioning",
                    "label": "Hot \/ cold air conditioning",
                    "price": 86336
                },
                {
                    "id": 154,
                    "group": "general-services",
                    "value": "VIP-room-services",
                    "label": "VIP room services",
                    "price": 86336
                },
                {
                    "id": 163,
                    "group": "ski",
                    "value": "ski-school",
                    "label": "Ski school",
                    "price": 86336
                },
                {
                    "id": 169,
                    "group": "wellness-services",
                    "value": "depilation-with-wax",
                    "label": "Depilation with wax",
                    "price": 86336
                }
            ],
            "languages": [
                {
                    "id": 1,
                    "code": "en",
                    "name": "English"
                }
            ],
            "images": [
                {
                    "id": 20,
                    "image": "https:\/\/loremflickr.com\/362\/180\/travel,italy\/?lock=17106",
                    "image_name": "",
                    "category": "gallery"
                },
                {
                    "id": 21,
                    "image": "https:\/\/loremflickr.com\/362\/180\/travel,italy\/?lock=44911",
                    "image_name": "",
                    "category": "gallery"
                }
            ]
        },
        "roles": [
            "user",
            "accomodation"
        ],
        "permissions": [],
        "stripeAccount": {
            "user_id": 18,
            "accountId": "acct_1ITV4XFPn57bOta4",
            "chargeEnable": 1
        },
        "affiliation_code": "W5YJC3",
        "subscription": null
    },
    "accomodationType": "room",
    "roomType": "Quis omnis nihil omnis.",
    "bedType": "Est ad id doloremque vel culpa quis aut.",
    "roomNumbers": 171,
    "maxCapacity": 9,
    "capacity": 7,
    "additionalCapacity": 2,
    "extraBedPrice": 99277,
    "minReservationDay": 2,
    "maxReservationDay": 10,
    "paymentType": "prepayment",
    "prepaymentFee": 91189,
    "breakfast": "yes",
    "breakfastPrice": 54442,
    "cancellationPolicy": "free",
    "cancellationDay": 41,
    "recommendations": "Optio quia eos dolores quas. Eum ad ut eveniet sequi sit. Dicta neque dolorem aut qui sit quas.",
    "attached": "https:\/\/loremflickr.com\/362\/180\/pdf\/?lock=45252",
    "roomAvailabilities": [
        {
            "id": 1,
            "hotel_room_id": 1,
            "dateStart": "2519-10-24",
            "dateEnd": "3180-10-24",
            "dateLastMinuteStart": "2610-02-11",
            "dateLastMinuteEnd": "2941-08-10",
            "price": 69441,
            "lastMinutePrice": 69392,
            "currency_id": {
                "id": 1,
                "name": "Euro",
                "code": "EUR",
                "symbol": "€",
                "created_at": null,
                "updated_at": null
            }
        },
        {
            "id": 2,
            "hotel_room_id": 1,
            "dateStart": "2058-10-10",
            "dateEnd": "2716-07-25",
            "dateLastMinuteStart": "2089-12-13",
            "dateLastMinuteEnd": "2357-01-07",
            "price": 58246,
            "lastMinutePrice": 59588,
            "currency_id": {
                "id": 1,
                "name": "Euro",
                "code": "EUR",
                "symbol": "€",
                "created_at": null,
                "updated_at": null
            }
        },
        {
            "id": 3,
            "hotel_room_id": 1,
            "dateStart": "2298-09-26",
            "dateEnd": "2603-06-26",
            "dateLastMinuteStart": "2320-08-09",
            "dateLastMinuteEnd": "2548-03-12",
            "price": 68623,
            "lastMinutePrice": 90809,
            "currency_id": {
                "id": 1,
                "name": "Euro",
                "code": "EUR",
                "symbol": "€",
                "created_at": null,
                "updated_at": null
            }
        },
        {
            "id": 4,
            "hotel_room_id": 1,
            "dateStart": "2113-01-03",
            "dateEnd": "3104-11-04",
            "dateLastMinuteStart": "2488-11-20",
            "dateLastMinuteEnd": "2767-11-10",
            "price": 54225,
            "lastMinutePrice": 92960,
            "currency_id": {
                "id": 1,
                "name": "Euro",
                "code": "EUR",
                "symbol": "€",
                "created_at": null,
                "updated_at": null
            }
        }
    ],
    "roomServicesIncluded": [
        {
            "id": 4,
            "group": "accessibility",
            "value": "upper-floors-accessible-by-lift",
            "label": "Upper floors accessible by lift"
        },
        {
            "id": 22,
            "group": "health-services",
            "value": "slippers",
            "label": "Slippers"
        },
        {
            "id": 48,
            "group": "equipment",
            "value": "Sofa bed",
            "label": "Sofa bed"
        },
        {
            "id": 57,
            "group": "equipment",
            "value": "soundproofing",
            "label": "Soundproofing"
        },
        {
            "id": 81,
            "group": "equipment",
            "value": "Stand",
            "label": "Stand"
        },
        {
            "id": 123,
            "group": "media-and-technology",
            "value": "ipod-docking-station",
            "label": "IPod docking station"
        },
        {
            "id": 164,
            "group": "security",
            "value": "safe",
            "label": "Safe"
        },
        {
            "id": 175,
            "group": "wellness-services",
            "value": "garden-table",
            "label": "Garden table"
        }
    ],
    "roomServicesNotIncluded": [
        {
            "id": 36,
            "group": "equipment",
            "value": "linen",
            "label": "Linen",
            "price": 97081,
            "discountedPrice": 75801
        },
        {
            "id": 64,
            "group": "equipment",
            "value": "coffee-machine",
            "label": "Coffee machine",
            "price": 97081,
            "discountedPrice": 75801
        },
        {
            "id": 68,
            "group": "equipment",
            "value": "hob",
            "label": "Hob",
            "price": 97081,
            "discountedPrice": 75801
        },
        {
            "id": 72,
            "group": "equipment",
            "value": "electric-socket-near-the-bed",
            "label": "Electric socket near the bed",
            "price": 97081,
            "discountedPrice": 75801
        },
        {
            "id": 80,
            "group": "equipment",
            "value": "hypoallergenic-solutions",
            "label": "Hypoallergenic solutions",
            "price": 97081,
            "discountedPrice": 75801
        },
        {
            "id": 82,
            "group": "equipment",
            "value": "clothesline",
            "label": "Clothesline",
            "price": 97081,
            "discountedPrice": 75801
        },
        {
            "id": 121,
            "group": "open-spaces",
            "value": "Partially covered wooden terrace",
            "label": "Partially covered wooden terrace",
            "price": 97081,
            "discountedPrice": 75801
        },
        {
            "id": 141,
            "group": "catering-services",
            "value": "fruit",
            "label": "Fruit",
            "price": 97081,
            "discountedPrice": 7