Prepaid Refill Model

The Prepaid Refill Model – is a model for showing platform plan prepaid refill parameters. Model fields are presented in the table (Table 4.14), with an example below (Listing 4.10).

Table 4.14 – Fields of Refill Model

Key
Type
Exists
Description

1

uuid

uuid v4, string

required

Main identifier of refill

2

amount_mb

integer

required

MB amount for refill

3

price

float

required

Price for refill (with VAT if it exists)

4

currency_code

string

required

“EUR”, “USD”, etc.

Listing 4.10 – Example of Refill Model (JSON)

{
    "uuid":           "b528bcb9-86cf-2d72834d02ab",
    "amount_mb":      "315",
    "price":          "90.95",
    "currency_code":  "USD"
}

Last updated