Hi there,
I'm trying to build an HTML table from the payload of an HTTP request.
The payload contains today's bookings/arrivals, ultimately I would like to email myself each day with a table showing displaying the following information for each arrival.
- apartment
- channel
- guest-name
- phone
- adults
- children
- check-in
- check-out
- assistant-notice
- price
This is the error I get; The 'from' property value in the 'table' action inputs is of type 'Object'. The value must be of type 'Array'
Any help is much appreciated.
This is the payload
{
"type": "object",
"properties": {
"statusCode": {
"type": "integer"
},
"headers": {
"type": "object",
"properties": {
"x-ratelimit-remaining": {
"type": "string"
},
"x-ratelimit-limit": {
"type": "string"
},
"x-ratelimit-retry-after": {
"type": "string"
},
"pragma": {
"type": "string"
},
"x-frame-options": {
"type": "string"
},
"vary": {
"type": "string"
},
"access-control-allow-origin": {
"type": "string"
},
"x-content-type-options": {
"type": "string"
},
"strict-transport-security": {
"type": "string"
},
"Cache-Control": {
"type": "string"
},
"Date": {
"type": "string"
},
"Server": {
"type": "string"
},
"Content-Type": {
"type": "string"
},
"Expires": {
"type": "string"
},
"Content-Length": {
"type": "string"
}
}
},
"body": {
"type": "object",
"properties": {
"page_count": {
"type": "integer"
},
"page_size": {
"type": "integer"
},
"total_items": {
"type": "integer"
},
"page": {
"type": "integer"
},
"bookings": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "integer"
},
"reference-id": {
"type": "string"
},
"type": {
"type": "string"
},
"arrival": {
"type": "string"
},
"departure": {
"type": "string"
},
"created-at": {
"type": "string"
},
"modifiedAt": {
"type": "string"
},
"apartment": {
"type": "object",
"properties": {
"id": {
"type": "integer"
},
"name": {
"type": "string"
}
}
},
"channel": {
"type": "object",
"properties": {
"id": {
"type": "integer"
},
"name": {
"type": "string"
}
}
},
"guest-name": {
"type": "string"
},
"firstname": {
"type": "string"
},
"lastname": {
"type": "string"
},
"email": {},
"phone": {
"type": "string"
},
"adults": {
"type": "integer"
},
"children": {
"type": "integer"
},
"check-in": {
"type": "string"
},
"check-out": {
"type": "string"
},
"notice": {
"type": "string"
},
"assistant-notice": {
"type": "string"
},
"price": {
"type": "integer"
},
"price-paid": {
"type": "string"
},
"commission-included": {
"type": "number"
},
"prepayment": {},
"prepayment-paid": {
"type": "string"
},
"deposit": {},
"deposit-paid": {
"type": "string"
},
"language": {
"type": "string"
},
"guest-app-url": {
"type": "string"
},
"is-blocked-booking": {
"type": "boolean"
},
"guestId": {
"type": "integer"
},
"related": {
"type": "array"
}
},
"required": [
"id",
"reference-id",
"type",
"arrival",
"departure",
"created-at",
"modifiedAt",
"apartment",
"channel",
"guest-name",
"firstname",
"lastname",
"email",
"phone",
"adults",
"children",
"check-in",
"check-out",
"notice",
"assistant-notice",
"price",
"price-paid",
"commission-included",
"prepayment",
"prepayment-paid",
"deposit",
"deposit-paid",
"language",
"guest-app-url",
"is-blocked-booking",
"guestId",
"related"
]
}
}
}
}
}
}