Get Invoices List
By calling this API, you can get the list of invoices in the specified outlet.
GET /integrations/mokapos/outlets/{outlet_id}/v1/reporting/invoices
Path Parameters
| Attribute | Description | Type | Required | 
|---|---|---|---|
| outlet_id | The Outlet ID | String | Required | 
Query Parameters
| Attribute | Description | Type | Required | 
|---|---|---|---|
| per_page | The max number of items on each page. Max: 1000 | Integer | Optional | 
| page | The number of the page | Integer | Optional | 
Sample Response - 200 Success
{
  "success": true,
  "data": {
    "invoices": [
      {
        "id": 43780888,
        "invoice_no": "INV10EF2H3",
        "invoice_due_date": "2021-11-25",
        "invoice_deposit_amount": 0,
        "amount_pay": 68000,
        "amount_change": 0
        "total_tax_amount": 0,
        "total_net_sales": 68000,
        "total_item_price_amount": 0,
        "total_gross_sales": 68000,
        "total_gratuity_amount": 0,
        "total_discount_amount": 0,
        "total_collected_amount": 68000,
        "subtotal": 68000,
        "refund_amount": 0,
        "payment_type": "invoice",
        "payment_note": "test",
        "payment_no": "INV10EF2H3",
        "is_refunded": false,
        "is_refund_breakdown": true,
        "created_at": "2021-11-25T15:26:52.797000+07:00",
        "updated_at": "2021-11-25T15:26:52.797000+07:00"
      }
    ],
    "completed": true
  }
}
note
To perform this operation, you must be authenticated using go_auth_client_credentials(mokapos:reporting:read).