POST api/OuterGateRecharges/CheckRechargeRequest

Questa chiamata permetterà di verificare se è possibile effettuare la ricarica. Se la ricarica che si vuole verificare NON può essere annullata, allora questa chiamata ha la stessa valenza della chiamata "ConfirmRecharge". I parametri in ingresso sono l'id del fornitore, l'id del taglio e il numero telefonico nel caso in cui si vuole fare una ricarica Online. Il parametro in uscita è l'id della ricarica che bisognerà salvare internamente per poterlo utilizzare in tutte le altre chiamate. Bisognerà in ogni caso effettuare una conferma per poter generare la ricevuta.

Request Information

URI Parameters

None.

Body Parameters

The model.

OuterReghargesCheckModel
NameDescriptionTypeAdditional information
PhoneNumber

Numero di telefono

string

Matching regular expression pattern: ^(\+39)?\s?(\d{1,4}[\s\.\-]?)?(\d{6,10})$

IdFormat

Identificativo del formato

integer

None.

IdSupplier

Identificativo del fornitore

integer

None.

CreatedByIpAddress

Indirizzo IP di chi sta effettuando la richiesta

string

Required

Matching regular expression pattern: \b\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\b

Request Formats

application/json, text/json

Sample:
{
  "PhoneNumber": "sample string 1",
  "IdFormat": 2,
  "IdSupplier": 3,
  "CreatedByIpAddress": "sample string 4"
}

application/xml, text/xml

Sample:
<OuterReghargesCheckModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/tocode.Sepafin.Api.OuterModels">
  <CreatedByIpAddress>sample string 4</CreatedByIpAddress>
  <IdFormat>2</IdFormat>
  <IdSupplier>3</IdSupplier>
  <PhoneNumber>sample string 1</PhoneNumber>
</OuterReghargesCheckModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

integer

Response Formats

application/json, text/json

Sample:
1

application/xml, text/xml

Sample:
<int xmlns="http://schemas.microsoft.com/2003/10/Serialization/">1</int>