Creation of mPos
info
OK
const response = await fetch('//api.client.nbcgate.tech/api/pay/m-pos', { method: 'POST', headers: { "Content-Type": "application/json" }, body: JSON.stringify({ "balance_id": 0, "external_id": "text", "name": "text" }), }); const data = await response.json();
{ "id": 0 }
Editing mPos
No Content
const response = await fetch('//api.client.nbcgate.tech/api/pay/m-pos', { method: 'PUT', headers: { "Content-Type": "application/json" }, body: JSON.stringify({ "balance_id": 0, "id": 0, "m_pos_status_id": 0, "m_pos_type_id": 0, "name": "text" }), }); const data = await response.json();
{ "errors": [ { "code": 0, "field": "text", "message": "text" } ], "message": "text", "statusCode": 0 }
mPos information
mPos id
const response = await fetch('//api.client.nbcgate.tech/api/pay/m-pos/{id}', { method: 'GET', headers: {}, }); const data = await response.json();
{ "amount": 0, "balance_id": 0, "date_add": "text", "editable_balance": false, "id": 0, "iso_str": "text", "m_pos_status_id": 0, "m_pos_type_id": 0, "name": "text", "owner_id": 0, "uu_id": "text" }