Admin API / Types
CreateProductPayload
UnionThe result of createProduct. IdempotencyConflictError: the key was used before with another input. ProductNotFoundError: a repeat of a call whose listing was deleted since, or that the caller can no longer read. ProductValidationError: the input breaks one or more listing rules. SaleModeNotAllowedError: the store does not allow the format, or members cannot sell. UnauthorizedError: the caller cannot create this listing; requiredRole is the lowest role that can, or null when no role helps. An error member creates nothing.
union CreateProductPayload = CreateProductSuccess | IdempotencyConflictError | ProductNotFoundError | ProductValidationError | SaleModeNotAllowedError | UnauthorizedErrorMembers
CreateProductSuccessIdempotencyConflictErrorProductNotFoundErrorProductValidationErrorSaleModeNotAllowedErrorUnauthorizedError