I’m having trouble identifying the field responsible for storing the customer’s virtual wallet balance.
Ex: GSV-1529360531190-01
Challenge:
Identifying the API and the corresponding field;
-
Attempt 1:
When making a GET request, the following code was used to map the possible field to the endpoint:
order_id_desejado = “GSV-1529360531190-01”
url = f’https://servelec291.vtexcommercestable.com.br/api/oms/pvt/orders/ {order_id_desejado}’
taxas_item = item.get(‘taxData’, {}).get(‘taxInfoCollection’, [{}])[0].get(‘priceTags’, [{}])[0].get(‘rawValue’, 0)
“taxData”: {
“areTaxesDesignatedByMarketplace”: true,
“taxInfoCollection”: [
{
“itemIndex”: 0,
“sku”: “18”,
“priceTags”:[
{
“identifier”: “0a9df101-330c-41ad-a4c7-5a0bd521bc9u”,
“isPercentual”: false,
“name”: “Taxes (Magazine Luisa)”,
“value”: 193,
“rawValue”: 1.93
}
]
}
]
}
→ Attempt 2:
Fetch the value (Taxes) from the Promotions & Taxes API
url = “https://servelec291.vtexcommercestable.com.br/api/rnb/pvt/taxes/calculatorconfiguration”
In this case, I get the following JSON as a response: Under (active items) it returns “0”
{
“limitConfiguration”: {
“activesCount”: 0,
“limit”: 100
},
“items”: ,
“disabledItems”: ,
“archivedItems”:
}
Thank you,
Best regards.

