POS Configuration
Get POS Config and Payment Methods
Set cookie: session_id value what we got from authenticate
POST /api/v1/models/pos_session
Headers:
{ "Content-Type": "application/json", "Cookie": "session_id=4e21fd7bf236b7d283b471254b8c94a57c8a3a08"}Request Body:
{ "fields": ["config_id", "payment_method_ids"], "limit": 1, "domain": [["user_id", "=", 6], ["state", "=", "opened"]]}Response:
Get from response config_id and payment_method_ids
Get TIPs and Discount products
Set cookie: session_id value what we got from authenticate
POST /api/v1/models/pos_config
Headers:
{ "Content-Type": "application/json", "Cookie": "session_id=4e21fd7bf236b7d283b471254b8c94a57c8a3a08"}Request Body:
{ "fields": ["tip_product_id", "discount_product_id"], "limit": 1, "domain": [["id", "=", 2]]}Response:
Get from response tip_product_id and discount_product_id
Get payment methods data
Set cookie: session_id value what we got from authenticate
POST /api/v1/models/pos_payment_method
Headers:
{ "Content-Type": "application/json", "Cookie": "session_id=4e21fd7bf236b7d283b471254b8c94a57c8a3a08"}Request Body:
{ "fields": [ "id", "name", "journal_id" ], "domain": [["id", "in", [2]]]}Response:
Get from response journal_id
Get account journal data
Set cookie: session_id value what we got from authenticate
POST /api/v1/models/account_journal
Headers:
{ "Content-Type": "application/json", "Cookie": "session_id=4e21fd7bf236b7d283b471254b8c94a57c8a3a08"}Request Body:
{ "fields": [ "code" ], "domain": [["id", "in", [6]]]}Response:
Get from response code