SetReservation creates a new reservation or updates an existing reservation for the requested customer.

If no existing reservation is found a credit check is performed, if approved a new reservation with the requested amount is created.

If an existing reservation is found and the requested amount is higher, a new credit check can be performed. If successful, the reservation amount will be increased.

If an existing reservation is found and the requested amount is lower, the reserved amount will be decreased.

Any purchases/invoice made before a reservation will be calculated into the AvailableAmount of the reservation.

This method is available in the following countries:
SE FI NO DK 

Input Parameters:

Field nillable Max Type Description
Username false 50 string The username used to authorize the request.
Password false 50 string The password used to authorize the request.
StoreId true 4 short The StoreId used for identification of store.
CorrelationId true 50 string CorrelationID is sent back in the response.
CountryCode false 2 string The country code (ISO 3166-1 alpha-2) for the country.
RegNo false 12 string The customer civic registration number. In the following formats:
Sweden: yymmddxxxx
Norway: ddmmyyxxxxx
Denmark: ddmmyyxxxx
Finland: ddmmyyxxxx
No separators should be used, for example:  - ,  .
ReservedAmount false 6,2 decimal The requested amount to reserve. If an existing reservation is found that reservations amount will be increased or decreased to the amount you send in.
CustomerAddress false   Address Address of the customer.
CurrencyCode false string The ISO 4217 code representation for the currency.

 

Output Parameters:

Field nillable Max Type Description
CorrelationId true 50 string CorrelationID from the request if any.
ReservedAmount true 6,2 decimal Total amount reserved.
AvailableAmount true 6,2 decimal Available amount left on the reservation.
ValidUntil true   datetime Date until the reservation is valid, null means indefinite.