How can I get the price of an SMS and the remaining balance in SMPP?
Objective
Obtaining the price of an SMS and your remaining balance in SMPP.
Applies To
- SMS
- Billing
- SMPP
Procedure
Include a Tag Length Value (TLV) of 0x1421 in the submit_sm with a value of 0x031.
0x1422, 0x1423, and 0x1402 will be returned with strings containing the price, remaining balance, and the Mobile Country Code (MCC)/Mobile Network Code (MNC).
Optional TLV Field | Hex Value | Decimal |
Submission Price | 0x1422 | 5154 |
Remaining Balance | 0x1423 | 5155 |
MCC/MNC | 0x1402 | 5122 |
Example
Send a 0x1421 and get back a 0x1422/0x1423 and 0x1402 (MCC/MNC).
Comments
2 comments
what is the recommended setting for kannel?
group = smpp-tlv
name = ?
tag = 0x1421
type = ?
length = ?
is it available by default on the SMPP access or someone need to get it activated from nexmo?
name = whatever you want
type = octetstring
length=1
Please sign in to leave a comment.