API Docs | REPOWR Connect (1.0.0)

Download OpenAPI specification:Download

License: REPOWR

External Developer API for REPOWR Asset Marketplace

Basic Flow

1. Obtain Access Token

Obtains JWT Auth token for any further requests

Request
Request Body schema: application/json
required
client_id
required
string
client_secret
required
string
Responses
200

Success

400

Invalid input value(s)

post/auth
Request samples
application/json
{
  • "client_id": "abcdef1234",
  • "client_secret": "abcdef1234"
}
Response samples
application/json
{
  • "access_token": "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6IlF1T2laMWlEbXREX25XQ2JSZkliQyJ9",
  • "expires_in": 1800,
  • "token_type": "Bearer"
}

2. Create Listing

Creates new listing or multiple listings for your organization

SecurityBearerAuth
Request
Request Body schema: application/json
required
Array of objects (CreateListingModel)

an array of listing objects

object (CreateListingModel)
Responses
200

Success

400

Invalid input value(s)

post/listings/create
Request samples
application/json
{
  • "listings": [
    ],
  • "listing": {
    }
}
Response samples
application/json
{
  • "id": "WawyfszNI7dn67yVDHAHn",
  • "listing_type": "private",
  • "listing_organizations": [
    ],
  • "minimum_rental_period": "14",
  • "maximum_rental_period": "90",
  • "rental_period_interval": "day",
  • "allow_any_rental_duration": true,
  • "price_interval": "daily",
  • "price_per_interval_cents": 2900,
  • "deposit_amount_cents": 50000,
  • "title": "Trailers - Dry Van",
  • "descripton": "Dry Vans for private rental",
  • "always_available": false,
  • "primary_load_id": "abc123",
  • "secondary_load_id": "abc123",
  • "pickup": {
    },
  • "dropoff": {
    },
  • "assets": [
    ]
}

3. Register Webhooks

Registers a webhook to post to your endpoint for specific events

SecurityBearerAuth
Request
Request Body schema: application/json
required
webhook_url
string <uri>

your endpoint for receiving webhook callbacks

events
Array of strings

which callback events to be sent to your endpoint

Items Enum: "renter.verify" "booking.create" "booking.pickup" "booking.dropoff" "booking.active" "booking.completed"
Responses
200

Success

400

Invalid input value(s)

Callbacks
postVerify Renter
postCreate Booking
postBooking Updates
post/webhooks/register
Request samples
application/json
{}
Response samples
application/json
{}
Callback payload samples
application/json
{
  • "organization": {
    }
}

Additional Operations

Listings - Get all

Responses
200

Success

400

Invalid input value(s)

get/listings
Request samples

Listings - Update one

Request
path Parameters
id
required
string

Listing ID

Responses
200

Success

400

Invalid input value(s)

put/listings/{id}
Request samples

Assets - Get all

Responses
200

Success

400

Invalid input value(s)

get/assets
Request samples

Assets - Create one

Responses
200

Success

400

Invalid input value(s)

post/assets
Request samples

Assets - Update one

Request
path Parameters
id
required
string

Asset ID

Responses
200

Success

400

Invalid input value(s)

put/assets/{id}
Request samples

Locations - Get all

Responses
200

Success

400

Invalid input value(s)

get/locations
Request samples

Locations - Create one

Responses
200

Success

400

Invalid input value(s)

post/locations
Request samples

Locations - Update one

Request
path Parameters
id
required
string

Location ID

Responses
200

Success

400

Invalid input value(s)

put/locations/{id}
Request samples

Bookings - Get all

Responses
200

Success

400

Invalid input value(s)

get/bookings
Request samples

Bookings - Update one

Request
path Parameters
id
required
string

Booking ID

Responses
200

Success

400

Invalid input value(s)

put/bookings/{id}
Request samples

Webhooks - Get all

Responses
200

Success

400

Invalid input value(s)

get/webhooks
Request samples

Webhooks - Update one

Request
path Parameters
id
required
string

Webhook Registration ID

Responses
200

Success

400

Invalid input value(s)

put/webhooks/{id}
Request samples

Networks - Invite

Add or Invite organizations to your Repowr network

SecurityBearerAuth
Request
Request Body schema: application/json
required
network_name
string
Array of objects
Responses
200

Success

400

Invalid input value(s)

post/networks/invite
Request samples
application/json
{
  • "network_name": "string",
  • "organizations": [
    ]
}
Response samples
application/json
{
  • "network_name": "string",
  • "organizations": {
    }
}