5 - Queries
5.1 GetTopUpProducts
This method is used to query the products.
Request Body
{
"Method": "GetTopUpProducts",
"PartnerId": {{PartnerId}},
"BusinessUnitId": {{BusinessUnitdId}},
"ProductType": 0,
"ProductSubType": 85,
"ProductValue": 100.00
}
{
"Success": "true",
"Message": "ISI0001 - Método executado com sucesso",
"TotalRecords": 2,
"OriginNSU": "db684526-ce75-4108-9dee-2bf7c0cfbcc7",
"Products": [
{
"ProductKey": "CLARO66-2000-409000009368",
"BatchIdentifier": "409000009368",
"ProductType": 0,
"ProductSubType": 66,
"ProductValueType": 0,
"ProductValue": 20.00,
"ProductMinValue": 0.00,
"ProductMaxValue": 0.00,
"Description": "CLARO",
"Bonus": "+2GB"
},
{
"ProductKey": "CLARO66-2500-409000009368",
"BatchIdentifier": "409000009368",
"ProductType": 0,
"ProductSubType": 66,
"ProductValueType": 0,
"ProductValue": 25.00,
"ProductMinValue": 0.00,
"ProductMaxValue": 0.00,
"Description": "CLARO",
"Bonus": "+2GB"
}
]
}
Description
POST /main/execute
PARAMETER | TYPE | DESCRIPTION |
---|---|---|
Method | string | Mandatory. Method Name |
BusinessUnitId | long | Mandatory. Business Unit ID provided by Fitbank |
Partner | string | Mandatory. Identifier provided by Fitbank |
ProductType | Enum | Mandatory. Recharge generation type (Phone = 0) |
ProductSubType | Enum | Mandatory. Area code for your region |
ProductValue | Enum | Product Value |
5.2 GetTopUpProductsByPhone
This method is used to query products by phone number.
Request Body
{
"Method": "GetTopUpProductsByPhone",
"PartnerId": {{PartnerId}},
"BusinessUnitId": {{BusinessUnitdId}},
"Phone": "999999999",
"ProductSubType": 85,
}
{
"Success": "true",
"Message": "ISI0001 - Método executado com sucesso",
"TotalRecords": 2,
"OriginNSU": "db684526-ce75-4108-9dee-2bf7c0cfbcc7",
"Products": [
{
"ProductKey": "CLARO66-2000-409000009368",
"BatchIdentifier": "409000009368",
"ProductType": 0,
"ProductSubType": 66,
"ProductValueType": 0,
"ProductValue": 20.00,
"ProductMinValue": 0.00,
"ProductMaxValue": 0.00,
"Description": "CLARO",
"Bonus": "+2GB"
},
{
"ProductKey": "CLARO66-2500-409000009368",
"BatchIdentifier": "409000009368",
"ProductType": 0,
"ProductSubType": 66,
"ProductValueType": 0,
"ProductValue": 25.00,
"ProductMinValue": 0.00,
"ProductMaxValue": 0.00,
"Description": "CLARO",
"Bonus": "+2GB"
}
]
}
Description
POST /main/execute
Parâmetro | Tipo | Descrição |
---|---|---|
Method | string | Mandatory. Method Name |
BusinessUnitId | long | Mandatory. Business Unit ID provided by Fitbank |
Partner | string | Mandatory. Identifier provided by Fitbank |
Phone | Enum | Mandatory. Recharge beneficiary phone number |
ProductSubType | Enum | Mandatory. Area code for your region |
5.3 GetTopUpById
This method is used to query mobile top-ups.
Request Body
{
"Method": "GetTopUpById",
"PartnerId": {{PartnerId}},
"BusinessUnitId": {{BusinessUnitdId}},
"DocumentNumber": 985547,
"OriginNSU": "c242a50e-f707-45e9-b178-cee6dc698cb"
}
Description
POST /main/execute
Parâmetro | Tipo | Descrição |
---|---|---|
Method | string | Mandatory. Method Name |
BusinessUnitId | long | Mandatory. Business Unit ID provided by Fitbank |
Partner | string | Mandatory. Identifier provided by Fitbank |
DocumentNumber | long | Mandatory. Unique recharge identifier |
NSU | string | Transactional identifier of the recharge |
Updated 2 days ago