PHPackages                             rebelcode/rcmod-eddbk-rest-api - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. rebelcode/rcmod-eddbk-rest-api

AbandonedArchivedRc-module

rebelcode/rcmod-eddbk-rest-api
==============================

A RebelCode module that provides the REST API used in EDD Bookings.

v0.1-alpha13(7y ago)01.0k[4 issues](https://github.com/RebelCode/rcmod-eddbk-rest-api/issues)2GPL-3.0PHPPHP ^5.4 | ^7.0

Since Apr 16Pushed 7y ago1 watchersCompare

[ Source](https://github.com/RebelCode/rcmod-eddbk-rest-api)[ Packagist](https://packagist.org/packages/rebelcode/rcmod-eddbk-rest-api)[ RSS](/packages/rebelcode-rcmod-eddbk-rest-api/feed)WikiDiscussions develop Synced 6d ago

READMEChangelog (10)Dependencies (19)Versions (17)Used By (2)

RebelCode - EDD Bookings REST API
=================================

[](#rebelcode---edd-bookings-rest-api)

[![Build Status](https://camo.githubusercontent.com/fa0be58f466e69cdb36cb838655a971fe4446157fc58727865293feadd92f97f/68747470733a2f2f7472617669732d63692e6f72672f726562656c636f64652f72636d6f642d656464626b2d726573742d6170692e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/rebelcode/rcmod-eddbk-rest-api)[![Code Climate](https://camo.githubusercontent.com/88fdabaec5aedf3227974d940a18ab656de1124cba7f8a10fa699f80fa0731b8/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f526562656c436f64652f72636d6f642d656464626b2d726573742d6170692f6261646765732f6770612e737667)](https://codeclimate.com/github/RebelCode/rcmod-eddbk-rest-api)[![Test Coverage](https://camo.githubusercontent.com/1cf593c2ecf4c57a334d0aef5acef6ca66e254e4cfc947e44b130c07551945e2/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f526562656c436f64652f72636d6f642d656464626b2d726573742d6170692f6261646765732f636f7665726167652e737667)](https://codeclimate.com/github/RebelCode/rcmod-eddbk-rest-api/coverage)[![Latest Stable Version](https://camo.githubusercontent.com/d4656676f76efee9aac5922d015e4c6201cb83db472fda94054ac3e3b117cd93/68747470733a2f2f706f7365722e707567782e6f72672f726562656c636f64652f72636d6f642d656464626b2d726573742d6170692f76657273696f6e)](https://packagist.org/packages/rebelcode/rcmod-eddbk-rest-api)

A RebelCode module that provides the REST API used in EDD Bookings.

REST API Details
----------------

[](#rest-api-details)

### 1. Bookings

[](#1-bookings)

#### Retrieving Booking Info

[](#retrieving-booking-info)

```
GET /bookings/

```

Retrieves a booking by ID.

The response will contain an object with the following properties:

PropertyTypeDescriptionValues`id`integerThe ID of the bookingpositive non-zero integer`start`integerThe start time of the booking in the format `Y-M-D H:i:s`integer`end`integerThe end time of the booking in the format `Y-M-D H:i:s`integer`status`stringThe current status of the booking`""`, `"draft"`, `"in_cart"`, `"pending"`, `"approved"`, `"rejected"`, `"scheduled"`, `"cancelled"`, `"completed"``service`serviceThe service for which the booking was madeService object`resource`integerThe ID of the resource for which the booking was madepositive non-zero integer`client`clientThe client for the bookingClient object or `null``clientTzName`stringThe client's timezone nameany timezone name or `null``clientTzOffset`integerThe client's UTC timezone offset in seconds, at the `start` time of the bookinginteger or `null``payment`integerThe payment numberinteger or `null``notes`stringAdmin booking notesstring#### Query Bookings

[](#query-bookings)

```
GET /bookings?field=value&...

```

Multiple field and value pairs may be provided to narrow the query. The following table lists the available query fields and how a provided value is compared:

FieldDescriptionValue Type`id`The booking with the given IDinteger`start`The bookings that start at or after the given UTC timestampinteger`end`The bookings that end at or before the given UTC timestampinteger`service`The bookings made for the service with the given IDpositive non-zero integer`resource`The bookings made for the resource with the given IDpositive non-zero integer`client`The bookings made for the client with the given IDpositive non-zero integer`payment`The bookings associated with the payment with the given IDpositive non-zero integer`status`The booking statuses to filter bycomma separated list (without spaces!) of status namesThe following additional filters are also available:

FilterDescriptionValue TypeDefault`numItems`The maximum number of `items` to receive per pagepositive non-zero integer20`page`The page numberpositive non-zero integer1The response is an object with 3 keys: `items`, `count` and `statuses`. Example:

```
{
    items: [
        {
            "id": "21",
            "start": "2018-05-01 12:00:00",
            "end": "2018-05-01 13:30:00",
            "status": "draft",
            "service": {
                "id": 8,
                "name": "Test",
                "color": "#00ccff"
            },
            "resource": "0",
            "client": {
                "id": "6",
                "name": "Test User",
                "email": "test@eddbk.com"
            },
            "clientTzName": "Europe/Rome",
            "clientTzOffset": 1,
            "paymentNumber": 52,
            "notes": ""
        }
    ],
    "count": 1,
    "statuses": {
        "none": 0,
        "draft": 1,
        "in_cart": 0,
        "pending": 0,
        "approved": 0,
        "rejected": 0,
        "scheduled": 0,
        "completed": 0,
        "cancelled": 0
    }
}

```

The `statuses` counts are calculated independently from any query filters.

#### Creating Bookings

[](#creating-bookings)

```
POST /bookings

```

Creates a new booking and responds with the booking object. The following table lists the available fields:

PropertyTypeDescriptionRequired?`start`integerThe start time of the booking as a UTC timestamp✅`end`integerThe end time of the booking as a UTC timestamp✅`service`positive non-zero integerThe ID of the service for which the booking will be made✅`resource`positive non-zero integerThe ID of the resource for which the booking will be made✅`transition``"draft"` or `"cart"`The initial transition to apply to the booking✅`client`positive non-zero integerThe ID of the client for which the booking will be made`clientTz`stringThe name of the client's timezone`payment`integer or `null`The payment number`notes`stringAdmin booking notes#### Updating Bookings

[](#updating-bookings)

```
PATCH /bookings/

```

Updates a booking. The following table lists the available fields for updating:

PropertyTypeDescription`start`integerThe start time of the booking as a UTC timestamp`end`integerThe end time of the booking as a UTC timestamp`service`positive non-zero integerThe ID of the service for which the booking will be made`resource`positive non-zero integerThe ID of the resource for which the booking will be made`client`positive non-zero integerThe ID of the client for which the booking will be made`clientTz`stringThe name of the client's timezone`payment`integerThe payment number`notes`stringAdmin booking notes#### Deleting Bookings

[](#deleting-bookings)

```
DELETE /bookings/

```

Deletes the booking with the given ID.

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 93.4% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~17 days

Recently: every ~24 days

Total

13

Last Release

2708d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3a5e9c220209499fbe84cad3f5c6aac842e76bd9bf498445e0a317b94f461903?d=identicon)[mecha](/maintainers/mecha)

![](https://www.gravatar.com/avatar/a8036caaa483e3f8a21d0083284bd508f5ada08ad45b790b5075ecff49f09b6b?d=identicon)[rebelcode](/maintainers/rebelcode)

---

Top Contributors

[![mecha](https://avatars.githubusercontent.com/u/5425482?v=4)](https://github.com/mecha "mecha (410 commits)")[![XedinUnknown](https://avatars.githubusercontent.com/u/1428973?v=4)](https://github.com/XedinUnknown "XedinUnknown (29 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/rebelcode-rcmod-eddbk-rest-api/health.svg)

```
[![Health](https://phpackages.com/badges/rebelcode-rcmod-eddbk-rest-api/health.svg)](https://phpackages.com/packages/rebelcode-rcmod-eddbk-rest-api)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
