List products

GET

GET https://platform-api.lia.com.br/external_api/v1/products

Body params

NameDescriptionRequiredType
searchSearch product by namefalseString
sort_bySort your results by asc or descfalseString
availabilityFilter your products by availability, can be enabled, disabled or expiredfalseString
pageNumber of the page you wantfalseInteger
per_pageTotal items per pagefalseInteger

Example request

curl --location 'https://platform-api-sandbox.lia.com.br/external_api/v1/products' \
--header 'Authorization: Bearer token' \
--data ''

Example response

{
    "results": [
        {
            "id": "8538ab61-1c4f-404b-8cfe-0dbab2bedc09",
            "name": "Mentoria",
            "full_amount_cents": 299700,
            "created_at": "2023-09-21T14:30:07.673-03:00",
            "updated_at": "2023-09-21T14:30:07.673-03:00",
            "description": null,
            "duration_in_hours": null,
            "access_period": "days",
            "duration_in_days": 90,
            "start_date": null,
            "end_date": null,
            "availability": "enabled",
            "formatted_access_period": "90 dias",
            "company": {
                "id": "6cdfdd04-ab2d-48ef-81bf-3e53ebc5644a",
                "document": "28638760000148",
                "name": "Testing Company",
                "slug": "testing-company",
                "created_at": "2023-05-11T13:17:33.470-03:00",
                "updated_at": "2023-10-18T13:48:02.666-03:00",
                "theme_customizations": {
                    "dark": false,
                    "palette": "pink"
                },
                "logo": "https://platform-api.lia.com.br/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaEpJaWszTldJMk1qbGxaQzAwWmpWa0xUUmpaVFF0WVRjNE5pMWhOMkV6TkRKalpqUmlObUlHT2daRlZBPT0iLCJleHAiOm51bGwsInB1ciI6ImJsb2JfaWQifX0=--6417d20a8a16fe69dddbe908a4c591b04f49822d/lia.webp",
                "email": null,
                "phone": null,
                "address": {
                    "id": "3913166c-2dac-4610-9d62-f646d69ba4f6",
                    "zipcode": "12244392",
                    "neighborhood": "Testing",
                    "street": "Avenida Ironman Victor Garrido",
                    "number": "12345",
                    "complement": null,
                    "created_at": "2023-05-11T13:17:33.393-03:00",
                    "updated_at": "2023-05-11T13:17:33.393-03:00",
                    "city": {
                        "id": "c478db95-9188-461f-933a-e89b09644f16",
                        "name": "São José dos Campos",
                        "ibge_code": "3549904",
                        "created_at": "2023-05-11T11:42:11.721-03:00",
                        "updated_at": "2023-05-11T11:42:11.721-03:00",
                        "state": {
                            "id": "c3d17d30-4750-4d15-ba71-1d0d782323a8",
                            "name": "São Paulo",
                            "acronym": "SP",
                            "created_at": "2023-05-11T11:42:11.706-03:00",
                            "updated_at": "2023-05-11T11:42:11.706-03:00"
                        }
                    }
                }
            },
            "kind": {
                "id": "bba09b78-6d27-449a-a67a-cbe207f39f83",
                "name": "Mentoria",
                "created_at": "2023-07-26T15:10:27.177-03:00",
                "updated_at": "2023-07-26T15:10:27.177-03:00"
            },
            "offers": [
                {
                    "id": "f429f9de-7f34-4957-93ef-ba9d773be7c5",
                    "amount_cents": 299700,
                    "created_at": "2023-09-21T14:30:46.636-03:00",
                    "updated_at": "2023-09-21T14:30:46.636-03:00",
                    "name": "Cartão de Crédito",
                    "availability": "enabled"
                }
            ]
        },
        {
            "id": "2aadd8da-a288-4031-a993-20237d6b140e",
            "name": "Retratista",
            "full_amount_cents": 49700,
            "created_at": "2023-05-11T13:17:42.994-03:00",
            "updated_at": "2023-09-26T15:53:05.663-03:00",
            "description": "",
            "duration_in_hours": 0,
            "access_period": "lifetime",
            "duration_in_days": null,
            "start_date": null,
            "end_date": null,
            "availability": "enabled",
            "formatted_access_period": "Vitalício",
            "company": {
                "id": "6cdfdd04-ab2d-48ef-81bf-3e53ebc5644a",
                "document": "28638760000148",
                "name": "Testing",
                "slug": "testing-company",
                "created_at": "2023-05-11T13:17:33.470-03:00",
                "updated_at": "2023-10-18T13:48:02.666-03:00",
                "theme_customizations": {
                    "dark": false,
                    "palette": "pink"
                },
                "logo": "https://platform-api.lia.com.br/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaEpJaWszTldJMk1qbGxaQzAwWmpWa0xUUmpaVFF0WVRjNE5pMWhOMkV6TkRKalpqUmlObUlHT2daRlZBPT0iLCJleHAiOm51bGwsInB1ciI6ImJsb2JfaWQifX0=--6417d20a8a16fe69dddbe908a4c591b04f49822d/lia.webp",
                "email": null,
                "phone": null,
                "address": {
                    "id": "3913166c-2dac-4610-9d62-f646d69ba4f6",
                    "zipcode": "12244392",
                    "neighborhood": "Testing",
                    "street": "Avenida Ironman Victor Garrido",
                    "number": "12345",
                    "complement": null,
                    "created_at": "2023-05-11T13:17:33.393-03:00",
                    "updated_at": "2023-05-11T13:17:33.393-03:00",
                    "city": {
                        "id": "c478db95-9188-461f-933a-e89b09644f16",
                        "name": "São José dos Campos",
                        "ibge_code": "3549904",
                        "created_at": "2023-05-11T11:42:11.721-03:00",
                        "updated_at": "2023-05-11T11:42:11.721-03:00",
                        "state": {
                            "id": "c3d17d30-4750-4d15-ba71-1d0d782323a8",
                            "name": "São Paulo",
                            "acronym": "SP",
                            "created_at": "2023-05-11T11:42:11.706-03:00",
                            "updated_at": "2023-05-11T11:42:11.706-03:00"
                        }
                    }
                }
            },
            "kind": {
                "id": "9e76bdc3-aba3-4691-acb8-c0c0b2e5c315",
                "name": "Curso",
                "created_at": "2023-05-11T11:42:11.846-03:00",
                "updated_at": "2023-07-26T15:10:27.170-03:00"
            },
            "offers": [
                {
                    "id": "5707128e-63f9-48b5-89f7-945f6e63ac3d",
                    "amount_cents": 432,
                    "created_at": "2023-05-11T16:13:06.433-03:00",
                    "updated_at": "2023-08-09T14:22:48.749-03:00",
                    "name": "",
                    "availability": "archived"
                },
                {
                    "id": "440d4789-fdb3-4d71-92d7-bb57a47e0d13",
                    "amount_cents": 49700,
                    "created_at": "2023-07-03T15:12:28.034-03:00",
                    "updated_at": "2023-10-13T17:38:39.518-03:00",
                    "name": "Cartão e boleto parcelado",
                    "availability": "enabled"
                },
                {
                    "id": "4d3e5ced-509e-4c37-a6bc-e5a9165b025b",
                    "amount_cents": 49700,
                    "created_at": "2023-05-11T16:41:44.694-03:00",
                    "updated_at": "2023-09-21T13:41:58.608-03:00",
                    "name": "Cartão Parcelado",
                    "availability": "enabled"
                },
                {
                    "id": "cc09fe58-1bb2-4fdb-a2a2-0d3a4ca412a9",
                    "amount_cents": 500,
                    "created_at": "2023-05-11T13:17:43.021-03:00",
                    "updated_at": "2023-08-09T14:22:52.436-03:00",
                    "name": "",
                    "availability": "archived"
                },
                {
                    "id": "4e94b069-ebdc-41c6-879e-22ebb0fda234",
                    "amount_cents": 100,
                    "created_at": "2023-10-09T17:48:25.921-03:00",
                    "updated_at": "2023-10-09T17:49:04.812-03:00",
                    "name": "TESTE",
                    "availability": "archived"
                },
                {
                    "id": "ad5296d9-84d5-490f-b6a7-1c7667863561",
                    "amount_cents": 5000,
                    "created_at": "2023-10-09T17:49:04.688-03:00",
                    "updated_at": "2023-10-09T17:52:13.191-03:00",
                    "name": "TESTE",
                    "availability": "archived"
                },
                {
                    "id": "ad322835-d0dd-4d4f-a260-e1eefc660472",
                    "amount_cents": 1000,
                    "created_at": "2023-10-09T17:52:13.122-03:00",
                    "updated_at": "2023-10-09T18:00:45.724-03:00",
                    "name": "TESTE",
                    "availability": "archived"
                },
                {
                    "id": "88a3e24d-635a-4955-95e7-c5bb8dd7dbb2",
                    "amount_cents": 5000,
                    "created_at": "2023-10-09T18:00:45.670-03:00",
                    "updated_at": "2023-10-09T18:00:45.670-03:00",
                    "name": "TESTE",
                    "availability": "enabled"
                }
            ]
        }
    ],
    "total_items": 2,
    "total_pages": 1
}