Agent integration
A travel agent can connect a B2B portal, a booking engine, or a back-office system to a merchant they work with.
Setting up (merchant administrator)
- Go to Admin > Apps > Create app, choose owner Agent, and pick the agent. See Create an app.
- If the agent's Public API access is off, choose Enable API access on the same form. This needs the
agent:manage_api_accesspermission. - Choose the app's permissions and data access. Agent apps cannot have operational, finance, or access-management permissions.
- To allow merchant-wide data later, use Allow merchant-wide data for this agent's apps on the app's Data Access tab.
Turning off an agent's API access stops all of that agent's apps at once.
What an agent app sees
- Products for agents: published products offered to travel agents (B2B), in catalogues available to agents.
- Own data (the default): only the agent's own bookings and travellers.
- Merchant data: an administrator can let an agent app read merchant-wide data, but only for permissions they mark one by one, such as
bookings:read. This needs extra permission, an explicit confirmation, and it is recorded in the audit log. Writing, such as creating or cancelling, is always limited to the agent's own bookings.
Paying with credit
With the bookings:pay_with_credit permission (sensitive, off by default), an agent app can create bookings with "payment_method": "credit". The amount is charged to the agent's credit account with this merchant, following the same limits as bookings made in Agantia. If the agent has no credit account or not enough credit, the booking is refused with 422 invalid-booking, and nothing is booked.
Wallet payment is not available through the API yet.