API - SISTEMA | BAILEYS | OFIC...
Listar Faturas
1min
PHP
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://{BACKEND_URL}/api/invoices/listar',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_POSTFIELDS =>'{
"status":"all" // all: todos, open: não pago, paid: pago
}',
CURLOPT_HTTPHEADER => array(
'Content-Type: application/json',
'Authorization: Bearer tokenmeu'
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
JSON
[
{
"id": 27,
"detail": "Plano 2",
"status": "paid",
"value": 10,
"dueDate": "2023-08-28",
"companyId": 27,
"txid": "pay_2580910103018155",
"stripe_id": "cs_live_a1VRx4Do1T8Q6vgAWgdjC4PuQxgAYx0DvpDwVe4dmMvUsuiN1HQNDaApZG",
"createdAt": "2023-08-22T16:52:00.000Z",
"updatedAt": "2023-08-27T15:11:18.204Z"
},
{
"id": 28,
"detail": "Plano 2",
"status": "open",
"value": 10,
"dueDate": "2023-09-27T00:00:00-03:00",
"companyId": 27,
"txid": null,
"stripe_id": null,
"createdAt": "2023-08-27T15:11:30.000Z",
"updatedAt": "2023-08-27T15:11:30.000Z"
},
{
"id": 29,
"detail": "Plano 1",
"status": "open",
"value": 1190.99,
"dueDate": "2023-09-09T14:35:16-03:00",
"companyId": 28,
"txid": null,
"stripe_id": null,
"createdAt": "2023-09-03T17:36:30.000Z",
"updatedAt": "2023-09-03T17:36:30.000Z"
},
{
"id": 19,
"detail": "Plano 1",
"status": "open",
"value": 30,
"dueDate": "2023-08-04T10:21:20-03:00",
"companyId": 19,
"txid": null,
"stripe_id": null,
"createdAt": "2023-08-01T13:22:30.000Z",
"updatedAt": "2023-08-01T13:22:30.000Z"
},
{
"id": 3,
"detail": "Plano 1",
"status": "open",
"value": 30,
"dueDate": "2023-07-19T16:32:48-03:00",
"companyId": 4,
"txid": null,
"stripe_id": null,
"createdAt": "2023-07-16T19:33:44.000Z",
"updatedAt": "2023-07-16T19:33:44.000Z"
},
{
"id": 18,
"detail": "Plano Ilimitado",
"status": "open",
"value": 1,
"dueDate": "2093-03-14",
"companyId": 1,
"txid": null,
"stripe_id": "cs_live_a1PGHe2QIeYdXpG131IYYNCpoxdY2gsHlzlN7ewPGE1Wqzm1aXXiFWknrT",
"createdAt": "2023-07-30T18:34:00.000Z",
"updatedAt": "2023-09-19T12:14:52.683Z"
},
{
"id": 20,
"detail": "Plano Privado 1",
"status": "open",
"value": 111,
"dueDate": "2023-08-15T12:39:05-03:00",
"companyId": 20,
"txid": null,
"stripe_id": null,
"createdAt": "2023-08-12T15:40:00.000Z",
"updatedAt": "2023-08-12T15:40:00.000Z"
},
{
"id": 4,
"detail": "Plano 1",
"status": "open",
"value": 30,
"dueDate": "2023-07-19T21:25:49-03:00",
"companyId": 5,
"txid": null,
"stripe_id": "cs_live_a1zhrJaqn7aNXfxxhBQ3luxAoGixgRCwQ3qDIHwu5QS4V5v6qyVcGdhtE0",
"createdAt": "2023-07-17T00:26:20.000Z",
"updatedAt": "2023-07-17T00:48:59.713Z"
},
{
"id": 2,
"detail": "Plano 1",
"status": "open",
"value": 30,
"dueDate": "2023-07-19T11:13:53-03:00",
"companyId": 3,
"txid": null,
"stripe_id": "cs_live_a1VhPPx5IlITkvjsJdCfFHkaBIs0XBGmVVfeivqg6vpXQb0XsT84u3IBan",
"createdAt": "2023-07-16T14:14:32.000Z",
"updatedAt": "2023-07-17T18:47:22.023Z"
},
{
"id": 21,
"detail": "Plano 2",
"status": "open",
"value": 60,
"dueDate": "2023-08-15T12:45:32-03:00",
"companyId": 21,
"txid": null,
"stripe_id": null,
"createdAt": "2023-08-12T15:46:30.000Z",
"updatedAt": "2023-08-12T15:46:30.000Z"
},
{
"id": 6,
"detail": "Plano 1",
"status": "open",
"value": 30,
"dueDate": "2023-07-21T09:26:00-03:00",
"companyId": 7,
"txid": null,
"stripe_id": null,
"createdAt": "2023-07-18T12:26:21.000Z",
"updatedAt": "2023-07-18T12:26:21.000Z"
},
{
"id": 8,
"detail": "Plano 2",
"status": "open",
"value": 60,
"dueDate": "2023-07-22T11:11:07-03:00",
"companyId": 9,
"txid": null,
"stripe_id": null,
"createdAt": "2023-07-19T14:11:29.000Z",
"updatedAt": "2023-07-19T14:11:29.000Z"
},
{
"id": 7,
"detail": "Plano 1",
"status": "open",
"value": 30,
"dueDate": "2023-07-21T21:25:12-03:00",
"companyId": 8,
"txid": null,
"stripe_id": "cs_live_a1xFnLXCvpwLYVwoQG1D1CRTbnkWADbxBeOX9NoXc5UU0KGChEMxyny6P0",
"createdAt": "2023-07-19T00:25:50.000Z",
"updatedAt": "2023-07-20T15:21:19.766Z"
},
{
"id": 5,
"detail": "Plano 1",
"status": "open",
"value": 30,
"dueDate": "2023-07-20T15:48:50-03:00",
"companyId": 6,
"txid": null,
"stripe_id": "cs_live_a1XQOoKTvNh1GxJMoqITmy6Du4QmH1AROG6fnnIR92fVtUmEAVL8RtJhEg",
"createdAt": "2023-07-17T18:49:44.000Z",
"updatedAt": "2023-07-20T18:25:45.354Z"
},
{
"id": 9,
"detail": "Plano 1",
"status": "open",
"value": 30,
"dueDate": "2023-07-25T20:54:13-03:00",
"companyId": 10,
"txid": null,
"stripe_id": "cs_live_a10bmLWfkYjkyuYzYq7aQBxVpwyFHK43yj9Vav9jFCBYACYCyvJkJ5eFG8",
"createdAt": "2023-07-22T23:56:58.000Z",
"updatedAt": "2023-07-23T00:17:08.763Z"
},
{
"id": 22,
"detail": "Plano Privado 1",
"status": "open",
"value": 111,
"dueDate": "2023-08-15T13:37:34-03:00",
"companyId": 22,
"txid": null,
"stripe_id": null,
"createdAt": "2023-08-12T16:38:30.000Z",
"updatedAt": "2023-08-12T16:38:30.000Z"
},
{
"id": 11,
"detail": "Plano 1",
"status": "open",
"value": 30,
"dueDate": "2023-07-26T17:05:16-03:00",
"companyId": 12,
"txid": null,
"stripe_id": "cs_live_a1qJwuNx3anh2xbXkkIqniJDukA17xe626y4OgvUKW7zVaD332wm5ZpRuE",
"createdAt": "2023-07-23T20:05:51.000Z",
"updatedAt": "2023-07-23T20:06:21.780Z"
},
{
"id": 10,
"detail": "Plano 1",
"status": "open",
"value": 30,
"dueDate": "2023-07-26T11:37:23-03:00",
"companyId": 11,
"txid": null,
"stripe_id": "cs_live_a1W4DSmxKCvRGnXvCyLcM59k3ZYl7iVJ0nLzhjSq2zD7LhiPW1fBKLNkUX",
"createdAt": "2023-07-23T14:38:17.000Z",
"updatedAt": "2023-07-23T20:39:16.121Z"
},
{
"id": 12,
"detail": "Plano 1",
"status": "open",
"value": 30,
"dueDate": "2023-07-26T17:58:32-03:00",
"companyId": 13,
"txid": null,
"stripe_id": null,
"createdAt": "2023-07-23T20:59:24.000Z",
"updatedAt": "2023-07-23T20:59:24.000Z"
},
{
"id": 13,
"detail": "Plano 1",
"status": "open",
"value": 30,
"dueDate": "2023-07-27T22:37:34-03:00",
"companyId": 14,
"txid": null,
"stripe_id": null,
"createdAt": "2023-07-25T01:38:31.000Z",
"updatedAt": "2023-07-25T01:38:31.000Z"
},
{
"id": 23,
"detail": "Plano 2",
"status": "open",
"value": 60,
"dueDate": "2023-08-15T13:43:26-03:00",
"companyId": 23,
"txid": null,
"stripe_id": null,
"createdAt": "2023-08-12T16:44:00.000Z",
"updatedAt": "2023-08-12T16:44:00.000Z"
},
{
"id": 25,
"detail": "Plano Privado 1",
"status": "open",
"value": 111,
"dueDate": "2023-08-13",
"companyId": 25,
"txid": null,
"stripe_id": null,
"createdAt": "2023-08-12T17:31:00.000Z",
"updatedAt": "2023-08-12T17:40:32.739Z"
},
{
"id": 30,
"detail": "Plano 2",
"status": "open",
"value": 10,
"dueDate": "2042-12-27",
"companyId": 29,
"txid": null,
"stripe_id": null,
"createdAt": "2023-09-21T21:10:00.000Z",
"updatedAt": "2023-10-02T02:27:03.832Z"
},
{
"id": 17,
"detail": "Plano 2",
"status": "open",
"value": 60,
"dueDate": "2023-08-22",
"companyId": 18,
"txid": null,
"stripe_id": null,
"createdAt": "2023-07-28T18:14:53.000Z",
"updatedAt": "2023-08-13T02:10:54.612Z"
},
{
"id": 31,
"detail": "Plano 2",
"status": "open",
"value": 10,
"dueDate": "2023-10-07T23:28:46-03:00",
"companyId": 30,
"txid": null,
"stripe_id": null,
"createdAt": "2023-10-02T02:32:00.000Z",
"updatedAt": "2023-10-02T02:32:00.000Z"
},
{
"id": 15,
"detail": "Plano 2",
"status": "open",
"value": 60,
"dueDate": "2023-08-23",
"companyId": 16,
"txid": null,
"stripe_id": "cs_live_a1wA1zZLabAEpWAwe6BfrbK82Zik84YtNuBKY5XCnAK6ZR5aLhG2gXe5nG",
"createdAt": "2023-07-25T14:00:39.000Z",
"updatedAt": "2023-08-13T02:18:24.829Z"
},
{
"id": 26,
"detail": "Plano 1",
"status": "open",
"value": 30,
"dueDate": "2023-08-20T16:21:59-03:00",
"companyId": 26,
"txid": null,
"stripe_id": null,
"createdAt": "2023-08-14T19:22:30.000Z",
"updatedAt": "2023-08-14T19:22:30.000Z"
},
{
"id": 16,
"detail": "Plano 1",
"status": "open",
"value": 30,
"dueDate": "2023-07-11",
"companyId": 17,
"txid": null,
"stripe_id": null,
"createdAt": "2023-07-26T16:45:51.000Z",
"updatedAt": "2023-07-30T20:02:53.571Z"
},
{
"id": 14,
"detail": "Plano 1",
"status": "open",
"value": 30,
"dueDate": "2023-07-06",
"companyId": 15,
"txid": null,
"stripe_id": "cs_live_a1zl3icZwifJJYN9ZfQxGQoLvIXfA6Z2pRcV6vFfcnC8ZlFAC8gWyGyu4C",
"createdAt": "2023-07-25T12:43:12.000Z",
"updatedAt": "2023-07-30T20:03:19.389Z"
},
{
"id": 37,
"detail": "Teste",
"status": "open",
"value": 14.67,
"dueDate": "2023-10-27",
"companyId": 36,
"txid": null,
"stripe_id": null,
"createdAt": "2023-10-21T22:39:00.000Z",
"updatedAt": "2023-10-22T00:23:33.550Z"
},
{
"id": 38,
"detail": "Teste",
"status": "open",
"value": 14.67,
"dueDate": "2023-10-30T15:19:54-03:00",
"companyId": 37,
"txid": null,
"stripe_id": null,
"createdAt": "2023-10-24T18:20:30.000Z",
"updatedAt": "2023-10-24T18:20:30.000Z"
},
{
"id": 39,
"detail": "Teste",
"status": "open",
"value": 14.67,
"dueDate": "2023-11-01T22:01:39-03:00",
"companyId": 38,
"txid": null,
"stripe_id": null,
"createdAt": "2023-10-27T01:02:30.000Z",
"updatedAt": "2023-10-27T01:02:30.000Z"
},
{
"id": 40,
"detail": "Plano 2",
"status": "open",
"value": 10,
"dueDate": "2023-11-01T22:10:46-03:00",
"companyId": 39,
"txid": null,
"stripe_id": null,
"createdAt": "2023-10-27T01:11:30.000Z",
"updatedAt": "2023-10-27T01:11:30.000Z"
},
{
"id": 41,
"detail": "Plano 2",
"status": "open",
"value": 10,
"dueDate": "2023-11-01T22:14:39-03:00",
"companyId": 40,
"txid": null,
"stripe_id": null,
"createdAt": "2023-10-27T01:15:30.000Z",
"updatedAt": "2023-10-27T01:15:30.000Z"
},
{
"id": 42,
"detail": "Teste",
"status": "open",
"value": 14.67,
"dueDate": "2023-11-04T11:40:39-03:00",
"companyId": 41,
"txid": null,
"stripe_id": null,
"createdAt": "2023-10-29T14:41:30.000Z",
"updatedAt": "2023-10-29T14:41:30.000Z"
},
{
"id": 43,
"detail": "Plano 1",
"status": "open",
"value": 1190.99,
"dueDate": "2023-11-07T20:33:20-03:00",
"companyId": 42,
"txid": null,
"stripe_id": null,
"createdAt": "2023-11-01T23:34:30.000Z",
"updatedAt": "2023-11-01T23:34:30.000Z"
},
{
"id": 44,
"detail": "Plano 2",
"status": "open",
"value": 10,
"dueDate": "2023-11-08T18:53:07-03:00",
"companyId": 43,
"txid": null,
"stripe_id": null,
"createdAt": "2023-11-02T21:53:30.000Z",
"updatedAt": "2023-11-02T21:53:30.000Z"
},
{
"id": 45,
"detail": "Teste",
"status": "open",
"value": 14.67,
"dueDate": "2023-11-08T18:53:35-03:00",
"companyId": 44,
"txid": null,
"stripe_id": null,
"createdAt": "2023-11-02T21:54:00.000Z",
"updatedAt": "2023-11-02T21:54:00.000Z"
},
{
"id": 32,
"detail": "Plano 2",
"status": "open",
"value": 10,
"dueDate": "2034-10-11",
"companyId": 31,
"txid": null,
"stripe_id": "cs_live_a1yHSaePUUlOC6YvREba758auuZkTJE7BNJqDT2TuxIoQuT5bu21o4Jpyy",
"createdAt": "2023-10-06T01:38:30.000Z",
"updatedAt": "2023-10-13T01:45:02.566Z"
},
{
"id": 52,
"detail": "Plano Ilimitado",
"status": "open",
"value": 1,
"dueDate": "2023-11-20",
"companyId": 51,
"txid": null,
"stripe_id": null,
"createdAt": "2023-11-14T16:12:30.000Z",
"updatedAt": "2023-11-14T16:12:50.463Z"
},
{
"id": 24,
"detail": "Plano 2",
"status": "open",
"value": 10,
"dueDate": "2023-08-15",
"companyId": 24,
"txid": null,
"stripe_id": null,
"createdAt": "2023-08-12T17:29:30.000Z",
"updatedAt": "2023-10-16T01:01:36.198Z"
},
{
"id": 33,
"detail": "Teste",
"status": "open",
"value": 14.67,
"dueDate": "2023-10-22T00:20:17-03:00",
"companyId": 32,
"txid": null,
"stripe_id": null,
"createdAt": "2023-10-16T03:21:00.000Z",
"updatedAt": "2023-10-16T03:21:00.000Z"
},
{
"id": 34,
"detail": "Teste",
"status": "open",
"value": 14.67,
"dueDate": "2023-10-25T22:32:03-03:00",
"companyId": 33,
"txid": null,
"stripe_id": null,
"createdAt": "2023-10-20T01:33:00.000Z",
"updatedAt": "2023-10-20T01:33:00.000Z"
},
{
"id": 35,
"detail": "Teste",
"status": "open",
"value": 14.67,
"dueDate": "2023-10-26T10:43:08-03:00",
"companyId": 34,
"txid": null,
"stripe_id": null,
"createdAt": "2023-10-20T13:44:00.000Z",
"updatedAt": "2023-10-20T13:44:00.000Z"
},
{
"id": 36,
"detail": "Plano 2",
"status": "open",
"value": 10,
"dueDate": "2023-10-26T10:48:35-03:00",
"companyId": 35,
"txid": null,
"stripe_id": null,
"createdAt": "2023-10-20T13:49:30.000Z",
"updatedAt": "2023-10-20T13:49:30.000Z"
},
{
"id": 47,
"detail": "Plano Privado 1",
"status": "open",
"value": 111,
"dueDate": "2023-11-20T00:00:00-03:00",
"companyId": 46,
"txid": null,
"stripe_id": null,
"createdAt": "2023-11-14T14:52:00.000Z",
"updatedAt": "2023-11-14T14:52:00.000Z"
},
{
"id": 48,
"detail": "Plano Ilimitado",
"status": "open",
"value": 1,
"dueDate": "2023-11-20",
"companyId": 47,
"txid": null,
"stripe_id": null,
"createdAt": "2023-11-14T15:04:00.000Z",
"updatedAt": "2023-11-14T15:04:14.778Z"
},
{
"id": 49,
"detail": "Plano 2",
"status": "open",
"value": 10,
"dueDate": "2023-11-20",
"companyId": 48,
"txid": null,
"stripe_id": null,
"createdAt": "2023-11-14T15:13:00.000Z",
"updatedAt": "2023-11-14T15:13:31.017Z"
},
{
"id": 50,
"detail": "Plano Privado 1",
"status": "open",
"value": 111,
"dueDate": "2023-11-20",
"companyId": 49,
"txid": null,
"stripe_id": null,
"createdAt": "2023-11-14T15:23:00.000Z",
"updatedAt": "2023-11-14T15:23:02.278Z"
},
{
"id": 51,
"detail": "Plano Ilimitado",
"status": "open",
"value": 1,
"dueDate": "2023-11-20",
"companyId": 50,
"txid": null,
"stripe_id": null,
"createdAt": "2023-11-14T15:38:30.000Z",
"updatedAt": "2023-11-14T15:38:35.624Z"
},
{
"id": 53,
"detail": "Plano Privado 1",
"status": "open",
"value": 111,
"dueDate": "2023-11-20",
"companyId": 52,
"txid": null,
"stripe_id": null,
"createdAt": "2023-11-14T16:16:30.000Z",
"updatedAt": "2023-11-14T16:16:35.881Z"
},
{
"id": 54,
"detail": "Plano Ilimitado",
"status": "open",
"value": 1,
"dueDate": "2023-11-20",
"companyId": 53,
"txid": null,
"stripe_id": null,
"createdAt": "2023-11-14T16:38:30.000Z",
"updatedAt": "2023-11-14T16:39:19.500Z"
},
{
"id": 55,
"detail": "Plano Ilimitado",
"status": "open",
"value": 1,
"dueDate": "2023-11-20T00:00:00-03:00",
"companyId": 54,
"txid": null,
"stripe_id": null,
"createdAt": "2023-11-14T17:21:00.000Z",
"updatedAt": "2023-11-14T17:21:00.000Z"
},
{
"id": 56,
"detail": "Plano 1",
"status": "open",
"value": 1190.99,
"dueDate": "2023-11-20",
"companyId": 55,
"txid": null,
"stripe_id": null,
"createdAt": "2023-11-14T18:33:30.000Z",
"updatedAt": "2023-11-15T20:41:11.399Z"
},
{
"id": 57,
"detail": "Plano Ilimitado",
"status": "open",
"value": 1,
"dueDate": "2023-11-21T17:51:30-03:00",
"companyId": 56,
"txid": null,
"stripe_id": null,
"createdAt": "2023-11-15T20:52:00.000Z",
"updatedAt": "2023-11-15T20:52:00.000Z"
},
{
"id": 58,
"detail": "Plano Ilimitado",
"status": "open",
"value": 1,
"dueDate": "2023-11-28T00:00:00-03:00",
"companyId": 57,
"txid": null,
"stripe_id": null,
"createdAt": "2023-11-22T22:34:30.000Z",
"updatedAt": "2023-11-22T22:34:30.000Z"
},
{
"id": 60,
"detail": "Plano Privado 1",
"status": "open",
"value": 111,
"dueDate": "2023-12-08",
"companyId": 59,
"txid": null,
"stripe_id": null,
"createdAt": "2023-12-02T15:23:00.000Z",
"updatedAt": "2023-12-02T15:23:07.611Z"
},
{
"id": 61,
"detail": "Plano Ilimitado",
"status": "open",
"value": 1,
"dueDate": "2023-12-08",
"companyId": 60,
"txid": null,
"stripe_id": null,
"createdAt": "2023-12-02T16:13:30.000Z",
"updatedAt": "2023-12-02T16:13:48.697Z"
},
{
"id": 62,
"detail": "Plano Ilimitado",
"status": "open",
"value": 1,
"dueDate": "2023-12-08",
"companyId": 61,
"txid": null,
"stripe_id": null,
"createdAt": "2023-12-02T16:45:30.000Z",
"updatedAt": "2023-12-02T16:45:30.414Z"
},
{
"id": 63,
"detail": "Plano Ilimitado",
"status": "open",
"value": 1,
"dueDate": "2023-12-08",
"companyId": 62,
"txid": null,
"stripe_id": null,
"createdAt": "2023-12-02T17:08:30.000Z",
"updatedAt": "2023-12-02T17:08:32.095Z"
},
{
"id": 64,
"detail": "Plano Ilimitado",
"status": "open",
"value": 1,
"dueDate": "2023-12-08",
"companyId": 63,
"txid": null,
"stripe_id": null,
"createdAt": "2023-12-02T18:27:30.000Z",
"updatedAt": "2023-12-02T18:27:53.129Z"
},
{
"id": 65,
"detail": "Plano 1",
"status": "open",
"value": 1190.99,
"dueDate": "2023-12-13T13:39:49-03:00",
"companyId": 64,
"txid": null,
"stripe_id": null,
"createdAt": "2023-12-07T16:41:30.000Z",
"updatedAt": "2023-12-07T16:41:30.000Z"
},
{
"id": 66,
"detail": "Plano 2",
"status": "open",
"value": 10,
"dueDate": "2023-12-13T16:26:35-03:00",
"companyId": 65,
"txid": null,
"stripe_id": null,
"createdAt": "2023-12-07T19:27:30.000Z",
"updatedAt": "2023-12-07T19:27:30.000Z"
},
{
"id": 67,
"detail": "Plano 2",
"status": "open",
"value": 10,
"dueDate": "2023-12-13T16:57:08-03:00",
"companyId": 66,
"txid": null,
"stripe_id": null,
"createdAt": "2023-12-07T19:57:30.000Z",
"updatedAt": "2023-12-07T19:57:30.000Z"
},
{
"id": 73,
"detail": "Plano 2",
"status": "open",
"value": 10,
"dueDate": "2023-12-18T09:55:13-03:00",
"companyId": 72,
"txid": null,
"stripe_id": null,
"createdAt": "2023-12-12T12:57:00.000Z",
"updatedAt": "2023-12-12T12:57:00.000Z"
},
{
"id": 74,
"detail": "Plano Ilimitado",
"status": "open",
"value": 1,
"dueDate": "2023-12-21T20:29:50-03:00",
"companyId": 73,
"txid": null,
"stripe_id": null,
"createdAt": "2023-12-15T23:30:30.000Z",
"updatedAt": "2023-12-15T23:30:30.000Z"
}
]
Updated 17 Dec 2023
![Doc contributor](https://s3.amazonaws.com/archbee-animals/koala.png)
Did this page help you?