{{baseUrl}}/pay/:endpoint

POST {{baseUrl}}/pay/:endpoint

Method that allows you to request a payment. The result will be a url that will redirect you to the payment portal.

Request Body

{"email"=>"<email>", "importo"=>"<number>", "ccp"=>"<string>", "codice_bollettino"=>"<string>", "cognome"=>"<string>", "nome"=>"<string>", "indirizzo"=>"<string>", "telefono"=>"<string>", "cap"=>"<string>", "localita"=>"<string>", "provincia"=>"<string>", "callback"=>{"method"=>"<string>", "field"=>"<string>", "url"=>"<string>", "headers"=>{"key"=>"<string>"}, "data"=>"<object>"}}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring

RESPONSES

status: OK

{&quot;data&quot;:{&quot;id&quot;:&quot;6489ca34bf95b3541e0ccb25&quot;,&quot;payment_url&quot;:&quot;https://test.ws.pagasubito.it/payment/6489ca34bf95b3541e0ccb25&quot;},&quot;success&quot;:true,&quot;message&quot;:&quot;&quot;,&quot;error&quot;:null}