Logo
Openapi.it Public API Documentation

{{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.

 

Body PARAM

Key Datatype Required Description 



HEADERS

Key Datatype Required Description 
Content-Type
string
Accept
string




RESPONSES

status OK

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



Curl
curl -X POST 'baseUrl/pay/:endpoint' -H 'Content-Type: application/json' -H 'Accept: application/json' -d '{"email":"\u003cemail\u003e","importo":"\u003cnumber\u003e","ccp":"\u003cstring\u003e","codice_bollettino":"\u003cstring\u003e","cognome":"\u003cstring\u003e","nome":"\u003cstring\u003e","indirizzo":"\u003cstring\u003e","telefono":"\u003cstring\u003e","cap":"\u003cstring\u003e","localita":"\u003cstring\u003e","provincia":"\u003cstring\u003e","callback":{"method":"\u003cstring\u003e","field":"\u003cstring\u003e","url":"\u003cstring\u003e","headers":{"key":"\u003cstring\u003e"},"data":"\u003cobject\u003e"}}'

ENDPOINTS