Submit Reservation
With thisThis API endpoint,allows youthird-party cansystems exportto create reservations and redirect customers to Front Payment Go and geta checkout URLspage infor return.completing payments.
Reservation
Endpoint |
POST [https://demo-api.frontpayment.no/api/v1/connect/reservations/ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
AuthenticationThis endpoint requires a | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Request Payload |
|
Field | Type | Description |
---|---|---|
customerDetails | array | Required. Customer details information. |
customerDetails.type | string | Required. Customer type (private or corporate). |
customerDetails.countryCode | string | Required. Country dialing code (e.g., +880). |
customerDetails.msisdn | string | Required. Mobile phone number without country code. |
customerDetails.email | email | Required. Valid customer email address. |
customerDetails.name | string | Required. Full name of the customer. |
customerDetails.preferredLanguage | string | Required. Preferred language (e.g., en, no). |
customerDetails.personalNumber | string | Optional. Must be exactly 11 digits if provided. |
customerDetails.organizationId | string | Required if type=corporate . Alphanumeric only. |
customerDetails.address | array | Required. Customer address details. |
customerDetails.address.street | string | Required. Street name. |
customerDetails.address.zip | string | Required. Postal code. |
customerDetails.address.city | string | Required. City name. |
customerDetails.address.country | string | Required. Country code (ISO format). |
orderDate | string | Required. Reservation order date. |
dueDateForPaymentLink | string | Required. Expiry timestamp for payment link. |
referenceNo | string | Optional. Internal reference number. |
customerReference | string | Optional. Customer’s reference number. |
sendOrderBy | array | Required. Defines communication channels (SMS, email). |
sendOrderBy.sms | boolean | Required. Whether to send via SMS. |
sendOrderBy.email | boolean | Required. Whether to send via Email. |
products | array | Required. List of products in the order. |
products.*.name | string | Required. Product name. |
products.*.productId | string | Optional. Product ID (max 25 chars). |
products.*.rate | numeric | Required. Unit rate. |
products.*.tax | numeric | Required. Tax value. |
products.*.amount | numeric | Required. Quantity of product. |
orderSummary.subTotal | numeric | Required. Subtotal of products. |
orderSummary.totalTax | numeric | Required. Total tax amount. |
orderSummary.grandTotal | numeric | Required. Final payable amount. |
customerNotes | string | Optional. Customer-provided notes. |
tnc | string | Optional. Terms & Conditions. |
chargeValidity | string | Optional. Must be numeric string. |
settings | array | Optional. Additional settings. |
settings.secureDetails | boolean | Optional. Indicates secure details requirement. |
settings.isChargePartiallyRefundable | boolean | Optional. Whether partial refunds are allowed. |
callback | array | Optional. Callback configuration. |
callback.callbackUrl | url | Optional. URL to receive payment notifications. |
Example Success Response Structure
:
{
"status_code": 201,
"status_message": "OK",
"message": "Reservation Submitted Successfully",
"is_data": true,
"data": {
"customerUuid":"String", "orderUuid": "String",
"checkoutUrl": "String"
}
}
{
"status_code": 510,
"status_message": "Execution Exception Occurred",
"message": "Something Went Wrong",
"is_error": true,
"errors": "Array"
}
{
"status_code": 201,
"status_message": "OK",
"message": "Reservation Submitted Successfully",
"is_data": true,
"data": {
"customerUuid":"String", "orderUuid": "String",
"checkoutUrl": "String"
}
}
{
"status_code": 510,
"status_message": "Execution Exception Occurred",
"message": "Something Went Wrong",
"is_error": true,
"errors": "Array"
}
{
"status_code": 202,
"status_message": "OK",
"message": "Order Submitted Successfully",
"is_data": true,
"data": {.
"customerUuid":"CSRT1098785092"CSRT1358046874",
"reservationUuid": "RES3855804929"RES1943140879",
"checkoutUrl": "https://demo.stg.frontpayment.no/reservations/details/RES3855804929"RES1943140879"
}
}
Step
2:After receiving a successful response, the customer should be redirected to the checkoutUrl
provided.
At checkout, the customer can choose from supported payment methods:
- Vipps
- Google Pay
- Visa
- Mastercard
Once the payment is completed successfully, the user will be redirected to a success page.
Step 3: Callback Notification
After payment, the third-party system will be notified via the callbackUrl
provided in the reservation request.
📌 See Callback URL Documentation for details.