Admin API / Types
GenerateProductMagicCodePayload
UnionThe result of minting a listing's magic code. ProductNotFoundError: the caller reads no listing with this ID. UnauthorizedError: the caller's role is below SELLER, with requiredRole SELLER, or the caller reads the listing but does not act for its seller, with requiredRole null.
union GenerateProductMagicCodePayload = GenerateProductMagicCodeSuccess | ProductNotFoundError | UnauthorizedError