Package Information
Downloads: 2 weekly / 19 monthly
Latest Version: 1.2.4
Author: TheFork Integration
Available Nodes
Documentation
n8n-nodes-thefork
Node n8n para TheFork B2B API - 100% alinhado com a coleção Postman oficial.
Endpoints Implementados
Este node implementa EXATAMENTE os endpoints da coleção Postman TheFork - B2B API:
Authentication
| Endpoint | Método | Path |
|---|---|---|
| Auth | POST | https://auth.thefork.io/oauth/token |
Body: application/x-www-form-urlencoded com audience, grant_type, client_id, client_secret
Customer
| Operação | Método | Path | Parâmetros |
|---|---|---|---|
| Get Many | GET | /manager/v1/customers | groupUuid, startDate, endDate |
| Get | GET | /manager/v1/customers/{customerUuid} | - |
Reservation
| Operação | Método | Path | Parâmetros |
|---|---|---|---|
| Get Many | GET | /manager/v1/reservations | startDate, endDate, groupUuid |
| Get | GET | /manager/v1/reservations/{reservationUuid} | - |
| Create | POST | /manager/v1/restaurants/{restaurantUuid}/reservations | mealDate, partySize, customerNote, customer |
| Update | PATCH | /manager/v1/reservations/{reservationUuid} | mealDate, partySize |
| Cancel | PATCH | /manager/v1/reservations/{reservationUuid}/cancel | - |
Review
| Operação | Método | Path | Parâmetros |
|---|---|---|---|
| Get Many | GET | /manager/v1/reviews | restaurantUuid, startDate, endDate, withCommentOnly, limit, page |
| Get | GET | /manager/v1/reviews/{reviewUuid} | - |
Restaurant
| Operação | Método | Path | Parâmetros |
|---|---|---|---|
| Get Availabilities | GET | /manager/v1/restaurants/{restaurantUuid}/availabilities | startDate, endDate |
| Get Offers | GET | /manager/v1/restaurants/{restaurantUuid}/offers | locale |
| Get Party Sizes | GET | /v1/restaurants/{restaurantUuid}/partySizes | startDate, endDate |
| Get Timeslots | GET | /manager/v1/restaurants/{restaurantUuid}/timeslots | date, partySize |
NOTA: O endpoint Party Sizes usa /v1/ e não /manager/v1/ - conforme documentado na coleção Postman.
Instalação
npm install n8n-nodes-thefork
Credenciais
Necessário:
- Client ID: Fornecido pela TheFork
- Client Secret: Fornecido pela TheFork
O token OAuth2 é obtido automaticamente e cacheado por 8600 segundos (conforme documentação).
Referência
- TheFork B2B API Documentation
- Base URL:
https://api.thefork.io - Auth URL:
https://auth.thefork.io/oauth/token