Products

Create a product

POST https://api.piriod.com/products/

Creates a new Product object.

Request Body

{
    "id": "pro_EDYW8YlIY7mrNUb8n6",
    "name": "SimpleDTE Vuetify",
    "unit_label": "cuenta",
    "plans": [],
    "status": "active",
    "test_mode": false,
    "archived": null,
    "created": "2020-07-01T20:36:04.301041-04:00",
    "updated": "2020-07-13T21:05:05.382947-04:00"
}

Retrieve a product

GET https://api.piriod.com/products/{{id}}/

Retrieves a Product object.

Path Parameters

{
    "id": "pro_EDYW8YlIY7mrNUb8n6",
    "name": "My Awesome Saas Product",
    "unit_label": "user",
    "plans": [],
    "status": "active",
    "test_mode": false,
    "archived": null,
    "created": "2020-07-01T20:36:04.301041-04:00",
    "updated": "2020-07-01T20:36:04.301041-04:00"
}

Update a product

PATCH https://api.piriod.com/products/{{id}}/

Path Parameters

Request Body

{
    "id": "pro_EDYW8YlIY7mrNUb8n6",
    "name": "My Awesome Saas Product",
    "unit_label": "account",
    "plans": [],
    "status": "active",
    "test_mode": false,
    "archived": null,
    "created": "2020-07-01T20:36:04.301041-04:00",
    "updated": "2020-07-14T21:05:05.382947-04:00"
}

Destroy a product

DELETE https://api.piriod.com/products/{{id}}/

Destroy a Product object.

Path Parameters

List products

GET https://api.piriod.com/products/

Retrieves a list of Product objects.

Query Parameters

{
    "count": 150,
    "next": "https://api.simpledte.com/products/?page=2",
    "previous": null,
    "results": [
        {
            "id": "pro_EDYW8YlIY7mrNUb8n6",
            "name": "My Awesome Saas Product",
            "unit_label": "account",
            "plans": [],
            "status": "active",
            "test_mode": false,
            "archived": null,
            "created": "2020-07-01T20:36:04.301041-04:00",
            "updated": "2020-07-13T21:05:05.382947-04:00"
        },
        ...
    ]
}

Last updated