Skip to main content

GET /payers

A GET to the /payers endpoint allows your application to fetch an array of the rooftop names and ids that are authorized to be used as third party payers. Requests made to this endpoint require an authorization header using your authentication token:

Auth Header
curl --request GET \
--url https://api.hopdrive.com/v1/payers \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <your token>'

When you request a move as a dealer-admin role, you can specify which rooftop is the third party payer and thus responsible for paying the charges. When doing so, pass the rooftop id from one of the payers returned here.

Example Request

GET /v1/payers

Example Request

200 /v1/payers
{
"payers": [
41
]
}