Skip to content

Create Mollie or Invoice payment ​

POST
/v1/support/payment

Initiate payment processing for a reservation.

This endpoint handles payment initiation and creates payment records based on payment method:

For invoice/deferred payments (invoice, pay_by_30days, etc.):
1. Updates payment requests/contracts (metadata about what needs to be paid)
2. Creates booking directly via create_booking()
3. Creates PaymentRequest and Payment records with OPEN status (in create_booking())
4. Returns confirmation URL

For Mollie payments (card, ideal, etc.):
1. Updates payment requests/contracts (metadata about what needs to be paid)
2. Creates external payment via Mollie API
3. Returns checkout URL for user to complete payment
4. Payment records are created later via webhooks when payment is completed

TODO: refactor into a service function. I keep it here for now to makke MR review easier.

Authorizations​

api_key
Type
API Key (header: X-Api-Key)

Request Body​

application/json
JSON
{
  
"amount": 0,
  
"total_fixed_fee": 0,
  
"distributor_id": "string",
  
"client_id": "string",
  
"reservation_id": "string",
  
"total_fixed_fee_vat": null,
  
"currency": null,
  
"payment_reference": null,
  
"booking_reference": null,
  
"payment_method": null,
  
"location": "bookingsportal.xs2event.com",
  
"bank_id": null,
  
"billing_address": {
  
  
"given_name": "string",
  
  
"family_name": "string",
  
  
"street_and_number": "string",
  
  
"city": "string",
  
  
"country": "string",
  
  
"street_additional": null,
  
  
"postal_code": null
  
},
  
"card_token": null,
  
"referer_url": null,
  
"booking_email": null,
  
"lead_name_for_pickup": null
}

Responses​

OK

application/json
JSON
{
  
"checkout": "string"
}

Playground​

Server
Authorization
Body

Samples​