Payments & Vouchers

Terminal Requests

A TerminalRequest represents a request to a terminal, such as a payment request or a wearable association.

post/shop/terminal-requests/identity

Create a request to identify a Wearable Device

createIdentityRequest

This endpoint sends a request to the terminal to identify a wearable device.

Request body

  • terminal_idobject-idrequired

    Identifier of the physical payment terminal that should prompt for the wearable tap. Must be a terminal registered to the caller's site; the terminal serves the prompt and relays the scanned wearable's identifier back to Trybe.

Responses

  • 200

    The Terminal Request was successfully retrieved

  • 400

    The request failed.

  • 401

    The user is unauthenticated

  • 403

    The authenticated user does not have permission.

  • 422

    The request didn't pass validation

post/shop/terminal-requests/associate-wearable

Create a request to associate a Wearable Device

createWearableAssociationRequest

This endpoint sends a request to the terminal to associate a wearable device.

Request body

  • terminal_idobject-idrequired

    Identifier of the physical terminal that should prompt for the wearable tap. Must be a terminal registered to the caller's site; the terminal scans the wearable and completes the link to customer_id.

  • customer_iduuidrequired

    Identifier of the customer that the scanned wearable should be linked to. Once associated, the wearable can be used as a payment device for this customer's stays and visits.

  • order_idobject-idoptionalnullable

    Optional identifier of an order to attach the wearable to at association time, useful for express check-in flows. Pass null to leave the wearable unattached.

Responses

  • 200

    The Terminal Request was successfully retrieved

  • 400

    The request failed.

  • 401

    The user is unauthenticated

  • 403

    The authenticated user does not have permission.

  • 422

    The request didn't pass validation

get/shop/terminal-requests/{terminalRequestId}

Show a Terminal Request

getTerminalRequest

This endpoint retrieves a Terminal Request by ID.

Path parameters

Responses

  • 200

    The Terminal Request was successfully retrieved

  • 401

    The user is unauthenticated

  • 404

    The resource couldn't be found

post/shop/terminal-requests/{terminalRequestId}/cancel

Cancel a Terminal Request

actionCancelTerminalRequest

This endpoint cancels a Terminal Request.

Path parameters

Responses

  • 200

    The Terminal Request was successfully retrieved

  • 401

    The user is unauthenticated

  • 403

    The authenticated user does not have permission.

  • 404

    The resource couldn't be found