MG+ Free Games Plus Guide
Breadcrumbs

Assign Multiple Players to a Free Game Offer

POST /agents/{agentCode}/offers/{offerGuid}/freeGameBatchInstances

400 Bad Request

Missing OfferGuid

{
  "code": "WrongParameter",
  "message": "The field \"OfferGuid\" is required!"
}


Missing AgentCode

{
  "code": "WrongParameter",
  "message": "The field \"AgentCode\" is required!"
}


AgentCode: Max 50 Alphanumeric Characters

{
  "code": "WrongParameter",
  "message": "The field \"AgentCode\" must be a string with a maximum length of 50. Using only numbers and english alphabets!"
}


Missing Players Field

{
  "code": "WrongParameter",
  "message": "The field \"Players\" is required!"
}


Batch Player Requirement: Minimum of 1 Player

{
  "code": "WrongParameter",
  "message": "The number of players in the batch should be >= 1"
}


Batch Player Limit

{
  "code": "WrongParameter",
  "message": "\"The number of players in the batch should be smaller or equal to {0}\""
}


Player ID: Max 50 Alphanumeric Characters

{
  "code": "WrongParameter",
  "message": "The field \"PlayerId\" must be a string with a maximum length of 50. Using only numbers and english alphabets!"
}


Expired Offer

{
  "code": "WrongParameter",
  "message": "Offer is expired"
}


Offer Closed

{
  "code": "WrongParameter",
  "message": "Offer is closed"
}


Invalid AgentCode

{
  "code": "WrongParameter",
  "message": "AgentCode is not matched"
}


OfferAvailableToPlayerFromDateUTC: Future Time Required

{
  "code": "WrongParameter",
  "message": "offerAvailableToPlayerFromDateUTC must be a future time."
}


OfferAvailableToPlayerFromDateUTC Constraints: Between Offer Dates

{
  "code": "WrongParameter",
  "message": "offerAvailableToPlayerFromDateUTC should be equal to greater than OfferAvailableFromDateUTC but less than OfferAvailableToDateUTC"
}