> For the complete documentation index, see [llms.txt](https://developer.gotadi.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.gotadi.com/english/b2b2c-partner/api-method/hotel-1/registration-and-keys.md).

# Registration and keys

RSA keys are exchanged in XML `<RSAKeyValue>` form (Modulus, Exponent, Base64), as in the existing B2B2C connection. **The partner private key is never sent to Gotadi.** UAT and production use separate key pairs.

| Item                            | Issued by                                | Used for                                                            |
| ------------------------------- | ---------------------------------------- | ------------------------------------------------------------------- |
| `apikey`                        | Gotadi                                   | Header on every request; identifies the partner                     |
| Partner `accessCode`            | Gotadi                                   | The `accessCode` field in every request                             |
| Gotadi `accessCode`             | Gotadi                                   | The `accessCode` field in every response, for the partner to verify |
| Gotadi RSA public key           | Gotadi                                   | Encrypts the request 3DES key; verifies response signatures         |
| Partner RSA key pair (2048-bit) | Partner generates, sends public key only | Signs requests; decrypts the response 3DES key                      |

Gotadi also needs:

* Your outbound IP range (if whitelisting is required).
* The partner agency enabled for Partner API and funded with a **deposit balance** — `bookings/commit` debits this balance.

{% hint style="danger" %}
Sync server clocks via NTP. A `timestamp` more than **300 seconds** off Gotadi's clock is rejected with code `26`.
{% endhint %}
