POST api/mvno/contel/topup

Request Information

URI Parameters

None.

Body Parameters

TopUpUIPlanRequest
NameDescriptionTypeAdditional information
metodo_pagamento

string

None.

extra

boolean

None.

planGB

integer

None.

numeros

Collection of Numero

None.

Request Formats

application/json, text/json

Sample:
{
  "metodo_pagamento": "sample string 1",
  "extra": true,
  "planGB": 3,
  "numeros": [
    {
      "numero": "sample string 1",
      "id_plano": 2
    },
    {
      "numero": "sample string 1",
      "id_plano": 2
    }
  ]
}

text/html

Sample:
{"metodo_pagamento":"sample string 1","extra":true,"planGB":3,"numeros":[{"numero":"sample string 1","id_plano":2},{"numero":"sample string 1","id_plano":2}]}

application/xml, text/xml

Sample:
<TopUpUIPlanRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FoneClube.Business.Commons.Entities.FoneClube">
  <extra>true</extra>
  <metodo_pagamento>sample string 1</metodo_pagamento>
  <numeros>
    <Numero>
      <id_plano>2</id_plano>
      <numero>sample string 1</numero>
    </Numero>
    <Numero>
      <id_plano>2</id_plano>
      <numero>sample string 1</numero>
    </Numero>
  </numeros>
  <planGB>3</planGB>
</TopUpUIPlanRequest>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'TopUpUIPlanRequest'.

Response Information

Resource Description

TopUpUIPlanResponse
NameDescriptionTypeAdditional information
bitTopupDone

boolean

None.

Status

integer

None.

Linha

string

None.

bitWarning

boolean

None.

bitZeroGB

boolean

None.

PreFimPlano

string

None.

PostFimPlano

string

None.

DataFimPlano

string

None.

PortIn

string

None.

StatusPortabilidade

string

None.

PreSaldo

string

None.

PostSaldo

string

None.

SaldoGBAdded

string

None.

StatusGB

string

None.

LastTopup

date

None.

Response Formats

application/json, text/json

Sample:
{
  "bitTopupDone": true,
  "Status": 2,
  "Linha": "sample string 3",
  "bitWarning": true,
  "bitZeroGB": true,
  "PreFimPlano": "sample string 6",
  "PostFimPlano": "sample string 7",
  "DataFimPlano": "sample string 8",
  "PortIn": "sample string 9",
  "StatusPortabilidade": "sample string 10",
  "PreSaldo": "sample string 11",
  "PostSaldo": "sample string 12",
  "SaldoGBAdded": "sample string 13",
  "StatusGB": "sample string 14",
  "LastTopup": "2024-11-16T18:45:01.8117361-03:00"
}

text/html

Sample:
{"bitTopupDone":true,"Status":2,"Linha":"sample string 3","bitWarning":true,"bitZeroGB":true,"PreFimPlano":"sample string 6","PostFimPlano":"sample string 7","DataFimPlano":"sample string 8","PortIn":"sample string 9","StatusPortabilidade":"sample string 10","PreSaldo":"sample string 11","PostSaldo":"sample string 12","SaldoGBAdded":"sample string 13","StatusGB":"sample string 14","LastTopup":"2024-11-16T18:45:01.8117361-03:00"}

application/xml, text/xml

Sample:
<TopUpUIPlanResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FoneClube.Business.Commons.Entities.FoneClube">
  <DataFimPlano>sample string 8</DataFimPlano>
  <LastTopup>2024-11-16T18:45:01.8117361-03:00</LastTopup>
  <Linha>sample string 3</Linha>
  <PortIn>sample string 9</PortIn>
  <PostFimPlano>sample string 7</PostFimPlano>
  <PostSaldo>sample string 12</PostSaldo>
  <PreFimPlano>sample string 6</PreFimPlano>
  <PreSaldo>sample string 11</PreSaldo>
  <SaldoGBAdded>sample string 13</SaldoGBAdded>
  <Status>2</Status>
  <StatusGB>sample string 14</StatusGB>
  <StatusPortabilidade>sample string 10</StatusPortabilidade>
  <bitTopupDone>true</bitTopupDone>
  <bitWarning>true</bitWarning>
  <bitZeroGB>true</bitZeroGB>
</TopUpUIPlanResponse>