post
https://api.my-rent.net/auth/partner_token
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests⦠| |||
Loadingā¦
Creates a token for the B2B partner API (/b2b_partner/...). The token is valid for 1 hour.
Send b2b_guid in the header and your secret in the body. Cache the token and create a new one shortly before it expires, for example every 45 minutes. Do not create a new token for every request.
Keep the secret private
MyRent gives you the secret once. Call this endpoint from your server only and never put the secret in browser or mobile app code, repositories or logs.
Responses
| Status | Meaning |
|---|---|
200 | Token created. exp is the expiry time as a Unix timestamp. |
401 | Wrong b2b_guid or secret, or the partner account is not active. |
