{"openapi":"3.1.0","info":{"title":"PartnerIntegration Service","version":"1.0.0"},"paths":{"/uplay/account/{accountId}":{"get":{"tags":["UPlay"],"summary":"Get uplay games","parameters":[{"in":"path","name":"accountId","schema":{"$ref":"#/components/schemas/AccountID"},"required":true,"description":"An account id"},{"in":"query","name":"gameId","schema":{"type":"string"},"required":false,"description":"A game id"}],"responses":{"200":{"description":"Uplay accounts","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","required":["created","updated","rvn","epicEntitlement","gameId","epicAccountId","uplayAccountId","redeemedOnUplay","redemptionTimestamp","assignmentTimestamp","regionCode","refunded","id"],"properties":{"created":{"type":"string","format":"date-time"},"updated":{"type":"string","format":"date-time"},"rvn":{"type":"integer"},"epicEntitlement":{"type":"object","required":["catalogItemId","entitlementId"],"properties":{"catalogItemId":{"type":"string","pattern":"^[0-9a-f]{12}4[0-9a-f]{3}[89ab][0-9a-f]{15}$"},"entitlementId":{"type":"string","pattern":"^[0-9a-f]{12}4[0-9a-f]{3}[89ab][0-9a-f]{15}$"}}},"gameId":{"type":"string","pattern":"^[0-9a-f]{12}4[0-9a-f]{3}[89ab][0-9a-f]{15}$"},"epicAccountId":{"$ref":"#/components/schemas/AccountID"},"uplayAccountId":{"type":"string","format":"uuid"},"redeemedOnUplay":{"type":"boolean"},"redemptionTimestamp":{"type":"string","format":"date-time"},"assignmentTimestamp":{"type":"string","format":"date-time"},"regionCode":{"type":"string","examples":["WW"]},"refunded":{"type":"boolean"},"id":{"type":"string"}}}}}}}},"description":"**Permission Required**: [`partnerintegration:uplay:{accountId} READ`](https://egs.jaren.wtf/#resource=partnerintegration:uplay:{accountId}&action=2)","security":[{"bearer":["partnerintegration:uplay:{accountId} READ"]}]},"post":{"tags":["UPlay"],"summary":"Claim uplay game","parameters":[{"in":"path","name":"accountId","schema":{"$ref":"#/components/schemas/AccountID"},"required":true,"description":"An account id"},{"in":"query","name":"gameId","schema":{"type":"string"},"required":true,"description":"A game id"}],"responses":{"400":{"description":"Game already claimed","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"}],"examples":[{"errorCode":"errors.com.epicgames.partnerintegration.game_already_claimed","errorMessage":"A code has already been claimed for game afdd0a52d9e745ff8f79258a3cca003a and account 8b0a23cb43af46cb972806f4025a9cba","messageVars":["afdd0a52d9e745ff8f79258a3cca003a","8b0a23cb43af46cb972806f4025a9cba"],"numericErrorCode":101000,"originatingService":"partnerintegration","intent":"prod"}]}}}}},"description":"**Permission Required**: [`partnerintegration:uplay:{accountId} UPDATE`](https://egs.jaren.wtf/#resource=partnerintegration:uplay:{accountId}&action=4)","security":[{"bearer":["partnerintegration:uplay:{accountId} UPDATE"]}]}},"/uplay/code/{code}":{"get":{"tags":["UPlay"],"summary":"Get uplay code","parameters":[{"in":"path","name":"code","schema":{"type":"string"},"required":true,"description":"A code"}],"responses":{},"description":"**Permission Required**: [`partnerintegration:uplay:codes READ`](https://egs.jaren.wtf/#resource=partnerintegration:uplay:codes&action=2)","security":[{"bearer":["partnerintegration:uplay:codes READ"]}]},"delete":{"tags":["UPlay"],"summary":"Delete uplay code","parameters":[{"in":"path","name":"code","schema":{"type":"string"},"required":true,"description":"A code"}],"responses":{},"description":"**Permission Required**: [`partnerintegration:uplay:codes DELETE`](https://egs.jaren.wtf/#resource=partnerintegration:uplay:codes&action=8)","security":[{"bearer":["partnerintegration:uplay:codes DELETE"]}]}},"/version":{"get":{"tags":["Version"],"summary":"Get the current version","responses":{"200":{"description":"Version info","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Version"}}}}}}}},"components":{"schemas":{"Error":{"type":"object","required":["errorCode","errorMessage"],"properties":{"errorCode":{"type":"string","examples":["errors.com.epicgames.common.server_error"]},"errorMessage":{"type":"string","examples":["Sorry an error occurred and we were unable to resolve it (tracking id: [00000000-0000-0000-0000-000000000000])"]},"messageVars":{"type":"array","items":{"type":"string"}},"numericErrorCode":{"type":"integer","examples":1000},"originatingService":{"type":"string","examples":["com.epicgames.account.public","com.epicgames.account-policy","fortnite"]},"intent":{"type":"string","examples":["unknown","prod","stage"]}},"description":"This represents an error response"},"AccountID":{"type":"string","pattern":"^[0-9a-f]{12}4[0-9a-f]{3}[89ab][0-9a-f]{15}$","examples":["8b0a23cb43af46cb972806f4025a9cba"],"description":"This represents a unique id for an epic games account"},"Version":{"type":"object","required":["app","serverDate","overridePropertiesVersion","cln","build","moduleName","buildDate","version","branch","modules"],"properties":{"app":{"type":"string"},"serverDate":{"type":"string","format":"date-time"},"overridePropertiesVersion":{"type":"string"},"cln":{"type":"string"},"build":{"type":"string"},"moduleName":{"type":"string"},"buildDate":{"type":"string","format":"date-time"},"version":{"type":"string"},"branch":{"type":"string"},"modules":{"type":"object","additionalProperties":{"type":"object","required":["cln","build","buildDate","version","branch"],"properties":{"cln":{"type":"string"},"build":{"type":"string"},"buildDate":{"type":"string","format":"date-time"},"version":{"type":"string"},"branch":{"type":"string"}}}}}}},"securitySchemes":{"bearer":{"type":"http","scheme":"bearer"}}},"servers":[{"url":"https://partnerintegration-public-service-prod.ol.epicgames.com/partnerintegration/api"}]}