Carteira - Saldo - API Lojaz Delivery

GET

-

Obter Carteira da loja

PATH

{{BASE_URL}}/stores/:storeId/wallet

Query Params

token: Bearer Token

Path Params

storeId: id da loja

Exemplo em NodeJS:

const axios = require('axios'); const getWallet = async () => { try { const response = await axios.get('BASE_URL/stores/:storeId/wallet', { params: { token: "ACCESS_TOKEN" } }); // handle response } catch (error) { // handle error } }; module.exports = getWallet;

Response - OK (200)

{
  "status": true,
  "data": {
    "_id": "669e8d9468a769acaa7b53bc",
    "storeId": "669e8d9468a769acaa7b53ba",
    "balance": "410,00",
    "pendingBalance": "0,00",
    "blockedBalance": "0,00",
    "createdAt": "2024-07-22T16:49:21.642Z",
    "updatedAt": "2024-07-22T16:49:21.642Z",
    "__v": 0
  }
}

Content-Type: application/json