{"openapi":"3.1.0","info":{"title":"Fulfillment Service","version":"1.0.0"},"paths":{"/public/accounts/{accountId}/codes/{code}":{"post":{"tags":["Accounts"],"summary":"Redeem code","parameters":[{"in":"path","name":"identityId","schema":{"$ref":"#/components/schemas/IdentityID"},"required":true,"description":"An identity id"},{"in":"path","name":"code","schema":{"type":"string"},"required":true,"description":"A redeem code"},{"in":"query","name":"codeUseId","schema":{"type":"string"},"required":false,"description":"A code use id, if using a reserved code use"}],"requestBody":{"content":{"application/json":{"schema":{"type":"object"}}}},"responses":{"200":{"description":"The info of the code you just redeemed","content":{"application/json":{"schema":{"type":"object","required":["offerId","accountId","identityId","details"],"properties":{"offerId":{"type":"string","pattern":"^[0-9a-f]{12}4[0-9a-f]{3}[89ab][0-9a-f]{15}$"},"accountId":{"$ref":"#/components/schemas/IdentityID"},"identityId":{"$ref":"#/components/schemas/IdentityID"},"details":{"type":"array","items":{"type":"object","required":["entitlementId","entitlementName","itemId","country"],"properties":{"entitlementId":{"type":"string","pattern":"^[0-9a-f]{12}4[0-9a-f]{3}[89ab][0-9a-f]{15}$"},"entitlementName":{"type":"string"},"itemId":{"type":"string","pattern":"^[0-9a-f]{12}4[0-9a-f]{3}[89ab][0-9a-f]{15}$"},"namespace":{"type":"string","pattern":"^(p-)?[0-9a-f]{12}4[0-9a-f]{3}[89ab][0-9a-f]{15}$"},"country":{"type":"string"}}}}}}}}}},"description":"**Permission Required**: [`fulfillment:public:code CREATE`](https://egs.jaren.wtf/#resource=fulfillment:public:code&action=1)","security":[{"bearer":["fulfillment:public:code CREATE"]}]}},"/public/identities/{identityId}/codes/{code}":{"post":{"tags":["Identities"],"summary":"Redeem code","parameters":[{"in":"path","name":"identityId","schema":{"$ref":"#/components/schemas/IdentityID"},"required":true,"description":"An identity id"},{"in":"path","name":"code","schema":{"type":"string"},"required":true,"description":"A redeem code"},{"in":"query","name":"codeUseId","schema":{"type":"string"},"required":false,"description":"A code use id, if using a reserved code use"}],"requestBody":{"content":{"application/json":{"schema":{"type":"object"}}}},"responses":{"200":{"description":"The info of the code you just redeemed","content":{"application/json":{"schema":{"type":"object","required":["offerId","accountId","identityId","details"],"properties":{"offerId":{"type":"string","pattern":"^[0-9a-f]{12}4[0-9a-f]{3}[89ab][0-9a-f]{15}$"},"accountId":{"$ref":"#/components/schemas/IdentityID"},"identityId":{"$ref":"#/components/schemas/IdentityID"},"details":{"type":"array","items":{"type":"object","required":["entitlementId","entitlementName","itemId","country"],"properties":{"entitlementId":{"type":"string","pattern":"^[0-9a-f]{12}4[0-9a-f]{3}[89ab][0-9a-f]{15}$"},"entitlementName":{"type":"string"},"itemId":{"type":"string","pattern":"^[0-9a-f]{12}4[0-9a-f]{3}[89ab][0-9a-f]{15}$"},"namespace":{"type":"string","pattern":"^(p-)?[0-9a-f]{12}4[0-9a-f]{3}[89ab][0-9a-f]{15}$"},"country":{"type":"string"}}}}}}}}}},"description":"**Permission Required**: [`fulfillment:public:code CREATE`](https://egs.jaren.wtf/#resource=fulfillment:public:code&action=1)","security":[{"bearer":["fulfillment:public:code CREATE"]}]}},"/public/identities/{identityId}/subscription-products/{sandoxId}/group-offer-fulfillments":{"get":{"tags":["Identities"],"summary":"Read group offer fulfillments (subscriptions) info for a sandbox","parameters":[{"in":"path","name":"identityId","schema":{"$ref":"#/components/schemas/IdentityID"},"required":true,"description":"An identity id"},{"in":"path","name":"sandboxId","schema":{"type":"string","examples":["ue"]},"required":true,"description":"A sandbox id"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["fulfillmentStatus","fulfillmentResult"],"properties":{"fulfillmentStatus":{"type":"string","examples":["PENDING"]},"fulfillmentResult":{"type":"object","required":["identityId","subsNamespace","subsLevelItemId","quantity"],"properties":{"identityId":{"$ref":"#/components/schemas/IdentityID"},"subsNamespace":{"type":"string","examples":["ue"]},"subsLevelItemId":{"type":"string","examples":["372636dce9544c0cb78e03d190b4b847"]},"quantity":{"type":"integer"}}}}}}}}},"description":"**Permission Required**: [`fulfill:public:{accountId}:group-offer-fulfillment READ`](https://egs.jaren.wtf/#resource=fulfill:public:{accountId}:group-offer-fulfillment&action=2)","security":[{"bearer":["fulfill:public:{accountId}:group-offer-fulfillment READ"]}]}},"/version":{"get":{"tags":["Version"],"summary":"Get the current version","responses":{"200":{"description":"Version info","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Version"}}}}}}}},"components":{"schemas":{"IdentityID":{"oneOf":[{"$ref":"#/components/schemas/AccountID"},{"$ref":"#/components/schemas/OrganizationID"}],"description":"This represents a unique id for an identity, which can be either an account or an organization."},"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"}}}}}},"OrganizationID":{"type":"string","pattern":"^o-[0-9a-z]{30}$","examples":["o-aa83a0a9bc45e98c80c1b1c9d92e9e","o-qffyne2n8tuxgnxu4gzg33th8xkuud"],"description":"This represents a unique id for an organization"}},"securitySchemes":{"bearer":{"type":"http","scheme":"bearer"}}},"servers":[{"url":"https://fulfillment-public-service-prod06.ol.epicgames.com/fulfillment/api"}]}