Browse Documentation
GET Get pos sales

List All POS Sales

GET /pos

Get a list of all POS Sales.

You can filter result based on:

  1.  Category
  2. Payment Method
  3. Team Member Email
  4. Date

Request

    
curl -s -H "Content-Type: application/json" -H "Authorization: Bearer token" \
-XGET \
https://dev.accounteer.com/api/v0.1/pos?from_date=2018-06-01&to_date=2018-06-31&payment_method=cash&[email protected]
    

Response

[{
  "id": "42af8c9e5fe362b1316f0491b30dc1dd1c61d34d",
  "organization_id": "ea6800598a367e86c9110fea2692cb27f1b919d1",
  "document_number": "POS-00001",
  "client_id": null,
  "email": null,
  "mobile": null,
  "total_amount": 3180,
  "total_base_amount": 3028.57,
  "total_tax_amount": 151.43,
  "amount_due": 0,
  "currency": "NGN",
  "date_issued": "2018-06-27",
  "date_due": "2018-07-27",
  "date_created": "2018-06-27",
  "date_updated": "2018-06-27",
  "status": "approved",
  "user": {
    "email": "[email protected]",
    "name": "Test"
  },
  "items": [{
     "id": "fc666912671c23f8c2530528b543466b31eab58e",
     "title": "gopolo",
     "description": "gopolo",
     "quantity": 1,
     "item_base_amount": 2457.14,
     "tax_id": "0ca6571a67312c9dbf111c71d0d9adb9f215f1a0",
     "tax_name": "5%",
     "tax_percentage": 5,
     "line_base_amount": 2457.14,
     "line_tax_amount": 122.86,
     "line_total_amount": 2580,
     "tax_included": true,
     "price": 2580,
     "item": null,
     "gl_account": { 
         "id": "464e35b93e21f38963b9a43f5426119e25f94896",
         "code": "4000",
         "title": "Sales",
         "description": null
     }
 },
{
  "id": "af37e6824c2c6a71cb022a1b75ca53820588b197",
  "title": "JR Coke",
  "description": "Cool drinks to satisfy your thirst",
  "quantity": 2,
  "item_base_amount": 285.71,
  "tax_id": "0ca6571a67312c9dbf111c71d0d9adb9f215f1a0",
  "tax_name": "5%",
  "tax_percentage": 5,
  "line_base_amount": 571.43,
  "line_tax_amount": 28.57,
  "line_total_amount": 600,
  "tax_included": true,
  "price": 300,
  "item": {
      "id": "e525a943aa800f417bf67fbb6b5d02a5ebf9f090",
      "category": {
      "id": "32d057823da663955e1476c3626e9f783215255e",
      "name": "Drinks"
  }
},
  "gl_account": {
  "id": "464e35b93e21f38963b9a43f5426119e25f94896",
  "code": "4000",
  "title": "Sales",
  "description": null
  }
 }],
  "clearings": [
  {
    "type": "payment",
    "amount": "-3180.00",
    "payment": {
    "id": "79bbffe972ef162a801d3bea3dd748743f8c97f6",
    "amount": "3180.00",
    "gl_account_id": "8b1f75589c62fc6cc8f90c4d0e9d4648a253d970"
   },
  "payment_method": {
  "id": "cash",
  "method": "Cash Payments"
  }
 }
 ],
  "receipt": {
  "url": "http://dev.accounteer.com/pos/receipt/42af8c9e5fe362b1316f0491b30dc1dd1c61d34d",
  "pdf": "http://dev.accounteer.com/pos/receipt/download/42af8c9e5fe362b1316f0491b30dc1dd1c61d34d"
 }
}]


Get POS SALE

GET /pos/:id

Get a specific pos sale

Request

    
curl -s -H "Content-Type: application/json" -H "Authorization: Bearer token" \
-XGET \
https://dev.accounteer.com/api/v0.1/pos/42af8c9e5fe362b1316f0491b30dc1dd1c61d34d
    
{
  "id": "42af8c9e5fe362b1316f0491b30dc1dd1c61d34d",
  "organization_id": "ea6800598a367e86c9110fea2692cb27f1b919d1",
  "document_number": "POS-00001",
  "client_id": null,
  "email": null,
  "mobile": null,
  "total_amount": 3180,
  "total_base_amount": 3028.57,
  "total_tax_amount": 151.43,
  "amount_due": 0,
  "currency": "NGN",
  "date_issued": "2018-06-27",
  "date_due": "2018-07-27",
  "date_created": "2018-06-27",
  "date_updated": "2018-06-27",
  "status": "approved",
  "user": {
    "email": "[email protected]",
    "name": "Test"
  },
  "items": [{
     "id": "fc666912671c23f8c2530528b543466b31eab58e",
     "title": "gopolo",
     "description": "gopolo",
     "quantity": 1,
     "item_base_amount": 2457.14,
     "tax_id": "0ca6571a67312c9dbf111c71d0d9adb9f215f1a0",
     "tax_name": "5%",
     "tax_percentage": 5,
     "line_base_amount": 2457.14,
     "line_tax_amount": 122.86,
     "line_total_amount": 2580,
     "tax_included": true,
     "price": 2580,
     "item": null,
     "gl_account": { 
         "id": "464e35b93e21f38963b9a43f5426119e25f94896",
         "code": "4000",
         "title": "Sales",
         "description": null
     }
 },
{
  "id": "af37e6824c2c6a71cb022a1b75ca53820588b197",
  "title": "JR Coke",
  "description": "Cool drinks to satisfy your thirst",
  "quantity": 2,
  "item_base_amount": 285.71,
  "tax_id": "0ca6571a67312c9dbf111c71d0d9adb9f215f1a0",
  "tax_name": "5%",
  "tax_percentage": 5,
  "line_base_amount": 571.43,
  "line_tax_amount": 28.57,
  "line_total_amount": 600,
  "tax_included": true,
  "price": 300,
  "item": {
      "id": "e525a943aa800f417bf67fbb6b5d02a5ebf9f090",
      "category": {
      "id": "32d057823da663955e1476c3626e9f783215255e",
      "name": "Drinks"
  }
},
  "gl_account": {
  "id": "464e35b93e21f38963b9a43f5426119e25f94896",
  "code": "4000",
  "title": "Sales",
  "description": null
  }
 }],
  "clearings": [
  {
    "type": "payment",
    "amount": "-3180.00",
    "payment": {
    "id": "79bbffe972ef162a801d3bea3dd748743f8c97f6",
    "amount": "3180.00",
    "gl_account_id": "8b1f75589c62fc6cc8f90c4d0e9d4648a253d970"
   },
  "payment_method": {
  "id": "cash",
  "method": "Cash Payments"
  }
 }
 ],
  "receipt": {
  "url": "http://dev.accounteer.com/pos/receipt/42af8c9e5fe362b1316f0491b30dc1dd1c61d34d",
  "pdf": "http://dev.accounteer.com/pos/receipt/download/42af8c9e5fe362b1316f0491b30dc1dd1c61d34d"
 }
}