This endpoint allows the recovery of a client in the RetailForce Middleware, with data (including configuration information) from the RetailForce Cloud.
A recovery of a client may be necessary in case of a change in cash register hardware or hardware defects.
The function POST /api/v1/management/clients/recovery/restoreByCloud/Id is essentially identical to PUT /api/v1/management/clients/byCloud however, the latter can only be executed once during the initial commissioning of a client.
A successful call to the endpoint (200):
- Recovers an existing client in the Middleware and assigns the corresponding uniqueClientId of the terminal from the RetailForce Cloud to this client.
- Downloads the configuration object from the Cloud system again and configures the client accordingly.
This endpoint is used when a client, which has already been created once and whose ClientId is known, needs to be recovered (such as in the case of a change in hardware).
- The client must have been created once and the ClientId should be known.
- Organizational structure and configuration object have been created in the RetailForce Cloud and assigned accordingly.
- Fiscal Middleware installed.
The following information must be transmitted:
Type of the company identification. The Type must also be entered and exist in the RetailForce Cloud.
Following types are available:
 = VatNumber,
See also: Company identification
We recommend using Type  = VatNumber as the primary ID in all countries (EU), even if it is not used as a mandatory company identifier in the respective country.
| = VatNumber|
The company identifier itself. It must match the information that was entered in the RetailForce Cloud.
The number of the store where the cash register is located. It must match the information that was entered in the RetailForce Cloud.
NOTE: in France, the SIRET (extension of the SIREN by the store number) should be given here.
Cash register number. It must match the information that was entered in the RetailForce Cloud.
|cloudApiKey||API Key to authenticate the Cloud communication||RFC_4a2abc...|
API Secret for authenticating Cloud communication
|200||The client was successfully restored and configured. The response object returns the uniqueClientId of the restored client. The uniqueClientId must be stored by the cash register system and used for the entire further communication process (concerning the client).||b7cf6d59-cec4-4cc2-a647-01XXXX|
The type of the specified company identifier is not a unique type.
Use one of the following company identifiers:
 = VatNumber,