Browse Documentation
POST Add possales payment

Pay POS Sale

POST /pos/pay/:id/


Request

{
    "payment": {
        "amount":190.0,
        "pos_active_payment_method_id":"2c4953764147180ce65e76e9b3fbfe787dfa25ee",
        "payment_timestamp":"2018-04-05 14:18:02",
       
    }
}

Response

As a response the complete invoice object will be returned

{
  "id": "8b52fe319771b6c2fd0d405c803710e5fd99cb99",
  "organization_id": "70945f9be9063109a310e84683f2677f8fe269e4",
  "document_number": "POS-00001",
  "client_id": null,
  "email": null,
  "mobile": null,
  "total_amount": 100,
  "total_base_amount": 82.64,
  "total_tax_amount": 17.36,
  "amount_due": 0,
  "currency": "NGN",
  "date_issued": "2018-01-21",
  "date_due": "2018-09-02",
  "date_created": "2018-08-02",
  "date_updated": "2018-08-02",
  "status": "approved",
  "user": {
  "email": "[email protected]",
  "name": "Test User"
 },
  "reference": null,
  "items": [
 {
  "id": "708f93070633eed942aa2668d553d267ad11e957",
  "title": "T-Shirt",
  "description": "Size: L",
  "quantity": 1,
  "item_base_amount": 82.64,
  "tax_id": "1e9186dd769d2d8d507fbfe68408d3774bf0e131",
  "tax_name": "VAT 21%",
  "tax_percentage": 21,
  "line_base_amount": 82.64,
  "line_tax_amount": 17.36,
  "line_total_amount": 100,
  "tax_included": true,
  "price": 100,
  "item": null,
  "gl_account": {
    "id": "577b6205218ad4ce7e1c621e8d63af5e4c34deb0",
    "code": "177008",
    "title": "Test FCMB GL",
    "description": "Recusandae asperiores accusamus nihil repellat vero omnis voluptates id a     met."
  }
 }],
  "clearings": [{
    "type": "payment",
    "amount": "-100.00",
    "payment": {
    "id": "4febaf20cec7954609559b9da55a184cb7c5405d",
    "amount": "100.00",
    "gl_account_id": "577b6205218ad4ce7e1c621e8d63af5e4c34deb0"
   },
   "payment_method": {
   "id": "ng_mpos_fcmb",
   "method": "mPOS Card Payments provided by FCMB"
   }
  }],
  "receipt": {
    "url": "http://app.accounteer.com/pos/receipt/8b52fe319771b6c2fd0d405c803710e5fd99cb99",
    "pdf": "http://app.accounteer.com/pos/receipt/download/8b52fe319771b6c2fd0d405c803710e5fd99cb99"
  }
}