Documentation
Difficulty level:
API - Payment POST payment/booking
A payment can be prepared using the API - Payment entity.
POST payment/booking
Used for
Preparing a payment. With the data, a payment can be offered to the user, for example via a web form. This allows the payment process to be included in a website or in an app.
Authentication
User must be logged in at administrator level
Parameters
| Parameter | Description | Mandatory | Example |
|---|---|---|---|
|
method |
Payment method / provider | Yes | INGENICO |
|
booking_id |
The reservation number | Yes | 1234 |
Example
Create payment for reservation.
POST api/rest/payment/booking
request: {
"method": "INGENICO",
"booking_id": 33388,
"pay_id": 0
}
Reply: {
"PSPID": "teqainformatics",
"ORDERID": "20093094",
"AMOUNT": 37500,
"CURRENCY": "EUR",
"PARAMVAR": "33388_0",
"LANGUAGE": "en",
"url": "https://secure.ogone.com/ncol/test/orderstandard.asp",
"SHASign": "21E90410DC5E18E405C7C751E08CD96AB9D3CA68E3C3CCDD21309827E759BBD6187413A4A239A9A47C7AE3746F64118F29273208D859AC7C670254EB2D271 EC0"
}





