-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathHometime.postman_collection.json
66 lines (66 loc) · 2.4 KB
/
Hometime.postman_collection.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
{
"info": {
"_postman_id": "12686cbc-b7e8-458a-8494-cb8dc12ee401",
"name": "Hometime",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
"_exporter_id": "17058103"
},
"item": [
{
"name": "Airbnb Create",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\n \"reservation_code\": \"YYY12345678\",\n \"start_date\": \"2021-04-14\",\n \"end_date\": \"2021-04-18\",\n \"nights\": 4,\n \"guests\": 4,\n \"adults\": 2,\n \"children\": 2,\n \"infants\": 0,\n \"status\": \"accepted\",\n \"guest\": {\n \"first_name\": \"Wayne\",\n \"last_name\": \"Woodbridge\",\n \"phone\": \"639123456789\",\n \"email\": \"wayne_woodbridge@bnb.com\"\n },\n \"currency\": \"AUD\",\n \"payout_price\": \"4200.00\",\n \"security_price\": \"500\",\n \"total_price\": \"4700.00\"\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "http://localhost:3000/reservations",
"protocol": "http",
"host": [
"localhost"
],
"port": "3000",
"path": [
"reservations"
]
}
},
"response": []
},
{
"name": "Booking.com Create",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\n \"reservation\": {\n \"code\": \"XXX12345678\",\n \"start_date\": \"2021-03-12\",\n \"end_date\": \"2021-03-16\",\n \"expected_payout_amount\": \"3800.00\",\n \"guest_details\": {\n \"localized_description\": \"4 guests\",\n \"number_of_adults\": 2,\n \"number_of_children\": 2,\n \"number_of_infants\": 0\n },\n \"guest_email\": \"wayne_woodbridge@bnb.com\",\n \"guest_first_name\": \"Wayne\",\n \"guest_last_name\": \"Woodbridge\",\n \"guest_phone_numbers\": [\n \"639123456789\",\n \"639123456789\"\n ],\n \"listing_security_price_accurate\": \"500.00\",\n \"host_currency\": \"AUD\",\n \"nights\": 4,\n \"number_of_guests\": 4,\n \"status_type\": \"accepted\",\n \"total_paid_amount_accurate\": \"4300.00\"\n } \n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "http://localhost:3000/reservations",
"protocol": "http",
"host": [
"localhost"
],
"port": "3000",
"path": [
"reservations"
]
}
},
"response": []
}
]
}