# Exchange

# POST /:partnerId/identity/exchange

Parameter Description Example
nin Personnummer in Sweden Fødselsnummer in norway etc. 9106225965
contry Country of the player. Format of nin needs to be correct to this country. Supported countries: SE SE

# Schema

{
  "nin": "YYMMDDXXXX", // fødselsnummer, personnummer
  "country": "SE|NO|ES"
}

# Responses

# Successful
// 200 OK
{
  "success": true,
  "ludio_id": "string"
}
# Failed
// 400 OK
{
  "success": false,
  "error": 100,
  "error_message": "Missing nin"
}

# Example

// LUDIO_EVENT_API_URL= https://api.ludio.se/2389
fetch(`${process.env.LUDIO_EVENT_API_URL}/identity/exchange`, {
  method: "POST",
  body: {
    nin: "9106225965",
    country: "SE",
  }
})
# LUDIO_EVENT_API_URL= https://api.ludio.se/2389
curl -d {"nin": "9106225965", "country": "SE"} $LUDIO_EVENT_API_URL/identity/exchange